/* =============================================
   JOYCASINO — style.css
   Цветовая схема: тёмно-синий + золотой акцент
   Шрифты: Oswald (заголовки) + PT Sans (текст)
   ============================================= */

:root {
  --bg:         #0d1117;
  --surface:    #161c25;
  --surface2:   #1e2735;
  --gold:       #f5c842;
  --gold-dark:  #d4a017;
  --gold-glow:  rgba(245, 200, 66, 0.35);
  --text:       #e8eaf0;
  --text-muted: #8a95a8;
  --border:     rgba(245, 200, 66, 0.2);
  --radius:     14px;
  --shadow:     0 8px 24px rgba(0,0,0,.45);
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'PT Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 0;
}

h1 { font-size: clamp(24px, 4vw, 38px); text-align: center; margin-bottom: 20px; }
h2 { font-size: clamp(20px, 3vw, 30px); text-align: center; margin-bottom: 16px; }
h3 { font-size: clamp(17px, 2.4vw, 22px); margin-bottom: 10px; }

p { margin-bottom: 14px; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: #fff; text-decoration: underline; }

ul, ol { padding-left: 22px; }
ul li, ol li { margin-bottom: 8px; }

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

/* ── NAVBAR ──────────────────────────────────── */
.navbar {
  background: linear-gradient(90deg, #0a0e14 0%, #13192a 100%);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 14px rgba(0,0,0,.6);
}

.navbar .navbar-brand img { filter: drop-shadow(0 0 6px var(--gold-glow)); }

.navbar-toggler {
  border-color: var(--gold);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23f5c842' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar .navbar-nav { gap: 10px; }

.navbar .nav-link.nav-btn {
  color: #fff !important;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1a2540, #2a3a5c);
  border: 1px solid var(--border);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.navbar .nav-link.nav-btn:hover {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #0d1117 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--gold-glow);
}

/* ── BUTTONS ──────────────────────────────────── */
.btn-login {
  display: inline-block;
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold) !important;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: 9px 22px;
  border-radius: 10px;
  transition: all .15s;
}
.btn-login:hover {
  background: var(--gold);
  color: #0d1117 !important;
  text-decoration: none;
  box-shadow: 0 4px 14px var(--gold-glow);
}

.btn-reg {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border: none;
  color: #0d1117 !important;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: 9px 22px;
  border-radius: 10px;
  transition: all .15s;
}
.btn-reg:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--gold-glow);
  text-decoration: none;
}

.btn-center { text-align: center; margin: 24px 0; }

.btn-register {
  display: inline-block;
  min-width: 200px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #0d1117 !important;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 12px;
  box-shadow: 0 6px 20px var(--gold-glow);
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, filter .12s;
}
.btn-register:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(245,200,66,.5);
  text-decoration: none;
}
.btn-register:active { transform: translateY(0); }

.bt {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 15px;
}

