/* Драгон Мани Казино — оранжевая ночь, анимации */
:root {
  --bg-void: #0a0705;
  --bg-panel: #120d0a;
  --bg-card: #1a1410;
  --orange: #ff6b1a;
  --orange-hot: #ff8533;
  --orange-dim: #c44a0a;
  --amber: #ffb347;
  --coal: #1c1512;
  --text: #f4ede6;
  --text-muted: #a8988c;
  --r: 18px;
  --font-sans: "PT Sans", system-ui, sans-serif;
  --font-display: "Cinzel", Georgia, serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes bg-drift {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1) translate(0, 0);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.08) translate(-2%, 1%);
  }
}

@keyframes ember-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(1.5deg);
  }
}

@keyframes border-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 26, 0.35);
  }
  50% {
    box-shadow: 0 0 32px 6px rgba(255, 107, 26, 0.2);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg-void);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--amber);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  z-index: 10000;
}

.skip:focus {
  left: 16px;
  top: 16px;
  background: #000;
  color: #fff;
  padding: 8px 12px;
}

.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;
}

/* Фон: слои + дрейф */
.bg-stage {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 100% 80% at 10% 0%, rgba(255, 107, 26, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 100%, rgba(255, 179, 71, 0.1) 0%, transparent 50%),
    linear-gradient(165deg, #0f0a08 0%, #060403 45%, #0c0806 100%);
}

.bg-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23ff6b1a' opacity='0.06'/%3E%3C/svg%3E");
  opacity: 0.5;
  animation: bg-drift 18s ease-in-out infinite;
  pointer-events: none;
}

.bg-glow-orb {
  position: fixed;
  width: min(90vw, 520px);
  height: min(90vw, 520px);
  border-radius: 50%;
  right: -18%;
  top: 8%;
  z-index: -1;
  background: radial-gradient(circle, rgba(255, 107, 26, 0.22) 0%, transparent 65%);
  filter: blur(40px);
  animation: bg-drift 14s ease-in-out infinite reverse;
  pointer-events: none;
}

/* Надёжная центровка: без min(%, px) без calc — иначе часть браузеров сбрасывает width */
.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Верхняя полоса */
.orange-ribbon {
  background: linear-gradient(90deg, var(--orange-dim), var(--orange), var(--amber));
  color: #1a0a04;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  animation: fade-rise 0.8s var(--ease-out) both;
}

.legal-ribbon {
  margin: 0;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  text-align: center;
  color: #c8bdb5;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 107, 26, 0.15);
}

/* Шапка */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(10, 7, 5, 0.94) 0%, rgba(10, 7, 5, 0.72) 100%);
  border-bottom: 1px solid rgba(255, 107, 26, 0.25);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 2px solid rgba(255, 107, 26, 0.45);
  object-fit: cover;
  box-shadow: 0 0 20px rgba(255, 107, 26, 0.25);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}

.brand:hover img {
  transform: scale(1.06) rotate(-2deg);
  box-shadow: 0 0 28px rgba(255, 107, 26, 0.45);
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem 1.25rem;
}

nav a {
  color: var(--text-muted);
  font-size: 0.88rem;
  position: relative;
  padding: 0.2rem 0;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  transition: width 0.3s var(--ease-out);
}

nav a:hover {
  color: var(--amber);
}

nav a:hover::after {
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
  text-decoration: none;
}

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

.btn-primary {
  color: #1a0a04;
  background: linear-gradient(135deg, #ffb347, var(--orange) 45%, var(--orange-dim));
  box-shadow: 0 8px 28px rgba(255, 107, 26, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 40px rgba(255, 107, 26, 0.45);
  text-decoration: none;
}

.btn-ghost {
  color: var(--amber);
  background: rgba(255, 107, 26, 0.08);
  border: 1px solid rgba(255, 179, 71, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 107, 26, 0.18);
  text-decoration: none;
}

.btn-xl {
  padding: 1rem 2rem;
  font-size: 1.05rem;
  border-radius: 14px;
}

/* Hero: смещённая сетка + рамка-анимация */
.hero-shell {
  padding: 2.5rem 0 1rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem 2.5rem;
  }
}

.hero-copy {
  animation: fade-rise 0.9s var(--ease-out) 0.05s both;
}

.hero-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid rgba(255, 107, 26, 0.4);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  color: #fff;
  text-shadow: 0 0 60px rgba(255, 107, 26, 0.2);
}

.hero-copy h1 span {
  color: var(--orange-hot);
}

.lead {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 46ch;
  margin: 0 0 1.5rem;
}

@media (min-width: 900px) {
  .lead {
    max-width: none;
  }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  position: relative;
  animation: fade-rise 1s var(--ease-out) 0.15s both;
}

