:root {
  --bg-deep: #0b0618;
  --bg-card: rgba(28, 18, 58, 0.78);
  --violet: #8b5cf6;
  --violet-deep: #5b21b6;
  --amber: #fbbf24;
  --amber-soft: #fde68a;
  --text: #f8fafc;
  --muted: #c4b5fd;
  --stroke: rgba(167, 139, 250, 0.35);
  --radius: 18px;
  --shadow: 0 24px 60px rgba(15, 8, 35, 0.55);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(139, 92, 246, 0.35), transparent 55%),
    radial-gradient(ellipse 90% 60% at 100% 40%, rgba(245, 158, 11, 0.12), transparent 50%),
    radial-gradient(ellipse 70% 50% at 0% 80%, rgba(91, 33, 182, 0.25), transparent 45%),
    linear-gradient(180deg, #0b0618 0%, #12082a 40%, #0b0618 100%);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--amber-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #fff;
}

.wrap {
  width: min(1120px, 100%);
  margin-inline: auto;
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
}

.disclaimer-header {
  margin: 0 0 0.5rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(167, 139, 250, 0.28);
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(253, 230, 138, 0.9);
}

.top-redirect-banner {
  background: linear-gradient(135deg, rgba(91, 33, 182, 0.95), rgba(124, 58, 237, 0.9));
  border-bottom: 1px solid rgba(253, 230, 138, 0.35);
}

.top-redirect-banner .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.redirect-text {
  margin: 0;
  font-size: 0.92rem;
  color: #fef3c7;
}

.redirect-text strong {
  color: #fff;
}

.redirect-timer {
  font-weight: 700;
  color: #fff;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(11, 6, 24, 0.82);
  border-bottom: 1px solid var(--stroke);
  padding-top: env(safe-area-inset-top, 0px);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: clamp(0.95rem, 4vw, 1.15rem);
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
  flex: 0 1 auto;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  font-size: 0.92rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  min-height: 44px;
  min-width: 44px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, var(--amber) 0%, #ea580c 100%);
  color: #1e1b4b;
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(245, 158, 11, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--stroke);
}

.btn-ghost:hover {
  border-color: var(--amber);
  color: var(--amber);
}

/* Hero */
.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
}

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

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

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(139, 92, 246, 0.22);
  border: 1px solid var(--stroke);
  color: var(--amber-soft);
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  line-height: 1.15;
  font-weight: 800;
  background: linear-gradient(105deg, #fff 10%, var(--amber-soft) 55%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

@media (max-width: 767px) {
  .hero-lead {
    max-width: none;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 767px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.hero-visual {
  position: relative;
  min-height: 260px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(91, 33, 182, 0.45), rgba(245, 158, 11, 0.08));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 210deg, transparent 30%, rgba(253, 230, 138, 0.07), transparent 70%);
  animation: spin 22s linear infinite;
}

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

.hero-float {
  position: relative;
  z-index: 2;
  padding: 1.75rem;
}

.hero-float h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.hero-float p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Sections */
section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.25rem;
}

.section-head h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: 0 16px 40px rgba(10, 6, 28, 0.35);
  transition: transform 0.2s ease, border-color 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(253, 230, 138, 0.45);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

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

/* Slot grid */
.slots {
  background: rgba(17, 10, 36, 0.5);
  border-block: 1px solid var(--stroke);
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

.slot {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(40, 25, 85, 0.9), rgba(15, 10, 35, 0.95));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.slot:hover {
  transform: translateY(-5px);
}

.slot-thumb {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  display: block;
  background: #1a1030;
}

.slot-body {
  padding: 1rem 1rem 1.15rem;
}

.slot-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.slot-body span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Article SEO block */
.article-block {
  background: rgba(22, 14, 48, 0.55);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--stroke);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  box-shadow: var(--shadow);
}

.article-block h2 {
  margin-top: 2rem;
}

.article-block h2:first-child {
  margin-top: 0;
}

.article-block h3 {
  margin-top: 1.5rem;
  font-size: 1.15rem;
}

.article-block p {
  margin: 0 0 1rem;
  color: #e9e5ff;
}

.article-block ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--muted);
}

.article-block li {
  margin-bottom: 0.35rem;
}

/* FAQ */
.faq {
  display: grid;
  gap: 0.85rem;
}

details {
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 1rem 1.15rem;
}

details summary {
  cursor: pointer;
  font-weight: 600;
  list-style-position: outside;
}

details p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  padding: 2rem 0 max(2.5rem, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--stroke);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(196, 181, 253, 0.65);
}

.site-footer strong {
  color: var(--amber-soft);
}

.footer-legal {
  margin-top: 0.65rem;
  font-size: 0.72rem;
  opacity: 0.9;
}

/* Mobile: навигация и сетки */
@media (max-width: 767px) {
  .top-redirect-banner .wrap {
    flex-wrap: wrap;
  }

  .top-redirect-banner .btn {
    width: 100%;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .header-inner .brand {
    order: 1;
    flex: 1 1 auto;
    max-width: calc(100% - 8rem);
  }

  .header-inner #cta-header {
    order: 2;
  }

  .nav {
    order: 3;
    flex: 1 1 100%;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    padding: 0.25rem 0 0.35rem;
    margin: 0 -0.25rem;
  }

  .nav a {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 0.55rem 0.95rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.18);
    border: 1px solid var(--stroke);
    white-space: nowrap;
  }

  .hero-visual {
    min-height: 200px;
  }

  .hero-float {
    padding: 1.25rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .slot-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .article-block {
    overflow-wrap: anywhere;
    word-wrap: break-word;
  }

  details summary {
    padding-right: 0.25rem;
  }
}

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

  .card:hover,
  .slot:hover,
  .btn-primary:hover {
    transform: none;
  }
}
