* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scrollbar-width: thin;
  scrollbar-color: #8bc53f #003b70; /* thumb и track */
}

body::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-track {
  background: #003b70;
}

body::-webkit-scrollbar-thumb {
  background-color: #8bc53f;
  border-radius: 6px;
  border: 2px solid #003b70;
}

body {
  font-family: "Lato", sans-serif;
  background-color: #0072bc;
  color: #ffffff;
}

.topbar-header {
  background: linear-gradient(180deg, #0072bc, #005f9c);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.topbar-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar-logo img {
  height: 35px;
  width: 55px;
}

.topbar-nav {
  flex-grow: 1;
  margin: 0 30px;
}

.topbar-nav-list {
  list-style: none;
  display: flex;
  gap: 24px;
}

.topbar-nav-list a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  transition: color 0.3s;
}

.topbar-nav-list a:hover {
  color: #8bc53f;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-icon-link {
  background-color: #103e7c;
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: white;
  font-size: 18px;
  text-decoration: none;
}

.topbar-icon-link svg {
  width: 20px;
  height: 20px;
}

.gift-notice {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #8bc53f;
  color: white;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 5px;
  border-radius: 50%;
}

.topbar-btn {
  text-decoration: none;
  padding: 8px 16px;
  font-weight: bold;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.topbar-btn.register {
  background-color: #8bc53f;
  color: #fff;
}

.topbar-btn.login {
  background-color: #2e9bd6;
  color: #fff;
}

.topbar-burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.topbar-burger span {
  width: 24px;
  height: 3px;
  background: white;
  transition: 0.3s;
  border-radius: 2px;
}

.topbar-mobile-nav {
  display: none;
  flex-direction: column;
  background: #103e7c;
  padding: 20px;
}

.topbar-mobile-nav.open {
  display: flex;
}

.topbar-mobile-list {
  list-style: none;
  padding: 0;
  text-align: center;
}

.topbar-mobile-list li {
  margin-bottom: 14px;
}

.topbar-mobile-list a {
  color: white;
  font-size: 16px;
  text-decoration: none;
  display: block;
  position: relative;
}

@media (max-width: 768px) {
  .topbar-nav {
    display: none;
  }

  .topbar-actions .topbar-icon-link {
    display: none;
  }

  .topbar-burger {
    display: flex;
  }

  .topbar-container {
    padding: 14px 16px;
    justify-content: space-between;
  }

  .topbar-mobile-list .topbar-icon-link {
    background: none;
    padding: 0;
    font-size: 20px;
    margin-top: 5px;
  }

  .topbar-mobile-list .gift-notice {
    position: absolute;
    top: 0;
    right: -12px;
    font-size: 10px;
  }
}

.topbar-mobile-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
}

.topbar-mobile-icons .topbar-icon-link {
  background-color: #2e9bd6;
  padding: 10px;
  border-radius: 10px;
  position: relative;
}

.topbar-mobile-icons .topbar-icon-link svg {
  width: 20px;
  height: 20px;
}

.topbar-mobile-icons .gift-notice {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #8bc53f;
  color: white;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 5px;
  border-radius: 50%;
}

.topbar-burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.topbar-burger.active span:nth-child(2) {
  opacity: 0;
}

.topbar-burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.topbar-burger span {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero-slider {
  max-width: 1300px;
  margin: 65px auto 40px;
  overflow: hidden;
  border-radius: 2px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  flex: 0 0 100%;
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
}

.slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  padding-left: 60px;
  z-index: 1;
}

.slide-content {
  color: #ffffff;
  max-width: 400px;
  z-index: 2;
}

.slide-content span {
  display: block;
  font-size: 32px;
  margin-bottom: 12px;
  color: #FFD600;
}

.slide-content p {
  font-size: 16px;
  margin-bottom: 16px;
  color: #eee;
}

.cta-button {
  display: inline-block;
  background-color: #8bc53f;
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background-color: #76ad35;
}

@media (max-width: 768px) {
  .slide {
    height: 240px;
  }

  .slide-overlay {
    padding-left: 20px;
    justify-content: flex-start;
    text-align: left;
  }

  .slide-content {
    max-width: 90%;
    
  }

  .slide-content span {
    font-size: 22px;
  }

  .slide-content p {
    font-size: 14px;
  }

  .cta-button {
    padding: 8px 16px;
    font-size: 14px;
  }
}

