/* Homepage Our Services carousel — scoped to .ht-services. */
.ht-services {
  position: relative;
  overflow: hidden;
  padding-block: clamp(68px, 6vw, 108px) clamp(72px, 6vw, 106px);
  background: #F4F6FB;
  color: #171c42;
}
.ht-services__intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px 48px;
  margin-bottom: clamp(28px, 3.2vw, 44px);
}
.ht-services__intro-copy { min-width: 0; }
.ht-services__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 13px;
  color: #2c3077;
  font: 700 11px/1.4 var(--ht-font-body, "IBM Plex Sans", sans-serif);
  letter-spacing: .15em;
}
.ht-services__eyebrow span {
  display: inline-block;
  flex: 0 0 27px;
  width: 27px;
  height: 2px;
  background: #be2039;
}
.ht-services .ht-services__heading {
  margin: 0;
  color: #171c42;
  font: 800 clamp(35px, 3.6vw, 57px)/1.12 var(--ht-font-heading, Manrope, sans-serif);
  letter-spacing: -.057em;
}
.ht-services__heading span { color: #be2039; }
.ht-services__intro-description {
  max-width: 415px;
  margin: 0 0 4px;
  color: #60677a;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.7;
}

/* Extra vertical breathing space around the scrolling cards keeps hover shadows
   inside the scrollport instead of clipping them at its edges. */
.ht-services__slider { position: relative; }
/* Widen the clipping boundary, not the visible card layout.
   Negative inline margins extend the scrollport into the container gutter;
   matching padding restores the track's original position and width.
   As a result, blurred hover shadows beside the overlaid arrows have room
   to render on both sides while the slide positions remain consistent. */
.ht-services__viewport {
  --ht-services-shadow-gutter: clamp(10px, 2.2vw, 28px);
  margin-inline: calc(-1 * var(--ht-services-shadow-gutter));
  padding: 0 var(--ht-services-shadow-gutter);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: calc(19px + var(--ht-services-shadow-gutter));
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.ht-services__viewport::-webkit-scrollbar { display: none; }
.ht-services__viewport:focus-visible { outline: 2px solid #2c3077; outline-offset: 2px; }
.ht-services__track {
  --ht-services-gap: 22px;
  --ht-services-card-width: calc((100% - var(--ht-services-gap) * 3 - 38px) / 4);
  position: relative;
  display: flex;
  gap: var(--ht-services-gap);
  align-items: stretch;
  padding: 23px 19px 48px;
}
.ht-services__card {
  flex: 0 0 var(--ht-services-card-width);
  min-width: 0;
  min-height: 405px;
  scroll-snap-align: start;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e0e4ed;
  box-shadow: 0 6px 16px rgba(23, 28, 66, .055);
  transition: border-color 240ms ease, box-shadow 240ms ease, transform 240ms ease;
}
.ht-services__card:hover,
.ht-services__card:focus-within {
  transform: translateY(-5px);
  border-color: #a9b7cd;
  box-shadow: 0 18px 35px rgba(23, 28, 66, .18);
}
.ht-services__card-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.ht-services__card-link:hover { color: inherit; }
.ht-services__card-link:focus-visible { outline: 3px solid #2c3077; outline-offset: -5px; }
.ht-services__art {
  position: relative;
  height: clamp(185px, 13vw, 225px);
  overflow: hidden;
  isolation: isolate;
  background: #dde3ee;
}
.ht-services__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms cubic-bezier(.16,.8,.28,1);
}
.ht-services__card:hover .ht-services__photo,
.ht-services__card:focus-within .ht-services__photo { transform: scale(1.065); }
.ht-services__art::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,rgba(14,17,34,.32) 0%,transparent 38%);
}
.ht-services__category {
  position: absolute;
  z-index: 1;
  top: 16px;
  left: 17px;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 999px;
  color: #fff;
  background: rgba(15,19,40,.7);
  backdrop-filter: blur(6px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .035em;
  line-height: 1.2;
}
.ht-services__card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 23px 23px 20px;
}
.ht-services .ht-services__card-title {
  margin: 0 0 10px;
  color: #171c42;
  font: 800 clamp(20px, 1.35vw, 23px)/1.3 var(--ht-font-heading, Manrope, sans-serif);
  letter-spacing: -.035em;
}
.ht-services__card-text {
  flex: 1;
  margin: 0 0 21px;
  color: #687083;
  font-size: 13.8px;
  line-height: 1.65;
}
.ht-services__card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 15px;
  border-top: 1px solid #edf0f5;
  color: #171c42;
  font-size: 13.2px;
  font-weight: 750;
}
.ht-services__card-action-icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 2px solid #be2039;
  border-radius: 50%;
  background: #be2039;
  color: #fff;
  box-shadow: 0 5px 12px rgba(190,32,57,.16);
  transition: background-color 200ms ease, border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.ht-services__card-action-icon svg { width: 23px; height: 23px; stroke-width: 2.1; }
