/* «Стоимость»: две части страницы — медицинские и иные услуги. */
.prices-part + .prices-part {
  margin-top: 48px;
}

.prices-part__title {
  margin: 0 0 16px;
}

.prices-part__note {
  max-width: 860px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

/* При поиске по прайсу часть без совпадений исчезает вместе с заголовком. */
.prices-part:not(:has(.price-group:not([hidden]))) {
  display: none;
}

/* Направление → врач → услуги. */
html body details.price-group > summary .price-from {
  flex: none;
  margin-left: auto;
  color: var(--color-text-link);
  font-weight: 600;
  white-space: nowrap;
}

.price-doctors {
  display: grid;
}

.price-doctor {
  border-top: 1px solid var(--line);
}

.price-doctor > summary {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 14px 40px 14px 0;
  cursor: pointer;
  list-style: none;
}

.price-doctor > summary::-webkit-details-marker {
  display: none;
}

.price-doctor > summary::after {
  content: '+';
  position: absolute;
  top: 50%;
  right: 4px;
  color: var(--color-text-link-hover, var(--coral));
  font-size: 24px;
  line-height: 1;
  transform: translateY(-50%);
}

.price-doctor[open] > summary::after {
  content: '−';
}

.price-doctor > summary strong,
.price-doctor > summary small {
  display: block;
}

.price-doctor > summary strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.price-doctor > summary small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.price-doctor > summary .price-from {
  flex: none;
  margin-left: auto;
  font-weight: 600;
  white-space: nowrap;
}

.price-doctor > .price-list {
  margin: 0 0 14px !important;
  padding: 0 0 0 18px;
  border-left: 2px solid var(--line);
}

.price-doctor__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  margin-top: 12px;
}

.price-doctor__link {
  font-size: 15px;
}

.price-online {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-family-body, inherit);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  white-space: normal;
}

html body .price-doctors .price-row {
  padding-block: 8px !important;
  min-height: 0 !important;
}

html body .price-doctors .price-row h3 {
  font-size: 16px !important;
  line-height: 1.35 !important;
}

@media (max-width: 760px) {
  .price-doctor > .price-list {
    padding-left: 12px;
  }
}
