:root {
  --lime: #dfff64;
}
body.start-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
.start-header {
  flex-direction: row !important;
  align-items: center !important;
}
.start-login {
  font-size: 14px;
  color: var(--muted) !important;
}
.start-login b {
  color: var(--ink);
  font-weight: 650;
}
.start-login:hover b {
  color: var(--purple);
}

.start-main {
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 18px 16px calc(20px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ── Карусель роликов: свайп, клик выводит ролик в центр ─────── */
.start-reels-wrap {
  position: relative;
  width: calc(100% + 32px);
  margin: 0 -16px;
}
.start-reels {
  --card-h: clamp(220px, 36svh, 330px);
  display: flex;
  align-items: center;
  gap: 12px;
  height: calc(var(--card-h) + 28px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* Поля, чтобы крайние ролики тоже вставали по центру. */
  padding-inline: calc(50% - var(--card-h) * 9 / 32);
  -webkit-overflow-scrolling: touch;
}
.start-reels::-webkit-scrollbar {
  display: none;
}
.start-reel {
  flex: 0 0 auto;
  margin: 0;
  height: var(--card-h);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 18px;
  background: #ddd9cf;
  border: 3px solid #fff;
  box-shadow:
    0 20px 40px -20px #2622384d,
    0 4px 12px #26223814;
  scroll-snap-align: center;
  cursor: pointer;
  transform: scale(0.84) rotate(var(--tilt, 0deg));
  opacity: 0.75;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.35s ease;
  -webkit-tap-highlight-color: transparent;
}
.start-reel:nth-child(1) {
  --tilt: -6deg;
}
.start-reel:nth-child(3) {
  --tilt: 6deg;
}
.start-reel.is-active {
  transform: scale(1) rotate(0deg);
  opacity: 1;
  cursor: default;
}
.start-reel video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.start-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 2px;
}
.start-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: #cfcbc1;
  cursor: pointer;
  transition:
    width 0.25s ease,
    background 0.25s ease;
}
.start-dots button.is-active {
  width: 20px;
  background: var(--purple);
}
.start-caption {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
@media (prefers-reduced-motion: reduce) {
  .start-reel {
    transition: none;
  }
}

/* ── Текст и шаги ────────────────────────────────────────────── */
.start-copy {
  margin-top: 14px;
  width: 100%;
}
.start-copy h1 {
  margin: 0;
  font-size: clamp(24px, 6.6vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.start-steps {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.start-steps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
}
.start-steps span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--lime);
  font-size: 12px;
  font-weight: 750;
}

/* ── Кнопка ──────────────────────────────────────────────────── */
.start-cta {
  width: 100%;
  margin-top: 16px;
}
.start-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 16px 22px;
  border-radius: 14px;
  background: var(--purple);
  color: #fff !important;
  font-size: 17px;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 14px 30px -14px #7048ffaa;
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}
.start-button:hover {
  background: #5f36eb;
  transform: translateY(-2px);
}
.start-button:active {
  transform: translateY(0) scale(0.98);
}
.start-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.start-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 560px) {
  .start-header {
    padding: 12px 16px !important;
  }
  .start-login {
    font-size: 13px;
  }
}
@media (max-height: 700px) and (max-width: 560px) {
  .start-reels {
    --card-h: clamp(190px, 31svh, 260px);
  }
  .start-caption {
    display: none;
  }
}

/* ── ПК: ролики слева, текст и кнопка справа ─────────────────── */
@media (min-width: 900px) {
  .start-main {
    max-width: 1100px;
    padding: 48px 40px 56px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    grid-template-areas:
      "reels copy"
      "reels cta";
    column-gap: 56px;
    align-content: center;
    align-items: end;
    text-align: left;
  }
  .start-reels-wrap {
    grid-area: reels;
    width: 100%;
    margin: 0;
    align-self: center;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  }
  .start-reels {
    --card-h: 440px;
  }
  .start-dots,
  .start-caption {
    text-align: center;
  }
  .start-copy {
    grid-area: copy;
    margin: 0;
  }
  .start-copy h1 {
    font-size: 38px;
  }
  .start-steps li {
    font-size: 14px;
    padding: 14px 10px;
  }
  .start-cta {
    grid-area: cta;
    align-self: start;
    margin-top: 20px;
  }
  .start-note {
    text-align: center;
  }
}
