.tm-home-products {
  width: 100%;
  padding: 48px clamp(24px, 3.2vw, 48px);
  color: #235fa5;
  box-sizing: border-box;
}
.tm-home-products,
.tm-home-products * {
  font-family: inherit;
}
.tm-home-products__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto 48px;
  max-width: 1344px;
}
.tm-home-products__header h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 500;
  line-height: 1.08;
}
.tm-home-products__header p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}
.tm-home-products__header > a {
  flex: none;
  color: inherit;
  text-decoration: none;
}
.tm-home-products__viewport {
  position: relative;
  max-width: 1344px;
  margin: 0 auto;
}
.tm-home-products__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.tm-home-products__card {
  min-width: 0;
  padding: 0 26px 24px;
  border: 1px solid rgba(35, 95, 165, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(24, 53, 91, 0.06);
  text-align: center;
}
.tm-home-products__image {
  display: grid;
  place-items: center;
  height: 240px;
  margin: 0 -26px 24px;
  background: #fff;
  color: #b6c5d4;
  font-size: 12px;
}
.tm-home-products__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tm-home-products__card h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
}
.tm-home-products__card strong {
  display: block;
  margin-bottom: 22px;
  font-size: 18px;
  font-weight: 700;
}
.tm-home-products__card > a {
  display: block;
  padding: 9px 14px;
  border: 1px solid #2f8ee8;
  border-radius: 999px;
  color: #2f8ee8;
  text-decoration: none;
  font-size: 13px;
}
.tm-home-products__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 30px;
  height: 50px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2f8ee8;
  font-size: 50px;
  font-weight: 300;
  line-height: 40px;
  transform: translateY(-50%);
  cursor: pointer;
}
.tm-home-products__arrow--prev {
  left: -34px;
}
.tm-home-products__arrow--next {
  right: -34px;
}
.tm-home-products__arrow:hover {
  opacity: 0.65;
}
@media (max-width: 1100px) {
  .tm-home-products__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .tm-home-products__card:nth-child(n + 4) {
    display: none;
  }
}
@media (max-width: 767px) {
  .tm-home-products {
    padding: 36px 20px;
  }
  .tm-home-products__header {
    display: block;
    margin-bottom: 28px;
  }
  .tm-home-products__header h2 {
    font-size: 32px;
  }
  .tm-home-products__header > a {
    display: inline-block;
    margin-top: 14px;
  }
  .tm-home-products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .tm-home-products__card {
    padding: 0 12px 16px;
  }
  .tm-home-products__image {
    height: 150px;
    margin: 0 -12px 14px;
  }
  .tm-home-products__card h3 {
    font-size: 14px;
  }
  .tm-home-products__card strong {
    font-size: 16px;
  }
  .tm-home-products__arrow--prev {
    left: -18px;
  }
  .tm-home-products__arrow--next {
    right: -18px;
  }
}
.tm-home-products__grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.tm-home-products__grid::-webkit-scrollbar {
  display: none;
}
.tm-home-products__card {
  flex: 0 0 calc((100% - 56px) / 5);
  scroll-snap-align: start;
}
.tm-home-products__image {
  color: transparent;
}
.tm-home-products__empty {
  width: 100%;
  padding: 40px;
  text-align: center;
}
@media (max-width: 1100px) {
  .tm-home-products__card {
    flex-basis: calc((100% - 28px) / 3);
  }
  .tm-home-products__card:nth-child(n + 4) {
    display: block;
  }
}
@media (max-width: 767px) {
  .tm-home-products__card {
    flex-basis: calc((100% - 10px) / 2);
  }
}
.tm-home-products__header h2 {
  color: var(--tm-home-products-heading-color, #235fa5);
}
.tm-home-products__card > a.tm-home-products__image {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
.tm-home-products__card > a.tm-home-products__button {
  border: 1px solid #2f8ee8;
  border-radius: 999px;
}
.tm-home-products__grid {
  cursor: grab;
  touch-action: pan-x;
}
.tm-home-products__grid.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}
.tm-home-products__grid.is-dragging a {
  pointer-events: none;
}
