/* ===================================================================
   TURBO CASINO — основной файл стилей
   Палитра: #1D1F27 (фон), #252935 (карточки), #303548 (бордеры/блоки)
   Акцент-кнопка: #A0EF23  | Вторая кнопка (вход): #292D3B
   =================================================================== */

:root {
  --bg-base: #1D1F27;
  --bg-card: #252935;
  --bg-elev: #303548;
  --accent: #A0EF23;
  --accent-dark: #84c81a;
  --btn-login: #292D3B;
  --text-primary: #FFFFFF;
  --text-muted: #9AA1B4;
  --text-dim: #6B7280;
  --border: #303548;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  --maxw: 1200px;
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===================== Preloader ===================== */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity .5s ease, visibility .5s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
#preloader img { width: 200px; margin-bottom: 26px; }
.loader-bar {
  width: 70px; height: 10px;
  background: var(--bg-elev);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.loader-bar::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 6px;
  background: var(--accent);
  border-radius: 20px;
  animation: loadMove 1.1s ease-in-out infinite;
}
@keyframes loadMove {
  0% { left: 2px; } 50% { left: 50px; } 100% { left: 2px; }
}

/* ===================== Header ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(29, 31, 39, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo img { height: 38px; width: auto; }

.main-nav ul { display: flex; gap: 28px; }
.main-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 15px;
  transition: color .2s;
  position: relative;
}
.main-nav a:hover { color: var(--accent); }

.header-actions { display: flex; gap: 12px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: 12px 26px;
  font-size: 15px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s;
  font-family: var(--font);
}
.btn:active { transform: scale(.97); }

.btn-accent {
  background: var(--accent);
  color: #15240a;
  box-shadow: 0 6px 20px rgba(160, 239, 35, 0.28);
}
.btn-accent:hover {
  background: var(--accent-dark);
  box-shadow: 0 8px 26px rgba(160, 239, 35, 0.42);
  transform: translateY(-2px);
}
.btn-login {
  background: var(--btn-login);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-login:hover { background: var(--bg-elev); transform: translateY(-2px); }

.btn-lg { padding: 16px 38px; font-size: 17px; }
.btn-block { width: 100%; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  width: 26px; height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: .3s;
}

/* ===================== Mobile nav drawer ===================== */
.mobile-drawer {
  position: fixed;
  top: 0; right: -100%;
  width: 80%; max-width: 320px;
  height: 100vh;
  background: var(--bg-card);
  z-index: 1000;
  padding: 80px 24px 24px;
  transition: right .35s ease;
  border-left: 1px solid var(--border);
}
.mobile-drawer.open { right: 0; }
.mobile-drawer ul { display: flex; flex-direction: column; gap: 6px; }
.mobile-drawer a {
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 500;
}
.mobile-drawer a:hover { background: var(--bg-elev); color: var(--accent); }
.drawer-close {
  position: absolute;
  top: 22px; right: 22px;
  background: none; border: none;
  color: var(--text-primary);
  font-size: 26px; cursor: pointer;
}
.drawer-actions { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 999;
  opacity: 0; visibility: hidden;
  transition: .3s;
}
.overlay.show { opacity: 1; visibility: visible; }

/* ===================== Hero ===================== */
.hero {
  position: relative;
  padding: 70px 0 60px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -180px; left: 50%;
  transform: translateX(-50%);
  width: 760px; height: 760px;
  background: radial-gradient(circle, rgba(160,239,35,.16) 0%, transparent 62%);
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elev);
  color: var(--accent);
  padding: 7px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
  border: 1px solid rgba(160,239,35,.25);
}
.hero h1 {
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.12;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -.5px;
}
.hero h1 .accent { color: var(--accent); }
.hero p.lead {
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 540px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-stat .num {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
}
.hero-stat .lbl {
  font-size: 13px;
  color: var(--text-muted);
}
.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.hero-visual img { width: 100%; }

/* ===================== Sections ===================== */
.section { padding: 64px 0; }
.section-tight { padding: 44px 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head .eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.section-head h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  margin: 12px 0;
  letter-spacing: -.4px;
}
.section-head p {
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  font-size: 17px;
}

h2 { line-height: 1.2; }
h3 { line-height: 1.3; }

/* Generic content article */
.article h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  margin: 46px 0 16px;
  font-weight: 800;
  letter-spacing: -.3px;
  position: relative;
  padding-left: 18px;
}
.article h2::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 5px;
  background: var(--accent);
  border-radius: 4px;
}
.article h3 {
  font-size: 21px;
  margin: 30px 0 12px;
  font-weight: 700;
  color: #eef0f5;
}
.article p { color: var(--text-muted); margin-bottom: 16px; }
.article p strong { color: var(--text-primary); }
.article ul.dot, .article ol.num { margin: 0 0 20px 0; }
.article ul.dot li, .article ol.num li {
  color: var(--text-muted);
  padding: 8px 0 8px 30px;
  position: relative;
}
.article ul.dot li::before {
  content: '';
  position: absolute;
  left: 4px; top: 17px;
  width: 9px; height: 9px;
  background: var(--accent);
  border-radius: 50%;
}
.article ol.num { counter-reset: li; }
.article ol.num li { counter-increment: li; }
.article ol.num li::before {
  content: counter(li);
  position: absolute;
  left: 0; top: 8px;
  width: 22px; height: 22px;
  background: var(--bg-elev);
  color: var(--accent);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* inline image inside articles */
.inline-figure {
  margin: 30px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.inline-figure img { width: 100%; }
.inline-figure figcaption {
  background: var(--bg-card);
  color: var(--text-dim);
  font-size: 13px;
  padding: 10px 16px;
  text-align: center;
}
.figure-narrow { max-width: 420px; margin-left: auto; margin-right: auto; }
.figure-mid { max-width: 640px; margin-left: auto; margin-right: auto; }

/* ===================== Cards grids ===================== */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-5px); border-color: rgba(160,239,35,.4); }
.card-img { width: 100%; display: block; }
.card-body { padding: 20px; }
.card-body h3 { font-size: 18px; margin-bottom: 8px; }
.card-body p { color: var(--text-muted); font-size: 14px; }

