* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  background-color: #0d1021; /* Глубокий синий (фон сайта) */
  color: #ffffff;
}

/* HEADER */
.header-bar {
  background-color: #2F4067; /* Фиолетовый акцент */
  padding: 20px 30px;
  position: relative;
}
.header-grid {
  display: grid;
  grid-template-columns: 30px 1fr 4fr 1.5fr;
  align-items: center;
  gap: 20px;
}
.burger {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  width: 30px;
  height: 20px;
}
.burger span {
  display: block;
  height: 3px;
  background-color: #00d77a; /* Градиент логотипа (голубой) для иконок */
  border-radius: 2px;
  transition: all 0.3s ease;
  margin-bottom: 4px;
}
.burger span:last-child {
  margin-bottom: 0;
}
.burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
.brand-logo {
  display: flex;
  justify-content: center;
}
.brand-logo img {
  width: 120px;
  height: auto;
}
.nav-menu {
  display: flex;
  justify-content: center;
}
.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 20px;
}
.nav-menu ul li a {
  text-decoration: none;
  color: #ffffff;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}
.nav-menu ul li a:hover {
  color: #41aaff; /* Голубой при hover */
}
.auth-links {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.auth-links a {
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid #00d77a; /* Ярко-зелёная кнопка регистрации */
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.btn-registration {
  background-color: #00d77a;
  color: #0d1021;
}
.btn-login {
  background-color: transparent;
  color: #ffffff;
}
.auth-links a:hover {
  background-color: #ffffff;
  color: #0d1021;
}
.mobile-menu {
  background-color: #8b5cf6;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 1000;
}
.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-menu ul {
  list-style: none;
  padding: 10px 0;
}
.mobile-menu ul li {
  text-align: center;
  padding: 10px 0;
}
.mobile-menu ul li a {
  text-decoration: none;
  color: #ffffff;
  font-size: 1.1rem;
}

/* Responsive header */
@media (max-width: 768px) {
  .header-grid {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto;
    gap: 10px;
  }
  .burger {
    grid-column: 1;
    display: flex;
  }
  .brand-logo img {
    grid-column: 2;
    justify-self: start;
    margin-left: -38px;
  }
  .auth-links {
    grid-column: 1 / span 2;
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
  }
  .auth-links a {
    flex: 1;
    text-align: center;
  }
  .nav-menu {
    display: none;
  }
}

/* PROMO BANNER */
.promo-banner {
  position: relative;
  background: url('/assets/img/promo-baner.png') center/cover no-repeat, #0d1021;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.promo-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(13,16,33,0.4), #0d1021);
  z-index: 1;
}
.promo-container {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
}
.promo-container span {
  display: block;
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #41aaff;
}
.promo-container p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}
.btn-promo {
  display: inline-block;
  padding: 12px 30px;
  background-color: #00d77a;
  color: #0d1021;
  text-decoration: none;
  text-transform: uppercase;
  border: 2px solid #00d77a;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.btn-promo:hover {
  background-color: #ffffff;
  color: #0d1021;
}
@media (max-width: 768px) {
  .promo-banner {
    height: 300px;
  }
  .promo-container span {
    font-size: 2rem;
  }
  .promo-container p {
    font-size: 1rem;
  }
  .btn-promo {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* POPULAR GAMES */
.popular-games {
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 30px;
}
.pg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.pg-header span {
  font-size: 2rem;
  font-weight: 600;
  color: #ffffff;
}
.pg-header .more-games {
  text-decoration: none;
  font-size: 1rem;
  color: #00d77a;
  transition: color 0.3s ease;
}
.pg-header .more-games:hover {
  color: #ffffff;
}
.games-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
}
.games-scroll::-webkit-scrollbar {
  height: 8px;
}
.games-scroll::-webkit-scrollbar-track {
  background: #0d1021;
}
.games-scroll::-webkit-scrollbar-thumb {
  background-color: #00d77a;
  border-radius: 4px;
  border: 2px solid #0d1021;
}
.games-scroll::-webkit-scrollbar-thumb:hover {
  background-color: #008e68;
}
.game-card {
  position: relative;
  flex: 0 0 150px;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #0d1021;
}
.game-card img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  display: block;
}
.game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13,16,33,0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.game-card:hover .game-overlay {
  opacity: 1;
}
.game-overlay a {
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.btn-demo {
  background-color: transparent;
  color: #00d77a;
  border: 1px solid #00d77a;
}
.btn-play {
  background-color: #00d77a;
  color: #0d1021;
  border: 1px solid #00d77a;
}
.btn-demo:hover,
.btn-play:hover {
  background-color: #ffffff;
  color: #0d1021;
}
@media (max-width: 768px) {
  .popular-games {
    padding: 10px;
  }
  .game-card {
    flex: 0 0 150px;
    height: 150px;
  }
  .pg-header span {
    font-size: 1.2rem;
  }
  .pg-header .more-games {
    font-size: 1.2rem;
  }
}

/* CONTENT BLOCK */
.content-block {
  max-width: 1300px;
  margin: 40px auto;
  padding: 40px 30px;
  background: #0d1021;
  border-left: 5px solid #8b5cf6;
  border-right: 5px solid #8b5cf6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  color: #ffffff;
  line-height: 1.6;
}
.content-block h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: #41aaff;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-bottom: 2px solid #41aaff;
  padding-bottom: 10px;
}
.content-block h2 {
  font-size: 2.2rem;
  margin: 40px 0 15px;
  color: #f8d648;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 8px;
}
.content-block h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background-color: #8b5cf6;
}
.content-block img {
  max-width: 100%;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  border: 3px solid #41aaff;
  margin-bottom: 20px;
}
.content-block p {
  font-size: 1.1rem;
  margin-bottom: 15px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}
.content-block ul {
  list-style-type: disc;
  padding-left: 30px;
  margin: 15px 0;
}
.content-block li {
  margin-bottom: 10px;
  font-size: 1.1rem;
}
@media (max-width: 768px) {
  .content-block {
    padding: 20px 15px;
  }
  .content-block h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
  }
  .content-block h2 {
    font-size: 1.8rem;
    margin: 30px 0 10px;
    padding-bottom: 6px;
  }
  .content-block h2::after {
    width: 40px;
    height: 2px;
  }
  .content-block p,
  .content-block li {
    font-size: 1rem;
  }
  .content-block ul {
    padding-left: 20px;
  }
  .content-block img {
    margin: 15px 0;
  }
}
.content-block table {
  width: 100%;
  border-collapse: collapse;
  background-color: #0d1021;
  border: 2px solid #8b5cf6;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
}