.hero-frame {
  position: relative;
  border-radius: 24px;
  padding: 3px;
  background: linear-gradient(135deg, var(--orange-dim), var(--orange) 40%, var(--amber));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.hero-frame-inner {
  position: relative;
  border-radius: 21px;
  overflow: hidden;
  background: var(--coal);
}

.hero-frame-inner img {
  width: 100%;
  height: auto;
  display: block;
  animation: ember-float 5s ease-in-out infinite;
}

/* Карточка +3000 */
.deposit-showcase {
  margin: 2rem 0 2.5rem;
  animation: fade-rise 1s var(--ease-out) 0.2s both;
}

.deposit-card {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  background: linear-gradient(125deg, #2a1810 0%, #1a0f0a 40%, #3d1f0f 100%);
  border: 1px solid rgba(255, 107, 26, 0.45);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 179, 71, 0.08);
}

.deposit-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 40%, rgba(255, 107, 26, 0.12) 50%, transparent 60%);
  background-size: 200% 100%;
  animation: shimmer 4s ease-in-out infinite;
  pointer-events: none;
}

.deposit-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.75rem 1.75rem 1.75rem 2rem;
}

@media (max-width: 720px) {
  .deposit-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.deposit-sum {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin: 0 0 0.35rem;
}

.deposit-sum strong {
  color: var(--orange-hot);
  text-shadow: 0 0 40px rgba(255, 107, 26, 0.45);
}

.deposit-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 42rem;
}

@media (min-width: 721px) {
  .deposit-inner .deposit-note {
    max-width: 36rem;
  }
}

.deposit-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  min-width: 220px;
}

.deposit-actions .btn-primary {
  animation: pulse-glow 2.8s ease-in-out infinite;
}

/* Стена медиа — шесть картинок */
.media-constellation {
  margin: 2.5rem 0 3rem;
}

.constellation-head {
  margin-bottom: 1.25rem;
  text-align: center;
}

@media (min-width: 720px) {
  .constellation-head {
    text-align: left;
  }
}

.constellation-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin: 0;
  color: #fff;
}

.constellation-head p {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 42rem;
}

@media (min-width: 720px) {
  .constellation-head p {
    margin-top: 0.35rem;
  }
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.65rem;
}

@media (max-width: 1000px) {
  .tile-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 520px) {
  .tile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

figure.media-tile {
  margin: 0;
}

.media-tile {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 140px;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 107, 26, 0.2);
  background: var(--bg-card);
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s,
    border-color 0.25s;
}

.media-tile:hover {
  transform: translateY(-4px);
  z-index: 2;
  border-color: rgba(255, 179, 71, 0.55);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 24px rgba(255, 107, 26, 0.18);
}

.media-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.media-tile span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.4rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
}

/* Зигзаг блоки */
.zigzag {
  margin: 3rem 0;
}

.zig-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 107, 26, 0.12);
}

.zig-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

@media (min-width: 768px) {
  .zig-row {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
  }
}

.zig-text h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--amber);
  margin: 0 0 0.75rem;
}

.zig-text p {
  margin: 0;
  color: #c9bfb6;
}

.zig-visual {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 107, 26, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.5s var(--ease-out);
}

.zig-visual:hover {
  transform: scale(1.02);
}

.zig-visual img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  background: rgba(0, 0, 0, 0.2);
}

/* Лонгрид */
.story-wrap {
  padding: 1rem 0 3rem;
}

.story-rail {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: stretch;
}

.prose {
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 2rem 0 0.75rem;
  color: #fff;
}

.prose p {
  margin: 0 0 1rem;
  color: #c9bfb6;
}

.sticky-card {
  position: static;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding: 1.35rem;
  border-radius: var(--r);
  background: linear-gradient(160deg, rgba(255, 107, 26, 0.12), var(--bg-card));
  border: 1px solid rgba(255, 107, 26, 0.3);
  text-align: center;
}

.sticky-card p {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* FAQ */
.faq-orbit {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 107, 26, 0.2);
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.faq-orbit h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0 0 1.25rem;
  color: #fff;
}

.faq-orbit details {
  background: var(--bg-panel);
  border: 1px solid rgba(255, 107, 26, 0.15);
  border-radius: 12px;
  margin-bottom: 0.65rem;
  padding: 1rem 1.15rem;
  transition: border-color 0.25s, background 0.25s;
}

.faq-orbit details[open] {
  border-color: rgba(255, 179, 71, 0.35);
  background: rgba(255, 107, 26, 0.06);
}

.faq-orbit summary {
  cursor: pointer;
  font-weight: 700;
  color: #f0e8e0;
  list-style: none;
}

.faq-orbit details[open] summary {
  color: var(--orange-hot);
}

.faq-orbit p {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Подвал */
.site-footer {
  border-top: 1px solid rgba(255, 107, 26, 0.2);
  background: #050302;
  padding: 1.75rem 0 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.site-footer .disclaimer {
  max-width: 56rem;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  line-height: 1.5;
}
