.section-service-prices {
  padding: 8px 0 64px;
}

.service-prices-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 6px;
}

.service-price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 24px;
  border: 1px solid var(--alley-component-library--neutral--off-white);
  border-radius: 20px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.service-price-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--blue-rgb), 0.1);
}

.service-price-badge {
  position: absolute;
  top: -11px;
  right: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.service-price-title {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 1.1vw + 1rem, 1.8rem);
  line-height: 1.2;
  letter-spacing: -.02em;
}

.service-price-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.service-price-title-dot {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-top: 3px;
}

.service-price-title-dot__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity .22s ease;
}

.service-price-title-dot__img--base {
  opacity: 1;
}

.service-price-title-dot__img--green {
  opacity: 0;
}

.service-price-card:hover .service-price-title-dot__img--base,
.service-price-card:has(.btn-service-price:active) .service-price-title-dot__img--base,
.service-price-card:has(.btn-service-price:focus-visible) .service-price-title-dot__img--base {
  opacity: 0;
}

.service-price-card:hover .service-price-title-dot__img--green,
.service-price-card:has(.btn-service-price:active) .service-price-title-dot__img--green,
.service-price-card:has(.btn-service-price:focus-visible) .service-price-title-dot__img--green {
  opacity: 1;
}

.service-price-description {
  margin: 0 0 16px;
  color: var(--combine-library--grey-600);
  font-size: 15px;
  line-height: 1.55;
}

.service-price-value {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 500;
}

.price-prefix {
  color: var(--combine-library--grey-600);
  font-size: 16px;
  font-weight: 500;
}

.service-price-value data {
  font-size: clamp(2rem, 1.9vw + 1.2rem, 2.3rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.02em;
}

.price-currency {
  color: var(--combine-library--grey-600);
  font-size: 16px;
}

.service-price-features {
  margin: 0 0 20px;
  padding: 0 0 0 20px;
}

.service-price-features li {
  margin-bottom: 10px;
  color: #2a3140;
  line-height: 1.5;
}

.btn-service-price {
  min-width: 44px;
  min-height: 44px;
  width: 100%;
  padding: 12px 24px;
  margin-top: auto;
  justify-content: center;
}

.btn-service-price:hover,
.btn-service-price:focus-visible {
  padding: 12px 24px;
}

.service-prices-table-wrapper {
  margin-top: 40px;
}

.service-prices-table-title {
  margin: 0 0 16px;
  font-size: clamp(1.42rem, 1vw + 1rem, 1.7rem);
  line-height: 1.25;
  letter-spacing: -.01em;
}

.service-prices-table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 0.5px solid rgba(var(--black-rgb), 0.1);
  border-radius: 16px;
  background: #fff;
}

.service-prices-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

.service-prices-table thead th {
  padding: 16px 18px;
  background: var(--blue);
  color: #fff;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.service-prices-table thead th:last-child {
  border-right: 0;
}

.service-prices-table tbody th,
.service-prices-table tbody td {
  padding: 14px 18px;
  border-top: 1px solid #e7ebf4;
  border-right: 1px solid #edf1f8;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.45;
}

.service-prices-table tbody td:last-child,
.service-prices-table tbody th:last-child {
  border-right: 0;
}

.service-prices-table tbody th {
  width: 36%;
  background: #f7f9fe;
  color: #1d2a44;
  font-weight: 600;
}

.service-prices-table tbody tr:nth-child(even) td {
  background: #fcfdff;
}

.service-prices-table tbody tr:hover td,
.service-prices-table tbody tr:hover th {
  background: #f1f6ff;
}

.service-prices-disclaimer p {
  margin: 18px 0 0;
}

.service-prices-disclaimer small {
  color: var(--combine-library--grey-600);
  line-height: 1.55;
}

@media (min-width: 769px) {
  .service-prices-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-prices-table {
    min-width: 100%;
  }
}

@media (max-width: 767px) {
  .section-service-prices {
    padding-bottom: 40px;
  }

  .service-price-card {
    padding: 20px;
    border-radius: 16px;
  }

  .service-price-value data {
    font-size: 30px;
  }

  .service-prices-table-wrapper {
    margin-top: 32px;
  }

  .service-prices-table-responsive::after {
    content: "Листайте таблицу влево/вправо";
    display: block;
    padding: 9px 12px;
    font-size: 12px;
    color: #5f6570;
    background: #f4f7fd;
    border-top: 1px solid #e8edf6;
  }
}
