/* Автономная версия панели доступности, используемая только если BVI недоступен. */
.access-panel{position:fixed;top:0;left:0;right:0;z-index:10020;background:#fff;color:#111;border-bottom:3px solid #1b3855;padding:14px 22px;box-shadow:0 5px 20px #182e4666;font-family:Arial,sans-serif!important}
.access-panel[hidden]{display:none!important}.access-panel__inner{display:flex;align-items:center;gap:12px;flex-wrap:wrap;max-width:1500px;margin:auto}.access-panel label{font-weight:700}.access-panel button,.access-panel select{font-size:16px;border:2px solid #1e3455;border-radius:5px;background:#fff;padding:8px 12px;color:#122e51}.access-panel button[aria-pressed="true"]{background:#163e66;color:#fff}.access-panel .access-group{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.access-panel__close{margin-left:auto}
html.access-mode body{font-family:Arial,sans-serif!important;font-size:var(--access-font,20px)!important;letter-spacing:var(--access-letter,normal)!important;line-height:var(--access-line,1.6)!important}
html.access-mode body :is(p,li,span,a,label,button,input,textarea,select,small,b,strong,em,dt,dd){font-size:inherit;letter-spacing:inherit;line-height:inherit}
html.access-mode.access-black body{background:#000!important;color:#fff!important}
html.access-mode.access-black body :is(header,footer,nav,article,section,div,main,a,button,input){background-color:#000!important;color:#fff!important;border-color:#fff!important}
html.access-mode.access-white body{background:#fff!important;color:#111!important}
html.access-mode.access-blue body{background:#dcecff!important;color:#00234b!important}
html.access-mode.access-gray img{filter:grayscale(1)}
html.access-mode.access-no-images img{opacity:0;visibility:hidden}
html.access-mode .access-panel{font-size:16px!important;line-height:1.4!important;letter-spacing:normal!important}
html.access-mode .access-panel *{font-size:16px!important;line-height:1.4!important;letter-spacing:normal!important}
@media(max-width:800px){.access-panel{max-height:45vh;overflow:auto}.access-panel__inner{gap:8px}.access-panel .access-group{width:100%}}

/* Исправление расползающихся изображений и колонок в BVI.
   Не изменяем размеры img/svg в наследуемом правиле font-size. */
html.access-mode body img, html.access-mode body picture, html.access-mode body video,
body.bvi-body img, body.bvi-body picture, body.bvi-body video,
.bvi-body img, .bvi-body picture, .bvi-body video{max-width:100%!important;height:auto;object-fit:contain;vertical-align:middle}
html.access-mode .brand-logo, .bvi-body .brand-logo{width:112px!important;height:96px!important;object-fit:contain!important;flex-shrink:0}
html.access-mode .footer-about img, .bvi-body .footer-about img{width:89px!important;height:78px!important;object-fit:contain!important;flex-shrink:0}
html.access-mode .hero, .bvi-body .hero{position:relative;overflow:hidden;min-height:380px}
html.access-mode .hero-bg, .bvi-body .hero-bg{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;background-size:cover!important;background-position:center!important}
html.access-mode .news-item img, .bvi-body .news-item img{width:118px!important;height:80px!important;object-fit:cover!important}
html.access-mode .item-card img, .bvi-body .item-card img{width:100%!important;height:auto;aspect-ratio:16/10;object-fit:cover!important}
html.access-mode .profile-cover, .bvi-body .profile-cover{background-size:cover!important;background-position:center!important}
html.access-mode .container, .bvi-body .container{width:min(1480px,calc(100% - 28px));max-width:100%;margin-inline:auto}
html.access-mode .hero-inner, .bvi-body .hero-inner{position:relative;z-index:1;min-height:350px}
html.access-mode .hero-copy, .bvi-body .hero-copy{max-width:min(720px,100%)}
html.access-mode .header-content, .bvi-body .header-content{display:flex;flex-wrap:wrap;align-items:center}
html.access-mode .brand, .bvi-body .brand{min-width:0;max-width:100%;flex-shrink:1}
html.access-mode .brand-name, .bvi-body .brand-name{white-space:normal!important;overflow-wrap:anywhere}
html.access-mode .skmap img, .bvi-body .skmap img{width:100%;height:100%!important;object-fit:contain!important}
html.access-mode .skmap svg, .bvi-body .skmap svg{max-width:100%;height:auto}
@media(max-width:850px){
 html.access-mode .header-right,.bvi-body .header-right{width:100%;flex:1 1 100%;max-width:100%}
 html.access-mode .hero-inner,.bvi-body .hero-inner{min-height:380px}
 html.access-mode .hero,.bvi-body .hero{min-height:430px}
 html.access-mode .brand-logo,.bvi-body .brand-logo{width:66px!important;height:60px!important}
 html.access-mode .three-panel,.bvi-body .three-panel{grid-template-columns:1fr}
 html.access-mode .stats-inner,.bvi-body .stats-inner{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* В BVI длинное меню не должно распирать сетку при увеличении шрифта. */
html.access-mode .main-nav .container,.bvi-body .main-nav .container{display:flex;flex-wrap:wrap!important;justify-content:flex-start!important;align-items:stretch!important}
html.access-mode .nav-link,.bvi-body .nav-link{white-space:normal!important;overflow-wrap:anywhere!important;min-height:54px!important}
html.access-mode .nav-item,.bvi-body .nav-item{max-width:100%;flex:0 1 auto}
html.access-mode .three-panel,.bvi-body .three-panel{grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr))!important}
html.access-mode .three-panel.two-panel,.bvi-body .three-panel.two-panel{grid-template-columns:repeat(auto-fit,minmax(min(420px,100%),1fr))!important}
html.access-mode .news-item,.bvi-body .news-item{grid-template-columns:minmax(0,118px) minmax(0,1fr)!important}
html.access-mode .hero-bg,.bvi-body .hero-bg{transform:none!important;overflow:hidden;pointer-events:none}
html.access-mode .hero:before,.bvi-body .hero:before{pointer-events:none}
html.access-mode body,.bvi-body{overflow-x:hidden}
