/* ========================================
   Riocasino12.ru — Main Stylesheet
   Casino landing dark theme (variant 2)
   ======================================== */

/* === 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(0, 194, 111, 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: #080c12;
  --bg2: #0e151e;
  --bg3: #151d28;
  --accent: #00c26f;
  --accent-hover: #00a35c;
  --accent2: #e8a020;
  --gold: #c9a227;
  --gold-hover: #a88820;
  --danger: #b83228;
  --text: #eaeaea;
  --text2: #94a0b0;
  --border: #1a2535;
  --radius: 10px;
  --radius-sm: 6px;
  --max-w: 1080px;
  --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.75;
  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: 13px 30px;
  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-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
}

.btn-accent:hover {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 194, 111, 0.25);
  color: #fff;
}

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

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-hover), var(--gold));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.25);
  color: #080c12;
}

/* === 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: 10px;
  padding-bottom: 10px;
  gap: 14px;
  flex-wrap: wrap;
}

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

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

.header-logo .brand {
  font-size: 22px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 1px;
}

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

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

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

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

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

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

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

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

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

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 12, 18, 0.5) 0%, rgba(8, 12, 18, 0.92) 100%);
}

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

.hero h1 {
  font-size: clamp(22px, 4.5vw, 40px);
  font-weight: 800;
  margin-bottom: 18px;
  line-height: 1.25;
}

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

.hero-desc {
  font-size: 17px;
  color: var(--text2);
  margin-bottom: 30px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

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

.hero-badge {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 24px;
  text-align: center;
}

.hero-badge .val {
  font-size: 28px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.hero-badge .lbl {
  font-size: 12px;
  color: var(--text2);
  margin-top: 4px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

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

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

.s-title {
  font-size: clamp(20px, 3.8vw, 30px);
  font-weight: 700;
  margin-bottom: 28px;
  text-align: center;
  line-height: 1.3;
}

.s-title .hl {
  color: var(--accent);
}

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

.s-subtitle {
  text-align: center;
  margin-top: 36px;
  margin-bottom: 16px;
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
}

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

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

.card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

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

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

/* === Registration steps === */
.reg-cols {
  display: grid;
  grid-template-columns: minmax(0, 340px) 1fr;
  gap: 36px;
  align-items: start;
}

.reg-img {
  border-radius: var(--radius);
  overflow: hidden;
}

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

.steps li {
  counter-increment: s;
  position: relative;
  padding-left: 50px;
  margin-bottom: 22px;
}

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

.steps li strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--text);
}

.steps li span {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
}

/* === Bonus table === */
.b-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

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

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

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

.b-table tr:hover td {
  background: rgba(0, 194, 111, 0.04);
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* === Stats row === */
.stats {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.stat {
  text-align: center;
}

.stat .v {
  font-size: 34px;
  font-weight: 800;
  color: var(--accent);
}

.stat .l {
  font-size: 13px;
  color: var(--text2);
}

/* === Providers === */
.prov-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.prov-list span {
  background: var(--bg3);
  padding: 7px 14px;
  border-radius: 18px;
  font-size: 12px;
  color: var(--text2);
  border: 1px solid var(--border);
  transition: border-color var(--transition);
}

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

/* === Image block === */
.img-block {
  max-width: 860px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
}

/* === Features list === */
.feat-list {
  list-style: none;
  max-width: 700px;
  margin: 0 auto;
}

.feat-list li {
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
  font-size: 15px;
  padding-left: 26px;
  position: relative;
}

.feat-list li::before {
  content: "\2714";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

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

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

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

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

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

.faq-a {
  padding: 0 22px;
  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-el.open .faq-a {
  max-height: 500px;
  padding: 0 22px 18px;
}

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

.rg-marks {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.rg-marks span {
  background: var(--danger);
  color: #fff;
  padding: 5px 14px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
}

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

.rg-footer .lic {
  color: var(--gold);
  font-size: 11px;
  margin-top: 16px;
}

.rg-footer .cr {
  color: #444;
  font-size: 11px;
  margin-top: 10px;
}

/* === CTA center === */
.cta-center {
  text-align: center;
  margin-top: 28px;
}

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

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

  .burger {
    display: block;
  }

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

  .reg-img {
    max-width: 300px;
    margin: 0 auto;
    order: -1;
  }

  .hero-badges {
    gap: 12px;
  }

  .hero-badge {
    padding: 10px 16px;
  }

  .hero-badge .val {
    font-size: 22px;
  }

  .stats {
    gap: 18px;
  }

  .stat .v {
    font-size: 26px;
  }

  section {
    padding: 44px 0;
  }
}

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

  .hero-desc {
    font-size: 14px;
  }

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