:root {
  color-scheme: light;
  --paper: #f4f5ef;
  --surface: #fff;
  --ink: #172723;
  --muted: #495953;
  --rule: #c8d1c9;
  --soft-rule: #dfe5dc;
  --core: #126453;
  --related: #9da993;
  --tint: #e9efe6;
  --link: #0a5a4b;
  --focus: #175dd6;
  --content: 76rem;
  --edge: clamp(.875rem, 3.8vw, 3rem);
  --mono: ui-monospace, 'Cascadia Mono', 'Liberation Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: .75rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.48 system-ui, -apple-system, 'Segoe UI', sans-serif;
}
h1, h2, h3, p, dl, dd, figure { margin: 0; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .12em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.container { width: min(var(--content), calc(100% - 2 * var(--edge))); margin-inline: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 3;
  inset: .5rem auto auto .5rem;
  padding: .55rem .8rem;
  background: var(--surface);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.masthead { border-block: .25rem solid var(--core); border-bottom: 1px solid var(--rule); }
.masthead-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .15rem 1rem;
  flex-wrap: wrap;
  padding-block: .62rem;
}
.eyebrow, .minor-heading {
  font-size: .75rem;
  font-weight: 770;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: .42rem; }
.masthead-mark { width: .56rem; height: .56rem; background: var(--core); }
.masthead-id { color: var(--muted); }
.masthead-nav { display: flex; gap: 1rem; font-size: .8125rem; font-weight: 650; }
.masthead-nav a { display: inline-block; padding-block: .25rem; }

.overview { padding-top: clamp(1.2rem, 3vw, 2.45rem); }
.overview-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.5rem; }
h1 {
  font-size: clamp(2rem, 4.75vw, 4rem);
  letter-spacing: -.055em;
  font-weight: 760;
  line-height: 1.035;
}
.document-period {
  white-space: nowrap;
  color: var(--core);
  font: 700 clamp(.9rem, 1.4vw, 1.15rem)/1.2 var(--mono);
  letter-spacing: -.035em;
}
.lede { max-width: 76ch; margin-top: .65rem; color: var(--muted); }
.summary { margin-top: 1.2rem; }
.summary > h2 { color: var(--muted); margin-bottom: .45rem; }
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--rule);
  background: var(--rule);
}
.kpi { min-width: 0; padding: .65rem clamp(.58rem, 1.7vw, 1.15rem) .72rem; background: var(--surface); }
.kpi dt { color: var(--muted); font-weight: 670; font-size: .875rem; line-height: 1.22; }
.kpi dd { margin-top: .32rem; line-height: 1; }
.kpi-total { background: var(--tint); }
.kpi-total dt, .kpi-core .kpi-value { color: var(--core); }
.kpi-value {
  font-size: clamp(1.7rem, 4.3vw, 3.1rem);
  font-weight: 760;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -.065em;
}
.kpi-unit { color: var(--muted); font-size: .8125rem; white-space: nowrap; }
.swatch { display: inline-block; width: .575rem; height: .575rem; margin-inline-end: .16rem; }
.swatch-core, .share-core { background: var(--core); fill: var(--core); }
.swatch-related, .share-related { background: var(--related); fill: var(--related); }
.budget-share { margin-top: .45rem; }
.share-bar { display: block; width: 100%; height: .42rem; overflow: hidden; border-radius: 1px; }
.budget-share figcaption { margin-top: .3rem; font-size: .75rem; color: var(--muted); }

.changes {
  display: grid;
  grid-template-columns: minmax(7.9rem, 13%) minmax(0, 1fr);
  gap: .3rem clamp(.7rem, 2vw, 1.5rem);
  margin-block: .9rem 1.25rem;
  padding: .64rem clamp(.6rem, 1.6vw, 1rem);
  border-left: .22rem solid var(--core);
  background: var(--tint);
}
.changes h2 { font-size: .94rem; font-weight: 760; }
.changes-body { font-size: .875rem; }
.changes-body > * + * { margin-top: .35rem; }
.change-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); gap: .35rem 1rem; margin: 0; padding: 0; list-style: none; }
.change-list strong { margin-inline-end: .3em; }

