/* Правительство мафии (mafiagov.ru) — mobile first, Safari-friendly */
:root {
  --bg: #0b0c10;
  --bg-elevated: #12131c;
  --cyan: #00e5ff;
  --magenta: #ff2a6d;
  --emerald: #05f5b4;
  --text: #c5c6c7;
  --text-bright: #ffffff;
  --line: rgba(0, 229, 255, 0.18);
  --line-magenta: rgba(255, 42, 109, 0.2);
  --shadow-cyan: 0 0 28px rgba(0, 229, 255, 0.22);
  --shadow-magenta: 0 0 24px rgba(255, 42, 109, 0.18);
  --radius: 14px;
  --radius-lg: 20px;
  --header-h: 3.75rem;
  /* Высота шапки + вырез (viewport-fit=cover): для fixed header и отступа main */
  --header-offset: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  --pad-x: clamp(1rem, 3vw, 2.5rem);
  --content-max: 72rem;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", var(--font-sans);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  /* Фоновые webp: лёгкий blur + чуть больший scale, чтобы края не «мылились» внутри кадра */
  --bg-scene-blur: 3px;
  --bg-scene-scale: 1.02;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-offset) + 0.75rem);
  overflow-x: hidden;
  max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  :root {
    --bg-scene-blur: 1.5px;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100%;
  overscroll-behavior-x: none;
}

/* Story-ready backdrop: лёгкая сетка; позже можно заменить графикой */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(0, 229, 255, 0.08), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(255, 42, 109, 0.06), transparent 50%),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(5, 245, 180, 0.05), transparent 45%),
    var(--bg);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 40%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 40%, black 20%, transparent 75%);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--text-bright);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.nowrap {
  white-space: nowrap;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ---------- Header (fixed: sticky ломается при overflow-x на html/body в WebKit) ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  padding-top: env(safe-area-inset-top, 0px);
  box-sizing: border-box;
  min-height: var(--header-offset);
  display: flex;
  align-items: center;
  background: rgba(11, 12, 16, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: var(--header-h);
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  color: var(--text-bright);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.8125rem, 2.8vw, 1rem);
  letter-spacing: -0.02em;
}

.logo > span:last-child {
  min-width: 0;
  line-height: 1.2;
}

.logo__mark {
  display: flex;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-cyan);
}

.logo__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.25rem);
  font-size: 0.875rem;
}

.nav-desktop a {
  color: var(--text);
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.nav-desktop a:hover {
  color: var(--text-bright);
  background: rgba(0, 229, 255, 0.08);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.25s var(--ease-spring),
    box-shadow 0.25s var(--ease-out),
    background 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    color 0.2s var(--ease-out);
}

.btn--primary {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.22), rgba(5, 245, 180, 0.12));
  border-color: rgba(0, 229, 255, 0.55);
  color: var(--text-bright);
  box-shadow: var(--shadow-cyan);
}

.btn--primary:hover {
  transform: translateY(-1px);
  border-color: var(--cyan);
  color: var(--text-bright);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-magenta);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--magenta);
  color: var(--text-bright);
  box-shadow: var(--shadow-magenta);
}

.btn--small {
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
}

/* Burger */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border:1px solid var(--line);
  border-radius: 10px;
  background: rgba(18, 19, 28, 0.9);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.burger span {
  display: block;
  height: 2px;
  margin-inline: 0.5rem;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  border-radius: 2px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 900px) {
  .burger {
    display: none;
  }

  .nav-desktop {
    display: flex;
  }
}

/* Mobile overlay nav */
.nav-drawer {
  position: fixed;
  top: var(--header-offset);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: rgba(11, 12, 16, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 1.25rem var(--pad-x) 2rem;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.35s var(--ease-out),
    opacity 0.3s var(--ease-out),
    visibility 0.3s;
}

.nav-drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.nav-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-width: 20rem;
}

