/* ============================================================
   FreeJam Apps — витрина приложений
   Палитра и правила: FreeJam Scanner/BRAND_COLORS.md
   ============================================================ */

:root {
  --bg: #0b0d12;
  --bg-2: #0f1115;
  --card: #181b22;
  --card-2: #12151c;
  --hover: #212530;
  --line: #242935;
  --line-2: #2d323e;

  --text: #ffffff;
  --muted: #9ca3af;
  --dim: #7d8492;

  --blue: #3b82f6;
  --purple: #8b5cf6;
  --pink: #f472b6;
  --green: #5ad19a;

  --grad: linear-gradient(100deg, #3b82f6 0%, #8b5cf6 50%, #f472b6 100%);
  --grad-soft: linear-gradient(100deg, rgba(59, 130, 246, .18), rgba(139, 92, 246, .18) 50%, rgba(244, 114, 182, .18));

  --r-s: 12px;
  --r-m: 16px;
  --r-l: 24px;

  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1240px;
  --pad: 28px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--sans);
  background:
    radial-gradient(1000px 560px at 12% -12%, rgba(59, 130, 246, .17), transparent 62%),
    radial-gradient(900px 520px at 92% -6%, rgba(244, 114, 182, .12), transparent 60%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}

/* тонкая тех-сетка поверх фона */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .032) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 0 25%, transparent 72%);
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 0 25%, transparent 72%);
}

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

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

button, input { font: inherit; color: inherit; }

button { cursor: pointer; background: none; border: 0; }

::selection { background: rgba(139, 92, 246, .38); }

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

/* ── кастомный скроллбар ─────────────────────────────────────── */
* {
  scrollbar-width: thin;
  scrollbar-color: #3d4456 #12151c;
}
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #0d1016; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3b82f6, #8b5cf6 55%, #f472b6);
  border-radius: 99px;
  border: 3px solid #0b0d12;
}
::-webkit-scrollbar-thumb:hover { filter: brightness(1.25); }

/* ── общие обёртки ───────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  position: relative;
  z-index: 1;
}

.mono {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.grad-text {
  background: var(--grad);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradSlide 9s linear infinite;
}

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

/* ── шапка ───────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 13, 18, .72);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}

.topbar.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(11, 13, 18, .92);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: 1.05rem;
  flex: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 8px 22px -10px rgba(139, 92, 246, .9);
}

.brand b {
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand .apps-tag {
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .14em;
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: 99px;
  padding: 4px 8px 3px;
  margin-left: 2px;
  transition: color .25s, border-color .25s;
}

.brand:hover .apps-tag { color: #fff; border-color: #4b5364; }

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

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

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.nav a:hover { color: #fff; }
.nav a:hover::after { transform: scaleX(1); }

.top-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 99px;
  font-size: .87rem;
  font-weight: 700;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .04);
  transition: border-color .25s, background .25s, transform .25s;
}

.top-cta:hover {
  border-color: transparent;
  background: var(--grad);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -14px rgba(139, 92, 246, .9);
}

/* ── кнопки ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: var(--r-m);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .005em;
  white-space: nowrap;
  transition: transform .25s cubic-bezier(.2, .7, .3, 1), box-shadow .3s, border-color .25s, background-color .25s;
}

.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
  color: #fff;
  background: var(--grad);
  background-size: 200% 100%;
  animation: gradSlide 7s linear infinite;
  box-shadow:
    0 16px 34px -18px rgba(139, 92, 246, .95),
    inset 0 1px 0 rgba(255, 255, 255, .28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 22px 46px -18px rgba(139, 92, 246, 1),
    inset 0 1px 0 rgba(255, 255, 255, .34);
}

.btn-ghost {
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .03);
  color: #e9ecf2;
}

.btn-ghost:hover {
  border-color: #454d5e;
  background: rgba(255, 255, 255, .06);
  transform: translateY(-2px);
}

.btn-sm { height: 42px; padding: 0 18px; font-size: .86rem; border-radius: 12px; }

.btn[disabled], .btn.is-disabled {
  cursor: default;
  color: var(--muted);
  background: rgba(255, 255, 255, .04);
  border: 1px dashed var(--line-2);
  box-shadow: none;
  animation: none;
  transform: none;
}

/* ── герой ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 54px 0 10px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #cfd4dd;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .03);
  border-radius: 99px;
  padding: 7px 14px;
}

.dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(90, 209, 154, .55);
  animation: pulse 2.6s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(90, 209, 154, .5); }
  70% { box-shadow: 0 0 0 9px rgba(90, 209, 154, 0); }
  100% { box-shadow: 0 0 0 0 rgba(90, 209, 154, 0); }
}

.hero h1 {
  margin: 22px 0 20px;
  font-size: clamp(2.4rem, 5vw, 4.15rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 800;
}

.hero h1 em {
  font-style: normal;
  display: inline;
}

.hero .lead {
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 46ch;
}

.hero .lead b { color: #fff; font-weight: 700; }

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

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  font-size: .85rem;
  color: var(--muted);
}

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

.trust svg {
  width: 15px;
  height: 15px;
  color: #c4b5fd;
}

/* ── макет телефона ──────────────────────────────────────────── */
.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 18px 0;
}

