body.type-index .next-to-carousel-banners {
  display: none !important;
}

body.type-index .rm-home-categories-wrap {
  display: block;
  width: 100%;
  margin: 18px 0 30px;
}

body.type-index .rm-home-categories {
  width: 100%;
  color: #302b33;
}

body.type-index .rm-home-categories__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
}

body.type-index .rm-home-category {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  color: #302b33;
  text-align: center;
  text-decoration: none !important;
}

body.type-index .rm-home-category:hover,
body.type-index .rm-home-category:focus-visible {
  color: #302b33;
}

body.type-index .rm-home-category:focus-visible {
  outline: 3px solid rgba(131, 66, 111, .35);
  outline-offset: 4px;
  border-radius: 13px;
}

body.type-index .rm-home-category__visual {
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 400 / 296;
  border-radius: 14px;
  box-shadow: 0 2px 7px rgba(48, 43, 51, .08);
  transition: transform .16s ease, box-shadow .16s ease;
}

body.type-index .rm-home-category__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body.type-index .rm-home-category__name {
  display: flex;
  min-height: 2.4em;
  align-items: flex-start;
  justify-content: center;
  margin-top: 11px;
  color: #302b33;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

body.type-index .rm-home-category:hover .rm-home-category__visual,
body.type-index .rm-home-category:focus-visible .rm-home-category__visual {
  box-shadow: 0 9px 22px rgba(76, 37, 66, .17);
  transform: translateY(-3px);
}

@media (max-width: 991px) {
  body.type-index .rm-home-categories__grid {
    gap: 14px;
  }

  body.type-index .rm-home-category__name {
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  body.type-index .rm-home-categories-wrap {
    margin-top: 14px;
    margin-bottom: 24px;
  }

  body.type-index .rm-home-categories__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 10px;
    row-gap: 17px;
  }

  body.type-index .rm-home-category__visual {
    border-radius: 11px;
  }

  body.type-index .rm-home-category__name {
    min-height: 2.4em;
    margin-top: 7px;
    font-size: 12.5px;
    line-height: 1.18;
  }
}

@media (max-width: 359px) {
  body.type-index .rm-home-categories__grid {
    column-gap: 7px;
  }

  body.type-index .rm-home-category__name {
    font-size: 11.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.type-index .rm-home-category__visual {
    transition: none;
  }
}
