.hmbikecategories {
  --hmbike-text: #202024;
  --hmbike-muted: #56595f;
  --hmbike-surface: #f4f4f4;
  --hmbike-line: #c8c8c8;
  --hmbike-strong: #191919;
  --hmbike-gap: 8px;

  color: var(--hmbike-text);
  margin: 64px 0 70px;
  overflow: hidden;
}

.hmbikecategories__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

.hmbikecategories__header {
  margin-bottom: 34px;
}

.hmbikecategories__title {
  margin: 0;
  color: var(--hmbike-text);
  font-size: 42px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

.hmbikecategories__stage {
  position: relative;
}

.hmbikecategories__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.hmbikecategories__viewport::-webkit-scrollbar {
  display: none;
}

.hmbikecategories__viewport:focus {
  outline: 2px solid rgba(0, 0, 0, 0.18);
  outline-offset: 8px;
}

.hmbikecategories__track {
  display: flex;
  align-items: stretch;
  gap: var(--hmbike-gap);
  width: 100%;
  min-width: 100%;
}

.hmbikecategories__card {
  display: flex;
  flex: 0 0 calc((100% - (var(--hmbike-gap) * 3)) / 4);
  flex-direction: column;
  box-sizing: border-box;
  min-width: 270px;
  min-height: 282px;
  padding: 38px 42px 36px;
  border-radius: 8px;
  background: var(--hmbike-surface);
}

.hmbikecategories__card-title {
  margin: 0 0 18px;
  color: var(--hmbike-text);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.hmbikecategories__description {
  display: -webkit-box;
  margin: 0 0 30px;
  color: var(--hmbike-text);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.hmbikecategories__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 36px;
  margin-top: auto;
  padding: 9px 18px;
  border-radius: 999px;
  background: #191919;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}

.hmbikecategories__button:hover,
.hmbikecategories__button:focus {
  background: #343434;
  color: #fff;
  text-decoration: none;
}

.hmbikecategories__arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #050505;
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.18s ease, opacity 0.18s ease;
}

.hmbikecategories__arrow:hover,
.hmbikecategories__arrow:focus {
  background: #343434;
}

.hmbikecategories__arrow[hidden] {
  display: none;
}

.hmbikecategories__arrow--prev {
  left: -15px;
}

.hmbikecategories__arrow--next {
  right: -15px;
}

.hmbikecategories__arrow-icon {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hmbikecategories__progress {
  position: relative;
  height: 2px;
  margin-top: 14px;
  background: var(--hmbike-line);
  cursor: pointer;
  overflow: hidden;
}

.hmbikecategories__progress-thumb {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 20%;
  height: 100%;
  background: var(--hmbike-strong);
  transform-origin: left center;
}

@media (min-width: 992px) {
  .hmbikecategories__arrow {
    opacity: 0;
    pointer-events: none;
  }

  .hmbikecategories__stage:hover .hmbikecategories__arrow,
  .hmbikecategories__stage:focus-within .hmbikecategories__arrow {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 1199px) {
  .hmbikecategories__card {
    flex-basis: calc((100% - (var(--hmbike-gap) * 2)) / 3);
    padding-right: 34px;
    padding-left: 34px;
  }
}

@media (max-width: 767px) {
  .hmbikecategories {
    margin: 46px 0 58px;
  }

  .hmbikecategories__inner {
    padding: 0 16px;
  }

  .hmbikecategories__header {
    margin-bottom: 24px;
  }

  .hmbikecategories__title {
    font-size: 32px;
  }

  .hmbikecategories__card {
    flex-basis: 78vw;
    min-width: 240px;
    min-height: 276px;
    padding: 34px 28px 30px;
  }

  .hmbikecategories__card-title {
    font-size: 24px;
  }

  .hmbikecategories__arrow {
    width: 40px;
    height: 40px;
  }

  .hmbikecategories__arrow--prev {
    left: -15px;
  }

  .hmbikecategories__arrow--next {
    right: -15px;
  }
}
