.cg-about-top-categories {
  width: min(1240px, calc(100vw - 40px));
  margin: 0 0 64px 50%;
  transform: translateX(-50%);
  color: #3B2116;
  font-family: Inter, Arial, sans-serif;
}

.cg-about-top-categories,
.cg-about-top-categories *,
.cg-about-top-categories *::before,
.cg-about-top-categories *::after {
  box-sizing: border-box;
}

.cg-about-top-categories__heading {
  margin: 0 0 32px;
  padding: 0;
  border: 0;
  color: #3B2116;
  font: 700 32px/40px Inter, Arial, sans-serif;
  letter-spacing: -.64px;
  text-align: center;
}

.cg-about-top-categories__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.cg-about-top-categories__card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(225, 213, 200, .82);
  border-radius: 20px;
  background: #FFFDF9;
  box-shadow: 0 2px 8px -4px rgba(103, 59, 38, .18);
}

.cg-about-top-categories__link {
  display: block;
  color: #3B2116;
  text-decoration: none;
}

.cg-about-top-categories__link:hover,
.cg-about-top-categories__link:focus {
  color: #974B23;
  text-decoration: none;
  outline: none;
}

.cg-about-top-categories__link:focus-visible {
  box-shadow: inset 0 0 0 3px rgba(151, 75, 35, .28);
}

.cg-about-top-categories__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 220ms ease;
}

.cg-about-top-categories__link:hover .cg-about-top-categories__image {
  transform: scale(1.012);
}

.cg-about-top-categories__name {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  overflow-wrap: anywhere;
  font: 600 18px/24px Inter, Arial, sans-serif;
  letter-spacing: -.18px;
  text-align: center;
}

@media (max-width: 991px) {
  .cg-about-top-categories__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .cg-about-top-categories {
    width: calc(100vw - 32px);
    margin-bottom: 48px;
  }

  .cg-about-top-categories__heading {
    margin-bottom: 20px;
    font-size: 20px;
    line-height: 30px;
    letter-spacing: -.4px;
  }

  .cg-about-top-categories__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .cg-about-top-categories__card {
    border-radius: 14px;
  }

  .cg-about-top-categories__name {
    min-height: 58px;
    padding: 9px 14px;
    font-size: 13px;
    line-height: 20px;
    letter-spacing: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cg-about-top-categories__image {
    transition: none;
  }
}