.game-carousel-section {
  max-width: 1300px;
  margin:-40px auto;
  padding: 30px 20px;
  background: #103e7c;
  border-radius: 2px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.top-games-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.top-title {
  font-size: 14px;
  font-weight: bold;
  color: #fff;
}

.more-link {
  font-size: 14px;
  color: #2e9bd6;
  text-decoration: none;
  font-weight: 600;
}

.game-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.game-card {
  position: relative;
  flex: 0 0 160px;
  border-radius: 8px;
  overflow: hidden;
}

.game-card img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.game-actions {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background-color: rgba(0,0,0,0.5);
}

.game-card:hover .game-actions {
  display: flex;
}

.btn-demo, .btn-play {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  width: 80%;
  text-align: center;
}

.btn-demo { background: #2e9bd6; }
.btn-play { background: #8bc53f; }

@media (max-width: 768px) {
  .game-card {
    flex: 0 0 45%;
  }

  .game-actions {
    position: static;
    display: flex !important;
    background: none;
    margin-top: 8px;
    flex-direction: row;
    gap: 8px;
    padding: 0;
  }

  .btn-demo, .btn-play {
    width: 100%;
    font-size: 13px;
    padding: 6px 0;
  }
}

.game-carousel::-webkit-scrollbar {
  height: 8px;
}

.game-carousel::-webkit-scrollbar-track {
  background: #0f1425;
  border-radius: 4px;
}

.game-carousel::-webkit-scrollbar-thumb {
  background-color: #2e9bd6;
  border-radius: 4px;
}

.game-carousel::-webkit-scrollbar-thumb:hover {
  background-color: #8bc53f;
}

.main-info-section {
  max-width: 1300px;
  margin: 40px auto 0px auto;
  padding: 40px 20px;
  background: #ffffff;
  color: #103e7c;
  font-family: "Lato", sans-serif;
  line-height: 1.6;
  border-radius: 2px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.main-info-section h1 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #0072bc;
}

.main-info-section h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 40px 0 20px;
  color: #2e9bd6;
}

.main-info-section h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 30px 0 16px;
  color: #8bc53f;
}

.main-info-section p {
  margin-bottom: 16px;
  font-size: 15px;
  color: #103e7c;
}

.main-info-section img {
  max-width: 100%;
  border-radius: 8px;
  margin: 20px auto;
  display: block;
}

.main-info-section ul,
.main-info-section ol {
  margin: 16px 0 16px 20px;
  padding-left: 20px;
}

.main-info-section ul li,
.main-info-section ol li {
  margin-bottom: 10px;
  font-size: 15px;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .main-info-section {
    padding: 30px 16px;
  }

  .main-info-section h1 {
    font-size: 28px;
  }
  .main-info-section h2 {
    font-size: 24px;
  }
  .main-info-section h3 {
    font-size: 20px;
  }
  .main-info-section p,
  .main-info-section ul li,
  .main-info-section ol li {
    font-size: 14px;
  }
  .main-info-section img {
    margin: 16px 0;
  }
}

.main-info-section table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-info-section th,
.main-info-section td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.main-info-section thead th {
  background-color: #0072bc;
  color: #fff;
  font-weight: 600;
}

.main-info-section tbody tr:nth-child(even) {
  background-color: rgba(16, 62, 124, 0.05);
}

.main-info-section tbody tr:hover {
  background-color: rgba(16, 62, 124, 0.1);
}

@media (max-width: 768px) {
  .main-info-section table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  .main-info-section th,
  .main-info-section td {
    padding: 10px;
  }
}

.main-info-section section {
  margin: 0px auto;
  max-width: 1300px;     /* Центрируем и ограничиваем ширину */
  padding: 0px;
  background: #ffffff;
  border-radius: 12px;
}

.main-info-section section h2 {
  font-size: 28px;
  margin-bottom: 24px;
  color: #0072bc;
}

.main-info-section section > div {
  padding: 16px 0;
  border-top: 1px solid #e0e0e0;
  position: relative;
  cursor: pointer;
}

.main-info-section section > div:first-of-type {
  border-top: none;
  padding-top: 0;
}

.main-info-section section > div > p:nth-child(1) {
  font-size: 18px;
  color: #103e7c;
  margin: 0;
}

.main-info-section section > div > p:nth-child(2) {
  font-size: 16px;
  color: #444;
  margin: 8px 0 0;
  line-height: 1.5;
  display: none;
}

.main-info-section section > div.active > p:nth-child(2) {
  display: block;
}

.main-info-section section > div::after {
  content: '+';
  position: absolute;
  right: 0;
  top: calc(50% - 10px);
  font-size: 20px;
  color: #8bc53f;
  transition: transform 0.3s;
}

.main-info-section section > div.active::after {
  content: '−';
  transform: translateY(2px);
}
@media (max-width: 768px) {
  .main-info-section section {
    padding: 16px;
  }

  .main-info-section section h2 {
    font-size: 20px;
    text-align: center;
  }

  .main-info-section section > div {
    padding: 10px 0;
  }

  .main-info-section section > div > p:nth-child(1) {
    font-size: 15px;
    text-align: left;
  }

  .main-info-section section > div > p:nth-child(2) {
    font-size: 14px;
    text-align: left;
  }

  .main-info-section section > div::after {
    font-size: 18px;
    top: 10px;
  }
}

.footer-alt {
  background: linear-gradient(180deg, #005f9c, #003b70);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 30px 20px 30px;
  font-size: 14px;
}

.footer-alt__inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.footer-alt__brand img {
  height: 50px;
  margin-bottom: 12px;
}

.footer-alt__brand p {
  color: #ddd;
  line-height: 1.5;
}

.footer-alt__nav span,
.footer-alt__contacts span,
.footer-alt__social span {
  font-weight: 600;
  font-size: 16px;
  color: #8bc53f;
  margin-bottom: 12px;
  display: block;
}

.footer-alt__nav ul,
.footer-alt__contacts ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-alt__nav li,
.footer-alt__contacts li {
  margin-bottom: 8px;
}

.footer-alt__nav a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-alt__nav a:hover {
  color: #8bc53f;
}

.footer-alt__icons {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.footer-alt__icons svg {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
}

.footer-alt__icons svg:hover {
  transform: scale(1.1);
}

.footer-alt__bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: #ccc;
}

@media (max-width: 768px) {
  .footer-alt__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .footer-alt__icons {
    justify-content: center;
  }
}


