/* Атом Казино — макет «док + канвас»: вертикальный рейл, киношный hero, зигзаг, рассыпная галерея */
:root {
  --bg: #020810;
  --bg-soft: #0a1628;
  --dock-bg: #050f1d;
  --ink: #e8f0ff;
  --muted: #7d93b5;
  --blue: #2b7fff;
  --blue-dim: #1a4a99;
  --ice: #a8d4ff;
  --line: rgba(120, 170, 230, 0.2);
  --glow: rgba(43, 127, 255, 0.35);
  --font: "DM Sans", system-ui, sans-serif;
  --font-display: "Space Grotesk", var(--font);
  --dock-w: 104px;
  --radius: 10px;
  --max: 1080px;
  --promo-banner-h: 0px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

/* Верхняя промо-плашка + отступ под неё */
body.has-promo-banner {
  --promo-banner-h: 54px;
  padding-top: var(--promo-banner-h);
}

.promo-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  min-height: var(--promo-banner-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: linear-gradient(90deg, #041428 0%, #0c2244 45%, #041428 100%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.promo-banner-inner {
  width: min(1100px, 100%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
}

.promo-banner-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink);
  text-align: center;
  line-height: 1.35;
}

.promo-banner-timer {
  display: inline-block;
  min-width: 1.4em;
  padding: 0 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05em;
  color: #fff;
  background: rgba(43, 127, 255, 0.35);
  border-radius: 6px;
  border: 1px solid rgba(168, 212, 255, 0.35);
}

.promo-banner-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 0.88rem;
  padding: 8px 16px;
}

@media (max-width: 720px) {
  body.has-promo-banner {
    --promo-banner-h: 96px;
  }

  .promo-banner-cta {
    display: flex;
    width: 100%;
    justify-content: center;
  }
}

a {
  color: var(--ice);
  text-underline-offset: 3px;
}

a:hover {
  color: #fff;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--blue-dim);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 2000;
}

.skip-link:focus {
  left: 12px;
}

body.has-promo-banner .skip-link:focus {
  top: calc(12px + var(--promo-banner-h));
}

.orb-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(1000px 700px at 100% 0%, rgba(43, 127, 255, 0.12), transparent 55%),
    radial-gradient(800px 500px at 0% 100%, rgba(26, 74, 153, 0.25), transparent 50%);
}

/* ——— каркас приложения ——— */
.app {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.canvas {
  flex: 1;
  min-width: 0;
  position: relative;
}

/* Вертикальный док */
.dock {
  width: var(--dock-w);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0 20px;
  background: linear-gradient(180deg, #030a14 0%, var(--dock-bg) 40%, #02060d 100%);
  border-right: 1px solid var(--line);
  z-index: 50;
}

body.has-promo-banner .dock {
  top: var(--promo-banner-h);
  height: calc(100vh - var(--promo-banner-h));
}

.dock-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--ink);
  margin-bottom: 20px;
}

.dock-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(145deg, var(--blue), var(--blue-dim));
  border-radius: 4px;
  box-shadow: 0 0 24px var(--glow);
}

.dock-word {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
}

.dock-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  overflow-y: auto;
  padding: 8px 0;
  width: 100%;
}

.dock-nav a {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 12px 0;
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
}

.dock-nav a:hover,
.dock-nav a:focus-visible {
  color: #fff;
  background: rgba(43, 127, 255, 0.15);
}

.dock-cta {
  margin-top: auto;
  width: 44px;
  height: 44px;
  padding: 0 !important;
  border-radius: 50% !important;
  font-size: 1.15rem !important;
  line-height: 1;
}

