@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,200;0,400;0,500;0,600;0,700;0,800;1,400;1,500&display=swap');
* {
    font-family: 'Montserrat', sans-serif;
}
  /* Общие стили */
  body {
    margin: 0;
    background-color: #f5f5f5;
    color: #333;
    overflow-x: hidden;
  }
  a {
      color: #333;
      text-decoration: none;
  }

  /* Хедер */
.header {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
  }
.header-top {
    display: flex;
    align-items: center;
    padding: 10px 20px;
  }
.logo {
    display: flex;
    align-items: center;
  }
.logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: .5rem;
  }
.logo span {
    font-size: 20px;
    font-weight: 600;
  }
.menu {
    display: flex;
    margin-left: 20px;
  }
.menu a {
    margin-right: 20px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
  }
.menu a:hover {
    color: #27ae60; /* заменено с #9b59b6 на зеленый */
  }
.header-buttons {
    margin-left: auto;
  }
.header button {
    background-color: #27ae60; /* заменено с #9b59b6 на зеленый */
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
  }
.header button:hover {
    background-color: #229954; /* более темный зеленый для ховера */
  }

  /* Баннер во всю ширину */
  .banner {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
  }
  .banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
  }
  .banner img.active {
    opacity: 1;
  }

  /* Блок с игрой */
  .game-container {
    max-width: 1200px;
    margin: -75px auto 20px auto;
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
  }
  .game-info {
    display: flex;
    align-items: center;
  }
  .game-logo {
    width: 60px;
    height: 60px;
    background-color: #ddd;
    margin-right: 20px;
    border-radius: 10px;
    background: url('/assets/img/logo.webp') no-repeat center/cover;
  }
  .game-title {
    font-size: 24px;
    font-weight: bold;
  }
  .buy-btn {
    background-color: #27ae60; /* заменено с #9b59b6 на зеленый */
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
  }
  .buy-btn:hover {
    background-color: #229954; /* более темный зеленый */
  }

  /* Переключатель */
  .category-switch-container {
    max-width: 1200px;
    margin: 20px auto;
    text-align: center;
  }
  .category-switch-container button {
    background: #eee;
    border: none;
    padding: 10px 30px;
    margin: 0 15px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    color: #555;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
  }
  .category-switch-container button.active {
    background-color: #27ae60; /* заменено с #9b59b6 на зеленый */
    color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }
  .category-switch-container button:hover {
    background-color: #d0d0d0;
  }

  /* Товары grid */
  .products {
    max-width: 1200px;
    margin: 0 auto 40px auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 20px;
  }
  .product-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    transition: box-shadow 0.3s;
  }
  .product-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  }
.product-card img {
  width: 150px; /* или любой фиксированный размер */
  height: 150px;
  object-fit: cover; /* чтобы изображение заполняло квадрат без искажения */
  border-radius: 10px; /* по желанию, чтобы было красиво */
}
  .product-name {
    margin-top: 10px;
    font-weight: 500;
    font-size: 14px;
  }
  .product-price {
    margin-top: 5px;
    color: #555;
    font-size: 16px;
    font-weight: 500;
  }
  .buy-btn-small {
    background-color: #27ae60; /* заменено с #9b59b6 на зеленый */
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    margin-top: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
  }
  .buy-btn-small:hover {
    background-color: #229954; /* более темный зеленый */
  }

  /* Текстовая секция */
  .rule-wrap {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    max-width: 1200px;
    margin: 40px auto;
  }
  .title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
  }
  .des p {
    margin-bottom: 10px;
    line-height: 1.5;
  }

  /* Футер */
  /* Стиль футера */
footer {
  background-color: #fff;
  border-top: 1px solid #ddd;
  padding: 20px;
}
footer .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
footer .footer-logo {
  width: 80px;
  height: 80px;
  background: url(/assets/img/logo.webp) no-repeat center/cover;
  margin-bottom: 10px;
  border-radius: 10px;
}
footer .footer-text p {
  margin: 5px 0;
  font-size: 14px;
  color: #555;
}
footer .footer-text a {
  color: #27ae60; /* заменено с #9b59b6 на зеленый */
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s;
}
footer .footer-text a:hover {
  color: #229954; /* более темный зеленый */
}

  /* Адаптивность */
  @media(max-width: 768px) {
    .header { flex-direction: column; align-items: flex-start; }
    .header-top { flex-direction: column; align-items: flex-start; }
    .menu { margin-top: 10px; }
    .game-container { flex-direction: column; margin-top: -50px; }
    .game-info { flex-direction: column; align-items: flex-start; }
    .category-switch { flex-direction: column; align-items: center; }
    .products { grid-template-columns: repeat(2, 1fr); }
  }

  /* Стиль попапа */
  .popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
  }
  .popup-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  .popup {
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    position: relative;
  }
  .popup-close {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 20px;
    cursor: pointer;
    color: #999;
  }
  .popup-close:hover {
    color: #555;
  }

  /* Внутри попапа */
  .popup-img {
    width: 100px; height: 100px;
    background-color: #ddd;
    margin: 0 auto 10px auto;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
  }
  .popup-title {
    text-align: center;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 18px;
  }
  .popup-form {
    display: flex;
    flex-direction: column;
  }
  .popup-label {
    margin-bottom: 5px;
    font-weight: 600;
  }
  .popup-input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
  }
  .popup-submit {
    background-color: #27ae60; /* заменено с #9b59b6 на зеленый */
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
  }
  .popup-submit:hover {
    background-color: #229954; /* более темный зеленый */
  }
  .popup-submit img {
      width: 26px;
      height: 26px;
  }