* {
    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: #F2EFDF;
}

.custom-header {
  background-color: #23260F;
  color: #F2EFDF;
  position: relative;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.custom-header__grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 15px 30px;
}

.custom-header__burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
}

.custom-header__burger span {
  height: 3px;
  background-color: #F2EFDF;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.custom-header__burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.custom-header__burger.active span:nth-child(2) {
  opacity: 0;
}
.custom-header__burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.custom-header__logo-link {
  display: inline-block;
  justify-self: center;
}
.custom-header__logo-img {
  height: 80px;
  width: auto;
}

.custom-header__nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
  padding: 0;
  margin: 0;
  justify-content: center;
}

.custom-header__nav ul li a {
  text-decoration: none;
  color: #F2EFDF;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}
.custom-header__nav ul li a:hover {
  color: #607EA6;
}
.custom-header__nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: #607EA6;
  transition: width 0.3s ease;
}
.custom-header__nav ul li a:hover::after {
  width: 100%;
}

.custom-header__auth {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.custom-header__btn {
  padding: 8px 16px;
  border: 1px solid #9BA7BF;
  border-radius: 4px;
  background-color: #F2EFDF;
  color: #23260F;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}
.custom-header__btn:hover {
  background-color: #9BA7BF;
  color: #23260F;
  border-color: #607EA6;
}

.custom-header__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #23260F;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.custom-header__dropdown.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.custom-header__dropdown ul {
  list-style: none;
  padding: 15px 0;
  margin: 0;
}
.custom-header__dropdown ul li {
  margin: 10px 0;
}
.custom-header__dropdown ul li a {
  text-decoration: none;
  color: #F2EFDF;
  padding: 10px 20px;
  display: inline-block;
  transition: color 0.3s ease, background-color 0.3s ease;
}
.custom-header__dropdown ul li a:hover {
  background-color: #3B4013;
  color: #F2EFDF;
  border-radius: 5px;
}

@media (max-width: 768px) {
  .custom-header__grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 15px 20px;
  }

  .custom-header__burger {
    display: flex;
    grid-column: 1;
    justify-self: start;
  }

  .custom-header__logo-link {
    grid-column: 2;
    justify-self: center;
    margin-right: 35px;
  }

  .custom-header__nav {
    display: none;
  }

  .custom-header__auth {
    grid-column: 1 / -1;
    margin-top: 12px;
    display: flex;
    gap: 10px;
    justify-content: space-evenly;
  }

  .custom-header__auth .custom-header__btn {
    flex: 1;
    max-width: 160px;
    text-align: center;
  }
}

.hero-banner {
  position: relative;
  height: 400px;
  background-image: url('/assets/img/baner.png'); /* Заменить на свой путь */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(35, 38, 15, 0.8), rgba(242, 239, 223, 0));
  z-index: 1;
}

.hero-banner__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #F2EFDF;
  padding: 0 20px;
}

.hero-banner__title {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #F2EFDF;
}

.hero-banner__text {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #F2EFDF;
}

.hero-banner__cta {
  display: inline-block;
  padding: 10px 20px;
  background-color: #607EA6;
  color: #F2EFDF;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  font-weight: 500;
}
.hero-banner__cta:hover {
  background-color: #3B4013;
}

.hero-banner::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, rgba(242, 239, 223, 0), #F2EFDF);
  z-index: 1;
}

@media (max-width: 768px) {
  .hero-banner {
    height: 300px;
    padding: 0 15px;
  }

  .hero-banner__content {
    text-align: center;
  }

  .hero-banner__title {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }

  .hero-banner__text {
    font-size: 0.95rem;
    margin-bottom: 16px;
  }

  .hero-banner__cta {
    padding: 8px 16px;
    font-size: 0.95rem;
  }
}

.popular-games {
  background-color: #23260F;
  border-radius: 12px;
  padding: 40px 30px;
  margin: 60px auto;
  max-width: 1300px;
  box-shadow: inset 0 0 0 1px #9BA7BF, 0 4px 20px rgba(0,0,0,0.4);
}

.popular-games__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 25px;
  border-bottom: 1px solid #9BA7BF;
  padding-bottom: 10px;
}

.popular-games__title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #F2EFDF;
  position: relative;
}

.popular-games__more a {
  font-size: 1rem;
  text-decoration: none;
  color: #607EA6;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.popular-games__more a:hover {
  border-color: #607EA6;
}

.popular-games__carousel {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, 150px);
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding-bottom: 15px;
}

.popular-games__item {
  width: 150px;
  height: 150px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.6);
  transition: transform 0.3s;
}

.popular-games__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.popular-games__item:hover img {
  transform: scale(1.08);
}

.popular-games__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: opacity 0.3s ease;
}

.popular-games__item:hover .popular-games__overlay {
  opacity: 1;
}

.btn.small {
  padding: 6px 12px;
  font-size: 0.85rem;
  background-color: #607EA6;
  color: #F2EFDF;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.btn.small:hover {
  background-color: #3B4013;
  color: #F2EFDF;
}

@media (max-width: 768px) {
  .popular-games {
    padding: 25px 15px;
    margin: 40px 10px;
  }

  .popular-games__header {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    border-bottom: 1px solid #9BA7BF;
    padding-bottom: 10px;
  }

  .popular-games__title {
    font-size: 1rem;
  }

  .popular-games__more a {
    font-size: 1rem;
  }

  .popular-games__carousel {
    gap: 12px;
    padding-bottom: 10px;
  }

  .popular-games__item {
    width: 130px;
    height: 130px;
    border-radius: 8px;
  }

  .btn.small {
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 3px;
  }
}