.nav-drawer a {
  display: block;
  padding: 0.85rem 0;
  color: var(--text-bright);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(197, 198, 199, 0.12);
}

.nav-drawer a:hover {
  color: var(--cyan);
}

main {
  padding-top: var(--header-offset);
}

/* ---------- Sections (1 экран — ориентир по высоте) ---------- */
.section {
  position: relative;
  min-height: min(100dvh, 100vh);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  scroll-snap-align: start;
}

.section--tight {
  min-height: auto;
  /* Короткая секция между «экранными» блоками: snap-align даёт подёргивание при уходе со FAQ */
  scroll-snap-align: none;
}

.section__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 0.75rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.65rem, 1.2rem + 2vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-bright);
  margin: 0 0 0.75rem;
}

.section__lead {
  margin: 0 0 1.75rem;
  max-width: 42rem;
  color: var(--text);
}

.section--alt {
  background: linear-gradient(180deg, rgba(18, 19, 28, 0.35) 0%, transparent 40%, transparent 100%);
  border-block: 1px solid rgba(197, 198, 199, 0.06);
}

#features {
  isolation: isolate;
  overflow: hidden;
}

#features::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 72% 56% at 50% 42%, rgba(0, 229, 255, 0.08), transparent 62%),
    url("./assets/bg-features.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: 0.54;
}

#features::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 12, 16, 0.58) 0%, rgba(11, 12, 16, 0.3) 28%, rgba(11, 12, 16, 0.56) 100%),
    linear-gradient(90deg, rgba(11, 12, 16, 0.56) 0%, rgba(11, 12, 16, 0.18) 50%, rgba(11, 12, 16, 0.48) 100%);
}

#features > .container {
  position: relative;
  z-index: 1;
}

#rules {
  isolation: isolate;
  overflow: hidden;
}

#rules::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 54% at 56% 34%, rgba(0, 229, 255, 0.08), transparent 60%),
    var(--section-bg-image, none);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: 0.48;
}

#rules::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 12, 16, 0.6) 0%, rgba(11, 12, 16, 0.32) 28%, rgba(11, 12, 16, 0.58) 100%),
    linear-gradient(90deg, rgba(11, 12, 16, 0.58) 0%, rgba(11, 12, 16, 0.22) 48%, rgba(11, 12, 16, 0.52) 100%);
}

#rules > .container {
  position: relative;
  z-index: 1;
}

#concept {
  isolation: isolate;
  overflow: hidden;
}

#concept::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 66% 54% at 60% 38%, rgba(0, 229, 255, 0.07), transparent 58%),
    var(--section-bg-image, none);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: 0.42;
}

#concept::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 12, 16, 0.64) 0%, rgba(11, 12, 16, 0.36) 28%, rgba(11, 12, 16, 0.62) 100%),
    linear-gradient(90deg, rgba(11, 12, 16, 0.62) 0%, rgba(11, 12, 16, 0.24) 50%, rgba(11, 12, 16, 0.56) 100%);
}

#concept > .container {
  position: relative;
  z-index: 1;
}

#cards {
  isolation: isolate;
  overflow: hidden;
}

#cards::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 68% 52% at 52% 42%, rgba(0, 229, 255, 0.06), transparent 60%),
    var(--section-bg-image, none);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: 0.34;
}

#cards::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 12, 16, 0.6) 0%, rgba(11, 12, 16, 0.32) 26%, rgba(11, 12, 16, 0.62) 100%),
    linear-gradient(90deg, rgba(11, 12, 16, 0.58) 0%, rgba(11, 12, 16, 0.2) 50%, rgba(11, 12, 16, 0.54) 100%);
}

#cards > .container {
  position: relative;
  z-index: 1;
}

#how {
  isolation: isolate;
  overflow: hidden;
}

#how::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 54% at 52% 40%, rgba(5, 245, 180, 0.08), transparent 60%),
    var(--section-bg-image, none);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: 0.46;
}