.phone-stack {
  position: relative;
  width: min(300px, 74vw);
  display: flex;
  justify-content: center;
}

.phone-back {
  position: absolute;
  z-index: 0;
  width: 74%;
  left: -4%;
  top: 6%;
  transform: rotate(-9deg);
  opacity: .62;
  filter: brightness(.62) saturate(.85);
  animation: none;
  box-shadow: 0 40px 70px -40px #000;
}

.phone-back::after { display: none; }

.phone-main { position: relative; z-index: 2; width: 100%; }

.hero-art::before {
  content: "";
  position: absolute;
  inset: 6% 10%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(139, 92, 246, .5), rgba(59, 130, 246, .22) 42%, transparent 70%);
  filter: blur(50px);
  z-index: 0;
}

.phone {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 9 / 19.6;
  padding: 9px;
  border-radius: 40px;
  background: linear-gradient(160deg, #333a4b, #10131a 46%, #262c3a);
  box-shadow:
    0 50px 90px -34px rgba(0, 0, 0, .95),
    0 0 0 1px rgba(255, 255, 255, .09),
    0 0 60px -12px rgba(139, 92, 246, .45);
  animation: floaty 9s ease-in-out infinite;
}

.phone::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 18px;
  border-radius: 99px;
  background: #06070a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
  z-index: 2;
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
  background: #0a0c11;
}

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

.chip-float {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: .78rem;
  font-weight: 700;
  color: #eef0f5;
  background: rgba(20, 23, 31, .82);
  border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px -22px #000;
  animation: floaty 7s ease-in-out infinite;
}

.chip-float.c1 { top: 16%; left: -6%; animation-delay: -1.5s; }
.chip-float.c2 { bottom: 20%; right: -4%; animation-delay: -3.4s; }
.chip-float i {
  width: 8px; height: 8px; border-radius: 3px; background: var(--grad);
  box-shadow: 0 0 12px rgba(139, 92, 246, .9);
}

/* ── полоса статистики ───────────────────────────────────────── */
.stats {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .022), transparent);
}

.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  padding: 22px 8px 22px 0;
  border-right: 1px solid var(--line);
  min-width: 0;
}

.stat:last-child { border-right: 0; }
.stat + .stat { padding-left: 26px; }

.stat b {
  display: block;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
}

.stat span {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ── бегущая строка ──────────────────────────────────────────── */
.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  background: rgba(255, 255, 255, .015);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 36px;
  width: max-content;
  animation: slide 38s linear infinite;
}

.marquee span {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #7d8494;
  display: inline-flex;
  align-items: center;
  gap: 36px;
  white-space: nowrap;
}