/* feature cards */
.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: .2s;
}
.feature:hover { border-color: rgba(160,239,35,.4); transform: translateY(-4px); }
.feature .ic {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(160,239,35,.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 22px;
  margin-bottom: 16px;
}
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--text-muted); font-size: 15px; }

/* promo card with image banner */
.promo-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.promo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: .2s;
}
.promo-card:hover { transform: translateY(-4px); border-color: rgba(160,239,35,.35); }
.promo-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.promo-card .pc-body { padding: 18px 20px 22px; }
.promo-card h3 { font-size: 18px; margin-bottom: 8px; }
.promo-card p { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; }

/* tournaments */
.tour-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.tour-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: .2s;
}
.tour-card:hover { transform: translateY(-4px); }
.tour-card > img { width: 100%; }

/* VIP levels */
.vip-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.vip-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: .2s;
}
.vip-card:hover { transform: translateY(-4px); border-color: rgba(160,239,35,.35); }
.vip-card img { width: 100%; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; counter-reset: step; }
.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  position: relative;
}
.step .n {
  width: 44px; height: 44px;
  background: var(--accent);
  color: #15240a;
  font-weight: 800;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  margin-bottom: 16px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 14px; }

/* comparison table */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  background: var(--bg-card);
}
table.compare th, table.compare td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
table.compare th {
  background: var(--bg-elev);
  color: var(--text-primary);
  font-weight: 700;
}
table.compare td { color: var(--text-muted); }
table.compare tr td:first-child { color: var(--text-primary); font-weight: 600; }
table.compare .yes { color: var(--accent); font-weight: 700; }
table.compare .no { color: #ff6b6b; }
table.compare tbody tr:hover, table.compare tr:hover { background: rgba(48,53,72,.4); }

/* payment logos */
.pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
}
.pay-row .pay-item {
  background: #fff;
  border-radius: 12px;
  padding: 14px 20px;
  height: 64px;
  display: flex; align-items: center; justify-content: center;
}
.pay-row .pay-item img { max-height: 36px; width: auto; }

