/* Документы пациентов и подробный прейскурант. */
.patient-document-list { display: grid; gap: 14px; margin: 20px 0 30px; }
.patient-document { padding: 18px 0; border-bottom: 1px solid var(--line); min-width: 0; overflow-wrap: anywhere; }
.patient-document h3 { margin: 0 0 8px; }
.patient-document p { margin-bottom: 10px; }
.patient-document__links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.patient-document__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.price-breakdown { margin: 28px 0; }
.price-breakdown summary { cursor: pointer; padding: 16px 0; font-weight: 600; }
.detailed-price-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.detailed-price-table th, .detailed-price-table td { padding: 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: calc(16px * var(--a11y-scale, 1)); line-height: 1.55; overflow-wrap: break-word; }
.detailed-price-table thead th { font-size: calc(14px * var(--a11y-scale, 1)); color: var(--muted); font-weight: 600; }
.detailed-price-table thead th:nth-child(1) { width: 7%; }
.detailed-price-table thead th:nth-child(2) { width: 24%; }
.detailed-price-table thead th:nth-child(3) { width: 55%; }
.detailed-price-table thead th:nth-child(4) { width: 14%; }
.detailed-price-table td:nth-child(2) { font-size: calc(14px * var(--a11y-scale, 1)); overflow-wrap: anywhere; }
.detailed-price-table td:last-child, .detailed-price-table thead th:last-child { text-align: right; }
.detailed-price-table td:last-child { font-weight: 600; white-space: nowrap; }
.detailed-price-group th { background: var(--accent-soft, #dce9e4); color: var(--ink); font-weight: 600; }
.detailed-price-total td { font-weight: 600; background: var(--surface); }
@media (max-width: 900px) {
  .detailed-price-table, .detailed-price-table tbody { display: block; }
  .detailed-price-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
  .detailed-price-table tr { display: grid; grid-template-columns: minmax(0, 1fr); }
  .detailed-price-table th, .detailed-price-table td { display: block; width: auto; border: 0; padding: 0; }
  .detailed-price-service { gap: 10px; padding: 20px 16px; border-bottom: 1px solid var(--line); }
  .detailed-price-service td:first-child { order: 0; font-size: calc(14px * var(--a11y-scale, 1)); color: var(--muted); }
  .detailed-price-service td:first-child::before { content: attr(data-label) " "; }
  .detailed-price-service td:nth-child(3) { order: 1; }
  .detailed-price-service td:nth-child(2) { order: 2; color: var(--muted); }
  .detailed-price-service td:nth-child(2)::before { content: attr(data-label) ": "; }
  .detailed-price-service td:last-child { order: 3; text-align: left; }
  .detailed-price-service td:last-child::before { content: attr(data-label) ": "; font-weight: 400; }
  .detailed-price-group th { padding: 16px; }
  .detailed-price-total { grid-template-columns: minmax(0, 1fr) auto !important; gap: 12px; padding: 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
  .detailed-price-total td:empty { display: none; }
}
.patient-prices { min-width: 0; overflow-wrap: anywhere; }
.patient-prices .two-col { margin-top: 28px; }
