.a8-prices {
  margin-block-start: clamp(28px, 3.3vw, 48px);
}

.a8-prices h2 {
  max-width: 1080px;
  margin: 0 auto clamp(14px, 2.1vw, 25px);
  color: var(--ink);
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 660;
  letter-spacing: -.043em;
  line-height: 1.05;
  text-wrap: balance;
}

.a8-price-panel {
  container-type: inline-size;
  padding: clamp(23px, 2.65vw, 38px) clamp(18px, 4.5vw, 66px) clamp(22px, 2.55vw, 37px);
  border: 1px solid #e1e7e0;
  border-radius: clamp(21px, 2.3vw, 32px);
  background: #fff;
}

.a8-price-rows,
.a8-price-footer {
  max-width: 1080px;
  margin-inline: auto;
}

.a8-price-rows {
  margin-block: 0;
  padding: 0;
  list-style: none;
}

.a8-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  grid-template-areas: "title value" "detail value";
  align-items: center;
  column-gap: clamp(16px, 3vw, 38px);
  row-gap: 2px;
  padding: 6px 0 10px;
  border-bottom: 1px solid #dae4dc;
}

.a8-price-row h3 {
  display: flex;
  min-width: 0;
  min-height: 44px;
  grid-area: title;
  align-items: center;
  margin: 0;
  color: var(--ink);
  font-size: clamp(18px, 1.62vw, 24px);
  font-weight: 625;
  letter-spacing: -.027em;
  line-height: 1.19;
}

.a8-price-service {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  max-width: 100%;
  align-items: center;
  gap: 10px;
  border-radius: 5px;
  color: inherit;
  text-decoration: none;
}

.a8-price-service:hover {
  color: var(--strong);
  text-decoration: underline;
  text-underline-offset: .19em;
}

.a8-price-service .icon {
  flex: none;
  width: 17px;
  height: 17px;
  color: var(--strong);
  stroke-width: 1.7;
}

.a8-price-row .a8-price-value {
  grid-area: value;
  margin: 0;
  color: var(--strong);
  font-size: clamp(23px, 2.2vw, 32px);
  font-weight: 660;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.036em;
  line-height: 1.12;
  text-align: right;
  white-space: nowrap;
}

.a8-price-row .a8-price-detail {
  grid-area: detail;
  margin: 0;
  color: #455650;
  font-size: 16px;
  line-height: 1.43;
}

.a8-price-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  margin-top: clamp(18px, 1.8vw, 27px);
}

.a8-price-footer p {
  max-width: 37ch;
  margin: 0;
  color: #455650;
  font-size: 16px;
  line-height: 1.44;
}

.a8-price-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.a8-price-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px clamp(15px, 1.8vw, 24px);
  border: 1px solid transparent;
  border-radius: 28px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
}

.a8-price-action .icon {
  flex: none;
  width: 19px;
  height: 19px;
}

.a8-price-action-primary {
  color: #fff;
  background: var(--primary);
}

.a8-price-action-primary:hover {
  background: var(--strong);
}

.a8-price-action-secondary {
  border-color: #bfd5c9;
  color: #006459;
  background: #f2f7f3;
}

.a8-price-action-secondary:hover {
  border-color: #89ad9d;
  background: #e4f1e9;
}

.a8-price-action:disabled {
  opacity: .64;
  cursor: default;
}

.a8-price-service:focus-visible,
.a8-price-action:focus-visible {
  outline: 2px solid #007e70;
  outline-offset: 4px;
}

@container (max-width: 920px) {
  .a8-price-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .a8-price-footer p {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .a8-prices h2 {
    max-width: 22ch;
    margin-inline: 0;
  }

  .a8-price-row {
    grid-template-areas: "title value" "detail detail";
    column-gap: 10px;
    row-gap: 0;
    padding: 6px 0 9px;
  }

  .a8-price-row .a8-price-value {
    font-size: clamp(21px, 4.8vw, 24px);
  }

  .a8-price-service {
    text-decoration: underline;
    text-decoration-color: #68a193;
    text-underline-offset: .18em;
  }

  .a8-price-service .icon {
    display: none;
  }

  .a8-price-actions {
    display: grid;
    width: 100%;
  }

  .a8-price-action {
    min-height: 48px;
  }
}

@container (max-width: 319px) {
  .a8-price-row--range {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "value" "detail";
    row-gap: 4px;
  }

  .a8-price-row--range .a8-price-value {
    text-align: left;
  }
}

@media (max-width: 350px) {
  .a8-prices h2 {
    font-size: 29px;
  }

  .a8-price-row h3 {
    font-size: 17px;
  }

  .a8-price-row .a8-price-value {
    font-size: 20px;
  }

  .a8-price-action {
    padding-inline: 10px;
    letter-spacing: -.012em;
  }
}