@media (max-width: 960px) {
  .app {
    flex-direction: column;
  }

  .dock {
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    position: sticky;
    top: 0;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .dock-brand {
    flex-direction: row;
    margin-bottom: 0;
    gap: 10px;
  }

  .dock-word {
    writing-mode: horizontal-tb;
    letter-spacing: 0.2em;
  }

  .dock-nav {
    flex-direction: row;
    flex: 1 1 100%;
    order: 3;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    margin-top: 8px;
  }

  .dock-nav a {
    writing-mode: horizontal-tb;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
  }

  .dock-cta {
    margin-top: 0;
    order: 2;
  }
}

/* ——— киношный hero ——— */
.hero {
  position: relative;
  min-height: min(100vh, 1120px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 8, 16, 0.15) 0%, rgba(2, 8, 16, 0.55) 45%, rgba(2, 8, 16, 0.92) 100%),
    linear-gradient(100deg, rgba(2, 8, 16, 0.9) 0%, transparent 55%);
  pointer-events: none;
}

.hero-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(14px, 3vh, 32px) 22px 28px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(200px, 280px) minmax(280px, 1fr);
  gap: clamp(18px, 2.8vw, 36px);
  align-items: start;
  justify-items: center;
}

.hero-main {
  grid-column: 1;
  justify-self: end;
  width: 100%;
  max-width: 520px;
}

.hero-spine {
  grid-column: 2;
  width: 100%;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 10px 0;
}

@media (max-width: 1040px) {
  .hero-stage {
    grid-template-columns: 1fr;
    max-width: 520px;
    padding: 20px 18px 36px;
  }

  .hero-main,
  .hero-bonus-card {
    grid-column: 1;
    justify-self: center;
    max-width: 440px;
  }

  .hero-spine {
    grid-column: 1;
    max-width: none;
    width: 100%;
    order: 2;
  }

  .hero-main {
    order: 1;
  }

  .hero-bonus-card {
    order: 3;
    margin-top: 0;
    max-width: 360px;
  }
}

.hero-ticket-wrap {
  position: relative;
  padding-top: 4px;
}

.hero-live {
  position: absolute;
  top: -8px;
  left: 22px;
  z-index: 3;
  padding: 8px 11px;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #fff;
  border: 1px solid rgba(255, 100, 120, 0.6);
  background: rgba(80, 0, 20, 0.55);
  border-radius: 4px;
  animation: pulse-border 2.5s ease-in-out infinite;
}

@keyframes pulse-border {
  0%,
  100% {
    border-color: rgba(255, 120, 140, 0.45);
  }
  50% {
    border-color: rgba(255, 160, 170, 0.95);
  }
}

.hero-ticket {
  margin-top: 10px;
  max-width: min(100%, 520px);
  padding: 32px 28px 28px;
  background: rgba(5, 15, 30, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(43, 127, 255, 0.12) inset, 0 0 40px rgba(43, 127, 255, 0.08);
  position: relative;
  text-align: center;
}

.hero-ticket::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  width: 56%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  border-radius: 2px;
}

.hero-kicker {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ice);
  text-align: center;
}

.hero-ticket h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-align: center;
}

.lead {
  margin: 0 auto 20px;
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 44ch;
  text-align: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  justify-content: center;
}

.hero-ticket .btn-primary {
  padding: 16px 24px;
  font-size: 0.82rem;
}

.hero-ticket .btn-ghost {
  padding: 14px 20px;
  font-size: 0.78rem;
}

.note-18 {
  margin: 0 auto;
  font-size: 0.78rem;
  color: var(--muted);
  max-width: 44ch;
  text-align: center;
}

/* Карточка бонуса */
.hero-bonus-card {
  grid-column: 3;
  justify-self: start;
  align-self: start;
  margin-top: 28px;
  width: 100%;
  max-width: 340px;
  padding: 28px 24px 30px;
  text-align: center;
  background: linear-gradient(160deg, rgba(25, 60, 120, 0.55), rgba(4, 12, 28, 0.92));
  border: 1px solid rgba(100, 180, 255, 0.45);
  border-radius: var(--radius);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.45), 0 0 48px rgba(43, 127, 255, 0.18);
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-bonus-card:hover {
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.5), 0 0 56px rgba(43, 127, 255, 0.28);
}