.ht-services__card:hover .ht-services__card-action-icon,
.ht-services__card:focus-within .ht-services__card-action-icon {
  background: #171c42;
  border-color: #171c42;
  box-shadow: 0 7px 16px rgba(23,28,66,.2);
  transform: translateX(3px);
}
.ht-services__arrow {
  display: grid;
  place-items: center;
  position: absolute;
  z-index: 3;
  top: calc(50% - 14px);
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid #d9dfea;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 24px rgba(23,28,66,.15);
  color: #171c42;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.ht-services__arrow--prev { left: -13px; }
.ht-services__arrow--next { right: -13px; }
.ht-services__arrow:hover,
.ht-services__arrow:focus-visible {
  background: #be2039;
  color: #fff;
  border-color: #be2039;
  box-shadow: 0 12px 28px rgba(190,32,57,.2);
}
.ht-services__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 0;
}
.ht-services__hint { margin: 0; color: #787e8c; font-size: 12px; }
.ht-services__position {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #9196a3;
  font: 700 12px/1 var(--ht-font-body, 'IBM Plex Sans', sans-serif);
}
.ht-services__position span:first-child { color: #171c42; }
.ht-services__progress { width: 106px; height: 3px; overflow: hidden; background: #d7dce4; border-radius: 4px; }
.ht-services__progress > span { display: block; height: 100%; width: 12.5%; background: #be2039; border-radius: 4px; transition: width 220ms ease; }
@media (max-width: 1320px) {
  .ht-services__track { --ht-services-card-width: calc((100% - var(--ht-services-gap) * 2 - 38px) / 3); }
}
@media (max-width: 1024px) {
  .ht-services__track { --ht-services-gap: 18px; --ht-services-card-width: calc((100% - var(--ht-services-gap) - 38px) / 2); }
  .ht-services__intro { align-items: start; }
  .ht-services__intro-description { max-width: 345px; }
  .ht-services__arrow--prev { left: -4px; }
  .ht-services__arrow--next { right: -4px; }
}
@media (max-width: 700px) {
  .ht-services { padding-block: 68px 70px; }
  .ht-services__intro { display: block; margin-bottom: 20px; }
  .ht-services__intro-description { max-width: 520px; margin-top: 15px; }
  .ht-services__track { --ht-services-gap: 14px; --ht-services-card-width: calc(100% - 38px); }
  .ht-services__card { min-height: 405px; }
  .ht-services__art { height: 205px; }
  .ht-services__arrow { top: auto; bottom: 0; width: 49px; height: 49px; transform: none; }
  .ht-services__arrow--prev { left: 1px; }
  .ht-services__arrow--next { right: 1px; }
  .ht-services__slider { padding-bottom: 73px; }
  .ht-services__bottom { position: relative; z-index: 1; justify-content: center; height: 48px; margin-top: -63px; pointer-events: none; }
  .ht-services__hint { display: none; }
  .ht-services__position { gap: 12px; }
  .ht-services__progress { width: 98px; }
}
@media (prefers-reduced-motion: reduce) {
  .ht-services__viewport { scroll-behavior: auto !important; }
  .ht-services__card,
  .ht-services__photo,
  .ht-services__card-action-icon,
  .ht-services__arrow,
  .ht-services__progress > span { transition: none !important; }
  .ht-services__card:hover { transform: none; }
}

/* Viewports under 700px: keep the overhang smaller than the page gutter.
   This preserves finger swiping and the compact one-card layout. */
@media (max-width: 700px) {
  .ht-services__viewport { --ht-services-shadow-gutter: 10px; }
}
