* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html::-webkit-scrollbar {
  width: 10px;
}

html::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

html::-webkit-scrollbar-thumb {
  background: #00E5FF;
  border-radius: 6px;
  transition: background 0.3s ease;
}

html::-webkit-scrollbar-thumb:hover {
  background: #00bcd4;
}


body {
  font-family: "Lato", sans-serif;
  font-weight: 500;
  font-style: normal;
  background-color: #141A2E;
  background-image: url('/assets/img/bck.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  color: white;
}

.site-header {
  background: rgba(20, 26, 46, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: background 0.3s ease;
}

.header-container {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 12px 20px;
  gap: 10px;
}

.logo img {
  height: 65px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

.nav-list {
  display: flex;
  gap: 20px;
  list-style: none;
  justify-content: center;
}

.nav-list a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-list a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.highlight-cyan { color: #00E5FF; }
.highlight-green { color: #00FF5A; }
.highlight-yellow { color: #FFD600; }

.auth-buttons {
  display: flex;
  gap: 10px;
}

.auth-buttons .btn {
  padding: 10px 16px;
  text-decoration: none;
  border-radius: 6px;
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;
}

.auth-buttons .login {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: white;
}

.auth-buttons .login:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.auth-buttons .register {
  background-color: #FF1A3C;
  color: white;
  border: none;
}

.auth-buttons .register:hover {
  background-color: #e01332;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1100;
}

.burger span {
  width: 25px;
  height: 3px;
  background-color: white;
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 1px;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .header-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      "burger logo empty"
      "auth auth auth";
    align-items: center;
    justify-items: center;
    padding: 12px 16px;
  }

  .burger {
    grid-area: burger;
    display: flex;
    justify-self: start;
  }

  .logo {
    grid-area: logo;
    justify-self: center;
  }

  .auth-buttons {
    grid-area: auth;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 12px;
  }

  .auth-buttons .btn {
    flex: 1 1 50%;
    padding: 12px 8px;
    font-size: 15px;
    text-align: center;
    white-space: nowrap;
  }

  .nav, .nav-list {
    display: none;
  }

  .site-header.open .nav {
    display: block;
    width: 100%;
    grid-column: 1 / -1;
  }

  .site-header.open .nav-list {
    flex-direction: column;
    align-items: center;
    padding: 15px 0;
    display: flex;
    gap: 15px;
  }
}

.carousel {
  width: 100%;
  max-width: 1300px;
  height: 300px;
  margin: 94px auto 0px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
}

.slides-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.slides {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease-in-out;
}

.slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.slide-content {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 25px 30px;
  max-width: 600px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.slide-title {
  font-size: 28px;
  font-weight: bold;
  color: #FFD600;
  margin: 0;
  line-height: 1.2;
}

.slide-text {
  font-size: 16px;
  color: #fff;
  margin: 0;
  line-height: 1.4;
}

.cta-button {
  margin-top: 4px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: bold;
  background-color: #FF1A3C;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
  align-self: center;
}

.cta-button:hover {
  background-color: #e01332;
}

@media (max-width: 768px) {
  .carousel {
    height: 220px;
    margin-top: 155px;
  }

  .slide-content {
    padding: 10px 15px;
    max-width: 95%;
    width: 100%;
    box-sizing: border-box;
  }

  .slide-title {
    font-size: 18px;
    line-height: 1.2;
    word-break: break-word;
  }

  .slide-text {
    font-size: 14px;
    line-height: 1.2;
    word-break: break-word;
  }

  .cta-button {
    margin-top: 10px;
    padding: 10px 16px;
    font-size: 14px;
    white-space: nowrap;
    display: inline-block;
    min-width: 120px;
  }
}

.extra-menu {
  background: #0f1425;
  border-top: 1px solid rgba(0, 229, 255, 0.1);
  border-bottom: 1px solid rgba(0, 229, 255, 0.1);
  padding: 16px 0px;
  overflow-x: hidden;
  max-width: 1300px;
  margin: 0 auto;
  
}

.extra-menu-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.menu-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  gap: 6px;
  color: white;
  padding: 10px 5px;
  position: relative;
  transition: transform 0.2s ease;
}

.menu-entry:hover {
  transform: scale(1.05);
}

.menu-entry img {
  height: 30px;
  width: 30px;
}

.menu-entry span {
  font-size: 13px;
}

.menu-entry.active {
  border: 1px dashed #00E5FF;
  border-radius: 8px;
  background: rgba(0, 229, 255, 0.05);
}

.menu-entry:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.1); /* ← деликатный разделитель */
}

.menu-entry[data-color="cyan"] span { color: #00E5FF; }
.menu-entry[data-color="red"] span { color: #FF1A3C; }
.menu-entry[data-color="purple"] span { color: #B56EFF; }
.menu-entry[data-color="green"] span { color: #00FF5A; }
.menu-entry[data-color="yellow"] span { color: #FFD600; }

@media (max-width: 768px) {
  .extra-menu {
      padding: 0px 0px;
  }
  .extra-menu-inner {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 16px;
    padding: 0 12px;
  }

  .menu-entry {
    min-width: 80px;
    flex-shrink: 0;
    padding: 8px 6px;
  }

  .menu-entry::after {
    display: none;
  }

  .menu-entry span {
    font-size: 12px;
  }

  .menu-entry img {
    height: 28px;
    width: 28px;
  }
}

.top-games {
  max-width: 1300px;
  margin: 0px auto;
  padding: 0 20px;
  background: rgba(20, 26, 46, 0.85); 
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  padding: 24px;
}

.top-games-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
}

.section-title {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
}

.more-games {
  font-size: 13px;
  color: #00E5FF;
  text-decoration: none;
  font-weight: 600;
}

.top-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.game-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #111729;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-card img {
  width: 100%;
  max-width: 100px;
  height: auto;
  border-radius: 6px;
  display: block;
}

.game-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  border-radius: 8px;
  box-sizing: border-box;
}

@media (hover: hover) and (pointer: fine) {
  .game-card:hover .game-overlay {
    opacity: 1;
  }
}

.game-btn {
  padding: 8px 14px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  background-color: #FF1A3C;
  transition: background 0.3s ease;
  white-space: nowrap;
}

.game-btn.demo {
  background-color: #666;
}

.game-btn:hover {
  background-color: #e01332;
}

.mobile-buttons {
  display: none;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .top-games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .game-overlay {
    display: none !important;
  }

  .mobile-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
  }

  .game-btn {
    flex: 1 1 45%;
    font-size: 12px;
    padding: 7px 10px;
    text-align: center;
  }

  .game-card img {
    max-width: 100%;
    height: auto;
  }

  .game-card {
    padding: 6px;
  }
}

.extra-menu-inner::-webkit-scrollbar {
  height: 2px;
}

.extra-menu-inner::-webkit-scrollbar-track {
  background: transparent;
}

.extra-menu-inner::-webkit-scrollbar-thumb {
  background: rgba(0, 229, 255, 0.3);
  border-radius: 4px;
  padding: 16px;
}

.content-section {
  max-width: 1300px;
  margin: 20px auto;
  padding: 40px 30px;
  background: rgba(20, 26, 46, 0.9);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  color: white;
  font-family: "Lato", sans-serif;
  line-height: 1.6;
}


.content-section h1 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD600;
}

.content-section h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 40px 0 20px;
  color: #00E5FF;
}

.content-section h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 30px 0 16px;
  color: #00FF5A;
}


.content-section p {
  margin-bottom: 16px;
  font-size: 15px;
  color: #ddd;
}


.content-section img {
  max-width: 100%;
  border-radius: 8px;
  margin: 20px auto;
  display: block;
}


.content-section ul,
.content-section ol {
  margin: 16px 0 16px 20px;
  padding-left: 20px;
}

.content-section ul li,
.content-section ol li {
  margin-bottom: 10px;
  font-size: 15px;
}

@media (max-width: 768px) {
  .content-section {
    padding: 24px 16px;
    margin: 16px auto;
  }

  .content-section h1 {
    font-size: 24px;
  }

  .content-section h2 {
    font-size: 20px;
    margin: 30px 0 16px;
  }

  .content-section h3 {
    font-size: 18px;
    margin: 24px 0 12px;
  }

  .content-section p {
    font-size: 14px;
    margin-bottom: 14px;
  }

  .content-section ul,
  .content-section ol {
    margin: 14px 0 14px 16px;
    padding-left: 16px;
  }

  .content-section ul li,
  .content-section ol li {
    font-size: 14px;
  }

  .content-section img {
    margin: 16px 0;
    border-radius: 6px;
  }
}

.content-section > div {
  overflow-x: auto;
  margin-top: 24px;
  border-radius: 8px;
}

.content-section table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  background-color: rgba(255, 255, 255, 0.02);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.1);
  margin-bottom: 16px;
}