#how::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 12, 16, 0.56) 0%, rgba(11, 12, 16, 0.26) 26%, rgba(11, 12, 16, 0.58) 100%),
    linear-gradient(90deg, rgba(11, 12, 16, 0.58) 0%, rgba(11, 12, 16, 0.18) 50%, rgba(11, 12, 16, 0.52) 100%);
}

#how > .container {
  position: relative;
  z-index: 1;
}

#reviews {
  isolation: isolate;
  overflow: hidden;
}

#reviews::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 74% 56% at 28% 40%, rgba(0, 229, 255, 0.07), transparent 58%),
    var(--section-bg-image, none);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: 0.48;
}

#reviews::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 12, 16, 0.58) 0%, rgba(11, 12, 16, 0.28) 26%, rgba(11, 12, 16, 0.62) 100%),
    linear-gradient(90deg, rgba(11, 12, 16, 0.46) 0%, rgba(11, 12, 16, 0.2) 42%, rgba(11, 12, 16, 0.66) 100%);
}

#reviews > .container {
  position: relative;
  z-index: 1;
}

#video {
  isolation: isolate;
  overflow: hidden;
}

#video::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 54% at 50% 38%, rgba(0, 229, 255, 0.06), transparent 58%),
    var(--section-bg-image, none);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: 0.44;
}

#video::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 12, 16, 0.62) 0%, rgba(11, 12, 16, 0.28) 26%, rgba(11, 12, 16, 0.64) 100%),
    linear-gradient(90deg, rgba(11, 12, 16, 0.58) 0%, rgba(11, 12, 16, 0.24) 46%, rgba(11, 12, 16, 0.58) 100%);
}

#video > .container {
  position: relative;
  z-index: 1;
}

#faq {
  isolation: isolate;
  overflow: hidden;
}

#faq::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 68% 54% at 50% 38%, rgba(0, 229, 255, 0.06), transparent 58%),
    var(--section-bg-image, none);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: 0.44;
}

#faq::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 12, 16, 0.62) 0%, rgba(11, 12, 16, 0.3) 26%, rgba(11, 12, 16, 0.68) 100%),
    linear-gradient(90deg, rgba(11, 12, 16, 0.54) 0%, rgba(11, 12, 16, 0.24) 46%, rgba(11, 12, 16, 0.58) 100%);
}

#faq > .container {
  position: relative;
  z-index: 1;
}

.hero::before,
#features::before,
#rules::before,
#concept::before,
#cards::before,
#how::before,
#reviews::before,
#video::before,
#faq::before,
.cta::before {
  filter: blur(var(--bg-scene-blur));
  transform: scale(var(--bg-scene-scale)) translateZ(0);
}

/* Scroll snap — только «настольный» ввод: Android/Yandex часто шлют pointer:fine, но hover:none */
@media (min-width: 600px) and (hover: hover) and (pointer: fine) {
  html {
    scroll-snap-type: y proximity;
  }
}

/* Touch: без CSS smooth scroll; высота секций на svh — иначе 100dvh прыгает вместе с панелью браузера */
@media (hover: none) {
  html {
    scroll-behavior: auto;
  }

  .section:not(.section--tight) {
    min-height: min(100svh, 100vh);
  }

  .hero {
    min-height: min(100svh, 100vh);
  }

  .cta {
    min-height: min(85svh, 85vh);
  }
}

