.home-services {
  overflow: hidden;
}

.home-service-carousel {
  position: relative;
  width: 100%;
}

body.home-services-in-view .wa-float {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.home-service-carousel__viewport {
  overflow: hidden;
  padding: 7px 2px 10px;
  touch-action: pan-y;
  cursor: grab;
}

.home-service-carousel__viewport:active {
  cursor: grabbing;
}

.home-service-carousel__track {
  display: flex;
  align-items: stretch;
  gap: 24px;
  will-change: transform;
}

.home-service-carousel .service-card {
  flex: 0 0 calc((100% - 48px) / 3);
  align-self: stretch;
  min-width: 0;
  height: auto;
  padding: 8px;
  border-color: #8f7137;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(34, 31, 22, .96), rgba(7, 9, 7, .99));
  box-shadow: 0 15px 34px rgba(0, 0, 0, .28);
}

.home-service-carousel .service-card:hover {
  border-color: #d6b76e;
}

.home-service-carousel__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(222, 185, 100, .25);
  border-radius: 5px;
  background: radial-gradient(circle at 50% 46%, #24180f 0, #0a0a08 54%, #030403 100%);
}

.home-service-carousel__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 66%, rgba(5, 6, 5, .24));
}

.home-service-carousel__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.home-service-carousel .card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 15px 15px;
}

.home-service-carousel .service-card h3 {
  margin-bottom: 10px;
  text-align: center;
  font-size: 22px;
}

.home-service-carousel .service-card p {
  flex: 1;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.85;
}

.home-service-carousel .small-btn {
  min-height: 42px;
  padding: 9px 18px;
  gap: 14px;
  white-space: nowrap;
}

.home-service-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 18px;
}

.home-service-carousel__arrow {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid #c5a254;
  border-radius: 50%;
  background: linear-gradient(145deg, #1b1912, #090b08);
  color: #f2cf78;
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .25s ease, background-color .25s ease, color .25s ease;
}

.home-service-carousel__arrow:hover {
  border-color: #f0d38d;
  color: #ffe7a6;
  background: #242016;
}

.home-service-carousel__status {
  display: flex;
  min-width: 166px;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.home-service-carousel__count {
  color: #bbaa80;
  font-size: 12px;
  letter-spacing: .15em;
}

.home-service-carousel__count strong {
  color: #f0ce7e;
  font-size: 15px;
}

.home-service-carousel__pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.home-service-carousel__page {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #5e5136;
  cursor: pointer;
  transition: width .25s ease, border-radius .25s ease, background-color .25s ease;
}

.home-service-carousel__page[aria-current="true"] {
  width: 26px;
  border-radius: 5px;
  background: #e5bd60;
}

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

@media (max-width: 900px) {
  .home-service-carousel__track {
    gap: 20px;
  }

  .home-service-carousel .service-card {
    flex-basis: calc((100% - 20px) / 2);
  }
}

@media (max-width: 600px) {
  .home-service-carousel__track {
    gap: 14px;
  }

  .home-service-carousel .service-card {
    flex-basis: 84.5%;
  }

  .home-service-carousel .service-card .card-body {
    padding: 17px 14px 15px !important;
  }

  .home-service-carousel .service-card h3 {
    font-size: 22px !important;
  }

  .home-service-carousel .service-card p {
    font-size: 14px !important;
  }

  .home-service-carousel__photo {
    height: auto !important;
  }

  .home-service-carousel__controls {
    margin-top: 15px;
    gap: 14px;
  }

  .home-service-carousel__arrow {
    width: 43px;
    height: 43px;
  }

  .home-service-carousel__status {
    min-width: 130px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-service-carousel__track,
  .home-service-carousel__arrow,
  .home-service-carousel__page {
    transition: none !important;
  }
}
