/* =========================================================
   RoStack — стили
   Чистый CSS: переменные, grid/flex, анимации, hover-эффекты.
   Тема: тёмная, «игровая» эстетика Roblox — блоки, студы,
   мягкие 3D-тени, яркие красно-оранжевые градиенты.
   ========================================================= */

/* ---------- Переменные темы ---------- */
:root {
  /* Цвета */
  --bg:            #0e1023;
  --bg-2:          #14163a;
  --surface:       #1b1e46;
  --surface-2:     #23276a;
  --line:          rgba(255, 255, 255, 0.09);
  --text:          #f4f5ff;
  --muted:         #a7abda;

  /* Акценты */
  --red:           #ff4d3d;
  --orange:        #ff8a1e;
  --lime:          #b6f500;
  --cyan:          #29e0ff;
  --grad:          linear-gradient(100deg, #ff4d3d 0%, #ff8a1e 100%);
  --grad-cool:     linear-gradient(120deg, #29e0ff 0%, #7c8bff 100%);

  /* Прочее */
  --radius:        20px;
  --radius-sm:     12px;
  --shadow:        0 24px 60px -20px rgba(0, 0, 0, 0.6);
  --shadow-glow:   0 18px 40px -12px rgba(255, 77, 61, 0.5);
  --maxw:          1180px;
  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Базовый сброс ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
/* Отступ, чтобы фикс-хедер не перекрывал якоря */
html { scroll-padding-top: 90px; }

body {
  font-family: 'Manrope', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  /* Тонкая «блочная» сетка на фоне */
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(255, 138, 30, 0.12), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(41, 224, 255, 0.10), transparent 55%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4, .logo__text {
  font-family: 'Sora', 'Manrope', sans-serif;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

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

/* Градиентный текст-акцент */
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========================================================
   Кнопки
   ========================================================= */
.btn {
  --btn-bg: var(--surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 12px 22px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  color: var(--text);
  background: var(--btn-bg);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.2s;
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px) scale(0.99); }

.btn--lg { font-size: 1.05rem; padding: 15px 30px; border-radius: 16px; }

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover { box-shadow: 0 22px 46px -12px rgba(255, 77, 61, 0.65); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }

.btn--light { background: #fff; color: #16183a; }
.btn--outline { background: transparent; border: 1.5px solid rgba(255, 255, 255, 0.5); }
.btn--outline:hover { background: rgba(255, 255, 255, 0.12); }

/* =========================================================
   Хедер / навигация
   ========================================================= */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
/* Класс добавляет JS при скролле */
.header.is-scrolled {
  background: rgba(14, 16, 35, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

/* Логотип с «студом» как у кубиков Roblox */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo__mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--grad);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-glow);
  transform: rotate(-6deg);
  transition: transform 0.3s var(--ease);
}
.logo:hover .logo__mark { transform: rotate(6deg) scale(1.05); }
.logo__stud {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.15);
}
.logo__text { font-size: 1.35rem; font-weight: 700; }
.logo__text span { color: var(--orange); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav__link {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.96rem;
  position: relative;
  transition: color 0.2s;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transition: width 0.25s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { width: 100%; }
.nav__cta { margin-left: 6px; }

/* Гамбургер (скрыт на десктопе) */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}
.burger span {
  display: block;
  width: 20px; height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  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); }

/* =========================================================
   Герой
   ========================================================= */
.hero { position: relative; padding: 130px 0 80px; overflow: hidden; }
.hero__glow {
  position: absolute;
  top: -10%; right: -5%;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(255, 77, 61, 0.35), transparent 62%);
  filter: blur(20px);
  z-index: 0;
  animation: floaty 9s ease-in-out infinite;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.pill__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(182, 245, 0, 0.2);
  animation: pulse 1.8s ease-in-out infinite;
}

.hero__title {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 700;
  margin-bottom: 20px;
}
.hero__lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 500px;
  margin-bottom: 30px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.9rem;
  color: var(--muted);
}
.hero__badges li { font-weight: 500; }

/* --- Мокап «лаунчера» --- */
.hero__app { position: relative; }
.launcher {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-7deg) rotateX(3deg);
  transition: transform 0.5s var(--ease);
}
.hero__app:hover .launcher { transform: perspective(1200px) rotateY(0deg) rotateX(0deg); }

.launcher__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--line);
}
.launcher__dots { display: flex; gap: 6px; }
.launcher__dots i { width: 11px; height: 11px; border-radius: 50%; background: #3a3f7a; }
.launcher__dots i:nth-child(1) { background: var(--red); }
.launcher__dots i:nth-child(2) { background: var(--orange); }
.launcher__dots i:nth-child(3) { background: var(--lime); }
.launcher__title { font-size: 0.85rem; color: var(--muted); font-weight: 600; }

.launcher__body { padding: 22px; }
.launcher__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 14px;
}

