/* Atom Casino — layout & theme */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg-deep: #060816;
  --bg-card: rgba(18, 22, 48, 0.72);
  --bg-card-hover: rgba(28, 32, 62, 0.88);
  --line: rgba(120, 200, 255, 0.18);
  --text: #e8edff;
  --muted: #9aa3c4;
  --accent-c: #22d3ee;
  --accent-p: #c084fc;
  --accent-m: #f472b6;
  --glow: 0 0 40px rgba(34, 211, 238, 0.18);
  --radius: 18px;
  --font: "Segoe UI", system-ui, -apple-system, "Inter", sans-serif;
  --max: 1180px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 100% 80% at 50% -20%, rgba(99, 102, 241, 0.35), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(34, 211, 238, 0.12), transparent 50%),
    radial-gradient(ellipse 70% 40% at 0% 80%, rgba(192, 132, 252, 0.14), transparent 45%),
    linear-gradient(180deg, #050510 0%, #0a0c22 40%, #060816 100%);
  line-height: 1.6;
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

body.nav-open {
  overflow: hidden;
}

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

a:hover {
  color: #7eebf8;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--accent-c);
  color: #050510;
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.age-banner {
  margin: 0;
  padding: 0.55rem max(1rem, env(safe-area-inset-right)) 0.55rem max(1rem, env(safe-area-inset-left));
  font-size: 0.78rem;
  line-height: 1.45;
  color: #c5cae0;
  background: rgba(99, 102, 241, 0.12);
  border-bottom: 1px solid rgba(129, 140, 248, 0.28);
  text-align: center;
}

.age-banner-badge {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.72rem;
  color: #050510;
  background: linear-gradient(120deg, var(--accent-c), var(--accent-p));
}

.redirect-banner {
  border-bottom: 1px solid rgba(34, 211, 238, 0.28);
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.14), rgba(99, 102, 241, 0.16));
}

.redirect-banner-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.6rem max(1rem, env(safe-area-inset-right)) 0.6rem max(1rem, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.redirect-banner-text {
  margin: 0;
  font-size: 0.9rem;
  color: #d8def8;
}

.redirect-banner-btn {
  min-height: 2.5rem;
  padding: 0.45rem 1rem;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .age-banner {
    font-size: 0.72rem;
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
  }

  .redirect-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .redirect-banner-text {
    text-align: center;
    font-size: 0.82rem;
  }

  .redirect-banner-btn {
    width: 100%;
    min-height: 48px;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(6, 8, 22, 0.78);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}

.header-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem max(1rem, env(safe-area-inset-right)) 0.85rem max(1rem, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 0.75rem;
  flex-wrap: nowrap;
}

.nav-actions {
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-c), var(--accent-p));
  box-shadow: var(--glow);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: #050510;
  letter-spacing: -0.03em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #f0f4ff, var(--accent-c));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
}

.nav-main a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-main a:hover {
  color: var(--accent-c);
}

.btn-header-cta-short {
  display: none;
}

/* Кнопка «меню» на узких экранах */
.nav-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(18, 22, 48, 0.85);
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle-lines {
  position: relative;
  display: block;
  width: 1.35rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: background 0.2s;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease;
}

.nav-toggle-lines::before {
  top: -7px;
}

.nav-toggle-lines::after {
  top: 7px;
}

.site-header.is-menu-open .nav-toggle-lines {
  background: transparent;
}

.site-header.is-menu-open .nav-toggle-lines::before {
  top: 0;
  transform: rotate(45deg);
}

.site-header.is-menu-open .nav-toggle-lines::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(2, 4, 18, 0.72);
  -webkit-tap-highlight-color: transparent;
}

.site-header.is-menu-open .nav-backdrop {
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}

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

.btn-primary {
  background: linear-gradient(120deg, var(--accent-c), #6366f1, var(--accent-p));
  color: #050510;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  color: #050510;
}

@media (hover: none) {
  .btn-primary:active {
    filter: brightness(1.03);
    transform: scale(0.98);
  }

  .slot-card:active {
    transform: scale(0.99);
  }
}

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

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

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem max(1rem, env(safe-area-inset-right)) 2.75rem max(1rem, env(safe-area-inset-left));
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    padding: 4rem max(1.25rem, env(safe-area-inset-right)) 4rem max(1.25rem, env(safe-area-inset-left));
  }
}

.hero-kicker {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: #7eebf8;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.5vw, 3.05rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: clamp(1rem, 3.8vw, 1.08rem);
  color: var(--muted);
  max-width: 42ch;
}

.hero-panel {
  position: relative;
  border-radius: var(--radius);
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: var(--glow);
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 140deg at 50% 50%, transparent 40%, rgba(34, 211, 238, 0.06), transparent 60%);
  animation: spin 28s linear infinite;
  pointer-events: none;
}

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

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

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

