.bee-home-categories {
  --bee-cat-gold: #e7a900;
  --bee-cat-brown: #573b32;
  --bee-cat-text: #2f241f;
  --bee-cat-line: #eadfcd;
  margin: 16px 0 30px;
  padding: 0;
  background: transparent;
  color: var(--bee-cat-text);
}

.bee-home-categories *,
.bee-home-categories *::before,
.bee-home-categories *::after {
  box-sizing: border-box;
}

.bee-home-categories__inner {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
}

.bee-home-categories__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bee-home-categories__track {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 3px 0 5px;
  list-style: none;
}

.bee-home-categories__item {
  min-width: 0;
  margin: 0;
}

.bee-home-categories__link {
  display: flex;
  min-height: 112px;
  padding: 6px 6px 7px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid var(--bee-cat-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(82, 58, 43, .055);
  color: var(--bee-cat-text);
  text-align: center;
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.bee-home-categories__link:hover,
.bee-home-categories__link:focus-visible {
  border-color: var(--bee-cat-gold);
  box-shadow: 0 9px 22px rgba(82, 58, 43, .11);
  color: var(--bee-cat-brown);
  transform: translateY(-2px);
}

.bee-home-categories__visual {
  display: flex;
  width: 100%;
  height: 76px;
  margin-bottom: 2px;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
}

.bee-home-categories__image {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0;
  object-fit: contain;
}

.bee-home-categories__name {
  display: -webkit-box;
  min-height: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 1199px) and (min-width: 850px) {
  .bee-home-categories__track {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .bee-home-categories__link {
    min-height: 112px;
  }
}

@media (max-width: 849px) {
  .bee-home-categories {
    margin: 10px 0 14px;
    padding: 0 14px;
  }

  .bee-home-categories__nav {
    position: relative;
    width: calc(100% + 14px);
    overflow: hidden;
  }

  .bee-home-categories__track {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 106px;
    grid-template-rows: 1fr;
    gap: 8px;
    padding: 3px 14px 4px 2px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 18px), transparent 100%);
  }

  .bee-home-categories__track::-webkit-scrollbar {
    display: none;
  }

  .bee-home-categories__item {
    scroll-snap-align: start;
  }

  .bee-home-categories__link {
    min-height: 102px;
    padding: 5px 5px 6px;
    border-radius: 12px;
  }

  .bee-home-categories__visual {
    width: 100%;
    height: 62px;
    margin-bottom: 2px;
  }

  .bee-home-categories__image {
    width: 58px;
    height: 58px;
  }

  .bee-home-categories__name {
    min-height: 28px;
    font-size: 11px;
    line-height: 1.3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bee-home-categories__link {
    transition: none;
  }
}
