/* Статья «Прожиточный минимум в 2026 году» и пять страниц регионов: первый экран с карточкой региона, главы в карточке, содержание сбоку.
   Основа — rd-mrot.css, раскладка повторяет rd-regiony.css, отличия — по макету web-calculator-finansy.pen (ветка «Финансы», 24.10.2026). */
.rd .rd-pm-hero h1 { font-size: 56px; line-height: 1.08; letter-spacing: -2px; max-width: 900px; }
.rd .rd-pm-hero__label { color: var(--accent); }
/* Скрытое скриптом не должно проявляться из-за display в правилах ниже */
.rd .rd-pm-first [hidden], .rd .rd-pm [hidden] { display: none !important; }

/* Первый экран: слева вводная и цифры, справа карточка региона */
.rd .rd-pm-first { display: grid; grid-template-columns: minmax(0, 1fr) 600px; grid-template-rows: auto auto auto 1fr; grid-template-areas: "dek card" "nums card" "y27 card" ". card"; gap: 24px 40px; align-items: start; padding: 0 var(--gut) 56px; }
.rd .rd-pm-first--region { grid-template-rows: auto auto auto auto 1fr; grid-template-areas: "dek card" "nums card" "y27 card" "chips card" ". card"; }
.rd .rd-pm-dek { grid-area: dek; margin: 0; font: 400 20px/1.6 var(--f-text); color: var(--ink); }
.rd .rd-pm-nums { grid-area: nums; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rd .rd-pm-num { background: var(--card); border-radius: 20px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.rd .rd-pm-num__v { font: 700 34px/1 var(--f-ui); letter-spacing: -.8px; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rd .rd-pm-num__v.is-accent { color: var(--accent); }
.rd .rd-pm-num__l { font: 400 13px/1.4 var(--f-text); color: var(--mute); }

/* Минимум на 2027 год под цифрами */
.rd .rd-pm-y27 { grid-area: y27; display: flex; align-items: center; gap: 20px; background: #E4E6F7; border-radius: 20px; padding: 22px 24px; }
.rd .rd-pm-y27__y { flex: none; font: 400 11px/1 var(--f-mono); letter-spacing: 1px; color: var(--accent); }
.rd .rd-pm-y27__v { flex: none; font: 700 22px/1.1 var(--f-ui); letter-spacing: -.4px; color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rd .rd-pm-y27__t { margin: 0; font: 400 13px/1.45 var(--f-text); color: var(--mute); }

/* Другие регионы на странице региона */
.rd .rd-pm-chips { grid-area: chips; display: flex; flex-direction: column; gap: 10px; }
.rd .rd-pm-chips .rd-label { margin: 0; }
.rd .rd-pm-chips__row { display: flex; flex-wrap: wrap; gap: 8px; }
.rd a.rd-pm-chip { display: inline-flex; align-items: center; padding: 10px 14px; border-radius: 999px; background: var(--pill); font: 400 14px/1.2 var(--f-ui); color: var(--ink); text-decoration: none; transition: background-color .15s; }
.rd a.rd-pm-chip:hover { background: #E4E6F7; }
.rd a.rd-pm-chip--all { background: transparent; color: var(--accent); }
.rd a.rd-pm-chip--all:hover { background: transparent; text-decoration: underline; }

.rd .rd-pm-card { grid-area: card; background: var(--card); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 16px; }
.rd .rd-pm-card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rd .rd-pm-card__top .rd-label { margin: 0; }
.rd .rd-pm-card__link { display: inline-flex; align-items: center; gap: 4px; flex: none; font: 500 13px/1 var(--f-ui); color: var(--accent); text-decoration: none; }
.rd .rd-pm-card__link:hover { text-decoration: underline; }
.rd .rd-pm-card__ctrl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.rd .rd-pm-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rd .rd-pm-field .rd-label { margin: 0; }
.rd .rd-pm-field select { width: 100%; min-width: 0; height: 48px; padding: 0 40px 0 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--tile) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230D0D0D' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center; font: 500 16px/1 var(--f-ui); color: var(--ink); appearance: none; -webkit-appearance: none; cursor: pointer; text-overflow: ellipsis; }
.rd .rd-pm-field select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rd .rd-pm-rate { display: flex; gap: 2px; padding: 4px; background: var(--pill); border-radius: 999px; }
.rd .rd-pm-rate button { height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; font: 500 13px/1 var(--f-ui); color: var(--ink); cursor: pointer; white-space: nowrap; }
.rd .rd-pm-rate button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.rd .rd-pm-rate button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.rd .rd-pm-ans { background: var(--tile); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.rd .rd-pm-ans .rd-label { margin: 0; }
.rd .rd-pm-ans__v { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.rd .rd-pm-ans__n { font: 500 48px/1 var(--f-mono); letter-spacing: -1.6px; color: var(--ink); font-variant-numeric: tabular-nums; }
.rd .rd-pm-ans__u { font: 400 16px/1.3 var(--f-text); color: var(--mute); }
.rd .rd-pm-ans__n.is-na { font-size: 32px; letter-spacing: -.8px; color: var(--mute); }
.rd .rd-pm-ans__p { margin: -4px 0 0; font: 400 13px/1.45 var(--f-text); color: var(--mute); }
.rd .rd-pm-scale { display: flex; flex-direction: column; gap: 8px; }
.rd .rd-pm-scale__bar { display: flex; height: 8px; border-radius: 999px; background: var(--pill); overflow: hidden; }
.rd .rd-pm-scale__fed { background: #9AA0A6; transition: width .3s ease; }
.rd .rd-pm-scale__reg { background: var(--accent); transition: width .3s ease; }
.rd .rd-pm-scale__lbl { display: flex; justify-content: space-between; gap: 8px; font: 400 11px/1.3 var(--f-mono); letter-spacing: .5px; text-transform: uppercase; color: var(--mute); }
.rd .rd-pm-scale__lbl #pmCur { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-weight: 500; text-align: center; }
.rd .rd-pm-scale__lbl .rd-pm-scale__fedl, .rd .rd-pm-scale__lbl #pmDiff { flex: none; white-space: nowrap; }
.rd .rd-pm-scale__lbl #pmDiff { text-align: right; }
.rd .rd-pm-facts { margin: 0; display: flex; flex-direction: column; }
.rd .rd-pm-facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.rd .rd-pm-facts dt { font: 400 14px/1.4 var(--f-text); color: var(--mute); }
.rd .rd-pm-facts dd { margin: 0; font: 400 16px/1.3 var(--f-mono); color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }
.rd .rd-pm-facts__wide dd { font: 400 14px/1.4 var(--f-ui); }
.rd .rd-pm-card__btn { width: 100%; padding: 14px 20px; font-size: 14px; }
.rd a.rd-pm-card__more { display: inline-flex; align-self: center; align-items: center; gap: 4px; margin-top: -6px; font: 500 14px/1.3 var(--f-ui); color: var(--accent); text-decoration: none; }
.rd a.rd-pm-card__more:hover { text-decoration: underline; }

/* Содержание на первом экране — только на узких экранах, где колонка скрыта */
.rd .rd-pm-mtoc { grid-area: mtoc; display: none; background: var(--card); border-radius: 16px; padding: 14px 16px; }
.rd .rd-pm-mtoc summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 600 15px/1.3 var(--f-ui); color: var(--ink); cursor: pointer; list-style: none; }
.rd .rd-pm-mtoc summary::-webkit-details-marker { display: none; }
.rd .rd-pm-mtoc summary::after { content: ""; width: 14px; height: 14px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230D0D0D' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat center; transition: transform .2s; }
.rd .rd-pm-mtoc[open] summary::after { transform: rotate(180deg); }
.rd .rd-pm-mtoc ol { margin: 10px 0 0; padding: 0; list-style: none; }
.rd .rd-pm-mtoc li { margin: 0; padding: 0; list-style: none; }
.rd .rd-pm-mtoc a { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; font: 400 15px/1.35 var(--f-ui); color: var(--ink); text-decoration: none; }
.rd .rd-pm-mtoc a span { flex: none; font: 400 12px/1 var(--f-mono); color: var(--mute); }

/* Статья и колонка с содержанием */
.rd .rd-pm-row { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; padding: 0 var(--gut); }
.rd article.rd-pm { background: var(--card); border-radius: 24px; padding: 56px; min-width: 0; display: flex; flex-direction: column; gap: 56px; font: 400 17px/1.6 var(--f-text); color: var(--ink); }
.rd .rd-pm-aside { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 20px; }
.rd .rd-pm-toc ol { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.rd .rd-pm-toc li { margin: 0; padding: 0; list-style: none; }
.rd .rd-pm-toc a { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; font: 400 14px/1.4 var(--f-ui); color: var(--ink); text-decoration: none; }
.rd .rd-pm-toc a span { flex: none; font: 400 12px/1 var(--f-mono); color: var(--mute); }
.rd .rd-pm-toc a:hover, .rd .rd-pm-toc a.is-active { color: var(--accent); }
.rd .rd-pm-toc a.is-active { font-weight: 600; }
.rd .rd-pm-toc a.is-active span { color: var(--accent); }

.rd .rd-pm p { margin: 0; }
.rd .rd-pm a { color: var(--accent); }
.rd .rd-pm b, .rd .rd-pm strong { font-weight: 600; }
.rd .rd-pm .rd-label { margin: 0; }
.rd .rd-pm-ch { display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 16px; min-width: 0; }
.rd .rd-pm-ch__head { display: flex; flex-direction: column; gap: 10px; }
.rd .rd-pm-ch--faq { gap: 10px; }
.rd .rd-pm-ch__num { font: 400 13px/1 var(--f-mono); letter-spacing: 1px; color: var(--accent); }
.rd .rd-pm h2, .rd .rd-pm .faq__title { margin: 0; padding: 0; font: 700 30px/1.2 var(--f-ui); letter-spacing: -.4px; color: var(--ink); }

.rd .rd-pm-short { background: var(--tile); border: 1px solid var(--line); border-radius: 18px; padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; }
.rd .rd-pm-short .rd-label { color: var(--accent); }

/* 01. Проверка зарплаты */
.rd .rd-pm-calc { background: var(--tile); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.rd .rd-pm-calc__head { display: flex; flex-direction: column; gap: 6px; }
.rd .rd-pm-calc__t { font: 700 20px/1.3 var(--f-ui); color: var(--ink); }
.rd .rd-pm-calc__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.6fr); gap: 14px; }
.rd .rd-pm-calc label { display: flex; flex-direction: column; gap: 8px; min-width: 0; font: 400 13px/1.3 var(--f-ui); color: var(--mute); }
.rd .rd-pm-inp { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; }
.rd .rd-pm-inp:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.rd .rd-pm-inp.is-err { border-color: #B3261E; }
.rd .rd-pm-inp input { flex: 1; min-width: 0; height: 48px; padding: 0; border: 0; background: transparent; font: 400 16px/1 var(--f-ui); color: var(--ink); outline: none; font-variant-numeric: tabular-nums; }
.rd .rd-pm-inp span { flex: none; font: 400 14px/1 var(--f-ui); color: var(--mute); }
.rd .rd-pm-calc__err { margin: 0; font: 400 13px/1.4 var(--f-ui); color: #B3261E; }
.rd .rd-pm-calc__ans { background: var(--card); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.rd .rd-pm-calc__r { font: 600 17px/1.4 var(--f-ui); color: var(--ink); }
.rd .rd-pm-calc__r.is-bad { color: #B3261E; }
.rd .rd-pm-calc__r.is-good { color: #2F7A4E; }
.rd .rd-pm-calc__s { font: 400 13px/1.45 var(--f-text); color: var(--mute); }
.rd .rd-pm .rd-pm-calc__btn { align-self: flex-start; padding: 13px 22px; font: 600 14px/1 var(--f-ui); color: #fff; }

.rd .rd-pm-note { display: flex; gap: 12px; align-items: flex-start; background: #F3EEDD; border-radius: 16px; padding: 16px 20px; font: 400 15px/1.55 var(--f-text); color: var(--ink); }
.rd .rd-pm-note svg { flex: none; margin-top: 2px; color: #8A6D1F; }

/* Списки с тире: 02 и 06 */
.rd .rd-pm-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.rd .rd-pm-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.rd .rd-pm-list li::before { content: "—"; color: var(--accent); font-size: 17px; }

/* 02. Пример расчёта */
.rd .rd-pm-ex { background: var(--tile); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.rd .rd-pm-ex__t { font: 700 18px/1.3 var(--f-ui); color: var(--ink); }
.rd .rd-pm-ex__d { font: 400 16px/1.55 var(--f-text); color: var(--mute); }
.rd .rd-pm-ex__rows { margin: 0; display: flex; flex-direction: column; }
.rd .rd-pm-ex__rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.rd .rd-pm-ex__rows dt { font: 400 14px/1.4 var(--f-ui); color: var(--mute); }
.rd .rd-pm-ex__rows dd { margin: 0; font: 600 14px/1.4 var(--f-ui); color: var(--ink); text-align: right; }
.rd .rd-pm-ex__total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; background: var(--card); border-radius: 12px; padding: 12px 14px; }
.rd .rd-pm-ex__total b { font: 600 14px/1.4 var(--f-ui); }
.rd .rd-pm-ex__total span { font: 600 17px/1.4 var(--f-ui); color: var(--accent); text-align: right; }

/* 03. Что дальше с законопроектом */
.rd .rd-pm-next { background: var(--tile); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.rd .rd-pm-next__row { display: flex; align-items: center; gap: 14px; }
.rd .rd-pm-next__step { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.rd .rd-pm-next__step b { font: 600 15px/1.35 var(--f-ui); }
.rd .rd-pm-next__step span { font: 400 13px/1.4 var(--f-ui); color: var(--mute); }
.rd .rd-pm-next__step.is-accent { background: var(--accent); border-color: var(--accent); }
.rd .rd-pm-next__step.is-accent b { color: #fff; }
.rd .rd-pm-next__step.is-accent span { color: rgba(255,255,255,.8); }
.rd .rd-pm-next__arrow { flex: 0 1 150px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--accent); }
.rd .rd-pm-next__arrow span { font: 400 10px/1.35 var(--f-mono); letter-spacing: .5px; text-transform: uppercase; color: var(--mute); }

/* Таблицы 04, 07, 08 */
.rd .rd-pm-tw { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.rd .rd-pm-tw__sc { overflow-x: auto; }
.rd .rd-pm-t { width: 100%; border-collapse: collapse; table-layout: fixed; font: 400 14px/1.45 var(--f-ui); color: var(--ink); }
.rd .rd-pm-t th, .rd .rd-pm-t td { padding: 11px 18px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.rd .rd-pm-t thead th { padding: 12px 18px; border-top: 0; background: var(--pill); font: 400 11px/1.3 var(--f-mono); letter-spacing: 1px; text-transform: uppercase; color: var(--mute); }
.rd .rd-pm-t tbody th { font-weight: 600; }
.rd .rd-pm-t tbody td { background: var(--card); }
.rd .rd-pm-t tbody th { background: var(--card); }
.rd .rd-pm-t tr.is-na th, .rd .rd-pm-t tr.is-na td { color: var(--mute); }
/* Таблицы с суммами: колонки по содержимому, суммы не переносятся, узкий экран листает вбок */
.rd .rd-pm-t--num { table-layout: auto; }
.rd .rd-pm-t--num td, .rd .rd-pm-t--num tbody th { white-space: nowrap; }
.rd .rd-pm-t--y27 th:nth-child(2), .rd .rd-pm-t--y27 td:nth-child(2) { width: 140px; white-space: nowrap; }

/* 05. Таблица регионов */
.rd .rd-pm-find { display: flex; align-items: center; gap: 10px; width: 320px; max-width: 100%; height: 46px; padding: 0 16px; background: var(--tile); border: 1px solid var(--line); border-radius: 14px; color: var(--mute); }
.rd .rd-pm-find input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: transparent; font: 400 15px/1 var(--f-ui); color: var(--ink); outline: none; }
.rd .rd-pm-find:focus-within { border-color: var(--accent-mid); box-shadow: 0 0 0 2px var(--accent-soft); }
.rd .rd-pm-tw--reg.is-open .rd-pm-tw__sc { max-height: 640px; overflow: auto; }
.rd .rd-pm-reg { width: 100%; border-collapse: collapse; font: 400 14px/1.4 var(--f-ui); color: var(--ink); }
.rd .rd-pm-reg th, .rd .rd-pm-reg td { padding: 11px 12px; border-top: 1px solid var(--line); text-align: right; vertical-align: top; font-variant-numeric: tabular-nums; }
.rd .rd-pm-reg th:first-child, .rd .rd-pm-reg td:first-child { width: 28px; padding-left: 18px; text-align: left; font-family: var(--f-mono); font-size: 12px; color: var(--mute); }
.rd .rd-pm-reg th:nth-child(2), .rd .rd-pm-reg td:nth-child(2) { text-align: left; }
.rd .rd-pm-reg th:nth-child(n+3), .rd .rd-pm-reg td:nth-child(n+3) { width: 104px; }
.rd .rd-pm-reg th:last-child, .rd .rd-pm-reg td:last-child { width: 110px; padding-right: 18px; }
.rd .rd-pm-reg td { white-space: nowrap; }
.rd .rd-pm-reg td:nth-child(2) { white-space: normal; }
.rd .rd-pm-reg thead th { position: sticky; top: 0; z-index: 2; border-top: 0; background: var(--pill); font: 400 11px/1.3 var(--f-mono); letter-spacing: 1px; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
.rd .rd-pm-reg tbody td { background: var(--card); }
.rd .rd-pm-reg tbody tr.is-sel td { background: #E4E6F7; font-weight: 600; }
.rd .rd-pm-reg__p { display: block; margin-top: 3px; font: 400 12px/1.4 var(--f-ui); color: var(--mute); }
.rd .rd-pm-sort { display: inline-flex; gap: 4px; align-items: center; padding: 0; border: 0; background: none; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer; }
.rd .rd-pm-sort:hover { color: var(--ink); }
.rd .rd-pm-sort:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rd .rd-pm-reg th[aria-sort] .rd-pm-sort { color: var(--ink); }
.rd .rd-pm-reg th[aria-sort="descending"] .rd-pm-sort::after { content: "↓"; }
.rd .rd-pm-reg th[aria-sort="ascending"] .rd-pm-sort::after { content: "↑"; }
.rd .rd-pm-reg tr.rd-pm-reg__gap td { display: table-cell; width: auto; padding: 0; text-align: left; white-space: normal; }
.rd .rd-pm-reg tr.rd-pm-reg__gap .rd-pm-more { border-top: 0; }
.rd .rd-pm-reg tr.rd-pm-reg__empty td { display: table-cell; width: auto; padding: 14px 18px; text-align: left; font: 400 14px/1.4 var(--f-ui); color: var(--mute); white-space: normal; }
.rd .rd-pm-more { display: block; width: 100%; padding: 13px 18px; border: 0; border-top: 1px solid var(--line); background: var(--pill); font: 400 11px/1.3 var(--f-mono); letter-spacing: 1px; text-transform: uppercase; color: var(--accent); text-align: left; cursor: pointer; }
.rd .rd-pm-more:hover { color: var(--ink); }
.rd .rd-pm-more:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.rd .rd-pm-cap { margin: 0; font: 400 12px/1.5 var(--f-ui) !important; color: var(--mute); }

/* 06. Плитки калькуляторов */
.rd .rd-pm-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rd .rd-pm a.rd-pm-tile { display: flex; align-items: center; gap: 14px; background: var(--tile); border: 1px solid var(--line); border-radius: 18px; padding: 18px; color: var(--ink); text-decoration: none; transition: border-color .15s; }
.rd .rd-pm a.rd-pm-tile:hover { border-color: var(--ink); }
.rd .rd-pm-tile__i { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--card); color: var(--accent); }
.rd .rd-pm-tile__t { flex: 1; min-width: 0; font: 600 15px/1.35 var(--f-ui); }
.rd .rd-pm-tile > svg:last-child { flex: none; color: var(--mute); }

/* Страница региона, 07. Другие регионы */
.rd .rd-pm-rgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rd .rd-pm a.rd-pm-rg { display: flex; align-items: center; gap: 12px; min-width: 0; background: var(--tile); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; color: var(--ink); text-decoration: none; transition: border-color .15s; }
.rd .rd-pm a.rd-pm-rg:hover { border-color: var(--ink); }
.rd .rd-pm-rg__i { flex: none; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; background: var(--card); color: var(--accent); }
.rd .rd-pm-rg__n { flex: 1; min-width: 0; font: 600 15px/1.35 var(--f-ui); }
.rd .rd-pm-rg__v { flex: none; font: 400 14px/1.3 var(--f-mono); color: var(--mute); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rd .rd-pm-rg > svg:last-child { flex: none; color: var(--mute); }
.rd .rd-pm a.rd-pm-rgall { grid-column: 1 / -1; }

/* 07. Шаги */
.rd .rd-pm-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.rd .rd-pm-steps li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; font: 400 16px/1.6 var(--f-text); }
.rd .rd-pm-steps li > span { padding-top: 4px; font: 400 12px/1.4 var(--f-mono); letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }

/* 09. Частые вопросы — компонент x-faq внутри статьи */
.rd .rd-pm .faq { background: transparent; border-radius: 0; padding: 0; margin: 0; }
.rd .rd-pm .faq__title { margin: 0 0 20px; scroll-margin-top: 16px; }
.rd .rd-pm .faq .accordion { display: flex; flex-direction: column; gap: 8px; }
.rd .rd-pm .faq h3.button.button-dropdown, .rd .rd-pm .faq h3.button.button-dropdown:first-child { background: var(--tile); border: 0; border-radius: 16px; padding: 16px 20px; }
.rd .rd-pm .faq h3.button.button-dropdown.active { border-radius: 16px 16px 0 0; }
.rd .rd-pm .faq h3.button .button__text { font: 600 16px/1.4 var(--f-ui); }
.rd .rd-pm .faq .dropdown__content { margin-top: -8px; padding: 0 20px 16px; background: var(--tile); border-radius: 0 0 16px 16px; }
.rd .rd-pm .faq .dropdown__content p { margin: 0 0 8px; font: 400 15px/1.6 var(--f-text); color: var(--mute); }
.rd .rd-pm .faq .dropdown__content p:last-child { margin-bottom: 0; }

/* 10. Источники */
.rd .rd-pm-src { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.rd .rd-pm-src li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; margin: 0; padding: 12px 0; list-style: none; border-bottom: 1px solid var(--line); font: 400 14px/1.5 var(--f-ui); }
.rd .rd-pm-src li:first-child { padding-top: 0; }
.rd .rd-pm-src li:last-child { border-bottom: 0; padding-bottom: 0; }
.rd .rd-pm-src li > span { font: 500 12px/1.5 var(--f-mono); color: var(--accent); }

/* После статьи: калькулятор зарплаты, калькуляторы по теме, оценка, похожие статьи */
.rd .rd-pm-after { display: flex; flex-direction: column; gap: 20px; padding: 24px var(--gut) 64px; }
.rd .rd-pm-cta { background: var(--ink); color: #fff; border-radius: 28px; padding: 40px 48px; display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.rd .rd-pm-cta .rd-label { color: rgba(255,255,255,.6); }
.rd .rd-pm-cta h2 { margin: 10px 0; padding: 0; font: 700 28px/1.2 var(--f-ui); letter-spacing: -.4px; color: #fff; }
.rd .rd-pm-cta p { margin: 0; font: 400 17px/1.5 var(--f-text); color: rgba(255,255,255,.8); }
.rd .rd-pm-cta__btn { flex: none; background: #fff; color: var(--ink); font-weight: 600; }
.rd .rd-pm-cta__btn:hover { background: var(--accent-soft); color: var(--ink); opacity: 1; }

.rd .rd-pm-calcs, .rd .rd-pm-rel { display: flex; flex-direction: column; gap: 18px; padding-top: 24px; }
.rd .rd-pm-calcs .rd-label, .rd .rd-pm-rel .rd-label { margin: 0 0 -10px; color: var(--accent); }
.rd .rd-pm-calcs h2, .rd .rd-pm-rel h2 { margin: 0; padding: 0; font: 700 26px/1.2 var(--f-ui); letter-spacing: -.3px; color: var(--ink); }
.rd .rd-pm-calcs__grid, .rd .rd-pm-rel__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rd a.rd-pm-ct { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: 20px; padding: 20px; color: var(--ink); text-decoration: none; transition: box-shadow .15s; }
.rd a.rd-pm-ct:hover { box-shadow: 0 0 0 1.5px var(--ink); }
.rd .rd-pm-ct__i { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--tile); color: var(--accent); }
.rd .rd-pm-ct__b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rd .rd-pm-ct__b b { font: 600 15px/1.35 var(--f-ui); }
.rd .rd-pm-ct__b span { font: 400 13px/1.4 var(--f-ui); color: var(--mute); }
.rd a.rd-pm-ct > svg:last-child { flex: none; color: var(--mute); }

.rd .rd-pm-after .rating-container { margin-top: 24px; border-radius: 22px; padding: 22px 28px; }
.rd .rd-pm-after .rating-container .rating-title { font: 700 18px/1.3 var(--f-ui); letter-spacing: 0; }
.rd .rd-pm-after .rating-container .star-rating .star { width: 44px; height: 44px; font-size: 22px; border-radius: 12px; }

.rd a.rd-pm-rc { display: flex; flex-direction: column; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; color: var(--ink); text-decoration: none; }
.rd a.rd-pm-rc:hover .rd-pm-rc__t { color: var(--accent); }
.rd .rd-pm-rc__cat { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--tile); font: 400 10px/1.3 var(--f-mono); letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.rd .rd-pm-rc__t { font: 700 18px/1.3 var(--f-ui); }
.rd .rd-pm-rc__d { font: 400 14px/1.5 var(--f-text); color: var(--mute); }
.rd .rd-pm-rc__date { margin-top: auto; font: 400 11px/1.4 var(--f-mono); color: var(--mute); }

@media (max-width: 1280px) {
    .rd .rd-pm-first { grid-template-columns: minmax(0, 1fr) 520px; }
    .rd article.rd-pm { padding: 44px; }
}
@media (max-width: 1024px) {
    .rd .rd-pm-hero h1 { font-size: 42px; letter-spacing: -1.2px; }
    .rd .rd-pm-first { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "dek" "card" "mtoc" "nums" "y27"; }
    .rd .rd-pm-first--region { grid-template-areas: "dek" "card" "mtoc" "nums" "y27" "chips"; }
    .rd .rd-pm-mtoc { display: block; }
    .rd .rd-pm-row { grid-template-columns: minmax(0, 1fr); }
    .rd .rd-pm-aside { display: none; }
    .rd .rd-pm-cta { flex-direction: column; align-items: flex-start; gap: 20px; }
    .rd .rd-pm-calcs__grid, .rd .rd-pm-rel__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 639px) {
    .rd .rd-pm-hero { padding: 12px 16px 16px; gap: 10px; }
    .rd .rd-pm-hero h1 { font-size: 32px; line-height: 1.12; letter-spacing: -.8px; }
    .rd .rd-pm-first { padding: 0 12px 32px; gap: 14px; }
    .rd .rd-pm-dek { padding: 0 4px; font-size: 17px; }
    .rd .rd-pm-nums { gap: 10px; }
    .rd .rd-pm-num { padding: 14px; border-radius: 20px; }
    .rd .rd-pm-num__v { font-size: 24px; letter-spacing: -.5px; }
    .rd .rd-pm-y27 { flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 20px; }
    .rd .rd-pm-chips { padding: 0 4px; }
    .rd .rd-pm-card { padding: 20px; border-radius: 28px; gap: 14px; }
    .rd .rd-pm-card__ctrl { grid-template-columns: minmax(0, 1fr); }
    .rd .rd-pm-rate button { flex: 1; }
    .rd .rd-pm-ans { padding: 18px; gap: 12px; }
    .rd .rd-pm-ans__n { font-size: 40px; }
    .rd .rd-pm-ans__n.is-na { font-size: 28px; }
    .rd .rd-pm-scale__lbl { flex-wrap: wrap; row-gap: 4px; }
    .rd .rd-pm-scale__lbl #pmCur { order: -1; flex-basis: 100%; white-space: normal; text-align: left; }
    .rd .rd-pm-facts dt { font-size: 13px; }
    .rd .rd-pm-facts dd { font-size: 15px; }
    .rd .rd-pm-row { padding: 0 12px; }
    .rd article.rd-pm { padding: 28px 20px; border-radius: 20px; gap: 40px; font-size: 16px; }
    .rd .rd-pm h2, .rd .rd-pm .faq__title { font-size: 24px; }
    .rd .rd-pm-short { padding: 16px 18px; }
    .rd .rd-pm-calc { padding: 18px; gap: 14px; }
    .rd .rd-pm-calc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rd .rd-pm .rd-pm-calc__btn { align-self: stretch; }
    .rd .rd-pm-note { padding: 14px 16px; font-size: 14px; }
    .rd .rd-pm-ex { padding: 18px; }
    .rd .rd-pm-ex__rows > div, .rd .rd-pm-ex__total { flex-direction: column; gap: 2px; }
    .rd .rd-pm-ex__rows dd, .rd .rd-pm-ex__total span { text-align: left; }
    .rd .rd-pm-next { padding: 18px; }
    .rd .rd-pm-next__row { flex-direction: column; align-items: stretch; }
    .rd .rd-pm-next__arrow { flex: none; flex-direction: row; justify-content: center; gap: 10px; }
    .rd .rd-pm-next__arrow svg { transform: rotate(90deg); }
    .rd .rd-pm-t th, .rd .rd-pm-t td, .rd .rd-pm-t thead th { padding: 11px 14px; }
    .rd .rd-pm-t--num th, .rd .rd-pm-t--num td, .rd .rd-pm-t--num thead th { padding: 11px 12px; }
    .rd .rd-pm-t--y27 th:nth-child(2), .rd .rd-pm-t--y27 td:nth-child(2) { width: auto; }
    .rd .rd-pm-t--stack thead tr, .rd .rd-pm-t--stack tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--card); }
    .rd .rd-pm-t--stack thead tr { background: var(--pill); }
    .rd .rd-pm-t--stack thead th:first-child { display: none; }
    .rd .rd-pm-t--stack thead th, .rd .rd-pm-t--stack tbody td { padding: 12px 16px; border-top: 0; }
    .rd .rd-pm-t--stack tbody th { grid-column: 1 / -1; padding: 12px 16px 0; }
    .rd .rd-pm-t--stack tbody tr { border-top: 1px solid var(--line); }
    .rd .rd-pm-find { width: 100%; }
    .rd .rd-pm-reg, .rd .rd-pm-reg thead, .rd .rd-pm-reg tbody { display: block; }
    .rd .rd-pm-reg thead { position: sticky; top: 0; z-index: 2; }
    .rd .rd-pm-reg tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
    .rd .rd-pm-reg thead tr { border-top: 0; }
    .rd .rd-pm-reg tr[hidden] { display: none; }
    .rd .rd-pm-reg th:first-child, .rd .rd-pm-reg td:first-child { display: none; }
    .rd .rd-pm-reg th, .rd .rd-pm-reg td, .rd .rd-pm-reg th:last-child, .rd .rd-pm-reg td:last-child { width: auto; padding: 0 8px 12px; border-top: 0; font-size: 13px; text-align: left; white-space: nowrap; }
    .rd .rd-pm-reg th:nth-child(3), .rd .rd-pm-reg td:nth-child(3) { padding-left: 16px; }
    .rd .rd-pm-reg thead th { position: static; letter-spacing: .5px; white-space: normal; }
    .rd .rd-pm-reg th:nth-child(2), .rd .rd-pm-reg td:nth-child(2) { grid-column: 1 / -1; padding: 12px 16px 6px; white-space: normal; }
    .rd .rd-pm-reg th:nth-child(n+3), .rd .rd-pm-reg td:nth-child(n+3) { width: auto; }
    .rd .rd-pm-reg tr.rd-pm-reg__gap td { display: block; grid-column: 1 / -1; padding: 0; }
    .rd .rd-pm-reg tr.rd-pm-reg__empty td { grid-column: 1 / -1; padding: 14px 16px; }
    .rd .rd-pm-tiles, .rd .rd-pm-rgrid { grid-template-columns: minmax(0, 1fr); }
    .rd .rd-pm-steps li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .rd .rd-pm-steps li > span { padding-top: 0; }
    .rd .rd-pm .faq h3.button.button-dropdown, .rd .rd-pm .faq h3.button.button-dropdown:first-child { padding: 16px 20px; }
    .rd .rd-pm .faq .dropdown__content { padding: 0 20px 16px; }
    .rd .rd-pm-after { padding: 20px 12px 40px; gap: 12px; }
    .rd .rd-pm-cta { padding: 28px 22px; border-radius: 20px; }
    .rd .rd-pm-cta h2 { font-size: 20px; }
    .rd .rd-pm-cta__btn { align-self: stretch; }
    .rd .rd-pm-calcs h2, .rd .rd-pm-rel h2 { font-size: 22px; }
    .rd .rd-pm-after .rating-container { padding: 20px 16px; }
    .rd .rd-pm-after .rating-container .star-rating { width: 100%; }
    .rd .rd-pm-after .rating-container .star-rating .star { flex: 1 1 0; width: auto; }
    .rd .supp__btns { flex-direction: column; }
    .rd .supp .supp__btn { width: 100%; }
}