.hero-panel-inner {
  position: relative;
  z-index: 1;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.stat {
  text-align: center;
  padding: 0.85rem;
  border-radius: 14px;
  background: rgba(10, 14, 36, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-value {
  font-size: 1.35rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent-c), var(--accent-m));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem max(1rem, env(safe-area-inset-right)) 3rem max(1rem, env(safe-area-inset-left));
}

@media (min-width: 769px) {
  .section {
    padding: 2.5rem 1.25rem 4rem;
  }
}

.section-head {
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 800;
}

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

/* Slots grid */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1.15rem;
}

.slot-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.slot-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), var(--glow);
}

.slot-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.slot-meta {
  padding: 0.85rem 0.95rem 1rem;
}

.slot-meta h3 {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
}

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

.slot-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(6, 8, 22, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fde68a;
}

/* Article */
.article {
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  background: rgba(12, 16, 38, 0.55);
  border: 1px solid var(--line);
}

.article h2 {
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
  font-size: 1.35rem;
  font-weight: 800;
}

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

.article h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.65rem;
  font-size: 1.08rem;
  font-weight: 700;
  color: #c7d2fe;
}

.article p {
  margin: 0 0 1rem;
  color: #c5cce8;
}

.article ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: #c5cce8;
}

.article li {
  margin-bottom: 0.45rem;
}

.article strong {
  color: var(--text);
  font-weight: 700;
}

.highlight-box {
  margin: 1.75rem 0;
  padding: 1.25rem 1.35rem;
  border-radius: 14px;
  border-left: 4px solid var(--accent-c);
  background: rgba(34, 211, 238, 0.06);
}

.highlight-box p:last-child {
  margin-bottom: 0;
}

/* CTA strip */
.cta-strip {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 max(1rem, env(safe-area-inset-right)) max(3rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

@media (min-width: 769px) {
  .cta-strip {
    padding: 0 1.25rem 4rem;
  }
}

.cta-inner {
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(34, 211, 238, 0.08));
  border: 1px solid rgba(129, 140, 248, 0.35);
}

.cta-inner h2 {
  margin: 0 0 0.65rem;
  font-size: 1.45rem;
}

.cta-inner p {
  margin: 0 0 1.35rem;
  color: var(--muted);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Footer minimal — без реквизитов и счётчиков */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem max(1rem, env(safe-area-inset-right)) calc(1.75rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer .brand-note {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: grid;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .btn-header-cta-full {
    display: none;
  }

  .btn-header-cta-short {
    display: inline;
  }

  .btn-header-cta {
    padding-left: 1rem;
    padding-right: 1rem;
    min-height: 2.75rem;
    font-size: 0.88rem;
  }

  .nav-main {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 101;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0.35rem max(1rem, env(safe-area-inset-right)) 1rem max(1rem, env(safe-area-inset-left));
    border-bottom: 1px solid var(--line);
    background: rgba(8, 10, 28, 0.98);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .site-header.is-menu-open .nav-main {
    display: flex;
  }

  .nav-main a {
    padding: 0.95rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .nav-main a:last-child {
    border-bottom: none;
  }

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

  .hero h1 {
    font-size: clamp(1.45rem, 6vw, 2rem);
    hyphens: manual;
    word-break: break-word;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .stat {
    padding: 0.55rem 0.35rem;
    min-height: auto;
  }

  .stat-value {
    font-size: 1.05rem;
  }

  .stat-label {
    font-size: 0.58rem;
    letter-spacing: 0.05em;
    line-height: 1.25;
  }

  .hero-panel {
    padding: 1.25rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-block-sm {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    font-size: 1rem;
  }

  .slots-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .slot-meta {
    padding: 0.65rem 0.7rem 0.85rem;
  }

  .slot-meta h3 {
    font-size: 0.82rem;
  }

  .slot-meta span {
    font-size: 0.65rem;
    line-height: 1.3;
  }

  .article {
    padding: 1.35rem 1.05rem;
  }

  .article h2 {
    font-size: 1.18rem;
    line-height: 1.28;
  }

  .article h3 {
    font-size: 1rem;
  }

  .article p,
  .article li {
    font-size: 1rem;
    line-height: 1.65;
  }

  .cta-inner {
    padding: 1.5rem 1.1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-buttons .btn {
    min-height: 48px;
    width: 100%;
    justify-content: center;
  }

  .brand-tag {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }

  .brand-title {
    font-size: 1.05rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
  }
}

@media (max-width: 380px) {
  .slots-grid {
    gap: 0.55rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .stat-label {
    font-size: 0.65rem;
  }
}
