/* ПокерДом Казино — одностраничник: уникальная сетка «карточный стол + неоновая кромка» */
:root {
  --bg-deep: #07090f;
  --bg-panel: #0f121c;
  --bg-elevated: #151a28;
  --line: rgba(232, 197, 71, 0.22);
  --gold: #e8c547;
  --gold-dim: #b8922e;
  --violet: #8b5cf6;
  --violet-deep: #5b21b6;
  --mint: #34d399;
  --text: #e8ecf5;
  --muted: #9aa3b5;
  --danger: #fb7185;
  --radius-card: 18px 6px 18px 6px;
  --shadow-glow: 0 0 0 1px rgba(232, 197, 71, 0.12), 0 24px 80px rgba(91, 33, 182, 0.35);
  --font-sans: "Manrope", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.65;
  font-size: 1.05rem;
}

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #f5d76a;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: #000;
  padding: 0.5rem 1rem;
  z-index: 9999;
}

.skip:focus {
  left: 1rem;
}

/* Плашка: переход на официальный сайт + отсчёт */
.ref-top-banner {
  position: relative;
  z-index: 60;
  background: linear-gradient(90deg, #0a0d14 0%, #12182a 45%, #1a1028 100%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.ref-top-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.65rem 0;
}

.ref-top-banner__text {
  margin: 0;
  font-weight: 700;
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  color: var(--text);
  letter-spacing: 0.01em;
}

.ref-top-banner__timer {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.15em 0.5em;
  border-radius: 6px;
  background: rgba(232, 197, 71, 0.14);
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.btn-ref-top {
  flex-shrink: 0;
  padding: 0.55rem 1.15rem;
  font-size: 0.95rem;
  box-shadow: 0 0 0 1px rgba(232, 197, 71, 0.35), 0 6px 20px rgba(91, 33, 182, 0.45);
}

@media (max-width: 520px) {
  .ref-top-banner__inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .ref-top-banner__timer {
    margin-left: 0.25rem;
  }

  .btn-ref-top {
    width: 100%;
    text-align: center;
  }
}

/* Фон: «сукно стола» + лёгкая сетка */
.page-bg {
  min-height: 100vh;
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 120% 80% at 10% -20%, rgba(139, 92, 246, 0.35), transparent 55%),
    radial-gradient(ellipse 90% 60% at 100% 10%, rgba(232, 197, 71, 0.12), transparent 50%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.02) 2px,
      rgba(255, 255, 255, 0.02) 3px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.015) 2px,
      rgba(255, 255, 255, 0.015) 3px
    );
}

.wrap {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.wrap--guide {
  width: min(1280px, 95vw);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(7, 9, 15, 0.92), rgba(7, 9, 15, 0.65));
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

/* Хлебные крошки и карта страницы (структура сайта) */
.nav-surface {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(232, 197, 71, 0.1);
}

.site-breadcrumbs {
  padding: 0.45rem 0 0.65rem;
}

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.breadcrumbs-list > li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.breadcrumbs-list > li:not(:last-child)::after {
  content: "›";
  color: var(--gold-dim);
  font-weight: 700;
  margin-left: 0.15rem;
}

.breadcrumbs-list a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs-list a:hover {
  color: var(--gold);
}

.breadcrumbs-list [aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.site-structure-panel {
  margin-top: 0.25rem;
  background: rgba(15, 18, 28, 0.82);
  border: 1px solid rgba(232, 197, 71, 0.16);
  border-radius: 14px;
  padding: 0.85rem 1rem 1rem;
  font-size: 0.9rem;
}

.site-structure-panel > h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
}

.site-structure-url {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.72rem;
  word-break: break-all;
  color: var(--muted);
  margin: 0 0 0.65rem;
  line-height: 1.5;
}

.site-structure-tree {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text);
}

.site-structure-tree ul {
  margin: 0.3rem 0 0.15rem;
  padding-left: 1.05rem;
}

.site-structure-tree li {
  margin: 0.2rem 0;
}

