/* =============================================
   JOYCASINO v2 — style.css
   Тема: СВЕТЛАЯ | Красно-чёрная гамма
   Шрифты: Montserrat (заголовки) + Merriweather (текст)
   ============================================= */

:root {
  --bg:          #f4f5f7;
  --white:       #ffffff;
  --red:         #e02020;
  --red-dark:    #b51818;
  --red-glow:    rgba(224, 32, 32, 0.18);
  --dark:        #111418;
  --dark2:       #1e2329;
  --text:        #1a1d23;
  --text-muted:  #5a6274;
  --border:      #e2e5ec;
  --border-red:  rgba(224,32,32,0.25);
  --radius:      12px;
  --shadow:      0 4px 18px rgba(0,0,0,.08);
  --shadow-md:   0 8px 30px rgba(0,0,0,.13);
}

/* ── BASE ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Merriweather', Georgia, serif;
  font-size: 16px;
  line-height: 1.8;
  margin: 0; padding: 0;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  color: var(--dark);
  margin-top: 0;
  line-height: 1.25;
}

h1 {
  font-size: clamp(22px, 3.8vw, 36px);
  text-align: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 50%, #ff4444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: clamp(18px, 2.8vw, 27px);
  text-align: center;
  margin-bottom: 16px;
  color: var(--dark);
  position: relative;
  padding-bottom: 12px;
}
h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 3px;
  background: var(--red);
  border-radius: 2px;
}

h3 {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--dark2);
  margin-bottom: 10px;
  font-weight: 700;
}

p { margin-bottom: 14px; }
a { color: var(--red); text-decoration: none; transition: color .15s; }
a:hover { color: var(--red-dark); text-decoration: underline; }
ul, ol { padding-left: 22px; }
ul li, ol li { margin-bottom: 8px; }
img { display: block; max-width: 100%; height: auto; }
strong { color: var(--dark); }

/* ── NAVBAR ──────────────────────────────────── */
.site-header {
  background: var(--dark);
  border-bottom: 3px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,.4);
}

.navbar { padding: 10px 0; }

.navbar-toggler { border-color: rgba(255,255,255,.3); }
.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='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

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

.navbar .nav-link.nav-btn {
  color: #fff !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .4px;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  transition: all .15s;
}
.navbar .nav-link.nav-btn:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--red-glow);
}

/* ── BUTTONS ──────────────────────────────────── */
.btn-login {
  display: inline-block;
  background: transparent;
  border: 2px solid #fff;
  color: #fff !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 9px 20px;
  border-radius: 8px;
  transition: all .15s;
  text-decoration: none;
}
.btn-login:hover {
  background: #fff;
  color: var(--dark) !important;
  text-decoration: none;
}

.btn-reg {
  display: inline-block;
  background: var(--red);
  border: 2px solid var(--red);
  color: #fff !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 9px 20px;
  border-radius: 8px;
  transition: all .15s;
  text-decoration: none;
}
.btn-reg:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--red-glow);
  text-decoration: none;
}

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

.btn-register {
  display: inline-block;
  min-width: 220px;
  padding: 15px 36px;
  background: var(--red);
  color: #fff !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 6px 22px var(--red-glow);
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, background .12s;
  position: relative;
  overflow: hidden;
}
.btn-register::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transition: left .4s;
}
.btn-register:hover::before { left: 100%; }
.btn-register:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(224,32,32,.35);
  text-decoration: none;
}
.btn-register:active { transform: translateY(0); }

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

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

