.hmstoreservices-carousel,
.hmstoreservices-directory,
.hmstoreservices-detail {
  --hmservices-text: #202024;
  --hmservices-muted: #535861;
  --hmservices-card: #f3f3f3;
  --hmservices-card-hover: #ececec;
  --hmservices-line: #d8dde2;
  --hmservices-accent: #008b82;
  --hmservices-warning: #fff5dc;

  box-sizing: border-box;
  width: 100%;
  color: var(--hmservices-text);
}

.hmstoreservices-carousel *,
.hmstoreservices-carousel *::before,
.hmstoreservices-carousel *::after,
.hmstoreservices-directory *,
.hmstoreservices-directory *::before,
.hmstoreservices-directory *::after,
.hmstoreservices-detail *,
.hmstoreservices-detail *::before,
.hmstoreservices-detail *::after {
  box-sizing: border-box;
}

.hmstoreservices-carousel {
  margin: 56px 0;
}

.hmstoreservices-carousel__inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

.hmstoreservices-directory__inner,
.hmstoreservices-detail__inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 64px;
}

.hmstoreservices-carousel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 34px;
}

.hmstoreservices-carousel__head h2,
.hmstoreservices-directory__head h1,
.hmstoreservices-detail__hero h1,
.hmstoreservices-detail--not-found h1 {
  margin: 0;
  color: var(--hmservices-text);
  font-weight: 900;
  letter-spacing: 0;
}

.hmstoreservices-carousel__head h2 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.08;
}

.hmstoreservices-carousel__all,
.hmstoreservices-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 26px;
  border: 1px solid var(--hmservices-text);
  border-radius: 999px;
  background: var(--hmservices-text);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
  white-space: nowrap;
}

.hmstoreservices-carousel__all:hover,
.hmstoreservices-carousel__all:focus,
.hmstoreservices-button:hover,
.hmstoreservices-button:focus {
  border-color: #000;
  background: #000;
  color: #fff;
  text-decoration: none;
}

.hmstoreservices-carousel__stage {
  position: relative;
}

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

.hmstoreservices-carousel__viewport::-webkit-scrollbar {
  display: none;
}

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

.hmstoreservices-carousel__track {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  min-width: 100%;
}

.hmstoreservices-carousel__card {
  display: flex;
  flex: 0 0 calc((100% - 24px) / 4);
  min-width: 270px;
  min-height: 282px;
  border-radius: 8px;
  background: var(--hmservices-card);
  color: var(--hmservices-text);
  text-decoration: none;
}

.hmstoreservices-carousel__card--link:hover,
.hmstoreservices-carousel__card--link:focus {
  background: var(--hmservices-card-hover);
  color: var(--hmservices-text);
  text-decoration: none;
}

.hmstoreservices-carousel__card-body,
.hmstoreservices-directory__card-content {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 38px 42px 36px;
}

.hmstoreservices-carousel__card strong,
.hmstoreservices-directory__card strong {
  display: block;
  margin-bottom: 18px;
  color: var(--hmservices-text);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.hmstoreservices-carousel__card span span,
.hmstoreservices-directory__card span span {
  display: -webkit-box;
  color: var(--hmservices-text);
  font-size: 13px;
  line-height: 1.18;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.hmstoreservices-carousel__card em,
.hmstoreservices-directory__card em {
  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: 0;
  border-radius: 999px;
  background: var(--hmservices-text);
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.hmstoreservices-carousel__card--link:hover em,
.hmstoreservices-carousel__card--link:focus em,
.hmstoreservices-directory__card--link:hover em,
.hmstoreservices-directory__card--link:focus em {
  background: #343434;
  color: #fff;
}

.hmstoreservices-carousel__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;
}

.hmstoreservices-carousel__arrow:hover,
.hmstoreservices-carousel__arrow:focus {
  background: #343434;
}

.hmstoreservices-carousel__arrow[hidden] {
  display: none;
}

.hmstoreservices-carousel__arrow--prev {
  left: -15px;
}

.hmstoreservices-carousel__arrow--next {
  right: -15px;
}

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

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

.hmstoreservices-carousel__progress-thumb {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 20%;
  height: 100%;
  background: var(--hmservices-text);
  transform-origin: left center;
}

.hmstoreservices-directory,
.hmstoreservices-detail {
  padding: 22px 0 84px;
}

.hmstoreservices-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--hmservices-muted);
  font-size: 12px;
}

.hmstoreservices-breadcrumb a {
  color: var(--hmservices-muted);
  text-decoration: none;
}

.hmstoreservices-breadcrumb a::after {
  content: "/";
  margin-left: 8px;
  color: #a6adb5;
}

.hmstoreservices-directory__head {
  max-width: 840px;
  margin-bottom: 34px;
}