.content-section th,
.content-section td {
  padding: 14px 18px;
  text-align: left;
  font-size: 14px;
  white-space: nowrap;
}

.content-section thead {
  background-color: rgba(0, 229, 255, 0.12);
}

.content-section th {
  color: #00E5FF;
  font-weight: 700;
}

.content-section td {
  color: #eee;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.content-section tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.015);
}

.content-section > div::-webkit-scrollbar {
  height: 6px;
}

.content-section > div::-webkit-scrollbar-thumb {
  background: rgba(0, 229, 255, 0.3);
  border-radius: 3px;
}


/* === FAQ SECTION в .content-section === */

.content-section section {
  margin-top: 40px;
}

.content-section section h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #00E5FF;
}

.content-section section > div {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 16px 40px 16px 20px;
  margin-bottom: 14px;
  transition: background 0.3s ease;
  cursor: pointer;
  position: relative;
}

.content-section section > div:hover {
  background: rgba(255, 255, 255, 0.04);
}

.content-section section span {
  display: block;
  font-weight: 600;
  color: #FFD600;
  font-size: 16px;
  margin-bottom: 6px;
  position: relative;
}


.content-section section span::after {
  content: '▼';
  position: absolute;
  right: 0;
  top: 2px;
  font-size: 12px;
  color: #FFD600;
  transition: transform 0.3s ease;
}