.marquee span::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--purple);
  opacity: .8;
}

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

/* ── секции ──────────────────────────────────────────────────── */
.sect { padding: 76px 0 10px; }

.sect-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.kicker {
  display: block;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 10px;
}

.sect-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.08;
}

.sect-head p {
  color: var(--muted);
  font-size: .95rem;
  max-width: 64ch;
  margin-top: 10px;
}

/* ── управление каталогом ────────────────────────────────────── */
.controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tabs {
  display: inline-flex;
  padding: 4px;
  gap: 2px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .025);
}

.tab {
  height: 34px;
  padding: 0 15px;
  border-radius: 9px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--muted);
  transition: color .22s, background .22s;
  white-space: nowrap;
}

.tab:hover { color: #fff; }

.tab.is-active {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 8px 20px -12px rgba(139, 92, 246, .95);
}

.search {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .025);
  transition: border-color .25s, background .25s;
}

.search:focus-within {
  border-color: rgba(139, 92, 246, .65);
  background: rgba(139, 92, 246, .07);
}

.search svg { width: 16px; height: 16px; color: var(--dim); flex: none; }

.search input {
  border: 0;
  outline: 0;
  background: none;
  font-size: .87rem;
  width: 180px;
  color: #fff;
}

.search input::placeholder { color: var(--dim); }

/* ── сетка и карточки ────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border-radius: var(--r-l);
  border: 1px solid var(--line);
  background:
    radial-gradient(420px 220px at var(--mx, 50%) var(--my, 0%), rgba(139, 92, 246, .1), transparent 70%),
    linear-gradient(180deg, #171a21, #12151b);
  min-width: 0;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2, .7, .3, 1), border-color .3s, box-shadow .35s;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 30px 60px -40px #000, 0 0 40px -22px rgba(139, 92, 246, .8);
}

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

.card:focus-within::before { opacity: .75; }

.card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  flex: none;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .09), 0 14px 28px -18px rgba(0, 0, 0, .95);
}

.icon-tile {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  flex: none;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, rgba(59, 130, 246, .22), rgba(139, 92, 246, .2) 52%, rgba(244, 114, 182, .18));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 14px 28px -20px #000;
}

.icon-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 30% 20%, rgba(255, 255, 255, .22), transparent 70%);
}

.icon-tile svg {
  width: 30px;
  height: 30px;
  position: relative;
  z-index: 1;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(139, 92, 246, .8));
}

.card-titles { min-width: 0; flex: 1; }

.card-titles h3 {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.25;
}

.card-cat {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 5px;
}

.pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 99px;
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pill-ready {
  color: #b9f5d8;
  background: rgba(90, 209, 154, .12);
  border: 1px solid rgba(90, 209, 154, .35);
}

.pill-ready::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.pill-soon {
  color: #d9c9ff;
  background: rgba(139, 92, 246, .12);
  border: 1px solid rgba(139, 92, 246, .38);
}

.pill-soon::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%; background: #a78bfa;
  animation: blink 2.2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .25; }
}

.card p {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
  min-width: 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}

.tags li {
  font-size: .72rem;
  font-weight: 600;
  color: #b9bfcc;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .025);
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.card-meta {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--dim);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .84rem;
  font-weight: 700;
  color: #ddd6fe;
  transition: color .25s, gap .25s;
}

.card-link svg { width: 15px; height: 15px; transition: transform .25s; }

.card:hover .card-link { color: #fff; }
.card:hover .card-link svg { transform: translateX(4px); }

.card.is-soon .app-icon { filter: saturate(.85); }

/* карточка-приглашение */
.tile-invite {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  padding: 26px 30px;
  border-radius: var(--r-l);
  border: 1px dashed var(--line-2);
  background:
    radial-gradient(600px 200px at 0% 50%, rgba(139, 92, 246, .12), transparent 70%),
    rgba(255, 255, 255, .015);
}

