:root {
  --bg: #031004;
  --bg-deep: #020b03;
  --surface: #0b1810;
  --surface-2: #122414;
  --surface-3: #192b1b;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --muted: #a7a7a7;
  --green: #3ba745;
  --green-dark: #2f8637;
  --gold: #ffd747;
  --gold-soft: #edc97f;
  --red: #f23731;
  --radius: 12px;
  --radius-lg: 16px;
  --page: 1240px;
  --header-h: 68px;
  --nav-h: 54px;
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--nav-h) + 20px);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 86% 6%, rgba(59, 167, 69, 0.13), transparent 29rem),
    linear-gradient(180deg, #041106 0, var(--bg) 55%, var(--bg-deep) 100%);
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.container {
  width: min(calc(100% - 32px), var(--page));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(14, 33, 22, 0.82);
  backdrop-filter: blur(16px);
}

.header-main {
  height: var(--header-h);
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 215, 71, 0.35);
  border-radius: 50%;
  color: var(--gold);
  background: #0f2513;
  box-shadow: inset 0 0 0 5px rgba(59, 167, 69, 0.09);
}

.brand-mark svg {
  width: 21px;
  height: 21px;
}

.header-search {
  position: relative;
  justify-self: center;
  width: min(100%, 440px);
}

.header-search input,
.lobby-search input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  padding: 0 44px 0 16px;
}

.header-search input:focus,
.lobby-search input:focus {
  border-color: rgba(59, 167, 69, 0.85);
  box-shadow: 0 0 0 3px rgba(59, 167, 69, 0.14);
}

