body {
  font-family: 'Open Sans', sans-serif;
  background: #f3f3f6;
  color: #334155;
  line-height: 1.6;
  font-size: 16px;
  margin: 0;
  padding: 0;
}
header {
  background: #f3f3f6;
  padding: 15px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 99;
}
header .custom-logo-link img {
  max-width: 90px;
}
nav {
  background: #f3f3f6;
  text-align: center;
  margin-top: 5px;
}
nav .main-header-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
}
nav .menu-link {
  color: #9fa0a8;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  margin: 5px 8px;
}
nav .current-menu-item .menu-link, nav .menu-link:hover {
  color: #3959d9;
  border-bottom: 2px solid #3959d9;
}
a.gradient {
  background: linear-gradient(103.42deg, #fc4665 6.06%, #3959d9 77.61%);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  margin: 8px 5px;
  min-width: 120px;
  text-decoration: none;
  display: inline-block;
}
a.gradient:hover {
  background: linear-gradient(103.42deg, #e31a3c 6.06%, #0f32bd 77.61%);
}
a.button {
  background: transparent;
  color: #3959d9;
  border: 1px solid #3959d9;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  margin: 8px 5px;
  min-width: 120px;
  text-decoration: none;
  display: inline-block;
}
a.button:hover {
  background: #c4cdf4;
}
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 15px;
}
.row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 15px;
}
.col {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  width: calc(25% - 12px);
}
.image-box img {
  border-radius: 12px;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}
.col:hover .image-box img {
  transform: scale(1.1);
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(63, 66, 80, 0.5);
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
}
.col:hover .overlay {
  opacity: 1;
}
.play-link {
  display: inline-block;
  text-decoration: none;
}
.play-link img {
  max-width: 50px;
  height: auto;
  transition: transform 0.3s ease;
}
.play-link:hover img {
  transform: scale(1.2);
}
.image-box-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 8px;
}
.text-title {
  color: #3f4250;
  font-size: 16px;
  font-weight: 600;
}
.text-description {
  color: #9fa0a8;
  font-size: 13px;
  font-weight: 600;
}
.category-title {
  font-family: 'Open Sans', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #3f4250;
  padding: 15px 8px;
}
.games-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.category-options select {
  margin-right: 8px;
  border: 0;
  width: 140px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 11px;
  padding: 5px;
}
.sidebar-main {
  padding: 10px 8px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 3px rgba(0,0,0,.07), 0 -2px 3px rgba(0,0,0,.07);
}
footer {
  background: #f3f3f6;
  text-align: center;
  padding: 15px;
}
footer .menu-link {
  color: #3f4250;
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  margin: 5px 8px;
}
.section {
  margin: 30px 0;
}
.section h2 {
  font-size: 24px;
  font-weight: 800;
  color: #3f4250;
}
.section p {
  font-size: 15px;
  margin-bottom: 15px;
}
.cta-buttons {
  text-align: center;
  margin: 15px 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}
/* Стили для бургер-меню */
.burger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.burger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background: #334155;
  margin: 5px 0;
  transition: all 0.3s ease;
}
.burger-menu.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger-menu.open span:nth-child(2) {
  opacity: 0;
}
.burger-menu.open span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}
.main-nav {
  transition: transform 0.3s ease;
}
.main-nav.active {
  transform: translateX(0);
}
/* Медиа-запросы для адаптивности */
@media (max-width: 1200px) {
  .container {
    padding: 10px;
  }
  .col {
    width: calc(33.33% - 8px);
  }
}
@media (max-width: 992px) {
  .col {
    width: calc(50% - 6px);
  }
  header .custom-logo-link img {
    max-width: 80px;
  }
  a.gradient, a.button {
    padding: 8px 16px;
    font-size: 14px;
    min-width: 100px;
  }
  .category-title {
    font-size: 18px;
  }
}
@media (max-width: 768px) {
  .col {
    width: 100%;
  }
  .image-box img {
    max-height: 180px;
    object-fit: cover;
  }
  .text-title {
    font-size: 14px;
  }
  .text-description {
    font-size: 12px;
  }
  .category-options select {
    width: 120px;
    font-size: 10px;
  }
  .games-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  a.gradient, a.button {
    padding: 8px 15px;
    font-size: 14px;
    min-width: 110px;
  }
  .burger-menu {
    display: block;
    position: absolute;
    top: 15px;
    right: 15px;
  }
  .main-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: #f3f3f6;
    transform: translateX(-100%);
    z-index: 98;
  }
  .main-nav.active {
    display: block;
    transform: translateX(0);
  }
  nav .main-header-menu {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
  }
  nav .menu-link {
    font-size: 14px;
    margin: 5px 0;
    display: block;
  }
  footer .menu-link {
    display: block;
    margin: 5px 0;
  }
}
@media (max-width: 480px) {
  header {
    padding: 10px;
  }
  header .custom-logo-link img {
    max-width: 60px;
  }
  .container {
    padding: 8px;
  }
  .section {
    margin: 20px 0;
  }
  .section h2 {
    font-size: 16px;
  }
  .section p {
    font-size: 12px;
  }
  a.gradient, a.button {
    padding: 8px 15px;
    font-size: 13px;
    min-width: 110px;
  }
  .category-title {
    font-size: 16px;
    padding: 8px 5px;
  }
}