.tile-invite h3 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.tile-invite p {
  color: var(--muted);
  font-size: .9rem;
  margin-top: 4px;
  max-width: 60ch;
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 44px 0;
  font-size: .95rem;
}

/* ── принципы ────────────────────────────────────────────────── */
.principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.principle {
  padding: 24px 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #161a21, #111419);
  min-width: 0;
}

.principle .p-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--grad-soft);
  border: 1px solid rgba(255, 255, 255, .08);
  margin-bottom: 16px;
}

.principle svg { width: 20px; height: 20px; color: #ddd6fe; }

.principle h3 {
  min-height: 2.4em;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 7px;
}

.principle p { font-size: .85rem; color: var(--muted); }

/* ── дорожная карта ──────────────────────────────────────────── */
.roadmap {
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
  background: #12151b;
}

.rm-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1.3fr) minmax(0, 1fr) 150px;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  transition: background .25s;
}

.rm-row:last-child { border-bottom: 0; }
.rm-row:hover { background: rgba(255, 255, 255, .022); }

.rm-num {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--dim);
  letter-spacing: .1em;
}

.rm-name { font-weight: 700; font-size: .95rem; }
.rm-name small { display: block; color: var(--dim); font-weight: 500; font-size: .78rem; margin-top: 3px; }
.rm-note { font-size: .82rem; color: var(--muted); }

.rm-status {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.rm-status i { width: 7px; height: 7px; border-radius: 50%; background: #4b5364; }
.rm-status.done { color: #b9f5d8; }
.rm-status.done i { background: var(--green); box-shadow: 0 0 8px rgba(90, 209, 154, .7); }
.rm-status.now { color: #ddd6fe; }
.rm-status.now i { background: #a78bfa; animation: blink 2.2s ease-in-out infinite; }

/* ── подвал ──────────────────────────────────────────────────── */
.footer {
  margin-top: 90px;
  border-top: 1px solid var(--line);
  padding: 44px 0 34px;
  background: linear-gradient(180deg, transparent, rgba(139, 92, 246, .05));
}

.footer .wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { width: 40px; height: 40px; border-radius: 12px; }
.foot-brand b { display: block; font-size: 1rem; letter-spacing: -.02em; }
.foot-brand span { font-size: .8rem; color: var(--dim); }

.foot-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  font-size: .86rem;
  color: var(--muted);
}

.foot-links a { transition: color .25s; }
.foot-links a:hover { color: #fff; }

.foot-bottom {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: .78rem;
  color: var(--dim);
}

/* ============================================================
   Страница приложения
   ============================================================ */
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: var(--dim);
  padding: 24px 0 0;
}

.crumbs a { color: var(--muted); }
.crumbs a:hover { color: #fff; }
.crumbs svg { width: 12px; height: 12px; opacity: .6; }

.app-head {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.app-head .app-icon,
.app-head .icon-tile {
  width: 104px;
  height: 104px;
  border-radius: 26px;
}

.app-head .icon-tile svg { width: 44px; height: 44px; }

.ah-body { min-width: 0; flex: 1; }

.ah-body .ah-cat {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--purple);
}

.app-head h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.1;
  margin: 8px 0 6px;
}

.ah-dev { font-size: .9rem; color: var(--muted); }
.ah-dev b { color: #ddd6fe; font-weight: 700; }

.ah-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.ah-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: 18px;
  font-size: .8rem;
  color: var(--muted);
}

.ah-meta span { display: inline-flex; align-items: center; gap: 7px; }
.ah-meta i {
  width: 4px; height: 4px; border-radius: 50%; background: var(--line-2);
  display: none;
}

.app-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 322px;
  gap: 34px;
  align-items: start;
  padding-bottom: 20px;
}

.app-main { min-width: 0; }
.app-main > .block:first-child { margin-top: 0; }

.app-side { position: sticky; top: 92px; display: grid; gap: 14px; }

.install-card {
  border: 1px solid var(--line-2);
  border-radius: var(--r-l);
  padding: 20px;
  background:
    radial-gradient(340px 180px at 80% 0%, rgba(139, 92, 246, .18), transparent 70%),
    linear-gradient(180deg, #191d26, #12151b);
  display: grid;
  gap: 14px;
}

.install-card .ic-head { display: flex; align-items: center; gap: 12px; }

.install-card .ic-head .app-icon,
.install-card .ic-head .icon-tile { width: 48px; height: 48px; border-radius: 13px; }
.install-card .ic-head .icon-tile svg { width: 22px; height: 22px; }

.install-card .ic-name { font-weight: 800; font-size: .95rem; letter-spacing: -.015em; }
.install-card .ic-sub { font-size: .76rem; color: var(--dim); }

.install-card .btn { width: 100%; height: 50px; }

.install-note {
  font-size: .74rem;
  color: var(--dim);
  line-height: 1.5;
}

.meta-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px 4px 0;
  border-top: 1px solid var(--line);
}

.meta-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: .79rem;
  color: var(--muted);
}

.meta-list b { color: #e6e9ef; font-weight: 600; text-align: right; }

.notice {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--r-m);
  border: 1px solid rgba(139, 92, 246, .35);
  background: rgba(139, 92, 246, .08);
  font-size: .85rem;
  color: #ddd6fe;
  line-height: 1.5;
}

.notice svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }

.shots {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 16px;
  scroll-snap-type: x mandatory;
  scrollbar-color: #3d4456 #101319;
}

.shot {
  flex: none;
  width: 244px;
  scroll-snap-align: start;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: #0a0c11;
  transition: transform .3s, border-color .3s;
  padding: 0;
  display: block;
}

.shot img { width: 100%; height: auto; }
.shot:hover { transform: translateY(-3px); border-color: rgba(139, 92, 246, .6); }

.block { margin-top: 40px; }

.block h2 {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}

.block > p { color: var(--muted); font-size: .93rem; }
.block > p + p { margin-top: 12px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.feature {
  padding: 20px;
  border-radius: var(--r-m);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #171a21, #111419);
  min-width: 0;
}

.feature h3 {
  font-size: .95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}

.feature h3 svg { width: 17px; height: 17px; color: #c4b5fd; flex: none; }

.feature ul { list-style: none; display: grid; gap: 9px; }

.feature li {
  position: relative;
  padding-left: 17px;
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.45;
}

.feature li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--grad);
}

.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: .87rem;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  overflow: hidden;
}

