.hm-services {
  padding: 62px 0 72px;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}

.hm-services__heading {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.hm-services__heading h2 {
  margin: 0;
  color: var(--primary);
  font-size: clamp(27px, 2.2vw, 38px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.hm-services__heading p {
  max-width: 610px;
  margin: 12px auto 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}

.hm-services__slider {
  overflow: hidden;
  padding: 10px 2px 8px;
}

.hm-services__slider .swiper-wrapper {
  align-items: stretch;
}

.hm-services__slider .swiper-slide {
  height: auto;
}

.hm-services__card {
  min-height: 226px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px 18px 22px;
  color: var(--primary);
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(1, 43, 55, 0.04);
  overflow: hidden;
  position: relative;
  isolation: isolate;
  transition: var(--transition);
}

.hm-services__card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 92px;
  z-index: 0;
  pointer-events: none;
  background-image: url("/vc-themes/images/bg/element-5.png");
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  opacity: 0.92;
  transition: opacity 0.3s ease;
}

.hm-services__card > * {
  position: relative;
  z-index: 1;
}

.hm-services__card:hover {
  color: var(--primary);
  border-color: rgba(224, 80, 16, 0.5);
  box-shadow: 0 14px 30px rgba(1, 43, 55, 0.1);
  transform: translateY(-5px);
}

.hm-services__card:hover::after {
  opacity: 0.18;
}

.hm-services__icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 17px;
  border: 1px solid rgba(0, 168, 184, 0.42);
  border-radius: 14px;
  color: var(--secondary);
  background: var(--white);
  font-size: 29px;
  line-height: 1;
  box-shadow: 0 5px 0 rgba(0, 160, 160, 0.16), 0 12px 24px rgba(1, 43, 55, 0.13);
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.hm-services__icon i {
  transition: var(--transition);
}

.hm-services__card:hover .hm-services__icon {
  color: var(--white);
  border-color: var(--secondary);
  background: var(--secondary);
  box-shadow: 0 7px 0 rgba(1, 43, 55, 0.25), 0 18px 28px rgba(1, 43, 55, 0.2);
  transform: translateY(-4px) scale(1.04);
}

.hm-services__card h3 {
  margin: 0;
  color: var(--primary);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.25;
}

.hm-services__card p {
  max-width: 190px;
  margin: 12px 0 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .hm-services {
    padding: 48px 0 56px;
  }

  .hm-services__heading {
    margin-bottom: 26px;
  }

  .hm-services__heading p {
    font-size: 14px;
  }

  .hm-services__card {
    min-height: 210px;
  }
}

@media (max-width: 575px) {
  .hm-services__heading h2 {
    font-size: 28px;
  }

  .hm-services__slider {
    margin-inline: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hm-services__card::after {
    transition: none;
  }
}