/* Центральная колонка: статистика, чипы, бегущая строка, «барабаны» */
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-stat {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(4, 14, 32, 0.75);
  border: 1px solid var(--line);
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.hero-stat:hover {
  border-color: rgba(43, 127, 255, 0.45);
  transform: scale(1.03);
}

.hero-stat--accent {
  border-color: rgba(52, 211, 153, 0.35);
  background: linear-gradient(145deg, rgba(5, 80, 50, 0.35), rgba(4, 14, 32, 0.9));
}

.hero-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.hero-stat--accent .hero-stat-num {
  color: #6ee7b7;
  text-shadow: 0 0 20px rgba(52, 211, 153, 0.35);
}

.hero-stat-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.hero-chip {
  padding: 10px 14px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ice);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(43, 127, 255, 0.08);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.hero-chip:hover {
  transform: scale(1.06);
  background: rgba(43, 127, 255, 0.2);
  border-color: rgba(168, 212, 255, 0.45);
  color: #fff;
}

.hero-marquee {
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(2, 8, 18, 0.65);
  padding: 10px 0;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}

.hero-marquee-track {
  display: flex;
  width: max-content;
  gap: 0.75rem;
  animation: hero-marquee 22s linear infinite;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.hero-marquee-track span:nth-child(odd) {
  color: var(--ice);
}

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

.hero-reels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  height: 104px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
}

.hero-reel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ice);
  animation: reel-spin 4s linear infinite;
}

.hero-reel--slow {
  animation-duration: 6.5s;
}

.hero-reel--fast {
  animation-duration: 2.8s;
}

@keyframes reel-spin {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

/* Карточки с «блеском» и лёгким парением */
.interactive-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.interactive-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.08) 50%, transparent 65%);
  transform: translateX(-100%) rotate(8deg);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.interactive-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.45), 0 0 50px rgba(43, 127, 255, 0.15);
}

.interactive-card:hover::after {
  opacity: 1;
  animation: card-sweep 1s ease-out forwards;
}

@keyframes card-sweep {
  from {
    transform: translateX(-100%) rotate(8deg);
  }
  to {
    transform: translateX(100%) rotate(8deg);
  }
}

.btn-shine {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-shine::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: translateX(-100%);
  animation: btn-glint 3.5s ease-in-out infinite;
}

@keyframes btn-glint {
  0%,
  70% {
    transform: translateX(-100%);
  }
  85% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.hero-bonus-label {
  margin: 0 0 8px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ice);
}

.hero-bonus-sum {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 28px rgba(43, 127, 255, 0.5);
}

.btn-bonus {
  width: 100%;
  padding: 16px 18px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: none;
  background: linear-gradient(180deg, #34d399, #059669 60%, #047857);
  color: #fff;
  border: 1px solid rgba(167, 243, 208, 0.55);
  box-shadow: 0 10px 32px rgba(5, 150, 105, 0.35);
}

.btn-bonus:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(52, 211, 153, 0.4);
}

/* ——— карусель слотов внизу hero ——— */
.hero-carousel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: auto auto 0;
  padding: 8px 18px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
}

.hero-carousel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 14px;
}

.hero-carousel-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

.hero-carousel-hint {
  margin: 0;
  flex: 1 1 auto;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

.hero-carousel-link {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ice);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(43, 127, 255, 0.1);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.hero-carousel-link:hover {
  background: rgba(43, 127, 255, 0.22);
  border-color: rgba(168, 212, 255, 0.4);
  transform: translateY(-1px);
}

.hero-carousel-viewport {
  position: relative;
  overflow: hidden;
  padding: 12px 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(120, 170, 230, 0.28);
  background: linear-gradient(180deg, rgba(6, 20, 45, 0.75), rgba(2, 6, 14, 0.92));
  box-shadow: 0 -8px 48px rgba(43, 127, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

.hero-carousel-viewport::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 120px,
    rgba(43, 127, 255, 0.03) 120px,
    rgba(43, 127, 255, 0.03) 121px
  );
  pointer-events: none;
  z-index: 0;
}

.hero-carousel-track {
  position: relative;
  z-index: 1;
  display: flex;
  width: max-content;
  gap: 20px;
  padding: 4px 8px;
  animation: hero-slot-strip 55s linear infinite;
}

.hero-carousel-viewport:hover .hero-carousel-track {
  animation-play-state: paused;
}

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

.slot-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(176px, 16vw, 228px);
  height: clamp(248px, 24vw, 308px);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  border: 2px solid rgba(120, 170, 230, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(43, 127, 255, 0.15) inset;
  transition: transform 0.3s ease, border-color 0.25s ease, box-shadow 0.3s ease;
}

.slot-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 32px rgba(43, 127, 255, 0.15);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.slot-card:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: rgba(168, 212, 255, 0.65);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.55), 0 0 48px rgba(43, 127, 255, 0.25);
  z-index: 2;
}

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