.popular-games__carousel::-webkit-scrollbar {
  height: 10px;
}

.popular-games__carousel::-webkit-scrollbar-track {
  background: #9BA7BF;
  border-radius: 10px;
}

.popular-games__carousel::-webkit-scrollbar-thumb {
  background-color: #607EA6;
  border-radius: 10px;
  border: 2px solid #9BA7BF;
}

.popular-games__carousel {
  scrollbar-color: #607EA6 #9BA7BF;
  scrollbar-width: thin;
}

.page-content {
  max-width: 1300px;
  margin: 60px auto;
  padding: 40px 50px;
  background-color: #23260F;
  color: #F2EFDF;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px #9BA7BF, 0 4px 12px rgba(0,0,0,0.3);
  line-height: 1.75;
}

.page-content h1 {
  font-size: 2.4rem;
  margin-bottom: 24px;
  color: #607EA6;
  border-bottom: 2px solid #9BA7BF;
  padding-bottom: 10px;
}

.page-content h2 {
  font-size: 1.8rem;
  margin: 50px 0 20px;
  color: #9BA7BF;
  border-left: 4px solid #607EA6;
  padding-left: 10px;
}

.page-content h3 {
  font-size: 1.4rem;
  margin: 30px 0 15px;
  color: #F2EFDF;
  font-weight: 600;
}

.page-content p {
  margin-bottom: 18px;
  font-size: 1.05rem;
  color: #F2EFDF;
}

.page-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 25px auto;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.4);
}

.page-content ul,
.page-content ol {
  margin: 20px 0 30px 25px;
  padding-left: 20px;
}

.page-content ul li,
.page-content ol li {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #F2EFDF;
}

/* Адаптация */
@media (max-width: 768px) {
  .page-content {
    padding: 25px 20px;
    margin: 40px 10px;
    border-radius: 10px;
  }

  .page-content h1 {
    font-size: 1.2rem;
    margin-bottom: 18px;
  }

  .page-content h2 {
    font-size: 1.1rem;
    margin: 40px 0 16px;
  }

  .page-content h3 {
    font-size: 1rem;
    margin: 25px 0 12px;
  }

  .page-content p {
    font-size: 1rem;
    margin-bottom: 16px;
  }

  .page-content img {
    margin: 20px 0;
  }
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  background-color: #3B4013;
  color: #F2EFDF;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.page-content thead {
  background-color: #607EA6;
  color: #F2EFDF;
  font-weight: bold;
}

.page-content th,
.page-content td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #9BA7BF;
}

.page-content tbody tr:last-child td {
  border-bottom: none;
}

.page-content tr:hover td {
  background-color: #23260F;
}


@media (max-width: 768px) {
  .page-content table {
    display: block;
    overflow-x: auto;
    width: 100%;
    font-size: 0.95rem;
  }

  .page-content thead {
    background-color: #607EA6;
  }

  .page-content th,
  .page-content td {
    white-space: nowrap;
    padding: 12px;
  }
}


@media (max-width: 768px) {
  .page-content table {
    display: block;
    overflow-x: auto;
    width: 100%;
    font-size: 0.95rem;
  }

  .page-content thead {
    background-color: #607EA6;
  }

  .page-content th,
  .page-content td {
    white-space: nowrap;
    padding: 12px;
  }
}

.page-content section {
  margin: 60px 0;
  background-color: #3B4013;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  padding: 25px 30px;
  border: 1px solid #9BA7BF;
}

.page-content section div {
  border-bottom: 1px solid #9BA7BF;
  padding: 16px 0;
  cursor: pointer;
  position: relative;
}

.page-content section div:last-child {
  border-bottom: none;
}

.page-content section div span {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: #F2EFDF;
  position: relative;
  padding-right: 25px;
}

.page-content section div span::after {
  content: "+";
  position: absolute;
  right: 0;
  color: #607EA6;
  font-weight: bold;
  font-size: 1.4rem;
  transition: transform 0.3s ease;
}

.page-content section div.open span::after {
  content: "−";
  color: #F2EFDF;
}

.page-content section div p {
  max-height: 0;
  overflow: hidden;
  margin: 0;
  transition: max-height 0.4s ease, margin 0.3s ease;
  font-size: 0.95rem;
  color: #D5D5C5;
}

.page-content section div.open p {
  max-height: 300px;
  margin-top: 12px;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .page-content section {
    padding: 20px;
    border-radius: 8px;
  }

  .page-content section div span {
    font-size: 1rem;
  }

  .page-content section div p {
    font-size: 0.95rem;
  }
}

.site-footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  background-color: #23260F;
  color: #F2EFDF;
  padding: 40px 30px;
  gap: 40px;
  border-top: 1px solid #9BA7BF;
}

.site-footer span {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #607EA6;
  text-align: center;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center
}

.site-footer li {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.site-footer a {
  color: #F2EFDF;
  text-decoration: none;
  transition: color 0.3s;
}

.site-footer a:hover {
  color: #9BA7BF;
}

.footer-bottom {
  background-color: #3B4013;
  color: #F2EFDF;
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
  border-top: 1px solid #9BA7BF;
}



/* 📱 Мобильная адаптация */
@media (max-width: 768px) {
  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-footer span {
    margin-top: 20px;
  }
}




