/* Список законов и паспорт; действует только в двух новых шаблонах. */
.law-registry-table { min-width: 680px; table-layout: auto; font-size: 14px; }
.law-registry-table th:nth-child(1) { width: 135px; }
.law-registry-table th:nth-child(3) { width: 155px; }
.law-registry-table th:nth-child(4) { width: 145px; }
.law-registry-table td { line-height: 1.6; }
.law-registry-table .law-number-cell { font-weight: 700; color: #244e6b; white-space: nowrap; }
.law-registry-table .law-date-cell { white-space: nowrap; font-variant-numeric: tabular-nums; }
.law-registry-table .law-title-cell a { font-weight: 600; color: #21618b; }
.law-registry-table tbody tr:hover { background: #f5f9fc; }
.law-registry-table .law-table-empty { color: #637c8e; padding: 35px 14px; text-align: center; }
.law-detail h1 { max-width: 1000px; line-height: 1.28; overflow-wrap: anywhere; }
.law-back-link { display: inline-block; margin-top: 18px; color: #326b90; text-decoration: none; }
.law-detail-summary { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 24px; }
.law-detail-chip { display: inline-block; padding: 7px 12px; background: #ecf4f9; color: #31566e; border-radius: 20px; font-size: 13px; }
.law-detail-section { border-top: 1px solid #dfe9ef; padding: 25px 0; }
.law-detail-section h2 { font-size: clamp(19px,1.65vw,24px); color: #244e6b; margin: 0 0 19px; }
.law-detail-section-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.law-detail-section-header h2 { margin-bottom: 8px; }
.law-detail-actions { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.law-detail-actions a, .law-action { display: inline-flex; align-items: center; justify-content: center; text-align: center; border-radius: 8px; background: #eaf3f9; border: 1px solid #c9dee9; color: #1e5b84; padding: 9px 12px; font-size: 13px; font-weight: 600; text-decoration: none; transition: background .2s; }
.law-detail-actions a:hover, .law-action:hover { background: #dbeef9; text-decoration: none; }
.law-detail-actions a[download], .law-detail-actions .law-action:not(.law-action--secondary) { background: #315d7d; border-color: #315d7d; color: #fff; }
.law-detail-actions a[download]:hover { background: #214862; }
.law-pdf-inline { display: block; border: 1px solid #cfdee7; width: 100%; height: min(76vh, 850px); min-height: 430px; margin-top: 19px; background: #edf3f7; border-radius: 9px; }
.law-pdf-fallback { font-size: 13px; color: #637b8c; margin: 10px 0 0; }
.law-pdf-fallback a { color: #21618b; }
.law-no-pdf { background: #f2f6f9; padding: 18px; border-radius: 10px; color: #637b8c; }
.law-passport { display: grid; grid-template-columns: 1fr; padding: 0; margin: 0; border: 1px solid #dbe7ef; border-radius: 10px; overflow: hidden; }
.law-passport > div { display: grid; grid-template-columns: minmax(170px,32%) minmax(0,1fr); border-bottom: 1px solid #e1eaf0; }
.law-passport > div:last-child { border-bottom: 0; }
.law-passport dt, .law-passport dd { padding: 13px 17px; margin: 0; overflow-wrap: anywhere; }
.law-passport dt { background: #f2f7fa; color: #526f82; font-weight: 600; }
.law-passport dd { color: #233e50; line-height: 1.55; }
.law-passport--compact { margin-bottom: 17px; }
.law-attachments { display: grid; gap: 10px; }
.law-attachment { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 17px; background: #f8fbfd; border: 1px solid #dfeaf1; border-radius: 10px; margin-bottom: 9px; }
.law-attachment-label { font-weight: 600; color: #294f66; flex: 1 1 240px; overflow-wrap: anywhere; }
.law-attachment-label small { display: block; font-size: 12px; font-weight: normal; color: #768d9d; margin-top: 4px; }
@media(max-width: 720px) {
    .law-registry-table { min-width: 560px; }
    .law-passport > div { grid-template-columns: 1fr; }
    .law-passport dt { padding: 10px 14px 3px; }
    .law-passport dd { padding: 4px 14px 12px; }
    .law-pdf-inline { min-height: 330px; height: 58vh; }
    .law-detail-section-header { align-items: stretch; }
    .law-modal-head { flex-wrap: wrap; }
}