.expenses, .method { scroll-margin-top: .25rem; }
.expenses-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .1rem 1rem; }
.expenses h2, .method h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); font-weight: 750; letter-spacing: -.03em; line-height: 1.15; }
.expense-count, .table-note, .scroll-hint { font-size: .8125rem; color: var(--muted); }
.expense-count { font-variant-numeric: tabular-nums; }
.table-note { margin-block: .3rem .65rem; }
.toolbar { display: flex; align-items: flex-start; flex-wrap: wrap; gap: .4rem 1.4rem; margin: 0 0 .6rem; }
.control-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.control-group legend { margin-bottom: .23rem; padding: 0; color: var(--muted); font-size: .75rem; font-weight: 680; }
.options { display: flex; flex-wrap: wrap; gap: .2rem; }
.options label { position: relative; }
.options input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.options span {
  display: flex;
  align-items: center;
  gap: .28rem;
  min-height: 2rem;
  padding: .16rem .52rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: .2rem;
  font-size: .8125rem;
  font-weight: 650;
}
.options label:hover span { border-color: var(--core); }
.options input:checked + span { color: white; background: var(--core); border-color: var(--core); }
.options input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.year-options span { font-variant-numeric: tabular-nums; }
.year-options span::before { content: ''; display: inline-block; width: .6rem; height: .6rem; border: 1px solid currentColor; }
.year-options input:checked + span::before { background: currentColor; box-shadow: inset 0 0 0 1px var(--core); }
.year-options input[aria-disabled='true'] + span { cursor: default; }
.scroll-hint { display: none; margin-block: -.16rem .36rem; }
.scroll-hint.is-overflowing { display: block; }

