.main-page__title {
  margin-block-end: 30px;
  text-align: center;
}

.hxg-services-page {
  padding: 0 0 96px;
  background: rgb(218 174 65);
}

.hxg-services-page__shell {
  max-width: 1120px;
  min-height: 360px;
  margin: 0 auto;
  padding: 58px 64px 72px;
  background: rgb(255 250 238 / 84%);
  border: 1px solid rgb(255 255 255 / 48%);
  border-radius: 6px;
  box-shadow: 0 18px 38px rgb(96 67 45 / 12%);
}

.hxg-services-page__head {
  text-align: center;
}

.hxg-services-page__title {
  margin: 0;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2;
  color: rgb(0 0 0);
  letter-spacing: 0;
}

.hxg-services-page__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 34px;
  margin-block-start: 28px;
}

.hxg-services-page__tab-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.hxg-services-page__tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 0 8px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  color: rgb(96 67 45);
  text-align: center;
  cursor: pointer;
  transition:
    color 0.18s ease,
    opacity 0.18s ease;
}

.hxg-services-page__tab::after {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.hxg-services-page__tab:hover {
  color: rgb(128 45 48);
}

#hxg-services-single:checked ~ .hxg-services-page__tabs label[for="hxg-services-single"],
#hxg-services-multiple:checked ~ .hxg-services-page__tabs label[for="hxg-services-multiple"] {
  color: rgb(0 0 0);
}

#hxg-services-single:checked ~ .hxg-services-page__tabs label[for="hxg-services-single"]::after,
#hxg-services-multiple:checked ~ .hxg-services-page__tabs label[for="hxg-services-multiple"]::after {
  transform: scaleX(1);
}

.hxg-services-page__list {
  display: grid;
  gap: 22px;
  margin-block-start: 42px;
}

.hxg-services-page__service-card {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 28px;
  min-height: 168px;
  padding: 18px;
  color: rgb(48 28 29);
  background: rgb(255 255 255 / 76%);
  border: 1px solid rgb(176 139 67 / 24%);
  border-radius: 6px;
}

#hxg-services-single:checked ~ .hxg-services-page__list .hxg-services-page__service-card[data-price-group="multiple"],
#hxg-services-multiple:checked ~ .hxg-services-page__list .hxg-services-page__service-card[data-price-group="single"] {
  display: none;
}

.hxg-services-page__card-media {
  min-width: 0;
  overflow: hidden;
  background: rgb(226 194 132 / 42%);
  border-radius: 5px;
}

.hxg-services-page__card-image,
.hxg-services-page__card-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 132px;
  object-fit: cover;
}

.hxg-services-page__card-placeholder {
  background:
    linear-gradient(135deg, rgb(255 245 222 / 82%), rgb(226 194 132 / 78%)),
    rgb(226 194 132);
}

.hxg-services-page__card-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding-block: 4px;
}

.hxg-services-page__card-title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  color: rgb(0 0 0);
  letter-spacing: 0;
}

.hxg-services-page__card-tagline {
  max-width: 580px;
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgb(96 67 45);
}

.hxg-services-page__card-divider {
  width: 100%;
  height: 1px;
  margin-block: 16px 12px;
  background: rgb(176 139 67 / 32%);
}

.hxg-services-page__card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 14px;
  line-height: 1.4;
  color: rgb(48 28 29);
}

.hxg-services-page__card-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hxg-services-page__card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  min-height: 40px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: rgb(255 255 255);
  text-align: center;
  text-decoration: none;
  background: rgb(176 139 67);
  border-radius: 4px;
  transition:
    color 0.18s ease,
    background-color 0.18s ease;
}

.hxg-services-page__card-button:hover {
  color: rgb(128 45 48);
  background: rgb(205 169 96);
}

@media (min-width: 960px) {
  .main-page__title {
    margin-block-end: 20px;
  }
}

@media (max-width: 959px) {
  .hxg-services-page {
    padding: 0 0 56px;
  }

  .hxg-services-page__shell {
    min-height: 300px;
    padding: 40px 18px 52px;
    border-radius: 0;
  }

  .hxg-services-page__title {
    font-size: 28px;
  }

  .hxg-services-page__tabs {
    gap: 24px;
    margin-block-start: 24px;
  }

  .hxg-services-page__tab {
    font-size: 14px;
  }

  .hxg-services-page__list {
    gap: 16px;
    margin-block-start: 32px;
  }

  .hxg-services-page__service-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 14px;
  }

  .hxg-services-page__card-image,
  .hxg-services-page__card-placeholder {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .hxg-services-page__card-info {
    padding-block: 0;
  }

  .hxg-services-page__card-title {
    font-size: 20px;
  }

  .hxg-services-page__card-action {
    justify-content: flex-start;
  }

  .hxg-services-page__card-button {
    width: 100%;
  }
}