.accounts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.account {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), border-color 0.2s, background 0.2s;
}
.account:hover { transform: translateX(4px); background: rgba(255, 255, 255, 0.06); }
.account:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.account.is-selected {
  border-color: var(--red);
  background: rgba(255, 77, 61, 0.10);
}
.account__avatar {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.18);
}
.account__meta { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.account__name { font-weight: 600; font-size: 0.98rem; }
.account__sub { font-size: 0.8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account__status {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.account[data-status="ready"] .account__status { color: var(--lime); background: rgba(182, 245, 0, 0.14); }
.account[data-status="idle"] .account__status { color: var(--muted); background: rgba(255, 255, 255, 0.07); }
.account[data-status="active"] .account__status { color: var(--cyan); background: rgba(41, 224, 255, 0.14); }

.launcher__launch { width: 100%; }

/* Плавающие декоративные блоки-студы возле мокапа (CSS-графика) */
.hero__float {
  position: absolute;
  border-radius: 16px;
  z-index: 1;
  animation: floaty 6s ease-in-out infinite;
}
.hero__float--1 {
  width: 66px; height: 66px;
  top: -26px; left: -26px;
  background: var(--grad-cool);
  box-shadow: 0 14px 30px -8px rgba(41, 224, 255, 0.5);
  transform: rotate(12deg);
}
.hero__float--2 {
  width: 52px; height: 52px;
  bottom: -22px; right: -14px;
  background: linear-gradient(135deg, var(--lime), #7ad900);
  box-shadow: 0 14px 30px -8px rgba(182, 245, 0, 0.5);
  animation-delay: 1.5s;
  transform: rotate(-10deg);
}

/* =========================================================
   Статистика
   ========================================================= */
.stats { padding: 20px 0 40px; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
}
.stat { text-align: center; }
.stat__num {
  display: block;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label { font-size: 0.86rem; color: var(--muted); }

/* =========================================================
   Общие секции
   ========================================================= */
.section { padding: 90px 0; position: relative; }
.section--alt {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent),
    var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section__head { max-width: 640px; margin: 0 auto 54px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.section__title { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; margin-bottom: 14px; }
.section__sub { color: var(--muted); font-size: 1.06rem; }

/* =========================================================
   Шаги «как это работает»
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.step:hover { transform: translateY(-6px); border-color: rgba(255, 138, 30, 0.5); }
.step__num {
  position: absolute;
  top: 18px; right: 22px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  color: rgba(255, 255, 255, 0.06);
}
.step__icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  margin-bottom: 20px;
  position: relative;
  background: rgba(255, 77, 61, 0.12);
  border: 1px solid rgba(255, 77, 61, 0.3);
}
/* Мини-иконки нарисованы CSS-псевдоэлементами */
.step__icon::before, .step__icon::after { content: ''; position: absolute; }
.step__icon--download::before {
  width: 3px; height: 20px; background: var(--orange);
  top: 16px; left: 50%; transform: translateX(-50%);
  box-shadow: -6px -6px 0 -1px transparent;
}
.step__icon--download::after {
  width: 12px; height: 12px;
  border-right: 3px solid var(--orange);
  border-bottom: 3px solid var(--orange);
  top: 24px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
}
.step__icon--accounts::before {
  width: 14px; height: 14px; border-radius: 50%;
  border: 3px solid var(--orange);
  top: 14px; left: 50%; transform: translateX(-50%);
}
.step__icon--accounts::after {
  width: 26px; height: 12px;
  border-radius: 12px 12px 0 0;
  border: 3px solid var(--orange); border-bottom: none;
  bottom: 15px; left: 50%; transform: translateX(-50%);
}
.step__icon--launch::before {
  width: 0; height: 0;
  border-left: 16px solid var(--orange);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  top: 20px; left: 22px;
}
.step__title { font-size: 1.3rem; font-weight: 600; margin-bottom: 8px; }
.step__text { color: var(--muted); font-size: 0.98rem; }

/* =========================================================
   Возможности (bento-сетка)
   ========================================================= */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.25s var(--ease), border-color 0.25s;
  position: relative;
  overflow: hidden;
}
.feature:hover { transform: translateY(-6px); border-color: rgba(41, 224, 255, 0.4); }
/* Широкие карточки занимают 2 колонки — асимметрия вместо ровной сетки */
.feature--wide { grid-column: span 2; display: flex; flex-direction: column; }
.feature__ic {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  margin-bottom: 18px;
}
.feature__badge {
  display: inline-block;
  align-self: flex-start;
  font-family: 'Sora', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--lime);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.feature__title { font-size: 1.28rem; font-weight: 600; margin-bottom: 8px; }
.feature__text { color: var(--muted); font-size: 0.98rem; }

/* Декоративные «окна» в широкой карточке */
.feature__art--windows {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 22px;
}
.feature__art--windows span {
  height: 58px;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--surface-2), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  position: relative;
}
.feature__art--windows span::before {
  content: '';
  position: absolute; inset: 8px 8px auto 8px;
  height: 6px; border-radius: 4px;
  background: var(--grad);
  opacity: 0.7;
}
.feature__art--windows span:nth-child(2)::before { background: var(--grad-cool); }
.feature__art--windows span:nth-child(3)::before { background: linear-gradient(90deg, var(--lime), #7ad900); }

/* Теги-пресеты */
.feature__art--tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.feature__art--tags span {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  transition: transform 0.2s var(--ease), background 0.2s;
}
.feature__art--tags span:hover { transform: translateY(-3px); background: rgba(255, 138, 30, 0.16); }

/* =========================================================
   Отзывы
   ========================================================= */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.25s var(--ease);
}
.review:hover { transform: translateY(-6px); }
.review__stars { color: var(--orange); letter-spacing: 3px; font-size: 1.05rem; }
.review blockquote { font-size: 1.02rem; color: var(--text); flex: 1; }
.review figcaption { display: flex; align-items: center; gap: 12px; }
.review__avatar {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-family: 'Sora', sans-serif;
  font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.18);
}
.review figcaption b { display: block; font-size: 0.98rem; }
.review figcaption small { color: var(--muted); font-size: 0.82rem; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { max-width: 780px; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 22px;
  transition: border-color 0.2s;
}
.faq__item[open] { border-color: rgba(255, 138, 30, 0.5); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-family: 'Sora', sans-serif;
  font-weight: 500;
  font-size: 1.08rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
/* Плюс/минус на CSS */
.faq__plus {
  position: relative;
  flex: 0 0 auto;
  width: 22px; height: 22px;
}
.faq__plus::before, .faq__plus::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 13px; height: 2.5px;
  background: var(--orange);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease);
}
.faq__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__item p {
  color: var(--muted);
  padding: 0 0 20px;
  font-size: 0.98rem;
  animation: fadeIn 0.35s var(--ease);
}
/* Пошаговый список установки в FAQ */
.faq__steps {
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 0 22px;
  animation: fadeIn 0.35s var(--ease);
}
.faq__steps li {
  position: relative;
  padding-left: 44px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
  min-height: 30px;
  display: block;
}
.faq__steps li b { color: var(--text); }
.faq__steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: var(--grad);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18);
}
.faq__steps code,
.faq__item code {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 0.88em;
  color: var(--cyan);
  background: rgba(41, 224, 255, 0.1);
  border: 1px solid rgba(41, 224, 255, 0.2);
  padding: 1px 6px;
  border-radius: 6px;
}

/* =========================================================
   CTA / скачать
   ========================================================= */
.cta { padding: 70px 0 100px; }
.cta__inner {
  position: relative;
  text-align: center;
  background: var(--grad);
  border-radius: 30px;
  padding: 66px 30px;
  overflow: hidden;
  box-shadow: 0 30px 70px -24px rgba(255, 77, 61, 0.6);
}
/* «Студы» на фоне баннера — точечный узор Roblox-кубика */
.cta__studs {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 2px, transparent 2px);
  background-size: 26px 26px;
  opacity: 0.5;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.6), transparent 80%);
}
.cta__title, .cta__sub, .cta__actions, .cta__note { position: relative; z-index: 1; }
.cta__title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; color: #fff; margin-bottom: 12px; }
.cta__sub { color: rgba(255, 255, 255, 0.92); font-size: 1.1rem; margin-bottom: 28px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 18px; }
.cta__note { color: rgba(255, 255, 255, 0.8); font-size: 0.86rem; }