@media (max-width: 767px) {
  /*
   * Фоны: слой 1 = radial (cover), слой 2 = webp (cover) — как на десктопе, с кропом.
   * Второе значение background-position только у webp: горизонталь X% — куда «смотрит» кадр
   * (меньше ≈ левее в композиции арта, больше ≈ правее); вертикаль — высота горизонта/неона.
   */
  #features::before {
    background-position: center center, 58% 40%;
    background-size: cover, cover;
    opacity: 0.68;
  }

  #features::after {
    background:
      linear-gradient(180deg, rgba(11, 12, 16, 0.56) 0%, rgba(11, 12, 16, 0.28) 26%, rgba(11, 12, 16, 0.62) 100%),
      linear-gradient(90deg, rgba(11, 12, 16, 0.66) 0%, rgba(11, 12, 16, 0.26) 52%, rgba(11, 12, 16, 0.58) 100%);
  }

  #rules::before {
    background-position: center center, 38% 40%;
    background-size: cover, cover;
    opacity: 0.62;
  }

  #rules::after {
    background:
      linear-gradient(180deg, rgba(11, 12, 16, 0.58) 0%, rgba(11, 12, 16, 0.28) 24%, rgba(11, 12, 16, 0.66) 100%),
      linear-gradient(90deg, rgba(11, 12, 16, 0.68) 0%, rgba(11, 12, 16, 0.28) 50%, rgba(11, 12, 16, 0.6) 100%);
  }

  #concept::before {
    background-position: center center, 56% 42%;
    background-size: cover, cover;
    opacity: 0.56;
  }

  #concept::after {
    background:
      linear-gradient(180deg, rgba(11, 12, 16, 0.64) 0%, rgba(11, 12, 16, 0.34) 26%, rgba(11, 12, 16, 0.68) 100%),
      linear-gradient(90deg, rgba(11, 12, 16, 0.72) 0%, rgba(11, 12, 16, 0.32) 50%, rgba(11, 12, 16, 0.64) 100%);
  }

  #cards::before {
    background-position: center center, 44% 44%;
    background-size: cover, cover;
    opacity: 0.5;
  }

  #cards::after {
    background:
      linear-gradient(180deg, rgba(11, 12, 16, 0.54) 0%, rgba(11, 12, 16, 0.26) 26%, rgba(11, 12, 16, 0.62) 100%),
      linear-gradient(90deg, rgba(11, 12, 16, 0.64) 0%, rgba(11, 12, 16, 0.24) 50%, rgba(11, 12, 16, 0.58) 100%);
  }

  #how::before {
    background-position: center center, 42% 40%;
    background-size: cover, cover;
    opacity: 0.6;
  }

  #how::after {
    background:
      linear-gradient(180deg, rgba(11, 12, 16, 0.5) 0%, rgba(11, 12, 16, 0.22) 26%, rgba(11, 12, 16, 0.58) 100%),
      linear-gradient(90deg, rgba(11, 12, 16, 0.62) 0%, rgba(11, 12, 16, 0.2) 50%, rgba(11, 12, 16, 0.54) 100%);
  }

  #reviews::before {
    background-position: center center, 64% 42%;
    background-size: cover, cover;
    opacity: 0.62;
  }

  #reviews::after {
    background:
      linear-gradient(180deg, rgba(11, 12, 16, 0.54) 0%, rgba(11, 12, 16, 0.24) 26%, rgba(11, 12, 16, 0.62) 100%),
      linear-gradient(90deg, rgba(11, 12, 16, 0.34) 0%, rgba(11, 12, 16, 0.18) 40%, rgba(11, 12, 16, 0.68) 100%);
  }

  #video::before {
    background-position: center center, 50% 38%;
    background-size: cover, cover;
    opacity: 0.58;
  }

  #video::after {
    background:
      linear-gradient(180deg, rgba(11, 12, 16, 0.56) 0%, rgba(11, 12, 16, 0.24) 26%, rgba(11, 12, 16, 0.64) 100%),
      linear-gradient(90deg, rgba(11, 12, 16, 0.62) 0%, rgba(11, 12, 16, 0.26) 46%, rgba(11, 12, 16, 0.62) 100%);
  }

  #faq::before {
    background-position: center center, 46% 40%;
    background-size: cover, cover;
    opacity: 0.56;
  }

  #faq::after {
    background:
      linear-gradient(180deg, rgba(11, 12, 16, 0.56) 0%, rgba(11, 12, 16, 0.26) 26%, rgba(11, 12, 16, 0.7) 100%),
      linear-gradient(90deg, rgba(11, 12, 16, 0.6) 0%, rgba(11, 12, 16, 0.26) 46%, rgba(11, 12, 16, 0.62) 100%);
  }

  .cta::before {
    background-position: center center, 60% 52%;
    background-size: cover, cover;
    opacity: 0.58;
  }

  .cta::after {
    background:
      linear-gradient(180deg, rgba(11, 12, 16, 0.48) 0%, rgba(11, 12, 16, 0.22) 28%, rgba(11, 12, 16, 0.62) 100%),
      linear-gradient(90deg, rgba(11, 12, 16, 0.56) 0%, rgba(11, 12, 16, 0.22) 48%, rgba(11, 12, 16, 0.56) 100%);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  #features::before {
    background-position: center center, 56% 44%;
    background-size: cover, cover;
    opacity: 0.58;
  }

  #rules::before {
    background-position: center center, 42% 42%;
    background-size: cover, cover;
    opacity: 0.5;
  }

  #concept::before {
    background-position: center center, 54% 44%;
    background-size: cover, cover;
    opacity: 0.44;
  }

  #cards::before {
    background-position: center center, 48% 44%;
    background-size: cover, cover;
    opacity: 0.38;
  }

  #how::before {
    background-position: center center, 46% 44%;
    background-size: cover, cover;
    opacity: 0.5;
  }

  #reviews::before {
    background-position: center center, 58% 44%;
    background-size: cover, cover;
    opacity: 0.52;
  }

  #video::before {
    background-position: center center, 50% 42%;
    background-size: cover, cover;
    opacity: 0.46;
  }

  #faq::before {
    background-position: center center, 48% 42%;
    background-size: cover, cover;
    opacity: 0.46;
  }

  .cta::before {
    background-position: center center, 56% 48%;
    background-size: cover, cover;
    opacity: 0.48;
  }
}

