* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
  color: #fff;
  min-height: 100vh;
  padding: 20px;
  line-height: 1.6;
}

/* Анимация загрузки */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.5s ease;
}

.loader i {
  color: #ffcc00;
  margin-bottom: 20px;
}

.loader p {
  font-size: 1.2rem;
  color: #fff;
}

/* Основной контент */
.main-content {
  opacity: 1;
  transition: opacity 0.5s ease;
}

.hidden {
  opacity: 0;
  display: none;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 40px;
}

h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

h1 i, h2 i {
  margin-right: 10px;
}

.subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}

.about {
  background: rgba(0, 0, 0, 0.4);
  padding: 25px;
  border-radius: 15px;
  margin-bottom: 40px;
  text-align: center;
}

.about h2 {
  margin-bottom: 15px;
  font-size: 2rem;
}

.games-title {
  text-align: center;
  margin: 30px 0;
  font-size: 2.2rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.game-card {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  z-index: -1;
  transition: all 0.6s ease;
}

.game-card:hover::before {
  top: 0;
  left: 0;
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.game-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  position: relative;
}

.genre {
  color: #ffcc00;
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.description {
  margin-bottom: 20px;
  opacity: 0.8;
  font-size: 0.95rem;
}

.btn-link {
  background-color: #ffcc00;
  color: #000;
  text-decoration: none;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.btn-link:hover {
  background-color: #ffd84d;
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Секция социальных сетей */
.social-section {
  margin-top: 40px;
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 15px;
}

.social-section h2 {
  margin-bottom: 20px;
  font-size: 1.8rem;
  color: #ffcc00;
}

.social-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ffcc00;
  color: #000;
  padding: 12px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.social-link:hover {
  background: #ffd84d;
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.social-link i {
  font-size: 1.4rem;
}

/* Блок сотрудничества */
.cooperation-section {
  margin-top: 40px;
  padding: 25px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 15px;
  text-align: center;
  border: 1px solid rgba(255, 204, 0, 0.3);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.3s ease;
}

.cooperation-section:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

.cooperation-section h2 {
  margin-bottom: 15px;
  font-size: 1.8rem;
  color: #ffcc00;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.cooperation-section p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.6;
}

.cooperation-contact {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.cooperation-contact .btn-link {
  background-color: #ffcc00;
  color: #000;
  text-decoration: none;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.cooperation-contact .btn-link:hover {
  background-color: #ffd84d;
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}