* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  background-color: #121B2E;
  color: #FFFFFF;
}

.site-header {
  background: rgba(11, 15, 26, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 0 12px 12px;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.05), 0 4px 12px rgba(0, 0, 0, 0.4);
  padding: 1rem 2rem;
}

.header-container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
}

.logo img {
  height: 44px;
  max-height: 50px;
  object-fit: contain;
}

/* --- Навигация как ненумерованный список --- */
.nav-menu ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background 0.3s;
}

.nav-menu ul li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.auth-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  background-color: #007BFF;
  color: #fff;
  border-radius: 8px;
  padding: 0.6rem 1.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 123, 255, 0.4);
  text-decoration: none;
}

.btn:hover {
  background-color: #0056b3;
  box-shadow: 0 2px 12px rgba(0, 123, 255, 0.6);
}

.burger {
  display: none;
  width: 30px;
  height: 20px;
  position: relative;
  cursor: pointer;
  z-index: 1001;
}

.burger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 2px;
  transition: 0.3s ease;
}

.burger span:nth-child(1) {
  top: 0;
}
.burger span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}
.burger span:nth-child(3) {
  bottom: 0;
}

.burger.open span:nth-child(1) {
  transform: rotate(45deg);
  top: 50%;
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: rotate(-45deg);
  top: 50%;
}

/* --- Мобильная навигация как список --- */
.mobile-nav {
  display: none;
  background-color: rgba(11, 15, 26, 0.95);
  padding: 1rem;
  animation: slideDown 0.3s ease-out;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav ul li a {
  display: block;
  padding: 1rem 0;
  color: white;
  text-decoration: none;
  border-bottom: 1px solid #333;
  transition: background 0.3s;
}

.mobile-nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-nav.open {
  display: flex;
  flex-direction: column;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .burger {
    display: block;
  }

  .nav-menu {
    display: none;
  }

  .header-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "burger logo empty"
      "auth auth auth";
    align-items: center;
    row-gap: 0.5rem;
    padding: 0.1rem;
  }

  .logo {
    grid-area: logo;
    justify-self: center;
    margin-right: 25px;
  }

  .burger {
    grid-area: burger;
    justify-self: start;
  }

  .auth-buttons {
    grid-area: auth;
    display: flex;
    justify-content: center;
    gap: 1rem;
    width: 100%;
  }

  .auth-buttons .btn {
    flex: 1;
    max-width: 160px;
    text-align: center;
  }

  .mobile-nav ul li a {
    text-align: center;
  }
}

.banner-slider {
  width: 100%;
  max-height: 420px;
  overflow: hidden;
  position: relative;
}

.slides-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.slide {
  width: 100vw;
  flex-shrink: 0;
  position: relative;
  background-size: cover;
  background-position: center;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 5%;
  padding-right: 5%;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 1;
}

.slide-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  color: #fff;
  padding: 1rem 2rem;
  max-width: 480px;
  width: 100%;
  transform: translateY(-10%);
}

.slide-content span {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: #007BFF;
  margin-bottom: 0.5rem;
}

.slide-content p {
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.cta-btn {
  padding: 0.6rem 1.4rem;
  background-color: #00C853;
  border-radius: 6px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: background 0.3s ease;
}

.cta-btn:hover {
  background-color: #009d3a;
}

.dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 3;
}

.dots button {
  width: 12px;
  height: 12px;
  background: #fff;
  opacity: 0.4;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: opacity 0.3s;
}

.dots button.active {
  opacity: 1;
}

@media (max-width: 768px) {
  .slide {
    justify-content: flex-start;
    text-align: left;
    padding: 0 0.1rem;
    height: 320px;
  }

  .slide-content {
    align-items: flex-start;
    text-align: left;
    transform: translateY(-5%);
  }

  .slide-content span {
    font-size: 1.1rem;
  }

  .slide-content p {
    font-size: 0.9rem;
  }

  .cta-btn {
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
  }

  .banner-slider {
    max-height: 320px;
  }

  .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1;
}
}

.games-promo-section {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  padding: 1rem;
}