.content-block table tr {
  transition: background-color 0.3s ease;
}

.content-block table tr:nth-child(even) {
  background-color: #14172c;
}

.content-block table tr:hover {
  background-color: #8b5cf6;
  color: #ffffff;
}

.content-block table td {
  padding: 12px 15px;
  border-bottom: 1px solid #343a40;
}

.content-block table td:first-child {
  color: #00d77a; /* Ярко-зелёный */
  font-weight: bold;
  width: 180px;
}

.content-block table a {
  color: #41aaff; /* Ссылка в таблице */
  text-decoration: none;
  transition: color 0.3s ease;
}

.content-block table a:hover {
  color: #ffffff;
}

@media (max-width: 768px) {
  .content-block table {
    font-size: 0.9rem;
    display: block;
    overflow-x: auto;
  }
  .content-block table td {
    padding: 8px 10px;
  }
}

.content-block section {
  background-color: #0d1021;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  margin-top: 40px;
}

.content-block section span {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: #41aaff;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 20px;
  border-bottom: 2px solid #41aaff;
  padding-bottom: 10px;
}

.content-block section div p {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.content-block section div p em {
  display: block;
  text-align: right;
  font-size: 0.9rem;
  color: #f8d648;
}

.content-block section a {
  display: block;
  max-width: 300px;
  margin: 20px auto 0;
  padding: 12px 30px;
  background-color: #00d77a;
  color: #0d1021;
  text-decoration: none;
  text-transform: uppercase;
  border: 2px solid #00d77a;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-align: center;
}

.content-block section a:hover {
  background-color: #ffffff;
  color: #0d1021;
}

@media (max-width: 768px) {
  .content-block {
    padding: 20px 15px;
  }
  .content-block section span {
    font-size: 1.6rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
  }
  .content-block section div p,
  .content-block section div p em {
    font-size: 0.9rem;
  }
  .content-block section a {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

.main-footer {
  background-color: #2F4067;
  padding: 40px 20px;
  font-family: "Roboto", sans-serif;
  color: #ffffff;
  text-align: center;
}
.footer-content {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid #41aaff;
}
.footer-info {
  flex: 1 1 300px;
  text-align: left;
}
.footer-info a img {
  width: 140px;
  height: auto;
}
.footer-info p {
  margin-top: 10px;
  font-size: 1rem;
}
.footer-menu,
.footer-socials {
  flex: 1 1 200px;
  text-align: left;
}
.footer-menu ul,
.footer-socials ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-menu a,
.footer-socials a {
  text-decoration: none;
  color: #ffffff;
  font-size: 1rem;
  transition: color 0.3s ease;
}
.footer-menu a:hover,
.footer-socials a:hover {
  color: #41aaff;
}
.footer-bottom {
  margin-top: 20px;
  font-size: 0.9rem;
  text-align: center;
}
@media (max-width: 768px) {
  .footer-content {
    align-items: center;
  }
  .footer-info,
  .footer-menu,
  .footer-socials {
    text-align: center;
    margin-bottom: 20px;
  }
}

html {
  scrollbar-width: thin;
  scrollbar-color: #00d77a #0d1021;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0d1021;
}

::-webkit-scrollbar-thumb {
  background-color: #00d77a;
  border-radius: 5px;
  border: 2px solid #0d1021;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #008e68;
}