.content-section section div.active span::after {
  transform: rotate(180deg);
}

.content-section section p {
  font-size: 14px;
  color: #ccc;
  line-height: 1.5;
  margin: 0;
  display: none;
}

.content-section section div.active p {
  display: block;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .content-section {
    padding: 30px 16px;
  }

  .content-section section h2 {
    font-size: 22px;
  }

  .content-section section span {
    font-size: 15px;
  }

  .content-section section p {
    font-size: 14px;
  }

  .content-section section > div {
    padding: 14px 36px 14px 16px;
  }

  .content-section section span::after {
    right: 0;
    top: 2px;
  }
}


.site-footer {
  background-color: #0f1425;
  padding: 60px 20px 30px;
  color: #ccc;
  font-size: 14px;
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.footer-brand img {
  height: 50px;
  margin-bottom: 12px;
}

.footer-brand p {
  color: #aaa;
  line-height: 1.5;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
  color: #00E5FF;
  margin-bottom: 12px;
  font-size: 16px;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #FFD600;
}

.footer-social .social-icons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.footer-social img {
  width: 28px;
  height: 28px;
  filter: brightness(0.8);
  transition: filter 0.3s ease;
}

.footer-social img:hover {
  filter: brightness(1);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 40px;
  text-align: center;
  padding-top: 20px;
  color: #777;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 40px 16px 20px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand,
  .footer-links,
  .footer-contact,
  .footer-social {
    text-align: center;
  }

  .footer-brand img {
    margin-bottom: 10px;
  }

  .footer-brand p {
    font-size: 14px;
    line-height: 1.5;
  }

  .footer-links span,
  .footer-contact span,
  .footer-social span {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #00E5FF;
    margin-bottom: 8px;
  }

  .footer-links ul,
  .footer-contact ul {
    padding-left: 0;
  }

  .footer-links li,
  .footer-contact li {
    margin-bottom: 6px;
    font-size: 14px;
  }

  .footer-links a {
    color: #ccc;
    text-decoration: none;
  }

  .footer-links a:hover {
    color: #FFD600;
  }

  .footer-social .social-icons {
    justify-content: center;
    gap: 14px;
    margin-top: 10px;
  }

  .footer-social img {
    width: 26px;
    height: 26px;
  }

  .footer-bottom {
    font-size: 12px;
    margin-top: 30px;
    padding-top: 15px;
    text-align: center;
    color: #777;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
}