.slot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.slot-card:hover img {
  transform: scale(1.09);
}

.slot-card-cta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 14px 10px 16px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  background: linear-gradient(0deg, rgba(2, 8, 18, 0.95) 30%, transparent);
}

@media (max-width: 640px) {
  .hero-carousel-hint {
    flex-basis: 100%;
    order: 3;
  }

  .slot-card {
    width: 160px;
    height: 230px;
  }

  .hero-carousel-track {
    animation-duration: 38s;
  }
}

/* ——— кнопки ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(180deg, #4d94ff, var(--blue) 55%, var(--blue-dim));
  color: #fff;
  border-color: rgba(168, 212, 255, 0.45);
  box-shadow: 0 10px 32px var(--glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ice);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: rgba(43, 127, 255, 0.12);
  border-color: rgba(168, 212, 255, 0.35);
}

/* ——— секции + крупные номера глав ——— */
main {
  counter-reset: chapter;
}

.section {
  counter-increment: chapter;
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px;
  position: relative;
}

.section-head {
  position: relative;
  padding: 8px 16px 28px;
  margin-bottom: 8px;
  text-align: center;
}

.section-head::before {
  content: counter(chapter, decimal-leading-zero);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -6px;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  color: rgba(43, 127, 255, 0.1);
  letter-spacing: -0.06em;
  pointer-events: none;
  z-index: 0;
}

.section-head h2 {
  position: relative;
  z-index: 1;
  margin: 0 auto 10px;
  max-width: 40ch;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-head p {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  color: var(--muted);
  max-width: 52ch;
  font-size: 0.95rem;
}

@media (max-width: 560px) {
  .section-head {
    padding-top: 48px;
  }

  .section-head::before {
    top: -8px;
    font-size: 3rem;
  }
}

.panel {
  background: linear-gradient(165deg, rgba(20, 50, 100, 0.2), rgba(5, 12, 24, 0.85));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

/* Колода карточек */
.grid-3.deck {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  perspective: 1200px;
  padding: 8px 4px 28px;
}

@media (max-width: 820px) {
  .grid-3.deck {
    grid-template-columns: 1fr;
  }
}

.feature {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(3, 10, 22, 0.75);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  transform-style: preserve-3d;
}

.deck .feature:nth-child(1) {
  transform: rotateY(-5deg) rotateZ(-1deg) translateZ(0);
}

.deck .feature:nth-child(2) {
  transform: translateY(16px) scale(1.02);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

.deck .feature:nth-child(3) {
  transform: rotateY(5deg) rotateZ(1deg);
}

.deck .feature:hover {
  transform: rotateY(0) rotateZ(0) translateY(-6px) scale(1.03) !important;
  box-shadow: 0 32px 60px rgba(43, 127, 255, 0.15);
  z-index: 2;
}

@media (max-width: 820px) {
  .deck .feature:nth-child(1),
  .deck .feature:nth-child(2),
  .deck .feature:nth-child(3) {
    transform: none;
  }
}

.feature img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--line);
}

.feature h3 {
  margin: 0;
  padding: 12px 14px 4px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ice);
}

