.services-layout {
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(0.7rem, 1.8cqh, 1.1rem);
  align-content: stretch;
  align-items: stretch;
}

.services-copy {
  align-content: end;
  gap: 0.35rem;
  max-width: 58rem;
}

.services-instruction {
  color: var(--color-orange-dark);
  font-family: var(--font-family);
  font-size: clamp(0.72rem, 1.2cqw, 0.9rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.services-panel {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.services-menu {
  display: grid;
  gap: clamp(0.62rem, 1.6cqh, 0.9rem);
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  padding: 0.18rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.services-menu::-webkit-scrollbar {
  display: none;
}

.services-group {
  display: grid;
  gap: clamp(0.42rem, 1cqh, 0.6rem);
  min-width: 0;
}

.services-group__title {
  display: flex;
  align-items: center;
  height: clamp(2rem, 4.6cqh, 2.5rem);
  min-height: 2.2rem;
  max-height: 2.5rem;
  overflow: hidden;
  margin: 0;
  padding: 0.34rem clamp(0.62rem, 1.4cqw, 0.9rem);
  color: #120b07;
  background: linear-gradient(
    145deg,
    var(--color-orange) 0%,
    var(--color-orange) 75%,
    rgba(222, 97, 34, 0.74) 83%,
    rgba(222, 97, 34, 0) 88%
  );
  font-family: var(--display-family);
  font-size: clamp(1.35rem, min(2.4cqw, 4cqh), 2.1rem);
  font-weight: 400;
  line-height: 0.9;
  text-transform: uppercase;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.42rem, 1cqw, 0.68rem);
  align-items: start;
  min-width: 0;
}

.service-card {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 0.12rem 0.62rem;
  align-content: center;
  align-items: center;
  min-width: 0;
  height: clamp(3.75rem, 8.5cqh, 5.25rem);
  min-height: clamp(3.75rem, 8.5cqh, 5.15rem);
  max-height: 5.25rem;
  overflow: hidden;
  padding: clamp(0.34rem, 0.72cqw, 0.52rem);
  border: 1px solid rgba(17, 17, 17, 0.14);
  color: var(--color-ink);
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(17, 17, 17, 0.035) 1px, transparent 1px),
    rgba(255, 255, 255, 0.92);
  background-size: 28px 28px;
  box-shadow: 0 14px 30px rgba(17, 17, 17, 0.1);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.service-card:hover,
.service-card:focus-visible {
  border-color: rgba(222, 97, 34, 0.78);
  box-shadow:
    0 0 0 3px rgba(222, 97, 34, 0.16),
    0 18px 42px rgba(17, 17, 17, 0.16);
  transform: translateY(-2px);
}

.service-card__icons {
  grid-column: 1;
  grid-row: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  align-items: center;
  align-self: center;
  justify-content: flex-start;
  min-width: 0;
}

.service-card__icon {
  display: block;
  width: clamp(2.45rem, min(3.35cqw, 5.8cqh), 3.45rem);
  aspect-ratio: 1;
  border: 1px solid rgba(222, 97, 34, 0.42);
  background-color: var(--color-orange);
  background-image: url("../assets/icons-3x2-grid.png");
  background-repeat: no-repeat;
  background-size: 300% 200%;
  box-shadow: 0 8px 18px rgba(222, 97, 34, 0.18);
}

.service-card__icon--scissors {
  background-position: calc(0% - 2px) calc(0% - 3px);
}

.service-card__icon--clippers {
  background-position: calc(50% - 2px) calc(0% - 3px);
}

.service-card__icon--beard {
  background-position: calc(100% + 2px) calc(0% - 3px);
}

.service-card__icon--kids {
  background-position: 0% 100%;
}

.service-card__icon--first-responder {
  background-position: calc(50% + 1px) calc(100% + 2px);
}

.service-card__icon--senior {
  background-position: calc(100% + 2px) calc(100% + 1px);
}

.service-card__name {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  display: -webkit-box;
  overflow: hidden;
  color: var(--color-ink);
  font-size: clamp(0.74rem, 1.05cqw, 0.92rem);
  font-weight: 900;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.04;
  text-transform: uppercase;
}

.service-card__price {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  align-self: start;
  color: rgba(17, 17, 17, 0.56);
  font-size: clamp(0.62rem, 0.9cqw, 0.72rem);
  font-weight: 900;
  line-height: 1;
  text-align: right;
  text-transform: uppercase;
}

@media (max-height: 760px) and (min-width: 1041px) {
  .services-menu {
    gap: 0.48rem;
  }

  .services-group {
    gap: 0.34rem;
  }

  .services-group__title {
    height: 1.9rem;
    min-height: 1.9rem;
    max-height: 1.9rem;
    font-size: 1.45rem;
  }

  .service-card {
    height: 3.45rem;
    min-height: 3.45rem;
    max-height: 3.45rem;
    gap: 0.1rem 0.5rem;
    padding: 0.32rem;
  }
}

@media (max-width: 1040px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-card {
    height: clamp(3.65rem, 7.8cqh, 4.95rem);
    min-height: clamp(3.65rem, 7.8cqh, 4.85rem);
    max-height: 4.95rem;
  }
}

@media (max-width: 760px) {
  .services-layout {
    overflow-y: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .services-layout::-webkit-scrollbar {
    display: none;
  }

  .services-menu {
    height: auto;
    overflow: visible;
  }

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

  .service-card {
    height: 4.15rem;
    min-height: 4.15rem;
    max-height: 4.15rem;
  }
}