/* providers */
.prov-row {
  display: flex; flex-wrap: wrap; gap: 18px;
  align-items: center; justify-content: center;
}
.prov-row .prov-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 26px;
  display: flex; align-items: center; justify-content: center;
  min-height: 70px;
}
.prov-row .prov-item img { max-height: 40px; width: auto; }

/* ===================== FAQ ===================== */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-q {
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  user-select: none;
}
.faq-q .chev { color: var(--accent); transition: transform .3s; font-size: 18px; }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 22px;
  color: var(--text-muted);
}
.faq-item.open .faq-a { max-height: 600px; padding: 0 22px 22px; }

/* ===================== CTA banner ===================== */
.cta-banner {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-elev));
  border: 1px solid rgba(160,239,35,.3);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content:'';
  position:absolute;
  top:-100px; right:-80px;
  width:320px; height:320px;
  background: radial-gradient(circle, rgba(160,239,35,.18), transparent 65%);
}
.cta-banner h2 { font-size: clamp(24px,3.6vw,34px); margin-bottom: 14px; position: relative; }
.cta-banner p { color: var(--text-muted); max-width: 560px; margin: 0 auto 26px; position: relative; font-size: 17px; }

/* table of contents */
.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 40px;
}
.toc h2 { font-size: 20px; margin-bottom: 16px; }
.toc ol { counter-reset: toc; }
.toc li { counter-increment: toc; padding: 7px 0 7px 34px; position: relative; }
.toc li::before {
  content: counter(toc);
  position: absolute; left: 0; top: 7px;
  width: 24px; height: 24px;
  background: var(--bg-elev);
  color: var(--accent);
  border-radius: 6px;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.toc a { color: var(--text-muted); transition: color .2s; }
.toc a:hover { color: var(--accent); }

/* ===================== Footer ===================== */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 54px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer-col h4 { font-size: 16px; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-muted); font-size: 14px; transition: color .2s; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-about img { height: 36px; margin-bottom: 16px; }
.footer-about p { color: var(--text-muted); font-size: 14px; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-bottom p { color: var(--text-dim); font-size: 13px; }
.age-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 13px;
  color: var(--text-muted);
}
.age-badge b { color: #ff6b6b; }

/* disclaimer block */
.disclaimer {
  background: var(--bg-elev);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-top: 30px;
}
.disclaimer p { color: var(--text-dim); font-size: 13px; line-height: 1.7; }

/* breadcrumbs */
.breadcrumbs { padding: 18px 0 0; }
.breadcrumbs ol { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--text-dim); }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }

/* scroll top */
#scrollTop {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 48px; height: 48px;
  background: var(--accent);
  color: #15240a;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: .3s;
  z-index: 800;
  box-shadow: 0 6px 20px rgba(160,239,35,.4);
}
#scrollTop.show { opacity: 1; visibility: visible; }

/* page hero (inner pages) */
.page-hero {
  padding: 50px 0 30px;
  position: relative;
}
.page-hero h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -.5px;
}
.page-hero p { color: var(--text-muted); font-size: 18px; max-width: 700px; }

/* highlight box */
.note {
  background: rgba(160,239,35,.08);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  margin: 24px 0;
}
.note p { color: #dfeec5; margin: 0; }

/* meta line under article heading (E-E-A-T) */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  font-size: 13.5px;
  color: var(--text-muted);
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--bg-elev);
}
.post-meta i { color: var(--accent); margin-right: 5px; }

/* two-col text + image */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.split.rev .split-text { order: 2; }

/* ===================== Responsive ===================== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .main-nav, .header-actions .btn { display: none; }
  .header-actions .btn-mobile-join { display: inline-flex; }
  .burger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { order: -1; }
  .split { grid-template-columns: 1fr; }
  .split.rev .split-text { order: 0; }
  .tour-grid, .vip-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 44px 0; }
  .grid-2, .grid-3, .grid-4, .promo-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero { padding: 40px 0 40px; }
  .hero-stats { gap: 24px; }
  .cta-banner { padding: 36px 22px; }
  .btn-lg { width: 100%; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
}

/* keyboard a11y focus */
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