.feature p {
  margin: 0;
  padding: 0 14px 14px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Зигзаг-полосы с картинками */
.figure-row.zigzag {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 28px 0;
  align-items: stretch;
}

.figure-row.zigzag figure {
  flex: 1 1 280px;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(5, 15, 30, 0.6);
  transform: skewY(-0.6deg);
  transition: transform 0.2s ease;
}

.figure-row.zigzag figure:hover {
  transform: skewY(0) scale(1.01);
}

.figure-row.zigzag--flip {
  flex-direction: row-reverse;
}

.figure-row.zigzag--flip figure {
  transform: skewY(0.6deg);
}

.figure-row.zigzag--flip figure:hover {
  transform: skewY(0) scale(1.01);
}

.figure-row img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.figure-row figcaption {
  padding: 10px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(2, 8, 16, 0.75);
}

@media (max-width: 640px) {
  .figure-row.zigzag,
  .figure-row.zigzag--flip {
    flex-direction: column;
  }

  .figure-row.zigzag figure,
  .figure-row.zigzag--flip figure {
    transform: none;
  }
}

/* Статья: по центру канваса */
.article {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px 24px;
  text-align: center;
  border-left: none;
}

.article .section-head {
  padding: 8px 8px 24px;
  margin-left: 0;
  border-left: none;
}

.article .section-head::before {
  display: block;
}

.article h2,
.article h3 {
  font-family: var(--font-display);
}

.article h2 {
  margin-top: 36px;
  font-size: 1.2rem;
}

.article h3 {
  margin-top: 24px;
  font-size: 1.02rem;
  color: var(--ice);
}

.article p {
  color: #b8cce8;
  margin: 0 auto 14px;
  max-width: 65ch;
  text-align: center;
}

.article ul {
  margin: 0 auto 16px;
  padding-left: 1.2rem;
  color: #b8cce8;
  display: inline-block;
  text-align: left;
  max-width: min(100%, 52ch);
}

.article li {
  margin-bottom: 6px;
}

/* Рассыпная галерея */
.gallery.scatter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 18px 20px;
  padding: 36px 12px 56px;
  max-width: 1000px;
  margin: 0 auto;
}

.gallery.scatter a {
  display: block;
  flex: 1 1 140px;
  max-width: 220px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery.scatter a:nth-child(3n + 1) {
  transform: rotate(-3deg) translateY(6px);
}

.gallery.scatter a:nth-child(3n + 2) {
  transform: rotate(2deg) translateY(-4px);
}

.gallery.scatter a:nth-child(3n) {
  transform: rotate(-1.5deg) translateY(12px);
}

.gallery.scatter a:hover {
  transform: rotate(0) scale(1.05) translateY(0) !important;
  box-shadow: 0 22px 50px rgba(43, 127, 255, 0.2);
  z-index: 2;
}

.gallery.scatter img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}

@media (max-width: 520px) {
  .gallery.scatter a {
    max-width: 46%;
  }

  .gallery.scatter img {
    height: 88px;
  }
}

/* FAQ — «плашки» */
.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 720px;
}

details.faq-item {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(5, 15, 30, 0.65);
  padding: 2px 16px;
  transition: border-color 0.2s ease;
}

details.faq-item[open] {
  border-color: rgba(43, 127, 255, 0.45);
}

details.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 14px 0;
  list-style: none;
}

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

details.faq-item p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  background: linear-gradient(0deg, #010408, var(--bg-soft));
  padding: 36px 24px 48px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.footer-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border: 1px dashed rgba(120, 170, 230, 0.35);
  border-radius: var(--radius);
  background: rgba(5, 15, 30, 0.4);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.disclaimer {
  font-size: 0.84rem;
  color: var(--muted);
}

.disclaimer strong {
  color: #ff9eb5;
}

.metrics-placeholder {
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(2, 8, 16, 0.5);
}

code {
  font-size: 0.88em;
  background: rgba(43, 127, 255, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-marquee-track,
  .hero-reel,
  .hero-carousel-track,
  .btn-shine::after {
    animation: none !important;
  }

  .interactive-card:hover,
  .hero-stat:hover,
  .hero-chip:hover,
  .slot-card:hover {
    transform: none;
  }

  .slot-card:hover img {
    transform: none;
  }
}