.table-scroll { overflow-x: auto; border: 1px solid var(--rule); background: var(--surface); }
.budget-table { width: 100%; border-spacing: 0; color: var(--ink); font-size: .875rem; line-height: 1.32; }
/* Without enhancement the original HTML remains a complete three-year table. */
html:not(.has-table-ui) .budget-table [data-year][hidden] { display: table-cell !important; }
.budget-table th, .budget-table td { vertical-align: top; padding: .44rem .65rem; text-align: left; }
.budget-table thead th { color: white; background: #233c34; font-size: .78rem; font-weight: 700; }
.budget-table tbody > tr > * { border-top: 1px solid var(--soft-rule); }
.budget-table tbody > tr:first-child > * { border-top: 0; }
.budget-table tbody > tr:nth-child(even) { background: #f8faf6; }
.budget-table tbody > tr:target, .budget-table tbody > tr:focus-within { background: #e6f0e4; }
.budget-table tbody > tr > th:first-child { box-shadow: inset .2rem 0 var(--related); }
.budget-table tbody > tr[data-scope='core'] > th:first-child { box-shadow: inset .2rem 0 var(--core); }
.budget-table tbody > tr:target > th:first-child { box-shadow: inset .26rem 0 var(--focus); }
.budget-table .item-header { width: 49%; min-width: 9rem; }
.budget-table .row-title { display: block; font-weight: 665; }
.budget-table .row-party { display: block; margin-top: .12rem; color: var(--muted); font-size: .77rem; font-weight: 450; }
.budget-table [data-scope] .row-party::before {
  display: inline-block;
  margin-inline-end: .38rem;
  padding: 0 .25rem;
  border: 1px solid var(--rule);
  color: var(--muted);
  font-size: .66rem;
  font-weight: 720;
  white-space: nowrap;
}
.budget-table [data-scope='core'] .row-party::before {
  content: 'ФП НТИ';
  content: 'ФП НТИ' / 'Федеральный проект НТИ: ';
  border-color: #a8c0b4;
  color: var(--core);
}
.budget-table [data-scope='related'] .row-party::before {
  content: 'Вне ФП';
  content: 'Вне ФП' / 'Вне федерального проекта НТИ: ';
}
.budget-table .code { width: 15%; }
.budget-table .code code { color: var(--muted); font: .78rem/1.3 var(--mono); }
.budget-table .amount { width: 12%; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
.budget-table td.amount { font-weight: 620; }
.budget-table .proof { width: 17%; }
.budget-table .proof a { display: inline-block; margin-inline-end: .42rem; white-space: nowrap; font-size: .76rem; }
.budget-table .proof a:last-child { margin-inline-end: 0; }

.method { margin-top: 1.45rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.method-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(14rem, 1fr); gap: .75rem 1.75rem; margin-top: .54rem; }
.method-notes, .sources { min-width: 0; font-size: .875rem; }
.method-notes code { font-family: var(--mono); }
.audit-details { margin-top: .62rem; border-top: 1px solid var(--rule); }
.audit-details summary { display: list-item; width: fit-content; padding-block: .46rem; font-weight: 680; color: var(--link); cursor: pointer; }
.audit-content a { overflow-wrap: anywhere; }
.audit-content > * + *, .audit-grid > * + * { margin-block-start: .4rem; }
.audit-content ul, .audit-content ol { padding-inline-start: 1.3rem; }
.audit-content dd { margin-inline-start: 1rem; }
.audit-grid > p { padding: .4rem .55rem; background: var(--tint); }
.sources { padding-left: .9rem; border-left: 1px solid var(--rule); }
.sources .minor-heading { color: var(--muted); }
.source-list { display: grid; gap: .4rem; margin: .42rem 0 0; padding: 0; list-style: none; }
.file-type { display: inline-block; padding: 0 .24rem; color: var(--muted); border: 1px solid var(--rule); font: .68rem/1.28 var(--mono); }
.page-footer { margin-top: 1.4rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .75rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding-block: .65rem; }

@media (max-width: 46rem) {
  .budget-table th, .budget-table td { padding-inline: .5rem; }
  .budget-table .item-header { min-width: 8rem; }
  .budget-table .code { min-width: 4.15rem; }
  .budget-table .amount { min-width: 5.5rem; }
  .budget-table .proof { min-width: 5.5rem; }
  html:not(.has-table-ui) .scroll-hint { display: block; }
}
@media (max-width: 32rem) {
  .masthead-inner { padding-block: .45rem; }
  h1 { font-size: clamp(1.68rem, 7.45vw, 2.18rem); }
  .kpi { border-top: .15rem solid transparent; }
  .kpi-core { border-top-color: var(--core); }
  .kpi-related { border-top-color: var(--related); }
  .kpi dt { font-size: .75rem; min-height: 2.44em; }
  .kpi-value { font-size: clamp(1.4rem, 6.9vw, 2.3rem); }
  .kpi-unit { display: block; margin-top: .24rem; font-size: .7rem; }
  .swatch { display: none; }
  .changes, .method-grid { grid-template-columns: minmax(0, 1fr); }
  .sources { padding: .55rem 0 0; border: 0; border-top: 1px solid var(--rule); }
  .budget-table { table-layout: fixed; font-size: .825rem; }
  .budget-table .item-header { width: clamp(7rem, calc(100vw - 12.25rem), 13.5rem); min-width: 0; }
  .budget-table .code { width: 4.25rem; min-width: 0; }
  .budget-table .amount { width: 5.75rem; min-width: 0; }
  .budget-table .proof { width: 6.75rem; min-width: 0; }
  .budget-table .proof a { white-space: normal; }
}
@media (max-width: 21rem) {
  .kpi { padding-inline: .4rem; }
  .kpi dt { overflow-wrap: anywhere; }
  .budget-table th, .budget-table td { padding-inline: .4rem; }
}
@media (forced-colors: active) {
  .options input:checked + span { border: 2px solid Highlight; }
  .options input:checked + span::before { background: Highlight; }
  .share-bar, .swatch { forced-color-adjust: none; }
}
@media print {
  @page { size: A4 landscape; margin: 11mm; }
  :root { --ink: #000; --paper: #fff; --muted: #333; --link: #000; --rule: #888; --soft-rule: #bbb; }
  body { font-size: 9pt; background: #fff; }
  .container { width: auto; margin: 0; }
  .masthead-nav, .toolbar, .scroll-hint, .skip-link, .page-footer { display: none !important; }
  .masthead { border-top: 0; }
  .masthead-inner, .overview { padding-block: 3pt 0; }
  h1 { font-size: 22pt; }
  .overview-heading { gap: 8pt; }
  .lede, .summary, .changes { margin-top: 5pt; }
  .kpi { padding: 3pt 6pt; }
  .kpi-value { font-size: 19pt; }
  .share-bar, .swatch { print-color-adjust: exact; }
  .changes { margin-bottom: 7pt; padding: 3pt 6pt; }
  .table-scroll { overflow: visible; border: 0; }
  .budget-table { font-size: 8pt; }
  .budget-table tbody tr[hidden] { display: table-row !important; }
  .budget-table [data-year][hidden] { display: table-cell !important; }
  .budget-table th, .budget-table td { padding: 3pt 4pt; }
  .budget-table .item-header, .budget-table .code, .budget-table .amount, .budget-table .proof { min-width: 0; width: auto; }
  .budget-table thead th { background: none; color: #000; border-bottom: 1px solid #333; }
  .budget-table thead { display: table-header-group; }
  .budget-table tr { break-inside: avoid; }
  .budget-table .proof a { white-space: normal; }
  .expense-count { display: none; }
  .method { margin-top: 7pt; padding-top: 5pt; }
  .method-notes, .sources { font-size: 8pt; }
  .audit-details::details-content { content-visibility: visible; }
  .audit-details:not([open]) > :not(summary) { display: revert !important; }
}
