:root {
  --primary: #d32f2f; /* main red */
  --secondary: #aa2e25; /* dark red */
  --accent: #f44336; /* brighter red for highlights */
  --dark: #0d0d0d; /* deepest background */
  --dark-alt: #181818; /* alternate dark section */
  --light: #ffffff;
  --text-light: #f0f0f0;
  --muted: #c9c9c9; /* improved contrast: lighter gray */
}

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

html {
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background: var(--dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

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

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

ul {
  list-style: none;
  padding-left: 1rem;
}
ul li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
}
ul li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 0;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0;
}

section {
  overflow-x: hidden;
}

.hero-grid,
.app-grid,
.steps-grid,
.bonus-grid,
.games-grid,
.markets-grid,
.faq-grid {
  max-width: 100%;
}

header {
  background: var(--dark-alt);
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.logo {
  z-index: 101;
  display: flex;
  align-items: center;
}
.logo-image {
  height: 50px;
  width: auto;
  max-width: 150px;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
}
.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: var(--light);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}
.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}
.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.nav-menu {
  display: flex;
  align-items: center;
}
.nav-menu ul {
  display: flex;
  gap: 1.5rem;
  padding-left: 0;
  margin: 0;
  list-style: none;
}
.nav-menu ul li {
  padding-left: 0;
  margin-bottom: 0;
}
.nav-menu ul li::before {
  display: none;
}
.nav-menu ul li a,
.nav-menu ul li span {
  color: var(--text-light);
  font-weight: 500;
  transition: color 0.3s ease;
  white-space: nowrap;
}
.nav-menu ul li a:hover,
.nav-menu ul li a:focus {
  color: var(--primary);
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.nav-menu ul li span.active {
  color: var(--primary);
  font-weight: 600;
  cursor: default;
}
.mobile-register {
  display: none;
}
.desktop-register {
  display: inline-block;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  background: var(--primary);
  color: var(--light);
  font-weight: 600;
  transition: background 0.3s ease;
  min-height: 44px; /* minimum touch target size */
  font-size: 1rem;
}
.btn:hover,
.btn:focus {
  background: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn-secondary {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-secondary:hover {
  background: var(--primary);
  color: var(--light);
}

.hero {
  background: var(--dark);
  padding: 4rem 0;
}
.hero-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}
.hero-content {
  flex: 1 1 45%;
}
.hero-content h1 {
  font-size: 2.5rem;
  color: var(--light);
  margin-bottom: 1rem;
}
.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
}
.hero-image {
  flex: 1 1 45%;
}
.hero-image img {
  width: 100%;
  border-radius: 10px;
}

.steps {
  background: var(--dark-alt);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.step-card {
  background: var(--dark);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.step-number {
  background: var(--primary);
  color: var(--light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-weight: 700;
}
.step-card h3 {
  margin-bottom: 0.5rem;
  color: var(--light);
}
.step-card p {
  color: var(--muted);
  font-size: 1rem;
}

.benefits {
  background: var(--dark);
}
.benefits h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 2rem;
  color: var(--light);
}
.benefits p {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1rem;
  color: var(--muted);
}

.about {
  background: var(--dark-alt);
  padding: 3rem 0;
}
.about h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--light);
}
.about h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 1.3rem;
}
.about p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
}
.about ul {
  margin-bottom: 1.5rem;
  padding-left: 0;
}
.about ul li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
}
.about ul li::before {
  content: '•';
  color: var(--primary);
  font-size: 1.2rem;
  position: absolute;
  left: 0;
  top: 0;
}
.about ul li p {
  margin-bottom: 0;
  color: var(--text-light);
}

.bonuses {
  background: var(--dark-alt);
}
.bonuses h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--light);
}
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.bonus-card {
  background: var(--dark);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.bonus-card h3 {
  color: var(--primary);
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}
.bonus-card p,
.bonus-card ul li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}
.bonus-card ul li strong {
  color: var(--text-light);
}

.reliability {
  background: var(--dark);
}
.reliability h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--light);
  font-size: 2rem;
}
.reliability p {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 1rem;
}

.sports {
  background: var(--dark-alt);
}
.sports h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--light);
  font-size: 2rem;
}
.sports h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}
.sports h4 {
  color: var(--primary);
  margin-bottom: 0.4rem;
  font-size: 1rem;
}
.sports p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1rem;
}
.sports ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}
.sports ol li {
  margin-bottom: 0.5rem;
}
.sports ul.columns {
  columns: 2;
  column-gap: 2rem;
  list-style: none;
  padding-left: 0;
}
.markets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.markets-grid h4 {
  margin-bottom: 0.3rem;
  color: var(--primary);
}
.markets-grid ul li {
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.casino-games {
  background: var(--dark);
}
.casino-games h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--light);
  font-size: 2rem;
}
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.game-category {
  background: var(--dark-alt);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.game-category h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.game-category p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.support {
  background: var(--dark-alt);
}
.support h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--light);
  font-size: 2rem;
}
.support p {
  max-width: 900px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1rem;
}

