/* A complete reading surface. No theme gradients or brand colours leak through. */
html.bvi-active #aksay-bvi-panel-show {
  position: fixed !important; top: max(12px, env(safe-area-inset-top)) !important;
  right: max(12px, env(safe-area-inset-right)) !important; left: auto !important;
  width: 64px !important; height: 64px !important; padding: 7px !important;
  color: var(--ab-fg) !important; background-color: var(--ab-bg) !important;
  border: 2px solid var(--ab-fg) !important; border-radius: 10px !important;
  z-index: 1000000 !important; align-items: center; justify-content: center;
}
html.bvi-active #aksay-bvi-panel-show.bvi-show { display: inline-flex !important; }
html.bvi-active #aksay-bvi-panel-show.bvi-hide { display: none !important; }
html.bvi-active #aksay-bvi-panel-show svg { display: block !important; width: 48px !important; height: 40px !important; }
html.bvi-active #aksay-bvi-panel-show svg path { fill: none !important; stroke: var(--ab-fg) !important; stroke-width: 3.5 !important; }
html.bvi-active #aksay-bvi-panel-show svg circle { fill: var(--ab-fg) !important; }
html.bvi-active #aksay-bvi-panel-show:focus-visible { outline: 3px solid var(--ab-fg) !important; outline-offset: 3px !important; }
html.bvi-active .bvi-body #block-ispolneniebyudzheta { display: none !important; }
html.bvi-active .bvi-body #topDiv { display: flex; flex-wrap: wrap; gap: .5rem; }
html.bvi-active .bvi-body #topDiv button.tabBtn { width: auto !important; min-width: 6rem; padding: .55rem .9rem !important; white-space: nowrap !important; }
html.bvi-active {
  --ab-bg: var(--bvi-site-bg);
  --ab-fg: var(--bvi-site-color);
  --ab-soft: color-mix(in srgb, var(--ab-bg) 94%, var(--ab-fg));
  --ab-line: color-mix(in srgb, var(--ab-bg) 60%, var(--ab-fg));
  --bvi-panel-shadow: none;
  --bvi-link-radius: 6px;
  --bvi-link-border-width: 1px;
  --bvi-link-active-duration: 0s;
  --bvi-link-transition: none;
  --bvi-modal-radius: 10px;
  --bvi-panel-font-family: Arial, sans-serif;
}
html.bvi-active body.bvi-active,
html.bvi-active body.bvi-active .bvi-body[data-bvi-theme] {
  background: var(--ab-bg) !important;
  color: var(--ab-fg) !important;
}
html.bvi-active body.bvi-active .bvi-body[data-bvi-theme][data-bvi-theme] *,
html.bvi-active body.bvi-active .bvi-body[data-bvi-theme][data-bvi-theme] *::before,
html.bvi-active body.bvi-active .bvi-body[data-bvi-theme][data-bvi-theme] *::after {
  color: var(--ab-fg) !important;
  background-color: transparent !important;
  background-image: none !important;
  border-color: var(--ab-line) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
html.bvi-active body.bvi-active .bvi-body[data-bvi-theme][data-bvi-theme] a {
  text-decoration: underline !important;
  text-underline-offset: .18em;
  text-decoration-thickness: 1px;
}
html.bvi-active body.bvi-active .bvi-body[data-bvi-theme][data-bvi-theme] a:hover {
  color: var(--ab-fg) !important;
  background-color: var(--ab-soft) !important;
  text-decoration-thickness: 2px !important;
}
html.bvi-active body.bvi-active .bvi-body[data-bvi-theme][data-bvi-theme] :is(button,input,select,textarea) {
  color: var(--ab-fg) !important;
  background-color: var(--ab-bg) !important;
  border: 1px solid var(--ab-fg) !important;
  border-radius: 6px;
}
html.bvi-active body.bvi-active .bvi-body[data-bvi-theme][data-bvi-theme] button:hover {
  color: var(--ab-fg) !important;
  background-color: var(--ab-soft) !important;
}
html.bvi-active body.bvi-active .bvi-body[data-bvi-theme][data-bvi-theme] :is(button,a)[aria-expanded="true"] {
  border-color: var(--ab-fg) !important;
  background-color: var(--ab-soft) !important;
}

/* Consistent page rhythm, without changing normal-mode theme files. */
html.bvi-active .bvi-body .container { width: auto !important; max-width: 80rem !important; margin-inline: auto !important; }
html.bvi-active .bvi-body #main { padding: 1.5rem 2rem 3rem !important; min-height: 0 !important; }
html.bvi-active .bvi-body :is(p,li,td,th) { line-height: 1.6; }
html.bvi-active .bvi-body #block-ufa-content p { text-indent: 0 !important; text-align: start !important; }
html.bvi-active .bvi-body h1.title { margin: 1.25rem 0 1.5rem !important; padding-bottom: .75rem; border-bottom: 1px solid var(--ab-line); line-height: 1.25 !important; }
html.bvi-active .bvi-body h1.title::after { display: none !important; }
html.bvi-active .bvi-body .breadcrumb { margin: 0 0 1.5rem; padding: 0; }
html.bvi-active .bvi-body .breadcrumb :is(li,a) { line-height: 1.6; }
html.bvi-active .bvi-body .breadcrumb a { padding-inline: .4em; }
html.bvi-active .bvi-body #footer { padding: 2rem !important; margin-top: 2rem; border-top: 2px solid var(--ab-fg) !important; }
html.bvi-active .bvi-body #footer :is(p,div,span,a) { line-height: 1.7 !important; }
html.bvi-active .bvi-body #footer .footer--bottom { padding: 0 !important; }
html.bvi-active .bvi-body :is(#circlebg1,#greencircle) { display: none !important; }

/* Site identity and navigation become neutral, comfortably spaced controls. */
html.bvi-active .bvi-body #header { border-bottom: 1px solid var(--ab-line) !important; }
html.bvi-active .bvi-body #header > .navbar:first-child { padding: 1.5rem 2rem; }
html.bvi-active .bvi-body #header > .navbar:first-child > .container { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; align-items: center; width: 100% !important; }
html.bvi-active .bvi-body .navbar-brand { flex: 1 1 25rem; }
html.bvi-active .bvi-body .navbar-brand .navbar-item { padding: 0 !important; font-weight: 700; line-height: 1.5; }
html.bvi-active .bvi-body #header .navbar-brand a { text-decoration: none !important; }
html.bvi-active .bvi-body #header .navbar-brand a:hover { text-decoration: underline !important; }
html.bvi-active .bvi-body .navbar-menu { display: flex !important; flex: 1 1 30rem; padding: 0 !important; gap: 1.5rem; }
html.bvi-active .bvi-body .navbar-start:empty { display: none !important; }
html.bvi-active .bvi-body .navbar-end { flex: 1 1 0; margin: 0 !important; align-items: start; }
html.bvi-active .bvi-body .navbar-end .navbar-item { padding: 0 !important; line-height: 1.5; white-space: normal; }
html.bvi-active .bvi-body .navbar-burger { display: none !important; }
html.bvi-active .bvi-body #header > .navbar:has(.aksay-bvi-menu) {
  display: grid !important; grid-template-columns: repeat(auto-fit,minmax(min(100%,14rem),1fr));
  gap: .5rem; align-items: start; max-width: 84rem !important; margin: 0 auto !important; padding: 0 2rem 1.25rem;
}
html.bvi-active .bvi-body .aksay-bvi-menu { padding: 0 !important; border: 1px solid var(--ab-line) !important; border-radius: 6px; overflow: visible; }
html.bvi-active body.bvi-active .bvi-body[data-bvi-theme][data-bvi-theme] .aksay-bvi-nav-toggle {
  width: 100%; border: 0 !important; border-radius: 6px; padding: .8rem 2rem .8rem 1rem !important;
  min-height: 3.5rem; text-align: start; font-weight: 600; line-height: 1.5; position: relative;
  word-break: normal; overflow-wrap: break-word !important;
}
html.bvi-active .bvi-body .aksay-bvi-nav-toggle::after { content: '+'; position: absolute; right: .75rem; top: .8rem; font-weight: 400; }
html.bvi-active .bvi-body .aksay-bvi-nav-toggle[aria-expanded="true"]::after { content: '−'; }
html.bvi-active .bvi-body .aksay-bvi-menu:has(> a[href]) { display: grid; grid-template-columns: minmax(0,1fr) 3rem; }
html.bvi-active .bvi-body .aksay-bvi-menu > a[href] { padding: .8rem 1rem !important; min-width: 0; line-height: 1.5; white-space: normal; }
html.bvi-active .bvi-body .aksay-bvi-menu > a[href]::after { display: none !important; }
html.bvi-active .bvi-body .aksay-bvi-menu:has(> a[href]) .aksay-bvi-nav-toggle { padding: .8rem !important; }
html.bvi-active .bvi-body .aksay-bvi-menu:has(> a[href]) .aksay-bvi-nav-toggle::after { position: static; }
html.bvi-active .bvi-body .aksay-bvi-menu .navbar-dropdown { grid-column: 1 / -1; padding: .25rem .5rem .75rem; border-top: 1px solid var(--ab-line) !important; }
html.bvi-active #header .aksay-bvi-nav-toggle { background-color: var(--ab-bg) !important; color: var(--ab-fg) !important; word-break: normal !important; overflow-wrap: normal !important; }
html.bvi-active #header .aksay-bvi-menu > a[href] { word-break: normal !important; overflow-wrap: normal !important; }
html.bvi-active #header .aksay-bvi-nav-toggle:hover,
html.bvi-active #header .aksay-bvi-nav-toggle[aria-expanded="true"] { background-color: var(--ab-soft) !important; color: var(--ab-fg) !important; }
html.bvi-active #header .aksay-bvi-nav-toggle::after { content: '+' !important; display: inline !important; color: var(--ab-fg) !important; background: transparent !important; }
html.bvi-active #header .aksay-bvi-nav-toggle[aria-expanded="true"]::after { content: '−' !important; }
html.bvi-active .bvi-body nav.nav:has(#menu-toggle) { display: none !important; }
html.bvi-active .bvi-body .navbar-dropdown a { padding: .65rem .5rem !important; white-space: normal; line-height: 1.5; }

/* Tables keep useful column widths instead of dividing every table equally. */
html.bvi-active .bvi-body table { table-layout: auto !important; border-collapse: collapse; margin-block: 1.5rem !important; }
html.bvi-active .bvi-body table :is(th,td) { padding: .9rem 1rem !important; vertical-align: top; border: 0 !important; border-bottom: 1px solid var(--ab-line) !important; word-break: normal; }
html.bvi-active body.bvi-active .bvi-body[data-bvi-theme][data-bvi-theme] table thead th { background-color: var(--ab-soft) !important; border-bottom: 2px solid var(--ab-fg) !important; font-weight: 700; }
html.bvi-active .bvi-body table.table_dynamic { table-layout: fixed !important; }
html.bvi-active .bvi-body table.table_dynamic :is(th,td):first-child { width: 58%; }
html.bvi-active .bvi-body table.aksay-bvi-documents th:nth-child(1) { width: 10%; }
html.bvi-active .bvi-body table.aksay-bvi-documents { table-layout: fixed !important; }
html.bvi-active .bvi-body table.aksay-bvi-documents th:nth-child(2) { width: 13%; }
html.bvi-active .bvi-body table.aksay-bvi-documents th:nth-child(3) { width: 57%; }
html.bvi-active .bvi-body table.aksay-bvi-documents th:nth-child(4) { width: 20%; }
html.bvi-active .bvi-body table.aksay-bvi-documents td:last-child a { display: inline-block; padding-block: .2rem; }

/* BVI panel: one hierarchy and restrained states, no doubled selection rings. */
html.bvi-active body .bvi-panel { padding: 0 1.5rem; background: var(--ab-bg) !important; color: var(--ab-fg) !important; border-bottom: 2px solid var(--ab-fg); box-shadow: none !important; }
html.bvi-active body .bvi-panel.bvi-fixed-top { max-height: 50dvh; overflow-y: auto; }
html.bvi-active body .bvi-panel .aksay-bvi-panel-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1rem; max-width: 80rem; margin: 0 auto; padding: .85rem 0; border-bottom: 1px solid var(--ab-line); }
html.bvi-active body .bvi-panel .aksay-bvi-panel-header h2 { font: 700 1.125rem/1.4 Arial,sans-serif !important; margin: 0; padding: 0; color: var(--ab-fg) !important; }
html.bvi-active body .bvi-panel .aksay-bvi-panel-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
html.bvi-active body .bvi-panel .bvi-blocks { max-width: 80rem; display: flex; gap: 0; align-items: stretch; }
html.bvi-active body .bvi-panel .bvi-block { flex: 1 1 12rem; padding: .8rem 1rem; text-align: start; border-inline-start: 1px solid var(--ab-line); }
html.bvi-active body .bvi-panel .bvi-block:first-child { border-inline-start: 0; padding-inline-start: 0; }
html.bvi-active body .bvi-panel .aksay-bvi-font-group { flex: 1.7 1 23rem; }
html.bvi-active body .bvi-panel .bvi-block[aria-labelledby="bvi-title-siteColors"] { flex-basis: 15rem; }
html.bvi-active body .bvi-panel .bvi-block[aria-labelledby="bvi-title-speech"] { flex: .65 1 8rem; }
html.bvi-active body .bvi-panel .bvi-block-title { text-align: start !important; font-size: .875rem !important; line-height: 1.5; margin-bottom: .5rem !important; }
html.bvi-active body .bvi-panel .bvi-block[hidden] { display: none !important; }
html.bvi-active body .bvi-panel .bvi-link { margin: .15rem .15rem .15rem 0; border-radius: 6px; min-height: 44px; min-width: 44px; padding: .5rem .7rem; font-weight: 600; line-height: 1.4; box-shadow: none !important; animation: none !important; }
html.bvi-active body .bvi-panel .bvi-link.active,
html.bvi-active body .bvi-panel .bvi-link[aria-pressed="true"] { outline: 0 !important; box-shadow: none !important; background-color: var(--ab-fg) !important; color: var(--ab-bg) !important; }
html.bvi-active body .bvi-panel .bvi-link:focus-visible { outline: 3px solid var(--ab-fg) !important; outline-offset: 3px !important; }
html.bvi-active body .bvi-panel .bvi-link[class*="bvi-theme-"] { border-radius: 50%; padding: .45rem; }
html.bvi-active body .bvi-panel .bvi-link[class*="bvi-theme-"].active { outline: 2px solid var(--ab-fg) !important; outline-offset: 2px !important; }
html.bvi-active body .bvi-panel .bvi-link.bvi-theme-white[aria-pressed] { background-color: var(--bvi-theme-white-bg) !important; color: var(--bvi-theme-white-color) !important; }
html.bvi-active body .bvi-panel .bvi-link.bvi-theme-black[aria-pressed] { background-color: var(--bvi-theme-black-bg) !important; color: var(--bvi-theme-black-color) !important; }
html.bvi-active body .bvi-panel .bvi-link.bvi-theme-blue[aria-pressed] { background-color: var(--bvi-theme-blue-bg) !important; color: var(--bvi-theme-blue-color) !important; }
html.bvi-active body .bvi-panel .bvi-link.bvi-theme-brown[aria-pressed] { background-color: var(--bvi-theme-brown-bg) !important; color: var(--bvi-theme-brown-color) !important; }
html.bvi-active body .bvi-panel .bvi-link.bvi-theme-green[aria-pressed] { background-color: var(--bvi-theme-green-bg) !important; color: var(--bvi-theme-green-color) !important; }
html.bvi-active body .bvi-panel [data-bvi="close"] { background-color: var(--ab-fg) !important; color: var(--ab-bg) !important; }
html.bvi-active body .bvi-panel .aksay-bvi-extra { justify-content: flex-end; max-width: 80rem; margin: 0 auto; padding: .65rem 0; border-top: 1px solid var(--ab-line); gap: .5rem; }
html.bvi-active body .bvi-panel .aksay-bvi-extra [data-aksay-motion] { margin-right: auto; }
html.bvi-active body .bvi-panel .bvi-modal { text-align: start; }
html.bvi-active body .bvi-panel .bvi-modal .bvi-block { border: 0; padding: .8rem 0; }
html.bvi-active body .bvi-panel .aksay-bvi-mobile-skip { display: none; }

@media (max-width: 767px) {
  html.bvi-active body .bvi-panel { padding-inline: 1rem; }
  html.bvi-active body .bvi-panel.bvi-menu-open { max-height: 60dvh; overflow-y: auto; }
  html.bvi-active body .bvi-panel .aksay-bvi-panel-header { position: sticky; top: 0; z-index: 2; background: var(--ab-bg); }
  html.bvi-active body .bvi-panel .aksay-bvi-panel-header { padding-block: .65rem; }
  html.bvi-active body .bvi-panel .aksay-bvi-panel-header h2 { font-size: 1rem !important; }
  html.bvi-active body .bvi-panel .aksay-bvi-mobile-skip { display: inline-flex; }
  html.bvi-active body .bvi-panel .bvi-menu-toggle { width: 100%; text-align: center; margin-block: .65rem; }
  html.bvi-active body .bvi-panel:not(.bvi-menu-open) .aksay-bvi-extra { display: none; }
  html.bvi-active body .bvi-panel:not(.bvi-menu-open) .bvi-menu { display: none !important; }
  html.bvi-active body .bvi-panel:not(.bvi-menu-open) [data-bvi="modal"],
  html.bvi-active body .bvi-panel:not(.bvi-menu-open) [data-bvi="panel-hide"] { display: none; }
  html.bvi-active body .bvi-panel .bvi-block { flex-basis: 100% !important; border-inline-start: 0; padding: .75rem 0; border-top: 1px solid var(--ab-line); }
  html.bvi-active .bvi-body #main { padding: 1rem 1rem 2rem !important; }
  html.bvi-active .bvi-body #header > .navbar:first-child { padding: 1.25rem 1rem; }
  html.bvi-active .bvi-body .navbar-menu { flex-direction: column; gap: 1rem; }
  html.bvi-active .bvi-body .navbar-brand, html.bvi-active .bvi-body .navbar-menu { flex-basis: 100%; }
  html.bvi-active .bvi-body #header > .navbar:has(.aksay-bvi-menu) { grid-template-columns: 1fr; padding: 0 1rem 1.25rem; }
  html.bvi-active .bvi-body #footer { padding: 1.5rem 1rem !important; }
  html.bvi-active .bvi-body table[id*="field_findynfield"] { table-layout: fixed !important; }
}
@media (min-width: 1200px) {
  html.bvi-active .bvi-body #header > .navbar:has(.aksay-bvi-menu) { grid-template-columns: repeat(auto-fit,minmax(16rem,1fr)); }
}
@media (max-width: 640px) {
  html.bvi-active .bvi-body table.aksay-bvi-documents thead { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%); }
  html.bvi-active .bvi-body table.aksay-bvi-documents tbody { display: block; }
  html.bvi-active .bvi-body table.aksay-bvi-documents tbody tr { display: grid; grid-template-columns: minmax(0,1fr); gap: .5rem; border-top: 2px solid var(--ab-fg) !important; padding-block: 1rem; }
  html.bvi-active .bvi-body table.aksay-bvi-documents tbody td { display: block; width: auto !important; padding: .5rem 0 !important; border: 0 !important; }
  html.bvi-active .bvi-body table.aksay-bvi-documents tbody td::before { content: attr(data-aksay-label); display: block; margin-bottom: .25rem; font-weight: 700; }
  html.bvi-active .bvi-body table.aksay-bvi-documents tbody td:first-child::before { display: none; }
}
