.catalog-hero {
  background: var(--pink);
  width: 100%;
  overflow: hidden;
}

.catalog-hero-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.catalog-title {
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
  font-size: 50px;
  line-height: 0.935;
  color: var(--white);
  text-transform: uppercase;
  text-align: center;
  font-variation-settings: "opsz" 14;
  width: 100%;
}

.catalog-divider {
  width: 100%;
  height: 2px;
  line-height: 0;
}

.catalog-divider img {
  width: 100%;
  height: 2px;
  display: block;
}

.catalog-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: center;
  gap: 20px;
  width: 1040px;
  max-width: 100%;
}

.game-card {
  flex: 0 0 auto;
  width: 242px;
  height: 242px;
  border-radius: 20.348px;
  overflow: hidden;
  display: block;
}

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

.catalog-desc {
  width: 100%;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.3;
  color: var(--white);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.catalog-desc p {
  margin: 0;
}

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

.categories-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 20px;
  min-height: 246px;
}

.category-card {
  flex: 1 1 0;
  min-width: 0;
  background: var(--light-pink);
  color: var(--black);
  padding: 30px 20px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.category-card--dark {
  background: var(--maroon);
  color: var(--cream);
}

.category-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.16;
  text-transform: capitalize;
}

.category-desc {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .catalog-hero-inner {
    padding: 40px 20px;
    gap: 20px;
  }

  .catalog-title {
    font-size: 32px;
  }

  .catalog-grid {
    gap: 10px;
    width: 100%;
  }

  .game-card,
  .game-card img {
    width: 180px;
    height: 180px;
  }

  .categories {
    padding: 40px 0;
  }

  .categories-row {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    min-height: 0;
  }

  .category-card {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .game-card,
  .game-card img {
    width: calc(50% - 5px);
    height: auto;
    aspect-ratio: 1 / 1;
  }
}
