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

:root {
  --color-bg: #0a0a14;
  --color-surface: #12121f;
  --color-surface2: #1a1a2e;
  --color-border: #2a2a45;
  --color-accent: #ff4d00;
  --color-accent2: #ff8c00;
  --color-gold: #f5c842;
  --color-text: #e8e8f0;
  --color-text-muted: #8888aa;
  --color-header-bg: #0d0d1a;
  --radius: 8px;
  --font: 'Georgia', 'Times New Roman', serif;
  --font-ui: 'Arial', 'Helvetica Neue', sans-serif;
  --max-width: 1100px;
  --transition: 0.2s ease;
}

html {
  scroll-behavior: auto;
}

body {
  font-family: var(--font-ui);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-accent2);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

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

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

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-link img {
  height: 42px;
  width: auto;
}

.logo-placeholder {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-placeholder .rocket-icon {
  font-size: 28px;
}

.logo-placeholder .logo-text {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  letter-spacing: -0.5px;
}

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

/* Language selector */
.lang-selector {
  margin-left: auto;
  position: relative;
}

.lang-btn {
  background: var(--color-surface2);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 7px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-family: var(--font-ui);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background var(--transition);
  white-space: nowrap;
}

.lang-btn:hover {
  background: #252540;
}

.lang-btn .flag {
  font-size: 16px;
}

.lang-btn .chevron {
  font-size: 10px;
  color: var(--color-text-muted);
  transition: transform var(--transition);
}

.lang-selector.open .chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--color-surface2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  min-width: 180px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 200;
}

.lang-selector.open .lang-dropdown {
  display: block;
}

.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--color-text);
  font-size: 14px;
  text-decoration: none;
  transition: background var(--transition);
}

.lang-dropdown a:hover {
  background: #252540;
}

.lang-dropdown a.active {
  background: #1e1e38;
  color: var(--color-gold);
}

.lang-dropdown .flag {
  font-size: 18px;
}

/* Header buttons */
.header-btns {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-login {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 8px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-ui);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: border-color var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn-login:hover {
  border-color: var(--color-accent2);
  color: var(--color-accent2);
  text-decoration: none;
}

.btn-register {
  background: var(--color-accent);
  border: 1px solid var(--color-accent);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-ui);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background var(--transition);
  white-space: nowrap;
}

.btn-register:hover {
  background: #e04400;
  text-decoration: none;
}

/* ===== MAIN CONTENT ===== */
.site-main {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: 40px 20px;
}

/* ===== HERO / BONUS BLOCK ===== */
.hero-bonus {
  border: 2px solid var(--color-accent);
  border-radius: 14px;
  background: linear-gradient(135deg, #1a0a00 0%, #200a1a 40%, #0a0a25 100%);
  padding: 48px 40px;
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}

.hero-bonus::before {
  content: '';
  position: absolute;
  top: -60px; left: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,77,0,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-bonus::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(245,200,66,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-bonus h1 {
  font-family: var(--font-ui);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.bonus-subtitle {
  font-size: clamp(16px, 2.5vw, 22px);
  color: var(--color-gold);
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.bonus-amount {
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 900;
  color: var(--color-gold);
  font-family: var(--font-ui);
  line-height: 1;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
  text-shadow: 0 0 30px rgba(245,200,66,0.4);
}

.btn-bonus {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent2) 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  font-family: var(--font-ui);
  padding: 14px 36px;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 20px rgba(255,77,0,0.4);
  transition: box-shadow var(--transition), transform var(--transition);
}

.btn-bonus:hover {
  box-shadow: 0 6px 28px rgba(255,77,0,0.6);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

/* ===== CONTENT AREA ===== */
.content-body {
  margin-bottom: 48px;
}

.content-body h2 {
  font-family: var(--font-ui);
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.content-body h3 {
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 700;
  color: #ddd;
  margin: 24px 0 10px;
}

.content-body p {
  color: var(--color-text);
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.75;
}

.content-body ul,
.content-body ol {
  margin: 0 0 20px 24px;
  color: var(--color-text);
}

.content-body li {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.65;
}

.content-body ul li::marker {
  color: var(--color-accent);
}

/* Table */
.content-body table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  border-radius: var(--radius);
}

.content-body thead {
  background: var(--color-surface2);
}

.content-body th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 700;
  color: var(--color-gold);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--color-border);
}

.content-body td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

.content-body tbody tr:nth-child(even) td {
  background: rgba(255,255,255,0.02);
}

.content-body tbody tr:last-child td {
  border-bottom: none;
}

.content-body table {
  border: 1px solid var(--color-border);
}

/* Info box */
.info-box {
  background: var(--color-surface2);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14px;
  color: var(--color-text-muted);
}

.info-box strong {
  color: var(--color-text);
}

/* ===== AUTHOR BLOCK ===== */
.author-block {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 48px;
}

.author-avatar {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--color-border);
  background: var(--color-surface2);
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: linear-gradient(135deg, #1a1a35, #252545);
}

.author-info {
  flex: 1;
}

.author-name {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.author-role {
  font-size: 13px;
  color: var(--color-accent2);
  margin-bottom: 12px;
  font-weight: 600;
}

.author-bio {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-header-bg);
  border-top: 1px solid var(--color-border);
  padding: 28px 20px;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-legal {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 800px;
  margin: 0 auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-inner {
    height: auto;
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .logo-placeholder .logo-text {
    font-size: 17px;
  }

  .header-btns {
    order: 3;
    width: 100%;
    justify-content: stretch;
  }

  .btn-login,
  .btn-register {
    flex: 1;
    justify-content: center;
    padding: 9px 10px;
    font-size: 13px;
  }

  .lang-selector {
    margin-left: 0;
    order: 2;
  }

  .hero-bonus {
    padding: 32px 20px;
  }

  .site-main {
    padding: 24px 16px;
  }

  .author-block {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }

  .content-body table {
    font-size: 13px;
  }

  .content-body th,
  .content-body td {
    padding: 9px 10px;
  }

  /* Horizontal scroll for tables on small screens — handled by table itself */
}

@media (max-width: 480px) {
  .btn-bonus {
    font-size: 15px;
    padding: 12px 24px;
  }

  .content-body h2 {
    font-size: 20px;
  }

  .header-btns .btn-login {
    display: none;
  }
}
/* ===== SLOTS GRID ===== */
.slots-section {
  margin: 32px 0;
}

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

.slot-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.slot-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  background: var(--color-surface2);
}

.slot-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slot-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.slot-card:hover .slot-overlay {
  opacity: 1;
}

.slot-btn-money {
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 9px 0;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-ui);
  cursor: pointer;
  text-decoration: none;
  display: block;
  width: 78%;
  text-align: center;
  transition: background var(--transition);
}

.slot-btn-money:hover {
  background: #e04400;
  text-decoration: none;
}

.slot-btn-demo {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 6px;
  padding: 8px 0;
  font-size: 13px;
  font-family: var(--font-ui);
  cursor: pointer;
  text-decoration: none;
  display: block;
  width: 78%;
  text-align: center;
  transition: background var(--transition);
}

.slot-btn-demo:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.slot-info {
  padding: 10px 14px 12px;
}

.slot-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slot-provider {
  font-size: 12px;
  color: var(--color-text-muted);
  margin: 0;
}

/* Responsive: 4 колонки → 2 колонки на мобильном */
@media (max-width: 768px) {
  .slots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}