/* =========================================================
   Футер
   ========================================================= */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 60px 0 30px; }
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer__desc { color: var(--muted); font-size: 0.94rem; max-width: 300px; margin-top: 16px; }
.footer__col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 16px;
}
.footer__col a {
  display: block;
  color: var(--muted);
  font-size: 0.94rem;
  padding: 6px 0;
  transition: color 0.2s, transform 0.2s;
}
.footer__col a:hover { color: var(--orange); transform: translateX(3px); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 0.85rem;
  color: var(--muted);
}
.footer__disclaimer { opacity: 0.8; }

/* =========================================================
   Модальное окно установки
   ========================================================= */
.modal {
  position: fixed; inset: 0;
  z-index: 200;
  display: grid; place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.28s var(--ease), visibility 0.28s var(--ease);
}
.modal.is-open { visibility: visible; opacity: 1; }
.modal__overlay {
  position: absolute; inset: 0;
  background: rgba(6, 8, 22, 0.72);
  backdrop-filter: blur(6px);
}
.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 34px 30px;
  box-shadow: var(--shadow);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.32s var(--ease);
}
.modal.is-open .modal__dialog { transform: translateY(0) scale(1); }
.modal__close {
  position: absolute; top: 14px; right: 16px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: none; background: transparent;
  color: var(--muted);
  font-size: 1.9rem; line-height: 1;
  cursor: pointer;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}