.search-icon {
  position: absolute;
  top: 50%;
  right: 15px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.header-actions {
  display: flex;
  gap: 10px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: var(--green);
}

.button-primary:hover {
  background: var(--green-dark);
}

.button-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.button-outline {
  border: 1px solid rgba(255, 215, 71, 0.38);
  color: var(--gold);
  background: transparent;
}

.button-small {
  min-height: 38px;
  padding-inline: 16px;
  font-size: 14px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.menu-toggle span {
  width: 19px;
  height: 2px;
  flex: 0 0 auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle {
  flex-direction: column;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.primary-nav {
  height: var(--nav-h);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.primary-nav .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.mobile-nav-actions {
  display: none;
}

.primary-nav .container::-webkit-scrollbar {
  display: none;
}

.nav-link {
  height: 36px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link svg {
  width: 17px;
  height: 17px;
}

.page-shell {
  padding-top: calc(var(--header-h) + var(--nav-h));
}

.verification-bar {
  border-bottom: 1px solid var(--line);
  color: #d4ded5;
  background: #08170b;
  font-size: 13px;
}

.verification-bar .container {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.verification-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(255, 215, 71, 0.1);
}

.text-link {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(255, 215, 71, 0.35);
  text-underline-offset: 3px;
}

.hero {
  padding: 18px 0 0;
}

.hero-card {
  position: relative;
  min-height: 440px;
  display: grid;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #061208;
  box-shadow: var(--shadow);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 16, 4, 1) 4%, rgba(3, 16, 4, 0.93) 40%, rgba(3, 16, 4, 0.18) 70%, rgba(3, 16, 4, 0.08)),
    url("images/riobet-hero.webp") center / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(620px, 58%);
  padding: 52px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 7px;
  font-size: 18px;
  line-height: 1.25;
}

.hero-lead {
  max-width: 570px;
  margin-bottom: 24px;
  color: #d1d8d2;
  font-size: 17px;
}

.hero-offer {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 215, 71, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 215, 71, 0.06);
}

.hero-offer strong {
  color: var(--gold);
}

.hero-offer span {
  color: #c7cec8;
  font-size: 13px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.facts {
  padding: 16px 0 2px;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.fact {
  min-height: 88px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.fact > span:last-child {
  min-width: 0;
}

.fact-icon,
.section-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--green);
  background: rgba(59, 167, 69, 0.12);
}

.fact-icon svg,
.section-icon svg {
  width: 21px;
  height: 21px;
}

.fact-label {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 12px;
}

.fact-value {
  display: block;
  font-size: 14px;
  font-weight: 750;
}

.section {
  padding: 66px 0;
}

.section-tight {
  padding: 46px 0;
}

.section-surface {
  border-block: 1px solid var(--line);
  background: rgba(11, 24, 16, 0.72);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-kicker {
  margin-bottom: 7px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-copy {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
}

.section-action {
  flex: 0 0 auto;
}

.lobby-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.lobby-search {
  position: relative;
  max-width: 420px;
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  min-height: 40px;
  flex: 0 0 auto;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 50px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.chip:hover,
.chip.is-active {
  border-color: rgba(59, 167, 69, 0.42);
  color: #fff;
  background: rgba(59, 167, 69, 0.16);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.game-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 167, 69, 0.5);
}

.game-card[hidden] {
  display: none;
}

.game-art {
  position: relative;
  aspect-ratio: 1.5;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.game-art::before,
.game-art::after {
  content: "";
  position: absolute;
  z-index: -1;
}

.game-art::before {
  display: none;
}

.game-art::after {
  inset: auto 0 0;
  z-index: 1;
  height: 48%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.52), transparent);
}

.game-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.game-card:hover .game-cover {
  transform: scale(1.035);
}

.game-symbol {
  width: 78px;
  height: 78px;
  color: #fff;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.32));
}

.theme-hot { background: radial-gradient(circle at 50% 38%, #ff9b2f 0, #a62918 42%, #220909 100%); }
.theme-fruit { background: radial-gradient(circle at 58% 34%, #d8ff4b 0, #377d1c 42%, #071b09 100%); }
.theme-streak { background: radial-gradient(circle at 45% 36%, #ffef80 0, #8f6514 42%, #1a1002 100%); }
.theme-coins { background: radial-gradient(circle at 55% 30%, #68f0b0 0, #176d51 42%, #061613 100%); }
.theme-fortune { background: radial-gradient(circle at 48% 28%, #ffe083 0, #8c3b17 44%, #1d0803 100%); }
.theme-bandit { background: radial-gradient(circle at 58% 34%, #84deff 0, #215574 44%, #07101a 100%); }
.theme-train { background: radial-gradient(circle at 55% 32%, #ff786e 0, #742138 44%, #16050d 100%); }
.theme-aztec { background: radial-gradient(circle at 50% 32%, #ffe47d 0, #447b3a 44%, #09180b 100%); }
.theme-shark { background: radial-gradient(circle at 50% 32%, #75dfff 0, #185474 44%, #06121b 100%); }
.theme-dog { background: radial-gradient(circle at 50% 32%, #ffd97e 0, #73451f 44%, #160d06 100%); }
.theme-nova { background: radial-gradient(circle at 50% 32%, #fd7eff 0, #553188 44%, #100724 100%); }
.theme-anubis { background: radial-gradient(circle at 50% 32%, #f5d577 0, #735520 44%, #171005 100%); }

.game-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 5px 8px;
  border-radius: 6px;
  color: #fff;
  background: var(--red);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.game-card-body {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
}

.game-title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 750;
}

.game-category {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.play-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
}

.play-icon svg {
  width: 15px;
  height: 15px;
  margin-left: 2px;
}

.lobby-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.bonus-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 14px;
}

.bonus-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.bonus-card-primary {
  border-color: rgba(255, 215, 71, 0.24);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 215, 71, 0.12), transparent 44%),
    var(--surface-2);
}

.bonus-type {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.bonus-value {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.bonus-description {
  margin-bottom: 20px;
  color: var(--muted);
}

.bonus-card .button {
  align-self: flex-start;
  margin-top: auto;
}

.terms-list {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.terms-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.terms-list strong {
  color: #fff;
  text-align: right;
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  align-items: start;
}

.split > * {
  min-width: 0;
}

.section-copy + .hero-actions {
  margin-top: 26px;
}

.steps {
  display: grid;
  gap: 10px;
}

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.step-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gold);
  background: rgba(255, 215, 71, 0.09);
  font-weight: 850;
}

.step p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.panel-accent {
  border-color: rgba(59, 167, 69, 0.32);
  background:
    linear-gradient(145deg, rgba(59, 167, 69, 0.1), transparent 54%),
    var(--surface);
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0;
  padding: 14px 0;
  border-block: 1px solid var(--line);
}

.status-label {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.status-value {
  display: block;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 750;
}

.status-row > span:first-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.payment-card {
  min-height: 155px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.payment-card svg {
  width: 31px;
  height: 31px;
  margin-bottom: 24px;
  color: var(--green);
}

.payment-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.device-card {
  position: relative;
  min-height: 380px;
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  align-items: center;
  gap: 30px;
  overflow: hidden;
  padding: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}

.device-card::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -110px;
  top: -150px;
  border: 60px solid rgba(59, 167, 69, 0.08);
  border-radius: 50%;
}

.phone {
  position: relative;
  z-index: 1;
  width: 230px;
  height: 390px;
  justify-self: center;
  overflow: hidden;
  border: 7px solid #26382a;
  border-radius: 35px;
  background: #061208;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.44);
  transform: rotate(5deg) translateY(34px);
}

.phone::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 72px;
  height: 18px;
  border-radius: 20px;
  background: #020702;
  transform: translateX(-50%);
}

.phone-screen {
  height: 100%;
  padding: 45px 12px 14px;
  background:
    radial-gradient(circle at 70% 10%, rgba(59, 167, 69, 0.28), transparent 150px),
    #071509;
}

.phone-promo {
  height: 100px;
  margin-bottom: 12px;
  display: grid;
  align-content: end;
  padding: 13px;
  border-radius: 14px;
  background: linear-gradient(130deg, #153f1a, #071208 62%);
}

.phone-promo strong {
  color: var(--gold);
  font-size: 14px;
}

.phone-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

.phone-game {
  aspect-ratio: 1.25;
  border-radius: 9px;
  background: var(--surface-3);
}

.phone-game:nth-child(2n) { background: #24431d; }
.phone-game:nth-child(3n) { background: #5e3219; }

.checks {
  margin: 22px 0 26px;
  padding: 0;
  list-style: none;
}

.checks li {
  display: flex;
  gap: 10px;
  margin: 10px 0;
  color: #d3dbd4;
}

.checks svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 4px;
  color: var(--green);
}

.editorial {
  max-width: 930px;
}

.editorial p,
.editorial li {
  color: #c0c8c1;
}

.editorial h2 {
  margin-top: 38px;
}

.editorial h2:first-child {
  margin-top: 0;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 0.42fr;
  gap: 30px;
  align-items: start;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + var(--nav-h) + 24px);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.toc strong {
  display: block;
  margin-bottom: 12px;
}

.toc a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 13px;
}

.toc a:hover {
  color: var(--gold);
}

.faq-list {
  display: grid;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.faq-item summary {
  position: relative;
  padding: 18px 52px 18px 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 750;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: rgba(59, 167, 69, 0.12);
  transform: translateY(-50%);
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-answer {
  padding: 0 20px 18px;
  color: var(--muted);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.page-hero {
  padding: 52px 0 24px;
}

.page-hero-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 94% 20%, rgba(59, 167, 69, 0.18), transparent 280px),
    var(--surface);
}

.page-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 52px);
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  margin-bottom: 0;
  color: #c8d0c9;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.info-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.info-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.notice {
  padding: 16px 18px;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: #d5ddd6;
  background: rgba(255, 215, 71, 0.07);
}

.site-footer {
  padding: 50px 0 88px;
  border-top: 1px solid var(--line);
  background: #020a03;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 0.7fr);
  gap: 40px;
}

.footer-brand p {
  max-width: 390px;
  color: var(--muted);
  font-size: 13px;
}

.footer-column strong {
  display: block;
  margin-bottom: 13px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-column a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-column a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: #7e897f;
  font-size: 12px;
}

.age-badge {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(242, 55, 49, 0.45);
  border-radius: 50%;
  color: #fff;
  background: rgba(242, 55, 49, 0.1);
  font-weight: 850;
}

.mobile-cta {
  display: none;
}

.empty-result {
  grid-column: 1 / -1;
  display: none;
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.empty-result.is-visible {
  display: block;
}

.noindex-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.noindex-card {
  width: min(100%, 560px);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
}

.noindex-card .brand {
  justify-content: center;
  margin-bottom: 24px;
}

@media (max-width: 1040px) {
  .header-main {
    grid-template-columns: auto 1fr auto;
  }

  .header-search {
    display: none;
  }

  .facts-grid,
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .bonus-card-primary {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: 1.2fr repeat(2, 0.8fr);
  }

  .footer-column:last-child {
    grid-column: 2;
  }
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  :root {
    --header-h: 62px;
    --nav-h: 0px;
  }

  html {
    scroll-padding-top: 80px;
  }

  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .header-main {
    height: var(--header-h);
    grid-template-columns: auto 1fr auto;
    gap: 10px;
  }

  .brand {
    font-size: 20px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-actions .button {
    display: none;
  }

  .header-actions .menu-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    inset: 100% 0 auto;
    height: calc(100dvh - var(--header-h));
    visibility: hidden;
    opacity: 0;
    border-top: 1px solid var(--line);
    background: #031004;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.42);
    transition: opacity 0.2s ease, visibility 0.2s ease;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .primary-nav.is-open {
    visibility: visible;
    opacity: 1;
  }

  .primary-nav .container {
    height: auto;
    min-height: 100%;
    align-content: start;
    display: grid;
    gap: 5px;
    padding: 18px 0;
    overflow-y: auto;
  }

  .mobile-nav-actions {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 8px;
    margin-top: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }

  .mobile-nav-actions .button {
    min-height: 48px;
  }

  .nav-link {
    height: 46px;
    width: 100%;
    font-size: 15px;
  }

  .verification-bar .container {
    min-height: 44px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding-block: 6px;
  }

  .verification-bar .verification-item:last-child {
    display: none;
  }

  .hero {
    padding-top: 12px;
  }

  .hero-card {
    min-height: 580px;
    align-items: end;
  }

  .hero-card::before {
    background:
      linear-gradient(0deg, rgba(3, 16, 4, 1) 12%, rgba(3, 16, 4, 0.88) 48%, rgba(3, 16, 4, 0.16) 100%),
      url("images/riobet-hero.webp") 68% top / auto 68% no-repeat;
  }

  .hero-content {
    width: 100%;
    padding: 28px 22px;
  }

  h1 {
    font-size: clamp(34px, 11vw, 48px);
  }

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

  .facts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fact {
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
  }

  .section {
    padding: 48px 0;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
    margin-bottom: 20px;
  }

  .lobby-toolbar {
    grid-template-columns: 1fr;
  }

  .lobby-search {
    max-width: none;
  }

  .chips {
    padding-right: 8px;
    scroll-padding-inline: 0;
    scroll-snap-type: x proximity;
  }

  .chip {
    min-height: 44px;
    scroll-snap-align: start;
  }

  .lobby-search input {
    height: 48px;
  }

  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .game-card-body {
    padding: 10px;
  }

  .play-icon {
    width: 30px;
    height: 30px;
  }

  .bonus-grid,
  .split,
  .device-card,
  .editorial-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .bonus-card-primary {
    grid-column: auto;
  }

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

  .device-card {
    padding: 28px 22px;
  }

  .phone {
    order: -1;
    width: 205px;
    height: 350px;
    transform: rotate(4deg) translateY(10px);
  }

  .toc {
    display: none;
  }

  .page-hero {
    padding-top: 28px;
  }

  .page-hero-card {
    grid-template-columns: 1fr;
    padding: 26px 22px;
  }

  .page-hero-card .button {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 18px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-column:last-child {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .mobile-cta {
    position: fixed;
    z-index: 120;
    inset: auto 0 0;
    min-height: 68px;
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(3, 16, 4, 0.94);
    backdrop-filter: blur(16px);
  }

  .mobile-cta .button {
    min-height: 48px;
  }

  body.menu-open .mobile-cta {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(calc(100% - 24px), var(--page));
  }

  .brand-mark {
    display: none;
  }

  .hero-content {
    padding-inline: 18px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-offer {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .fact {
    min-height: 76px;
    padding: 14px 16px;
  }

  .game-art {
    aspect-ratio: 1.34;
  }

  .game-symbol {
    width: 58px;
    height: 58px;
  }

  .game-title {
    font-size: 13px;
  }

  .game-card-body {
    min-height: 58px;
  }

  .bonus-card,
  .panel,
  .info-card {
    padding: 20px;
  }

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

  .footer-brand,
  .footer-column:last-child {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
