:root {
  --bg-main: #0b0e14;
  --bg-card: #141a24;
  --bg-card-hover: #1c2432;
  --border-color: #222b3a;
  --accent-blue: #0066ff;
  --accent-blue-hover: #0052cc;
  --accent-gold: #ffb800;
  --accent-green: #00c853;
  --text-primary: #f0f4f8;
  --text-secondary: #8a99ad;
  --font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --max-width: 1140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background-color: rgba(11, 14, 20, 0.95);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 4px;
}

.logo img {
  width: auto;
  height: 40px;
  display: block;
}

.logo span {
  color: var(--accent-blue);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none !important;
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--border-color);
}

.btn-primary {
  background-color: var(--accent-blue);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-blue-hover);
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.btn-gold {
  background-color: var(--accent-gold);
  color: #000000;
}

.btn-gold:hover {
  background-color: #e6a600;
}

/* Hero Section */
.hero-section {
  padding: 48px 0;
  background: radial-gradient(
    circle at top right,
    rgba(0, 102, 255, 0.15),
    transparent 50%
  );
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

.hero-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-title span {
  color: var(--accent-blue);
}

.hero-description {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.hero-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
}

.hero-card-title {
  font-size: 14px;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.hero-bonus-val {
  font-size: 42px;
  font-weight: 900;
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: 8px;
}

.hero-bonus-sub {
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

/* Content Blocks */
.content-section {
  padding: 32px 0;
}

.section-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}

.text-block {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.text-block p {
  margin-bottom: 12px;
}

/* Table Design */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin: 24px 0;
  min-width: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 15px;
}

th,
td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
}

th {
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
  font-weight: 700;
}

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

td strong {
  color: var(--text-primary);
}

/* Игровое лобби: адаптивные карточки категорий */
.casino-lobby-shell {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(123, 92, 255, 0.22);
  border-radius: 24px;
  background:
    radial-gradient(circle at 0 0, rgba(91, 47, 255, 0.16), transparent 34%),
    radial-gradient(
      circle at 100% 100%,
      rgba(0, 183, 255, 0.1),
      transparent 32%
    ),
    #0b101a;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
}

.lobby-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.lobby-heading-row .section-title {
  margin: 5px 0 0;
}

.lobby-eyebrow {
  color: #9f8cff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.lobby-counter {
  flex: 0 0 auto;
  padding: 7px 11px;
  color: #c8d2e2;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.games-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.game-category {
  --game-accent: #7b5cff;
  --game-accent-rgb: 123, 92, 255;
  position: relative;
  overflow: hidden;
  background: #101622;
  border: 1px solid rgba(var(--game-accent-rgb), 0.34);
  border-radius: 18px;
  min-width: 0;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.game-category:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--game-accent-rgb), 0.78);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.4),
    0 0 26px rgba(var(--game-accent-rgb), 0.17);
}

.game-category--video {
  --game-accent: #ff3d9a;
  --game-accent-rgb: 255, 61, 154;
}
.game-category--jackpot {
  --game-accent: #ffba26;
  --game-accent-rgb: 255, 186, 38;
}
.game-category--table {
  --game-accent: #00d6a3;
  --game-accent-rgb: 0, 214, 163;
}
.game-category--live {
  --game-accent: #ef445f;
  --game-accent-rgb: 239, 68, 95;
}
.game-category--crash {
  --game-accent: #16b7ff;
  --game-accent-rgb: 22, 183, 255;
}

.game-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 138px;
  padding: 18px;
  overflow: hidden;
  isolation: isolate;
  background: #080d17;
}

.game-cover {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition:
    transform 400ms ease,
    filter 250ms ease;
}

.game-category:hover .game-cover {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.03);
}

.game-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(5, 8, 15, 0.05) 25%,
      rgba(5, 8, 15, 0.86) 100%
    ),
    linear-gradient(90deg, rgba(5, 8, 15, 0.48), transparent 64%);
}

.game-kicker {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.game-category-main {
  padding: 18px;
  min-width: 0;
}

.game-category h3 {
  margin: 0 0 7px;
  color: var(--text-primary);
  font-size: 19px;
  line-height: 1.3;
}

.game-category-purpose {
  min-height: 44px;
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}

.game-examples {
  display: flex;
  flex-wrap: wrap;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.game-examples li {
  position: relative;
  padding: 8px 10px 8px 24px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
  color: #d8dfeb;
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
  line-height: 1.25;
}

.game-examples li::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--game-accent);
  box-shadow: 0 0 9px rgba(var(--game-accent-rgb), 0.85);
}

.game-stats {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.rtp-badge,
.risk-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.rtp-badge {
  color: #8fffdc;
  background: rgba(3, 22, 25, 0.72);
  border: 1px solid rgba(70, 255, 203, 0.28);
}

.risk-badge {
  color: #ffe49b;
  background: rgba(28, 21, 7, 0.72);
  border: 1px solid rgba(255, 190, 51, 0.28);
}

/* Grids and Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.info-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.info-card-header {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.info-card-body {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Lists */
.styled-list {
  list-style: none;
  margin: 16px 0;
}

.styled-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.styled-list li::before {
  content: "•";
  position: absolute;
  left: 8px;
  top: 0;
  color: var(--accent-blue);
  font-size: 18px;
}

.num-list {
  list-style: none;
  counter-reset: item;
  margin: 16px 0;
}

.num-list li {
  counter-increment: item;
  position: relative;
  padding-left: 36px;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.num-list li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  background-color: rgba(0, 102, 255, 0.15);
  color: var(--accent-blue);
  font-weight: 700;
  font-size: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Callout Box */
.callout {
  background-color: rgba(0, 102, 255, 0.05);
  border-left: 4px solid var(--accent-blue);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
  color: var(--text-secondary);
}

/* FAQ Accordion */
.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: "+";
  font-size: 20px;
  color: var(--accent-blue);
}

.faq-item.active .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 20px 18px 20px;
  color: var(--text-secondary);
  font-size: 15px;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Footer */
.site-footer {
  background-color: #07090d;
  border-top: 1px solid var(--border-color);
  padding: 40px 0 24px 0;
  margin-top: 60px;
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h4 {
  color: var(--text-primary);
  font-size: 16px;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--text-secondary);
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.age-badge {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 700;
  color: #ff4d4d;
  border: 1px solid rgba(255, 77, 77, 0.2);
}

/* Responsive */
@media (max-width: 868px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 30px;
  }
  .header-actions .btn-secondary {
    display: none;
  }

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

@media (max-width: 620px) {
  .casino-lobby-shell {
    padding: 18px 14px;
    border-radius: 18px;
  }

  .lobby-heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .games-matrix {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .game-visual {
    height: 126px;
  }

  .game-category-purpose {
    min-height: 0;
  }
}