.spec tr { border-bottom: 1px solid var(--line); }
.spec tr:last-child { border-bottom: 0; }
.spec th {
  text-align: left;
  font-weight: 600;
  color: var(--muted);
  padding: 12px 18px;
  width: 42%;
  background: rgba(255, 255, 255, .018);
}
.spec td { padding: 12px 18px; color: #e6e9ef; }

.changelog {
  border-left: 2px solid var(--line-2);
  padding: 2px 0 2px 22px;
  display: grid;
  gap: 16px;
}

.cl-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.cl-head b { font-size: .95rem; }
.cl-head span {
  font-family: var(--mono);
  font-size: .66rem;
  color: var(--dim);
  letter-spacing: .08em;
}

.changelog ul { list-style: none; display: grid; gap: 7px; margin-top: 8px; }
.changelog li { font-size: .86rem; color: var(--muted); padding-left: 16px; position: relative; }
.changelog li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--purple);
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.more-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #161a21, #111419);
  min-width: 0;
  transition: border-color .25s, transform .25s;
}

.more-card:hover { border-color: rgba(139, 92, 246, .55); transform: translateY(-2px); }

.more-card .icon-tile,
.more-card .app-icon { width: 44px; height: 44px; border-radius: 12px; }
.more-card .icon-tile svg { width: 20px; height: 20px; }