/* ---------- Hero (без карточки игрока) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(100dvh, 100vh);
  padding-block: clamp(1.5rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-snap-align: start;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 72% 58% at 18% 45%, rgba(11, 12, 16, 0.16), transparent 72%),
    url("./assets/bg-hero.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: 0.76;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 12, 16, 0.68) 0%, rgba(11, 12, 16, 0.44) 42%, rgba(11, 12, 16, 0.56) 100%),
    linear-gradient(180deg, rgba(11, 12, 16, 0.2) 0%, rgba(11, 12, 16, 0.08) 30%, rgba(11, 12, 16, 0.56) 100%);
}

.hero > .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  .hero::before {
    /* Кроп cover; сдвиг вправо — неон/цвет чаще в правой половине широкого кадра */
    background-position: center center, 56% 42%;
    background-size: cover, cover;
    opacity: 0.84;
  }

  .hero::after {
    background:
      radial-gradient(ellipse 88% 62% at 68% 40%, rgba(0, 229, 255, 0.06), transparent 62%),
      linear-gradient(180deg, rgba(11, 12, 16, 0.24) 0%, rgba(11, 12, 16, 0.08) 30%, rgba(11, 12, 16, 0.52) 100%),
      linear-gradient(90deg, rgba(11, 12, 16, 0.72) 0%, rgba(11, 12, 16, 0.36) 48%, rgba(11, 12, 16, 0.4) 100%);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero::before {
    background-position: center center, 54% 40%;
    background-size: cover, cover;
    opacity: 0.7;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(11, 12, 16, 0.72) 0%, rgba(11, 12, 16, 0.42) 46%, rgba(11, 12, 16, 0.58) 100%),
      linear-gradient(180deg, rgba(11, 12, 16, 0.22) 0%, rgba(11, 12, 16, 0.08) 26%, rgba(11, 12, 16, 0.58) 100%);
  }
}

.hero__grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}