.hero-block {
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark2) 100%);
  border: none;
  padding: 40px 32px;
  box-shadow: var(--shadow-md);
}
.hero-block h1 {
  -webkit-text-fill-color: unset;
  background: none;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.hero-block .lead-text { color: #cdd2dc; }
.hero-block p { color: #a8b0bf; }
.hero-block strong,
.hero-block .lead-text strong {
  color: #5bb8ff;
  -webkit-text-fill-color: #5bb8ff;
}

.hero-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

/* ── IMAGES ──────────────────────────────────── */
.img-box {
  max-width: 820px;
  margin: 24px auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.img-box img { width: 100%; height: auto; display: block; }

.navbar-brand .site-logo {
  height: 30px !important;
  width: auto !important;
  max-width: none !important;
}
/* ── TOC ──────────────────────────────────────── */
.toc-toggle {
  display: block;
  margin: 20px auto 0;
  background: var(--dark2);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 24px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s;
}
.toc-toggle:hover { background: var(--red); }

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

.toc ul { list-style: none; padding: 0; margin: 0; }
.toc ul li {
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.toc ul li:last-child { border-bottom: none; }
.toc ul li a {
  color: #b0b8cc;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  transition: color .15s;
}
.toc ul li a:hover { color: #fff; text-decoration: none; }

.toc-back-top {
  display: none;
  position: fixed;
  bottom: 28px; right: 28px;
  width: 48px; height: 48px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 16px var(--red-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 22px rgba(224,32,32,.4); }

/* ── TABLE ───────────────────────────────────── */
.table-pro {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  table-layout: fixed;
}

.table-pro thead tr {
  background: var(--dark);
  color: #fff;
}
.table-pro th {
  padding: 14px 16px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .3px;
  text-transform: uppercase;
  border-bottom: 3px solid var(--red);
  text-align: left;
}

.table-pro td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  word-wrap: break-word;
}

.table-pro tbody tr:last-child td { border-bottom: none; }
.table-pro tbody tr:nth-child(even) td { background: #f9fafb; }
.table-pro tbody tr:hover td {
  background: #fff0f0;
  transition: background .2s;
}

/* ── VERDICT ──────────────────────────────────── */
.verdict-block { background: #fafbfc; border-left: 4px solid var(--red); }

.verdict-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 20px 0;
}

.verdict-pros, .verdict-cons {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.verdict-pros h3 { color: #1a7a3c; }
.verdict-cons h3 { color: var(--red); }

.verdict-pros li, .verdict-cons li {
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  margin-bottom: 7px;
}

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

.faq-title {
  text-align: center;
  margin-bottom: 36px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(20px, 3vw, 28px);
  color: var(--dark);
  position: relative;
  padding-bottom: 14px;
}
.faq-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 70px; height: 3px;
  background: var(--red);
  border-radius: 2px;
}

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

.faq-item {
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: box-shadow .2s;
}
.faq-item:hover { box-shadow: var(--shadow-md); }

.faq-question {
  width: 100%;
  background: var(--white);
  color: var(--dark);
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  transition: background .2s;
}
.faq-question:hover { background: #fef5f5; }
.faq-item.active .faq-question { background: var(--dark); color: #fff; }

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

.faq-question span:first-child { flex: 1; padding-right: 14px; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  background: #fafbfc;
}
.faq-item.active .faq-answer { max-height: 320px; }
.faq-answer > div { padding: 18px 20px; }
.faq-answer p {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  font-family: 'Merriweather', serif;
}

/* ── FOOTER ──────────────────────────────────── */
.site-footer {
  background: var(--dark);
  border-top: 3px solid var(--red);
  padding: 36px 0 20px;
  color: #a8b0bf;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 24px;
}

.footer-logo-custom {
    height: 40px;
    width: auto;
    max-width: none;
}
.footer-tagline { color: #6b7585; font-size: 13px; margin: 6px 0 0; font-style: italic; }

.footer-right { display: flex; align-items: center; gap: 14px; }

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

.footer-license {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #6b7585;
}

.footer-nav { padding: 14px 0; }
.footer-nav a { color: #8892a4; font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 600; }
.footer-nav a:hover { color: var(--red); text-decoration: none; }
.footer-nav .sep { color: #3a4050; margin: 0 8px; }

.footer-disclaimer {
  color: #4a5568;
  font-size: 12px;
  max-width: 680px;
  margin: 10px auto;
  line-height: 1.6;
  font-family: 'Montserrat', sans-serif;
}
.footer-copy { color: #2e3441; font-size: 12px; font-family: 'Montserrat', sans-serif; margin-top: 6px; }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 768px) {
  .block { padding: 20px 16px; }
  .hero-block { padding: 26px 16px; }
  .verdict-grid { grid-template-columns: 1fr; gap: 14px; }
  .table-pro { font-size: 13px; }
  .table-pro th, .table-pro td { padding: 10px 10px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .table-pro { font-size: 12px; }
  .table-pro th, .table-pro td { padding: 8px 8px; }
  .btn-register { min-width: 180px; padding: 13px 20px; font-size: 14px; }
  h2::after { display: none; }
}