.modal__close:hover { color: var(--text); background: var(--surface-2); }
.modal__title { font-family: 'Sora', sans-serif; font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; margin: 10px 0 8px; }
.modal__lead { color: var(--muted); font-size: 1rem; margin-bottom: 22px; }
.modal__dialog .faq__steps { padding-bottom: 0; }

/* =========================================================
   Тост-уведомление
   ========================================================= */
.toast {
  position: fixed;
  left: 50%; bottom: 30px;
  transform: translate(-50%, calc(100% + 40px));
  opacity: 0;
  pointer-events: none;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line);
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
  z-index: 100;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
  max-width: 90vw;
  text-align: center;
}
.toast.is-show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }

/* =========================================================
   Анимация появления блоков (scroll reveal)
   ========================================================= */
/* Text stays visible by default; only hidden once JS is active,
   so content is never lost if the reveal animation doesn't run. */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   Keyframes
   ========================================================= */
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-16px) rotate(var(--r, 0deg)); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(182, 245, 0, 0.2); }
  50% { box-shadow: 0 0 0 7px rgba(182, 245, 0, 0.05); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Микро-встряска при запуске лаунчера */
@keyframes launchShake {
  0%, 100% { transform: perspective(1200px) rotateY(0) translateX(0); }
  25% { transform: perspective(1200px) rotateY(0) translateX(-4px); }
  75% { transform: perspective(1200px) rotateY(0) translateX(4px); }
}
.launcher.is-launching { animation: launchShake 0.4s ease-in-out; }

/* =========================================================
   Адаптив — планшет
   ========================================================= */
@media (max-width: 960px) {
  .hero { padding: 116px 0 60px; }
  .hero__inner { grid-template-columns: 1fr; gap: 46px; }
  .hero__lead { max-width: none; }
  .launcher { transform: none; max-width: 440px; }
  .hero__app:hover .launcher { transform: none; }

  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature--wide { grid-column: span 2; }
  .reviews { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }

  /* Мобильное меню-выезжайка */
  .burger { display: flex; }
  .nav {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 18px 22px 28px;
    background: rgba(14, 16, 35, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform 0.4s var(--ease);
  }
  .nav.is-open { transform: translateY(0); }
  .nav__link { padding: 14px 6px; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav__cta { margin: 12px 0 0; text-align: center; }
}

/* =========================================================
   Адаптив — телефон
   ========================================================= */
@media (max-width: 620px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .features { grid-template-columns: 1fr; }
  .feature--wide { grid-column: span 1; }
  .feature__art--windows { grid-template-columns: repeat(4, 1fr); }
  .footer__inner { grid-template-columns: 1fr; gap: 30px; }
  .cta__inner { padding: 48px 22px; border-radius: 24px; }
  .section { padding: 66px 0; }
  .hero__actions .btn, .cta__actions .btn { flex: 1 1 auto; }
}

/* Уважение к пользовательским настройкам движения */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
