/* Text-first accessible copy: no layout scripts, fonts, or image dependencies. */
:root { color-scheme: light; font: 20px/1.65 Arial, Helvetica, sans-serif; background: #fff; color: #111; }
* { box-sizing: border-box; }
body { margin: 0 auto; max-width: 76rem; padding: 1rem clamp(1rem, 4vw, 2.5rem) 2rem; overflow-wrap: anywhere; }
a { color: #003d80; text-decoration: underline; text-underline-offset: .14em; }
a:visited { color: #4b287a; }
a:hover { text-decoration-thickness: .18em; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 4px solid #a60000; outline-offset: 3px; }
.skip-link { position: absolute; z-index: 5; top: .5rem; left: .5rem; transform: translateY(-180%); padding: .6rem .8rem; color: #fff; background: #111; }
.skip-link:focus { transform: none; }
.site-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; border-bottom: 3px solid #111; padding-bottom: .75rem; }
.site-name { margin: 0; font-size: 1.25em; font-weight: 700; }
.version-label { font-size: .85em; }
.return-link { font-weight: 700; }
.primary-nav ul { display: flex; flex-wrap: wrap; gap: .35rem .7rem; list-style: none; margin: .75rem 0; padding: 0; }
.primary-nav a { display: inline-block; padding: .25rem .2rem; }
.display-settings, .section-menu { margin: .5rem 0 1rem; border: 2px solid #333; border-radius: .2rem; }
.display-settings summary, .section-menu summary { cursor: pointer; padding: .35rem .65rem; font-weight: 700; }
.settings-options { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; padding: .4rem .65rem .7rem; }
.settings-options label { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; cursor: pointer; }
.settings-options input { width: 1.25rem; height: 1.25rem; }
.settings-options span { font-size: .85em; }
nav[aria-label="Подразделы сведений"] { margin: .5rem 0 1rem; padding: .65rem; border-left: .3rem solid #234f71; background: #eef4f8; }
nav[aria-label="Подразделы сведений"] ul { margin: .3rem 0; padding-left: 1.5rem; }
main { min-height: 50vh; max-width: 70rem; }
main:focus { outline: none; }
h1, h2, h3, h4 { line-height: 1.3; margin: 1.2em 0 .45em; }
h1 { margin-top: .55em; font-size: 1.6em; }
h2 { font-size: 1.35em; }
h3 { font-size: 1.15em; }
p, ul, ol, table, blockquote { margin: .65em 0 1em; }
li { margin: .2em 0; }
table { display: block; width: 100%; max-width: 100%; border-collapse: collapse; }
tbody, tr, td, th { display: block; width: 100%; max-width: 100%; }
tr { margin: .5rem 0; border: 1px solid #555; }
td, th { border: 0; padding: .3rem .45rem; text-align: left; vertical-align: top; }
th { background: #eee; }
main a { overflow-wrap: anywhere; }
footer { margin-top: 2rem; border-top: 2px solid #111; padding-top: .75rem; }
:root:has(#high-contrast:checked) { color-scheme: dark; background: #000; color: #fff; }
:root:has(#high-contrast:checked) a { color: #ff0; }
:root:has(#high-contrast:checked) a:visited { color: #ff9; }
:root:has(#high-contrast:checked) :focus-visible { outline-color: #ff0; }
:root:has(#high-contrast:checked) th { background: #242424; }
:root:has(#high-contrast:checked) .display-settings,
:root:has(#high-contrast:checked) .section-menu,
:root:has(#high-contrast:checked) nav[aria-label="Подразделы сведений"] { border-color: #ff0; background: #111; }
body:has(#larger-text:checked) { font-size: 24px; }
@media (max-width: 480px) {
  :root { font-size: 19px; }
  body { padding: .7rem .85rem 1.5rem; }
  .site-header { display: block; }
  .return-link { display: inline-block; margin-top: .45rem; }
  .primary-nav ul { display: block; }
  .primary-nav li { margin: .1rem 0; }
  .settings-options { display: grid; }
  body:has(#larger-text:checked) { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