@media (min-width: 960px) {
  .hero::before {
    background-position: center center, center 42%;
    background-size: cover, cover;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--emerald);
  background: rgba(5, 245, 180, 0.1);
  border: 1px solid rgba(5, 245, 180, 0.35);
  margin-bottom: 1rem;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.85rem, 1.2rem + 3.5vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text-bright);
  margin: 0 0 1rem;
}

.hero__lead {
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.15rem);
  max-width: 36rem;
  margin: 0 0 1.5rem;
}

.hero__audience {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

@media (min-width: 520px) {
  .hero__audience {
    grid-template-columns: 1fr 1fr;
  }
}

.hero__audience li {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-spring);
}

.hero__audience li:hover {
  border-color: rgba(0, 229, 255, 0.45);
  transform: translateY(-2px);
}

.hero__audience strong {
  display: block;
  font-family: var(--font-display);
  color: var(--text-bright);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.hero__audience span {
  font-size: 0.875rem;
  color: var(--text);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero__note {
  font-size: 0.8125rem;
  color: rgba(197, 198, 199, 0.75);
  max-width: 32rem;
  margin: 0;
}

/* Декоративный блок вместо карточки — «интерфейс ночи» */
.hero__visual {
  position: relative;
  min-height: clamp(220px, 32vw, 380px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(0, 229, 255, 0.06) 0%, transparent 45%),
    linear-gradient(225deg, rgba(255, 42, 109, 0.07) 0%, transparent 40%),
    var(--bg-elevated);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 180deg at 50% 50%, transparent, rgba(0, 229, 255, 0.07), transparent 40%);
  animation: hero-glow 14s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hero__visual::before {
    animation: none;
  }
}

@keyframes hero-glow {
  to {
    transform: rotate(360deg);
  }
}

.hero__visual-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: clamp(1rem, 3vw, 1.75rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero__visual-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.hero__visual-dots {
  display: flex;
  gap: 6px;
}

.hero__visual-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(197, 198, 199, 0.25);
}

.hero__visual-dots span:nth-child(1) {
  background: var(--magenta);
  box-shadow: 0 0 10px rgba(255, 42, 109, 0.5);
}

.hero__visual-dots span:nth-child(2) {
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.45);
}

.hero__visual-dots span:nth-child(3) {
  background: var(--emerald);
}

.hero__visual-label {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(197, 198, 199, 0.65);
}

.hero__visual-grid {
  flex: 1;
  margin-top: 1rem;
  border-radius: 12px;
  border: 1px dashed rgba(0, 229, 255, 0.25);
  background:
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.hero__visual-pulse {
  width: min(72%, 200px);
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--magenta), transparent);
  opacity: 0.85;
  animation: pulse-line 2.8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hero__visual-pulse {
    animation: none;
  }
}

@keyframes pulse-line {
  0%,
  100% {
    transform: scaleX(0.6);
    opacity: 0.5;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

.hero__visual-caption {
  font-size: 0.75rem;
  color: rgba(197, 198, 199, 0.7);
  text-align: center;
  margin-top: 0.75rem;
}

/* ---------- Horizontal rails (мобильный слайдер без обрезания краёв) ---------- */
.rail-wrap {
  position: relative;
  margin-inline: calc(-1 * var(--pad-x));
  padding-inline: var(--pad-x);
}

.rail {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  overflow-x: auto;
  overflow-y: hidden;
  padding-block: 0.25rem 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 229, 255, 0.45) rgba(18, 19, 28, 0.5);
  scroll-padding-inline: var(--pad-x);
}

.rail::-webkit-scrollbar {
  height: 6px;
}

.rail::-webkit-scrollbar-track {
  background: rgba(18, 19, 28, 0.8);
  border-radius: 999px;
}

.rail::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  border-radius: 999px;
}

