.catalog-hero {
  padding: 60px 0;
  background: var(--white);
}

.catalog-hero__title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 50px;
  color: var(--dark);
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 20px;
}

.catalog-hero__desc {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.3;
  text-align: justify;
  color: var(--dark);
  margin-bottom: 60px;
}

.catalog-hero__desc p + p {
  margin-top: 14px;
}

.catalog-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  align-items: flex-start;
  justify-content: center;
}

.game-card {
  display: block;
  flex: 164;
  aspect-ratio: 164 / 190;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #d9d9d9;
  min-width: 0;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-card--large {
  flex: 312;
  aspect-ratio: 312 / 361;
}

@media (max-width: 768px) {
  .catalog-hero {
    padding: 40px 0;
  }

  .catalog-hero__title {
    font-size: 30px;
    margin-bottom: 16px;
  }

  .catalog-hero__desc {
    margin-bottom: 30px;
  }

  
  .catalog-grid {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  
  .game-card {
    flex: none;
    width: calc(50% - 8px);   
    aspect-ratio: 164 / 190;
  }

  
  .game-card--large {
    flex: none;
    width: 82%;
    aspect-ratio: 312 / 361;
  }

  
  .game-card:nth-child(6) {
    width: 91%;
    aspect-ratio: 348 / 404;
  }
}