.more-card b {
  display: block;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.more-card span { font-size: .7rem; color: var(--dim); }

/* ── лайтбокс скриншотов ─────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  background: rgba(5, 6, 9, .9);
  backdrop-filter: blur(10px);
}

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

.lightbox img {
  max-height: 86vh;
  max-width: min(78vw, 420px);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 40px 90px -30px #000;
}

.lb-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  flex: none;
  transition: background .25s, transform .25s;
}

.lb-btn:hover { background: rgba(255, 255, 255, .14); transform: scale(1.06); }
.lb-btn svg { width: 20px; height: 20px; }

.lb-close { position: absolute; top: 20px; right: 20px; }

.lb-count {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .14em;
  color: var(--muted);
}

/* ── появление при скролле ───────────────────────────────────── */
.rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2, .7, .3, 1), transform .7s cubic-bezier(.2, .7, .3, 1);
}

.rv.in { opacity: 1; transform: none; }

/* ── адаптив ─────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero .wrap { gap: 34px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principle h3 { min-height: 0; }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-layout { grid-template-columns: minmax(0, 1fr) 286px; gap: 24px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rm-row { grid-template-columns: 40px minmax(0, 1.2fr) minmax(0, 1fr) 120px; gap: 12px; }
}

@media (max-width: 900px) {
  :root { --pad: 20px; }
  .nav { display: none; }
  .hero { padding-top: 36px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-art { order: 2; padding-top: 8px; }
  .hero-copy { order: 1; }
  .phone-stack { width: min(276px, 74vw); }
  .phone-back { display: none; }
  .chip-float.c1 { left: 2%; }
  .chip-float.c2 { right: 2%; }
  .stats .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 16px 8px 16px 0; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { border-top: 1px solid var(--line); }
  .stat:nth-child(4) { border-top: 1px solid var(--line); }
  .stat + .stat { padding-left: 20px; }
  .app-layout { grid-template-columns: minmax(0, 1fr); }
  .app-side { position: static; order: -1; }
  .install-card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .install-card .ic-head { grid-column: 1; }
  .install-card .btn { grid-column: 2; width: auto; padding: 0 20px; }
  .install-card .meta-list,
  .install-card .install-note { grid-column: 1 / -1; }
  .install-card .meta-list li:nth-child(-n+4) { display: none; }
  .app-head .app-icon,
  .app-head .icon-tile { width: 84px; height: 84px; border-radius: 22px; }
}

@media (max-width: 720px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .sect { padding-top: 56px; }
  .rm-row { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .rm-note { display: none; }
  .rm-status { font-size: .55rem; }
  .search input { width: 100%; }
  .controls { width: 100%; }
  .tabs { flex: 1 1 100%; justify-content: space-between; }
  .tab { flex: 1; padding: 0 8px; }
  .search { flex: 1 1 100%; }
  .top-cta { margin-left: auto; height: 36px; padding: 0 13px; font-size: .8rem; }
  .brand .apps-tag { display: none; }
  .hero-actions .btn { flex: 1 1 auto; }
  .app-head { gap: 16px; }
  .app-head h1 { font-size: 1.6rem; }
  .app-head .app-icon,
  .app-head .icon-tile { width: 68px; height: 68px; border-radius: 18px; }
  .app-head .icon-tile svg { width: 30px; height: 30px; }
  .shot { width: 62vw; max-width: 240px; }
  .install-card { grid-template-columns: minmax(0, 1fr); }
  .install-card .btn { grid-column: 1; width: 100%; }
  .more-grid { grid-template-columns: minmax(0, 1fr); }
  .lightbox { gap: 8px; padding: 12px; }
  .lightbox img { max-width: 82vw; }
  .lb-btn { width: 38px; height: 38px; }
  .spec th, .spec td { padding: 10px 12px; font-size: .8rem; }
  .footer { margin-top: 64px; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 2.05rem; }
  .trust { gap: 8px 14px; font-size: .8rem; }
  .card { padding: 18px; }
  .card-top { gap: 11px; }
  .app-icon, .icon-tile { width: 56px; height: 56px; border-radius: 16px; }
}

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