body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #f9f9f9;
}

header,
footer {
  background-color: #000000;
  color: #009420;
  padding: 6px 14px;
  text-align: center;
}

header .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: var(--logo-height, 60px); /* можно менять вручную */
  width: auto;
  max-height: 80px;
}

.register-btn {
  background-color: #009219;
  border: none;
  padding: 0.75em 1.8em;
  color: #fff;
  font-size: 1em;
  cursor: pointer;
  position: absolute;
  top: 4.5%;
  right: 45px;
  border-radius: 10px;
}

.container {
  max-width: 900px;
  margin: 20px auto;
  padding: 0 15px;
}

h1 {
  color: #222;
  text-align: center;
}

h2 {
  color: #222;
  text-align: left;
}

img {
  display: block;
  margin: 20px auto;
  max-width: 100%;
  height: auto;
}

.cta-btn {
  display: block;
  margin: 10px auto 40px;
  padding: 0.75em 1.5em;
  background-color: #009219;
  color: #fff;
  text-align: center;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1em;
  width: fit-content;
}

footer {
  font-size: 0.9em;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

table,
th,
td {
  border: 1px solid #ccc;
  padding: 10px;
}

th {
  background-color: #f0f0f0;
}

@media (max-width: 768px) {
  .register-btn {
    position: static;
    display: block;
    margin: 1em auto;
    width: 90%;
    max-width: 300px;
  }

  header .top {
    flex-direction: column;
    padding: 10px;
  }

  .logo {
    margin-bottom: 15px;
  }

  .logo img {
    height: 50px;
    max-height: 60px;
  }

  .container {
    margin: 15px auto;
    padding: 0 10px;
  }

  h1 {
    font-size: 1.5em;
    margin: 15px 0;
  }

  h2 {
    font-size: 1.3em;
    text-align: center;
  }

  .cta-btn {
    width: 90%;
    margin: 10px auto 30px;
    padding: 1em;
    font-size: 1.1em;
  }

  table {
    font-size: 0.9em;
  }

  table, th, td {
    padding: 8px 5px;
  }

  img {
    margin: 15px auto;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  header,
  footer {
    padding: 10px;
  }

  .register-btn {
    padding: 1em;
    font-size: 1.1em;
  }

  .container {
    margin: 10px auto;
  }

  h1 {
    font-size: 1.3em;
  }

  h2 {
    font-size: 1.1em;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  th, td {
    min-width: 80px;
  }
}

/* Для очень маленьких экранов */
@media (max-width: 320px) {
  body {
    font-size: 13px;
  }

  .logo img {
    height: 40px;
  }

  .register-btn,
  .cta-btn {
    font-size: 1em;
    padding: 0.8em;
  }
}

    .main-container {
      max-width: 1200px;
      margin: 20px auto;
      padding: 0 15px;
    }
    
    .slots-section {
      background: #f8f9fa;
      padding: 30px;
      border-radius: 15px;
      box-shadow: 0 4px 15px rgba(0,0,0,0.1);
      margin-bottom: 40px;
    }
    
    .content-section {
      background: white;
      padding: 30px;
      border-radius: 15px;
      box-shadow: 0 4px 15px rgba(0,0,0,0.1);
      margin-bottom: 40px;
    }
    
    /* Контейнер категорий */
.slots-category {
  margin-bottom: 35px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Сетка карточек */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  justify-content: center;
  max-width: 1000px;
  width: 100%;
}

/* Карточка слота */
.slot-item {
  background: #f0efef;
  border-radius: 10px;
  padding: 10px;
  width: 100%;
  max-width: 180px;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  
  /* Новое: фиксируем высоту и выравниваем элементы */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* кнопка прижимается вниз */
  min-height: 280px; /* регулируй под нужный размер */
}

.slot-item:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 5px 12px rgba(72, 255, 0, 0.3);
}

/* Изображение */
.slot-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transition: transform 0.3s ease;
}

.slot-item:hover img {
  transform: scale(1.08);
}

/* Название и описание */
.slot-item h4 {
  margin: 6px 0 3px;
  font-size: 0.95rem;
  color: #00ff4c;
}

.slot-item p {
  font-size: 0.85rem;
  color: #080808;
  line-height: 1.2;
  min-height: 36px;
  flex-grow: 1; /* растягивает описание для выравнивания кнопки */
}

/* Кнопка */
.play-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  font-size: 0.85rem;
  background: linear-gradient(45deg, #69c500, #5eff00);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.play-btn:hover {
  background: linear-gradient(45deg, #78ee09, #72b801);
}

/* Адаптивность */
@media (max-width: 768px) {
  .slots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .slot-item {
    max-width: 160px;
    min-height: 260px;
  }
}

@media (max-width: 480px) {
  .slots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .slot-item {
    max-width: 150px;
    min-height: 240px;
  }

  .slot-item h4 {
    font-size: 0.9rem;
  }

  .slot-item p {
    font-size: 0.8rem;
  }

  .play-btn {
    padding: 5px 10px;
    font-size: 0.8rem;
  }
}
    
    .play-btn {
      display: inline-block;
      padding: 10px 20px;
      background-color: #009219;
      color: white;
      text-decoration: none;
      border-radius: 6px;
      font-size: 0.9em;
      transition: background-color 0.3s ease;
    }
    
    .play-btn:hover {
      background-color: #007a15;
    }
    
    .content-section h2 {
      color: #222;
      border-bottom: 2px solid #009219;
      padding-bottom: 10px;
      margin-bottom: 20px;
    }
    
    .content-section p {
      line-height: 1.6;
      margin-bottom: 15px;
    }
    
    .content-section table {
      width: 100%;
      border-collapse: collapse;
      margin: 20px 0;
    }
    
    .content-section table, .content-section th, .content-section td {
      border: 1px solid #ddd;
      padding: 12px;
    }
    
    .content-section th {
      background-color: #f0f0f0;
    }
    
    .cta-btn {
      display: block;
      margin: 25px auto;
      padding: 15px 30px;
      background-color: #009219;
      color: white;
      text-align: center;
      border: none;
      border-radius: 8px;
      text-decoration: none;
      font-size: 1.1em;
      width: fit-content;
      transition: background-color 0.3s ease;
    }
    
    .cta-btn:hover {
      background-color: #007a15;
    }
    
    @media (max-width: 1024px) {
      .slots-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }
    
    @media (max-width: 768px) {
      .slots-grid {
        grid-template-columns: 1fr;
      }
      
      .slot-item img {
        height: 120px;
      }
      
      .slots-section, .content-section {
        padding: 20px;
      }
    }
    
    @media (max-width: 480px) {
      .main-container {
        padding: 0 10px;
      }
      
      .slots-section, .content-section {
        padding: 15px;
      }
    }
  