.site-structure-tree a {
  color: var(--gold);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, var(--violet), var(--violet-deep));
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: -0.02em;
  color: var(--gold);
  box-shadow: var(--shadow-glow);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
  justify-content: flex-end;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.nav a:hover {
  color: var(--text);
}

.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.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: #1a1204;
  box-shadow: 0 8px 28px rgba(232, 197, 71, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(232, 197, 71, 0.45);
  color: #120c00;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: rgba(232, 197, 71, 0.45);
  color: var(--gold);
}

.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.35fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .nav {
    display: none;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.12);
  color: var(--mint);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  font-weight: 700;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 52ch;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 52ch;
}

.hero-visual {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 640px;
  margin-left: auto;
  margin-right: 0;
}

@media (max-width: 900px) {
  .hero-visual {
    margin-inline: auto;
    max-width: 520px;
  }
}

.hero-frame--hero img {
  min-height: min(48vw, 440px);
  object-fit: cover;
}

.hero-bonus-cta {
  width: 100%;
  margin-top: 1.1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  font-size: clamp(0.82rem, 2.4vw, 1.02rem);
  text-align: center;
  line-height: 1.25;
}

.hero-frame {
  position: relative;
  border-radius: 28px 10px 28px 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-glow);
  background: var(--bg-panel);
}

.hero-frame img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent 40%, rgba(7, 9, 15, 0.65));
  pointer-events: none;
}

.hero-stat {
  position: absolute;
  right: 8%;
  bottom: 10%;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: rgba(15, 18, 28, 0.88);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 200px;
}

.hero-stat strong {
  display: block;
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0;
}

.section-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--violet);
  font-weight: 700;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 800px) {
  .tiles {
    grid-template-columns: 1fr;
  }
}

.tile {
  background: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-card);
  padding: 1.35rem 1.25rem;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
}

.tile h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.tile--bonus {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-color: rgba(232, 197, 71, 0.28);
  background: linear-gradient(165deg, rgba(91, 33, 182, 0.35), var(--bg-panel));
}

.tile-bonus-line {
  margin-bottom: 1rem;
  flex: 1;
}

.tile-bonus-btn {
  width: 100%;
  margin-top: auto;
  text-align: center;
  font-size: clamp(0.78rem, 2vw, 0.95rem);
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

@media (max-width: 1000px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

.gallery a {
  display: block;
  border-radius: 16px 6px 16px 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg-elevated);
  transition: transform 0.18s ease, border-color 0.18s ease;
  text-decoration: none;
}

.gallery a:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 197, 71, 0.45);
}

.gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.gallery figcaption {
  padding: 0.65rem 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 46rem) minmax(220px, 290px);
  gap: clamp(1rem, 2.5vw, 1.75rem);
  align-items: start;
}

.split-spacer {
  min-width: 0;
  pointer-events: none;
}

.split > .article-body {
  max-width: 42rem;
  width: 100%;
  justify-self: center;
}

@media (max-width: 1024px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split-spacer {
    display: none;
  }

  .split > .article-body {
    max-width: none;
    justify-self: stretch;
  }
}

.panel {
  background: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px 8px 20px 8px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.toc {
  position: sticky;
  top: 5.5rem;
}

.toc h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc ol {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.toc a {
  color: var(--text);
  text-decoration: none;
}

.toc a:hover {
  color: var(--gold);
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 2rem 0 0.75rem;
  scroll-margin-top: 5.5rem;
}

.article-body h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
  color: #cbd5e1;
}

.article-body p {
  margin: 0 0 1rem;
  color: #c7cedd;
}

.article-body ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: #c7cedd;
}

.article-body li {
  margin-bottom: 0.35rem;
}

.disclaimer {
  border-left: 3px solid var(--danger);
  padding: 0.75rem 1rem;
  background: rgba(251, 113, 133, 0.08);
  color: #fecdd3;
  font-size: 0.92rem;
  margin: 1.5rem 0;
  border-radius: 0 10px 10px 0;
}

.faq {
  display: grid;
  gap: 0.75rem;
}

details.faq-item {
  background: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 0.75rem 1rem;
}

details.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold);
}