.payments {
  background: var(--dark);
}
.payments h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--light);
  font-size: 2rem;
}
.payments h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}
.payments p {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 1rem;
}
.payments ul li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.app {
  background: var(--dark-alt);
}
.app-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}
.app-text {
  flex: 1 1 50%;
}
.app-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--light);
}
.app-text p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}
.app-image {
  flex: 1 1 40%;
}
.app-image img {
  width: 100%;
  border-radius: 10px;
}

.faq {
  background: var(--dark);
}
.faq h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--light);
  font-size: 2rem;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.faq-item {
  background: var(--dark-alt);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.faq-item h4 {
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-size: 1.1rem;
}
.faq-item p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.5;
}

footer {
  background: var(--dark-alt);
  text-align: center;
  padding: 2rem 0;
  color: var(--muted);
  font-size: 1rem;
}
footer p {
  margin-bottom: 0.5rem;
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--light);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.back-to-top:hover,
.back-to-top:focus {
  background: var(--accent);
  transform: translateY(18px) scale(1.1);
  box-shadow: 0 6px 16px rgba(211, 47, 47, 0.4);
  outline: 2px solid var(--light);
  outline-offset: 2px;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

@media (min-width: 769px) {
  .mobile-menu-btn {
    display: none !important;
  }
  
  .nav-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: auto !important;
    max-width: none !important;
    display: flex !important;
    align-items: center !important;
  }
  
  .nav-menu ul {
    display: flex !important;
    flex-direction: row !important;
    gap: 1.5rem !important;
    margin-bottom: 0 !important;
    text-align: left !important;
  }
  
  .nav-menu ul li a {
    font-size: 1rem !important;
    font-weight: 500 !important;
    display: inline !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: none !important;
  }
  
  .mobile-register-item {
    display: none !important;
  }
  
  .mobile-register {
    display: none !important;
  }
  
  .desktop-register {
    display: inline-block !important;
  }
}

@media (max-width: 768px) {
  .container {
    width: 95%;
    padding: 1.5rem 0;
  }

  .mobile-menu-btn {
    display: flex !important;
  }
  
  .nav-menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    width: 280px !important;
    max-width: 90vw !important;
    background: var(--dark-alt) !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
    transition: all 0.3s ease !important;
    z-index: 1000 !important;
    padding: 1.5rem !important;
  }
  
  .nav-menu.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }
  
  .nav-menu ul {
    flex-direction: column !important;
    gap: 1rem !important;
    text-align: left !important;
    margin-bottom: 0 !important;
  }
  
  .nav-menu ul li a {
    font-size: 1rem !important;
    font-weight: 500 !important;
    display: block !important;
    padding: 0.5rem !important;
    border-radius: 5px !important;
    transition: background 0.3s ease !important;
  }
  
  .nav-menu ul li a:hover {
    background: var(--dark) !important;
    color: var(--primary) !important;
  }
  
  .mobile-register-item {
    margin-top: 1rem !important;
    padding-top: 1rem !important;
    border-top: 1px solid var(--dark) !important;
  }
  
  .mobile-register {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin-top: 0 !important;
  }
  
  .desktop-register {
    display: none !important;
  }

  .hero-content h1 {
    font-size: 2rem;
  }
  
  .benefits h2,
  .bonuses h2,
  .reliability h2,
  .sports h2,
  .casino-games h2,
  .support h2,
  .payments h2,
  .app-text h2,
  .faq h2,
  .about h2 {
    font-size: 1.5rem;
  }

  .about h3 {
    font-size: 1.2rem;
  }

  .about {
    padding: 2rem 0;
  }

  .hero-grid {
    flex-direction: column;
    text-align: center;
  }
  
  .app-grid {
    flex-direction: column;
    text-align: center;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .bonus-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .games-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .markets-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .sports ul.columns {
    columns: 1;
  }

  .step-card,
  .bonus-card,
  .game-category,
  .faq-item {
    padding: 1rem;
  }

  .btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }

  .back-to-top {
    bottom: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
  }

  .back-to-top svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .container {
    width: 95%;
    padding: 1rem 0;
  }
  
  .logo-image {
    height: 40px;
    max-width: 120px;
  }
  
  .hero-content h1 {
    font-size: 1.7rem;
  }
  
  .benefits h2,
  .bonuses h2,
  .reliability h2,
  .sports h2,
  .casino-games h2,
  .support h2,
  .payments h2,
  .app-text h2,
  .faq h2,
  .about h2 {
    font-size: 1.3rem;
  }

  .about h3 {
    font-size: 1.1rem;
  }

  .about {
    padding: 1.5rem 0;
  }
  
  .step-card,
  .bonus-card,
  .game-category,
  .faq-item {
    padding: 0.8rem;
  }

  .back-to-top {
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }

  .back-to-top svg {
    width: 16px;
    height: 16px;
  }
}