.hmstoreservices-detail__eyebrow {
  margin: 0 0 12px;
  color: var(--hmservices-accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hmstoreservices-directory__head h1,
.hmstoreservices-detail__hero h1 {
  font-size: 48px;
  line-height: 1;
}

.hmstoreservices-directory__head > p:last-child,
.hmstoreservices-detail__hero-text > p:last-child {
  margin: 16px 0 0;
  color: var(--hmservices-muted);
  font-size: 17px;
  line-height: 1.55;
}

.hmstoreservices-directory__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hmstoreservices-directory__card {
  display: flex;
  min-height: 210px;
  border-radius: 8px;
  background: var(--hmservices-card);
  color: var(--hmservices-text);
  text-decoration: none;
}

.hmstoreservices-directory__card--link:hover,
.hmstoreservices-directory__card--link:focus {
  background: var(--hmservices-card-hover);
  color: var(--hmservices-text);
  text-decoration: none;
}

.hmstoreservices-directory__empty {
  padding: 28px;
  border: 1px solid var(--hmservices-line);
  border-radius: 8px;
}

.hmstoreservices-directory__empty strong {
  display: block;
  margin-bottom: 6px;
  color: var(--hmservices-text);
  font-size: 16px;
  font-weight: 900;
}

.hmstoreservices-directory__empty p {
  margin: 0;
  color: var(--hmservices-muted);
  font-size: 14px;
  line-height: 1.5;
}

.hmstoreservices-detail__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 176px;
  gap: 34px;
  align-items: center;
  margin-bottom: 36px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--hmservices-line);
}

.hmstoreservices-detail__visual {
  display: flex;
  width: 176px;
  height: 176px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--hmservices-card);
}

.hmstoreservices-detail__visual img {
  display: block;
  width: 112px;
  height: 112px;
  object-fit: contain;
}

.hmstoreservices-detail__content {
  display: grid;
  max-width: 840px;
  gap: 24px;
}

.hmstoreservices-detail__body {
  color: var(--hmservices-text);
  font-size: 16px;
  line-height: 1.65;
}

.hmstoreservices-detail__caution {
  padding: 18px 20px;
  border-left: 4px solid #d99a00;
  border-radius: 8px;
  background: var(--hmservices-warning);
}

.hmstoreservices-detail__caution strong {
  display: block;
  margin-bottom: 6px;
  color: #473813;
  font-size: 13px;
  font-weight: 900;
}

.hmstoreservices-detail__caution p {
  margin: 0;
  color: #5e5129;
  font-size: 14px;
  line-height: 1.55;
}

.hmstoreservices-button {
  justify-self: start;
}

.hmstoreservices-detail--not-found h1 {
  margin-bottom: 14px;
  font-size: 40px;
  line-height: 1.05;
}

.hmstoreservices-detail--not-found p:not(.hmstoreservices-detail__eyebrow) {
  max-width: 620px;
  margin: 0 0 22px;
  color: var(--hmservices-muted);
  font-size: 16px;
  line-height: 1.55;
}

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

  .hmstoreservices-carousel__stage:hover .hmstoreservices-carousel__arrow,
  .hmstoreservices-carousel__stage:focus-within .hmstoreservices-carousel__arrow {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 1199px) {
  .hmstoreservices-carousel__card {
    flex-basis: calc((100% - 16px) / 3);
  }

  .hmstoreservices-carousel__card-body {
    padding-right: 34px;
    padding-left: 34px;
  }
}

@media (max-width: 991px) {
  .hmstoreservices-directory__inner,
  .hmstoreservices-detail__inner {
    padding: 0 32px;
  }

  .hmstoreservices-carousel__card {
    flex-basis: calc((100% - 8px) / 2);
  }

  .hmstoreservices-directory__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hmstoreservices-detail__hero {
    grid-template-columns: 1fr;
  }

  .hmstoreservices-detail__visual {
    width: 148px;
    height: 148px;
  }
}

@media (max-width: 767px) {
  .hmstoreservices-carousel {
    margin: 42px 0;
  }

  .hmstoreservices-directory__inner,
  .hmstoreservices-detail__inner {
    padding: 0 20px;
  }

  .hmstoreservices-carousel__inner {
    padding: 0 16px;
  }

  .hmstoreservices-carousel__head {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 22px;
  }

  .hmstoreservices-carousel__head h2,
  .hmstoreservices-directory__head h1,
  .hmstoreservices-detail__hero h1 {
    font-size: 32px;
  }

  .hmstoreservices-carousel__all {
    width: auto;
    min-height: 36px;
    padding: 8px 20px;
    font-size: 12px;
  }

  .hmstoreservices-carousel__card {
    flex-basis: 78vw;
    min-width: 240px;
    max-width: 360px;
    min-height: 276px;
  }

  .hmstoreservices-carousel__card-body,
  .hmstoreservices-directory__card-content {
    padding: 26px;
  }

  .hmstoreservices-carousel__card strong,
  .hmstoreservices-directory__card strong {
    font-size: 24px;
  }

  .hmstoreservices-carousel__arrow {
    width: 40px;
    height: 40px;
  }

  .hmstoreservices-carousel__arrow--prev {
    left: -15px;
  }

  .hmstoreservices-carousel__arrow--next {
    right: -15px;
  }

  .hmstoreservices-directory__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .hmstoreservices-directory__inner,
  .hmstoreservices-detail__inner {
    padding: 0 16px;
  }

  .hmstoreservices-button {
    width: 100%;
  }
}