/* ── BLOCKS / SECTIONS ───────────────────────── */
.block {
  padding: 28px 28px;
  margin: 20px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-block {
  background: linear-gradient(160deg, #131c30 0%, #0d1117 100%);
  border-color: rgba(245,200,66,.3);
  padding-top: 36px;
}

.hero-block strong {
  color: #5bb8ff;
}

/* ── IMAGES ──────────────────────────────────── */
.img-box {
  max-width: 820px;
  margin: 22px auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  border: 1px solid var(--border);
}

.img-box img {
  width: 100%;
  height: auto;
  display: block;
}
.navbar-brand .site-logo {
  height: 50px !important;
  width: auto !important;
  max-width: none !important;
}
/* ── TOC ──────────────────────────────────────── */
.toc-toggle {
  display: block;
  margin: 20px auto 0;
  background: var(--surface2);
  color: var(--gold);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 22px;
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  cursor: pointer;
  transition: background .15s;
}
.toc-toggle:hover { background: var(--surface); }

.toc {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 28px;
  margin: 14px auto;
  max-width: 700px;
  transition: max-height .35s ease, opacity .35s ease;
  overflow: hidden;
}
.toc.is-collapsed { max-height: 0; opacity: 0; padding: 0 28px; }
.toc:not(.is-collapsed) { max-height: 800px; opacity: 1; }

.toc ul { list-style: none; padding: 0; margin: 0; }
.toc ul li { padding: 5px 0; border-bottom: 1px solid rgba(245,200,66,.1); }
.toc ul li:last-child { border-bottom: none; }
.toc ul li a {
  color: var(--text);
  font-size: 15px;
  transition: color .15s;
}
.toc ul li a:hover { color: var(--gold); text-decoration: none; }

.toc-back-top {
  display: none;
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  background: var(--gold);
  color: #0d1117;
  border: none;
  border-radius: 50%;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 14px var(--gold-glow);
  transition: transform .15s, box-shadow .15s;
}
.toc-back-top.is-visible { display: flex; align-items: center; justify-content: center; }
.toc-back-top:hover { transform: translateY(-2px); box-shadow: 0 8px 20px var(--gold-glow); }

/* ── TABLE ───────────────────────────────────── */
.table-glow {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--gold-dark);
  border-radius: var(--radius);
  overflow: hidden;
  table-layout: fixed;
  animation: tableBreathGold 4s ease-in-out infinite;
  margin: 20px 0;
}

@keyframes tableBreathGold {
  0%   { box-shadow: 0 0 10px rgba(245,200,66,.2), 0 0 20px rgba(245,200,66,.1); }
  50%  { box-shadow: 0 0 22px rgba(245,200,66,.5), 0 0 48px rgba(245,200,66,.25); }
  100% { box-shadow: 0 0 10px rgba(245,200,66,.2), 0 0 20px rgba(245,200,66,.1); }
}

.table-glow thead tr {
  background: linear-gradient(90deg, #1e2c1a, #2a3a10);
}

.table-glow th {
  padding: 13px 16px;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--gold);
  text-transform: uppercase;
  border-bottom: 1px solid var(--gold-dark);
}

.table-glow td {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(245,200,66,.12);
  font-size: 15px;
  word-wrap: break-word;
}

.table-glow tr:last-child td { border-bottom: none; }

.table-glow tr:hover td {
  background: rgba(245,200,66,.07);
  transition: background .2s;
}

/* ── FAQ ──────────────────────────────────────── */
.faq-section { margin: 40px 0; padding: 30px 0; }

.faq-title {
  text-align: center;
  margin-bottom: 36px;
  color: var(--gold);
  font-family: 'Oswald', sans-serif;
  font-size: clamp(24px, 3vw, 32px);
}

.faq-container { max-width: 820px; margin: 0 auto; }

.faq-item {
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 3px 10px rgba(0,0,0,.3);
  transition: box-shadow .2s;
}
.faq-item:hover { box-shadow: 0 6px 20px rgba(0,0,0,.4); }

.faq-question {
  width: 100%;
  background: var(--surface2);
  color: var(--text);
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  transition: background .2s;
  text-align: left;
  font-family: 'PT Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
}
.faq-question:hover { background: #243048; }
.faq-question span:first-child { flex: 1; padding-right: 16px; }

.faq-icon {
  font-size: 24px;
  font-weight: bold;
  color: var(--gold);
  transition: transform .3s;
  min-width: 24px;
  text-align: center;
}
.faq-item.active .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  background: var(--surface);
}
.faq-item.active .faq-answer { max-height: 300px; }
.faq-answer > div { padding: 18px 20px; }
.faq-answer p { margin: 0; color: var(--text-muted); line-height: 1.65; font-size: 15px; }

/* ── FOOTER ──────────────────────────────────── */
.site-footer {
  background: #08090d;
  border-top: 1px solid var(--border);
  padding: 36px 0 20px;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-top {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 24px;
  flex-wrap: wrap;
}
.footer-logo { max-height: 48px; margin: 0 !important; }

.footer-badges { display: flex; align-items: center; gap: 14px; margin-left: auto; }

.badge-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 16px;
}

.footer-rg {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--gold); }

.footer-disclaimer {
  color: var(--text-muted);
  font-size: 13px;
  max-width: 700px;
  margin: 12px auto;
  line-height: 1.6;
}

.footer-copy {
  color: #4a5568;
  font-size: 13px;
}

/* ── MOBILE RESPONSIVE ───────────────────────── */
@media (max-width: 768px) {
  .block { padding: 18px 16px; }
  .hero-block { padding: 22px 16px; }

  .table-glow { font-size: 13px; }
  .table-glow th, .table-glow td { padding: 9px 10px; }

  .faq-question { padding: 14px 16px; font-size: 15px; }
  .faq-answer > div { padding: 14px 16px; }

  .footer-badges { margin-left: 0; }
}

@media (max-width: 480px) {
  .table-glow { font-size: 12px; }
  .table-glow th, .table-glow td { padding: 7px 8px; }
  .btn-register { min-width: 160px; padding: 12px 20px; font-size: 14px; }
}