.games-block,
.poker-block {
  background: #1a1f2b;
  border-radius: 12px;
  padding: 1.5rem;
  width: 50%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.section-header span {
  font-size: 1.25rem;
  font-weight: 700;
}

.more-link {
  color: #007BFF;
  font-size: 0.9rem;
  text-decoration: none;
}

.games-carousel {
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  display: flex;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.games-carousel::-webkit-scrollbar {
  height: 6px;
}

.games-carousel::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 3px;
}

.game-card {
  flex: 0 0 auto;
  width: 130px;
  scroll-snap-align: start;
}

.card-image {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  transition: 0.3s;
}

@media (hover: hover) and (pointer: fine) {
  .card-image:hover .card-overlay {
    opacity: 1;
  }

  .card-buttons {
    display: none;
  }
}

.game-btn {
  background-color: #007BFF;
  color: #fff;
  text-decoration: none;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
  transition: 0.2s;
}

.game-btn:hover {
  background-color: #006ae6;
}

.card-buttons {
  margin-top: 0.5rem;
  display: none;
  gap: 0.5rem;
  justify-content: center;
}

.poker-block {
  background-image: url("/assets/img/ban4.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 1.5rem;
  border-radius: 12px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.poker-block span {
  font-size: 1.3rem;
  font-weight: 700;
  color: #A259FF;
  margin-bottom: 0.5rem;
  display: block;
}

.poker-block p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.poker-block .cta-btn {
  background-color: #007BFF;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1rem;
  width: auto;
  max-width: 100%;
  white-space: nowrap;
}

.poker-block img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

/* Мобилка */
@media (max-width: 768px) {
  .games-promo-section {
    flex-direction: column;
  } 

  .games-block,
  .poker-block {
    width: 100%;
  }

  .section-header {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .section-header span {
    font-size: 0.85rem;
  }

  . .more-link {
    font-size: 0.85rem;
  }
  .card-buttons {
    display: flex;
  }

  .card-overlay {
    display: none;
  }

  .game-btn {
    font-size: 0.75rem;
    padding: 0.35rem 0.8rem;
  }
}

.content {
  width: 100%;
  background-color: #1E2533;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  padding: 2rem;
  color: #E0E0E0;
  box-sizing: border-box;
  margin-bottom: 1rem;
}

.content h1 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  color: #00C853;
  border-bottom: 2px solid rgba(0, 200, 83, 0.5);
  padding-bottom: 0.5rem;
  text-align: center;
}

.content h2 {
  font-size: 1.75rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #007BFF;
  border-left: 4px solid rgba(0, 123, 255, 0.7);
  padding-left: 0.75rem;
}

.content h3 {
  font-size: 1.4rem;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  color: #A259FF;
  border-left: 3px solid rgba(162, 89, 255, 0.7);
  padding-left: 0.6rem;
}


.content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem auto;
  display: block;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}


.content p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}


.content ol {
  list-style: decimal outside;
  margin: 1rem 0 1.25rem 1.5rem; 
  padding: 0;
}

.content ol li {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}


.content ul {
  list-style: disc outside;
  margin: 1rem 0 1.25rem 1.5rem;
  padding: 0;
}

.content ul li {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}


.content pre {
  background-color: #2A2F3E;
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.content code {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 0.2rem 0.4rem;
  font-family: monospace;
}

.content a {
  color: #00C853;
  text-decoration: none;
  transition: color 0.2s;
}

.content a:hover {
  color: #B2FF59;
}

.content .caption {
  font-size: 0.9rem;
  color: #B0B3BD;
  text-align: center;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .content {
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
  }

  .content h1 {
    font-size: 1.4rem;
  }

  .content h2 {
    font-size: 1.2rem;
  }

  .content h3 {
    font-size: 1.1rem;
  }

  .content p,
  .content li {
    font-size: 0.95rem;
  }

  .content ol,
  .content ul {
    margin-left: 1rem;
  }
}

.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  background-color: #2A2F3E;
  border-radius: 8px;
  overflow: hidden;
}

.content th,
.content td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  color: #E0E0E0;
}

.content th {
  background-color: rgba(255, 255, 255, 0.05);
  color: #00C853;
  font-weight: 600;
}

.content tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}

.content tr:last-child td {
  border-bottom: none;
}

.content a {
  color: #00C853;
  text-decoration: none;
}

.content a:hover {
  color: #B2FF59;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .content table {
    display: block;           
    overflow-x: auto;        
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;     
  }
  .content table th,
  .content table td {
    white-space: nowrap;    
  }
}

.content section {
  margin-top: 2rem;
}

.content section div {
  background-color: #2A2F3E;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: background-color 0.2s ease;
}

.content section div:hover {
  background-color: #303744;
}

.content section div span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: #E0E0E0;
}

.content section div span::after {
  content: "►";
  font-size: 1rem;
  transition: transform 0.2s ease;
  color: #A0A8B8;
}

.content section div.open span::after {
  content: "▼";
  transform: rotate(0deg);
  color: #00C853;
}

.content section div p {
  display: none;
  margin: 0;
  padding: 0.75rem 1.25rem 1rem;
  color: #C8CCD5;
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: left;
}

.content section div.open p {
  display: block;
}

.content section div + div {
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .content section div {
    border-radius: 6px;
  }

  .content section div span {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
  }

  .content section div span::after {
    font-size: 0.95rem;
    right: 1rem;
  }

  .content section div p {
    padding: 0.5rem 1rem 0.75rem;
    font-size: 0.9rem;
  }
}

.site-footer {
  background: rgba(11, 15, 26, 0.9);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px 12px 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 -4px 12px rgba(0, 0, 0, 0.4);
  color: #FFFFFF;
  font-family: "Open Sans", sans-serif;
  padding: 2rem 2rem;
  box-sizing: border-box;
}

/* Верхняя часть футера — три колонки */
.footer-top {
  display: flex;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 1.5rem;
  flex-wrap: wrap;
}

.footer-col {
  flex: 1;
  min-width: 200px;
}


.footer-col span {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: #006ae6;
  margin-bottom: 0.75rem;
}


.footer-col p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
  color: #E0E0E0;
}


.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.3s;
  border-radius: 6px;
}

.footer-col ul li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  text-decoration: none;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.footer-social a {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.3s;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.footer-social a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  font-size: 0.9rem;
  color: #C8CCD5;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: #00C853;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;          
    text-align: center;             
  }
  .site-footer {
    padding: 1.5rem 1rem;
  }
  .footer-col span {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  .footer-col p,
  .footer-col ul li a,
  .footer-social a {
    font-size: 0.9rem;
  }
  .footer-col ul {
    display: inline-block;        
    text-align: center;               
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.75rem;
    align-items: center;         
    text-align: center;
  }
  
}