.rail__card {
  flex: 0 0 min(100% - 2.5rem, 22rem);
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

@media (min-width: 768px) {
  .rail-wrap {
    margin-inline: 0;
    padding-inline: 0;
  }

  .rail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
    overflow: visible;
    scroll-snap-type: none;
    padding-block: 0;
    gap: 1rem;
  }

  .rail__card {
    flex: unset;
    scroll-snap-align: unset;
    min-width: 0;
  }
}

/* Фирменный индикатор прогресса под рельсой (мобилки) */
.rail-progress {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 0.25rem;
  padding-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .rail-progress {
    display: none;
  }
}

.rail-progress span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(197, 198, 199, 0.25);
  transition:
    transform 0.3s var(--ease-spring),
    background 0.25s,
    box-shadow 0.25s;
}

.rail-progress span.is-active {
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.55);
  transform: scale(1.35);
}

/* Content cards in rails */
.panel {
  height: 100%;
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s;
}

.panel:hover {
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.panel__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.25);
}

.panel h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text-bright);
  margin: 0 0 0.5rem;
}

.panel p {
  margin: 0;
  font-size: 0.9rem;
}

.panel--accent-magenta .panel__icon {
  color: var(--magenta);
  background: rgba(255, 42, 109, 0.1);
  border-color: rgba(255, 42, 109, 0.3);
}

.panel--accent-emerald .panel__icon {
  color: var(--emerald);
  background: rgba(5, 245, 180, 0.1);
  border-color: rgba(5, 245, 180, 0.3);
}

.rule-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--bg);
  background: var(--cyan);
  margin-bottom: 0.65rem;
}

.rules-cta {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(18, 19, 28, 0.6);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

@media (min-width: 600px) {
  .rules-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ---------- Role cards (одно фото для всех, без обрезки) ---------- */
.roles-rail .rail__card {
  flex: 0 0 min(100% - 2.5rem, 16rem);
}

.role-card {
  margin: 0;
  padding: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.role-card__media {
  flex: 1;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: radial-gradient(ellipse at 50% 30%, rgba(0, 229, 255, 0.08), transparent 55%);
}

.role-card__media img {
  max-width: 100%;
  max-height: min(52vh, 420px);
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
}

.role-card figcaption {
  padding: 0.85rem 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-bright);
  border-top: 1px solid rgba(197, 198, 199, 0.1);
  text-align: center;
}

@media (min-width: 768px) {
  .roles-rail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1rem;
  }

  .roles-rail .rail__card {
    min-width: 0;
  }
}

/* ---------- Concept / design story (rail на мобилках, сетка с 768px — см. .rail) ---------- */
.story-card {
  margin: 0;
  height: 100%;
  padding: 1.2rem 1.3rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s;
}

.story-card:hover {
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.32);
}

.story-card--accent {
  border-color: rgba(255, 42, 109, 0.22);
  background: linear-gradient(165deg, rgba(255, 42, 109, 0.05), rgba(18, 19, 28, 0.98));
}

.story-card--accent:hover {
  border-color: rgba(255, 42, 109, 0.38);
}

.story-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-bright);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.story-card p {
  margin: 0 0 0.9rem;
  font-size: 0.92rem;
  color: var(--text);
}

.story-card p:last-child {
  margin-bottom: 0;
}

/* ---------- How it works tabs ---------- */
.flow {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.flow__tabs {
  display: flex;
  gap: 0.5rem;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  max-width: 22rem;
}

.flow__tab {
  flex: 1;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 0.75rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  color: var(--text);
  background: transparent;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}

.flow__tab[aria-selected="true"] {
  color: var(--bg);
  background: linear-gradient(135deg, var(--cyan), var(--emerald));
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.25);
}

.flow__hint {
  font-size: 0.8125rem;
  color: rgba(197, 198, 199, 0.75);
  margin: 0;
}

.flow-panel[hidden] {
  display: none;
}

