/* ========================================
   Riocasino-qsd.ru — Main Stylesheet
   Casino landing dark theme
   ======================================== */

/* === Skip Link === */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: 0 0 8px 8px;
  z-index: 200;
  font-weight: 700;
  font-size: 14px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* === Focus Styles === */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(29, 185, 84, 0.2);
}

.faq-q:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* === Reset & Base === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0f14;
  --bg2: #111920;
  --bg3: #182028;
  --accent: #1db954;
  --accent-hover: #15873d;
  --accent2: #f5a623;
  --gold: #d4af37;
  --gold-hover: #b8962e;
  --danger: #c0392b;
  --text: #e8e8e8;
  --text2: #a0a8b4;
  --border: #1e2a36;
  --radius: 12px;
  --radius-sm: 8px;
  --max-w: 1100px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent2);
}

/* === Layout === */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  line-height: 1.4;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 185, 84, 0.3);
  color: #fff;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-hover));
  color: #0a0f14;
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-hover), var(--gold));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
  color: #0a0f14;
}

/* === Header === */
.header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 16px;
  flex-wrap: wrap;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.header-logo span {
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
}

.age-badge {
  background: var(--danger);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* === Navigation === */
.header-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.header-nav a {
  color: var(--text2);
  font-size: 14px;
  font-weight: 500;
}

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

/* Mobile burger */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: all 0.3s;
}

/* === Hero === */
.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 15, 20, 0.4), rgba(10, 15, 20, 0.9));
}

.hero .wrap {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero h1 {
  font-size: clamp(24px, 5vw, 42px);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero h1 .highlight {
  color: var(--accent);
}

.hero-sub {
  font-size: 18px;
  color: var(--text2);
  margin-bottom: 28px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-bonus {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--bg3);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 18px 32px;
  margin-bottom: 28px;
}

.hero-bonus .num {
  font-size: 40px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.hero-bonus .label {
  text-align: left;
  font-size: 14px;
  color: var(--text2);
  line-height: 1.5;
}

.hero-cta {
  margin-top: 8px;
}

/* === Sections === */
section {
  padding: 64px 0;
}

section:nth-child(even) {
  background: var(--bg2);
}

.section-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  margin-bottom: 36px;
  text-align: center;
  line-height: 1.3;
}

.section-title .highlight {
  color: var(--accent);
}

.section-text {
  color: var(--text2);
  font-size: 15px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* === About === */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.about-card {
  background: var(--bg3);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  transition: border-color var(--transition);
}

.about-card:hover {
  border-color: var(--accent);
}

.about-card h3 {
  color: var(--gold);
  font-size: 16px;
  margin-bottom: 8px;
}

.about-card p {
  color: var(--text2);
  font-size: 14px;
}

/* === Bonuses === */
.bonus-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.bonus-card {
  background: var(--bg3);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform var(--transition), border-color var(--transition);
}

.bonus-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.bonus-card .pct {
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.bonus-card .sum {
  font-size: 16px;
  color: var(--gold);
  margin: 8px 0;
}

.bonus-card .desc {
  font-size: 14px;
  color: var(--text2);
}

.bonus-img {
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
}

.bonus-note {
  text-align: center;
  color: var(--text2);
  font-size: 14px;
  margin-top: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* === Games === */
.games-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.games-stat {
  text-align: center;
}

.games-stat .val {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
}

.games-stat .lbl {
  font-size: 14px;
  color: var(--text2);
}

.providers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}

.providers span {
  background: var(--bg3);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--text2);
  border: 1px solid var(--border);
  transition: border-color var(--transition), color var(--transition);
}

.providers span:hover {
  border-color: var(--accent);
  color: var(--text);
}

.games-img {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
}

/* === Registration === */
.reg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.reg-img {
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 350px;
  margin: 0 auto;
}

.reg-steps {
  list-style: none;
  counter-reset: step;
}

.reg-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 52px;
  margin-bottom: 24px;
}

.reg-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.reg-steps li h3 {
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--text);
}

.reg-steps li p {
  font-size: 14px;
  color: var(--text2);
}

/* === Payments === */
.pay-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pay-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  min-width: 560px;
}

.pay-table th,
.pay-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.pay-table th {
  background: var(--bg3);
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
}

.pay-table td {
  color: var(--text2);
}

.pay-table tr:hover td {
  background: rgba(29, 185, 84, 0.05);
}

/* === Mobile === */
.mobile-flex {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.mobile-flex > div {
  flex: 1;
  min-width: 280px;
}

.mobile-text {
  color: var(--text2);
  margin-bottom: 20px;
  font-size: 15px;
}

.mobile-features {
  list-style: none;
}

.mobile-features li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
  font-size: 15px;
  padding-left: 28px;
  position: relative;
}

.mobile-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* === FAQ === */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg3);
  border-radius: var(--radius);
  margin-bottom: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq-q {
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  gap: 12px;
}

.faq-q::after {
  content: "+";
  font-size: 22px;
  color: var(--accent);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-item.open .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
}

.faq-item.open .faq-a {
  max-height: 400px;
  padding: 0 24px 20px;
}

/* === Responsible Gambling Footer === */
.rg-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 44px 0;
  text-align: center;
}

.rg-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.rg-badges span {
  background: var(--danger);
  color: #fff;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

.rg-footer p {
  color: var(--text2);
  font-size: 13px;
  max-width: 700px;
  margin: 8px auto;
  line-height: 1.6;
}

.rg-footer .license {
  color: var(--gold);
  font-size: 12px;
  margin-top: 18px;
}

.rg-footer .copy {
  color: #555;
  font-size: 12px;
  margin-top: 12px;
}

/* === Responsive === */
@media (max-width: 768px) {
  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg2);
    flex-direction: column;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
  }

  .header-nav.active {
    display: flex;
  }

  .burger {
    display: block;
  }

  .reg-grid {
    grid-template-columns: 1fr;
  }

  .reg-img {
    order: -1;
  }

  .hero-bonus {
    flex-direction: column;
    text-align: center;
    padding: 16px 20px;
  }

  .hero-bonus .label {
    text-align: center;
  }

  .games-stats {
    gap: 20px;
  }

  .games-stat .val {
    font-size: 28px;
  }

  section {
    padding: 44px 0;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 22px;
  }

  .hero-sub {
    font-size: 15px;
  }

  .bonus-card .pct {
    font-size: 36px;
  }

  .btn {
    padding: 10px 22px;
    font-size: 14px;
  }
}