.step-card {
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

.step-card__meta {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 0.35rem;
}

.step-card h4 {
  font-family: var(--font-display);
  color: var(--text-bright);
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.step-card p {
  margin: 0;
  font-size: 0.9rem;
}

/* ---------- Reviews ---------- */
.review {
  padding: 1.25rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-magenta);
  background: linear-gradient(160deg, rgba(255, 42, 109, 0.06), rgba(18, 19, 28, 0.95));
}

.review p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--text);
}

.review footer {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8125rem;
}

.review__avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--bg);
  background: var(--cyan);
}

.review__avatar--2 {
  background: var(--magenta);
}

.review__avatar--3 {
  background: var(--emerald);
  color: var(--bg);
}

.review__name {
  display: block;
  font-weight: 600;
  color: var(--text-bright);
}

.review__role {
  color: rgba(197, 198, 199, 0.75);
}

.review-disclaimer {
  font-size: 0.8125rem;
  color: rgba(197, 198, 199, 0.65);
  margin: -0.5rem 0 1.25rem;
}

/* ---------- Video ---------- */
.video-block {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 900px) {
  .video-block {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.video-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.video-frame video {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(56vh, 520px);
  object-fit: contain;
  background: #000;
}

.video-copy .btn {
  margin-top: 0.5rem;
  margin-right: 0.5rem;
}

/* ---------- FAQ ---------- */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 48rem;
}

.faq details {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  padding: 0 1rem;
  transition: border-color 0.2s;
}

.faq details[open] {
  border-color: rgba(0, 229, 255, 0.35);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--text-bright);
  padding: 1rem 0;
  position: relative;
  padding-right: 1.5rem;
}

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

.faq summary::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.25s var(--ease-out);
}

.faq details[open] summary::after {
  transform: translateY(-35%) rotate(225deg);
}

.faq details p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

/* ---------- CTA / footer ---------- */
.cta {
  position: relative;
  isolation: isolate;
  min-height: min(85dvh, 85vh);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: clamp(3rem, 8vw, 5rem);
  scroll-snap-align: start;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 72% 52% at 62% 68%, rgba(5, 245, 180, 0.1), transparent 56%),
    var(--section-bg-image, none);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: 0.44;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(0, 229, 255, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(11, 12, 16, 0.54), rgba(11, 12, 16, 0.2) 34%, rgba(11, 12, 16, 0.62)),
    linear-gradient(180deg, transparent, rgba(255, 42, 109, 0.05));
}

.cta > .container {
  position: relative;
  z-index: 1;
}

.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  color: var(--text-bright);
  margin: 0 0 0.75rem;
}

.cta p {
  margin: 0 0 1.5rem;
  max-width: 28rem;
  margin-inline: auto;
}

.footer-legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(197, 198, 199, 0.12);
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(197, 198, 199, 0.65);
  max-width: 40rem;
  margin-inline: auto;
}

.footer-legal a {
  color: var(--text);
}

.social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social a {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--text);
  transition: border-color 0.2s, color 0.2s, transform 0.2s var(--ease-spring);
}

.social a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

.social svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 0.65s var(--ease-out),
    transform 0.65s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Stagger inside sections */
.reveal-stagger > .reveal:nth-child(1) {
  transition-delay: 0ms;
}

.reveal-stagger > .reveal:nth-child(2) {
  transition-delay: 60ms;
}

.reveal-stagger > .reveal:nth-child(3) {
  transition-delay: 120ms;
}

.reveal-stagger > .reveal:nth-child(4) {
  transition-delay: 180ms;
}

.reveal-stagger > .reveal:nth-child(5) {
  transition-delay: 240ms;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-stagger > .reveal {
    transition-delay: 0ms !important;
  }
}

/* Large screens: cap line length in hero */
@media (min-width: 1600px) {
  :root {
    --content-max: 80rem;
  }
}

@media (min-width: 2200px) {
  :root {
    --content-max: 90rem;
  }

  body {
    font-size: 1.125rem;
  }
}
