/* metr12 low-vision a11y layer (ГОСТ Р 52872-2019) */
:root{--fg:#000;--bg:#fff;--ln:#00309c;--ac:#ffd400}
html.cs-bw{--fg:#fff;--bg:#000;--ln:#ffeb3b;--ac:#ffeb3b}
html.cs-blue{--fg:#063462;--bg:#9dd1ff;--ln:#063462;--ac:#063462}
html.cs-beige{--fg:#4d3a1a;--bg:#f7f3d6;--ln:#4d3a1a;--ac:#4d3a1a}
html.cs-green{--fg:#a9e44d;--bg:#3b2716;--ln:#a9e44d;--ac:#a9e44d}
html{font-size:20px}
html.fs2{font-size:26px} html.fs3{font-size:32px}
body,body *:not(.fa):not([class^="fa-"]){font-family:Arial,Helvetica,sans-serif!important}
html.ff-serif body,html.ff-serif body *:not(.fa){font-family:"Times New Roman",Georgia,serif!important}
body{background:var(--bg)!important;color:var(--fg)!important;font-size:1rem!important;line-height:1.5}
body *:not(img):not(iframe):not(video):not(.a11y-yad *){background-color:transparent!important;color:var(--fg)!important;border-color:var(--fg)!important;box-shadow:none!important;text-shadow:none!important}
body p,body li,body a,body span,body div,body td,body input,body button,body label,body small{font-size:1rem!important}
body h1{font-size:1.8rem!important;font-weight:700!important;margin:.6em 0!important}
body h2,.s-h{font-size:1.4rem!important;font-weight:700!important;margin:.5em 0!important}
body h3,body h4{font-size:1.2rem!important;font-weight:700!important}
html.ls2 body *{letter-spacing:.12em!important;word-spacing:.16em!important}
html.ls3 body *{letter-spacing:.25em!important;word-spacing:.3em!important}
html.lh2 body *{line-height:2!important} html.lh3 body *{line-height:2.5!important}
body a{color:var(--ln)!important;text-decoration:underline!important}
body a:hover{text-decoration:none!important}
*:focus-visible,a:focus,button:focus,input:focus,select:focus,textarea:focus{outline:4px solid var(--ac)!important;outline-offset:3px!important;box-shadow:0 0 0 7px var(--bg)!important}
.skip-link{position:absolute;left:8px;top:-200px;z-index:10001;background:var(--fg)!important;color:var(--bg)!important;padding:10px 18px;font-weight:700}
.skip-link:focus{top:8px}
html.img-off body img:not(.a11y-keep),html.img-off body iframe,html.img-off body video,html.img-off .ym-advanced-informer{display:none!important}
html.img-gray body img,html.img-gray body iframe{filter:grayscale(1)!important}
.img-alt{display:none}
html.img-off .img-alt{display:inline-block;border:2px dashed var(--fg);padding:4px 8px;margin:4px 0}
/* panel */
.a11y-panel{border-bottom:3px solid var(--fg)!important;padding:10px 0;position:relative}
.a11y-panel .container{display:flex;flex-wrap:wrap;gap:10px 22px;align-items:center}
.a11y-group{display:flex;flex-wrap:wrap;align-items:center;gap:6px;border:0;margin:0;padding:0}
.a11y-group legend,.a11y-group .lbl{font-weight:700;margin-right:4px;float:none;width:auto;padding:0;font-size:.8rem!important}
.a11y-panel button,.a11y-btn{min-width:44px;min-height:44px;padding:4px 12px!important;border:2px solid var(--fg)!important;border-radius:6px;cursor:pointer;font-weight:700;line-height:1.2;height:auto!important;text-transform:none!important;font-size:.8rem!important;display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none!important}
.a11y-panel button[aria-pressed="true"]{background:var(--fg)!important;color:var(--bg)!important}
.a11y-panel button[aria-pressed="true"] *{color:var(--bg)!important}
.a11y-panel .sw-bw{background:#000!important;color:#fff!important}.a11y-panel .sw-wb{background:#fff!important;color:#000!important}
.a11y-panel .sw-blue{background:#9dd1ff!important;color:#063462!important}.a11y-panel .sw-beige{background:#f7f3d6!important;color:#4d3a1a!important}.a11y-panel .sw-green{background:#3b2716!important;color:#a9e44d!important}
.a11y-panel .sw-bw[aria-pressed="true"],.a11y-panel .sw-wb[aria-pressed="true"],.a11y-panel .sw-blue[aria-pressed="true"],.a11y-panel .sw-beige[aria-pressed="true"],.a11y-panel .sw-green[aria-pressed="true"]{outline:4px solid var(--ac)!important;outline-offset:2px}
.a11y-panel .sw-bw,.a11y-panel .sw-bw *{color:#fff!important}.a11y-panel .sw-blue,.a11y-panel .sw-blue *{color:#063462!important}.a11y-panel .sw-beige{color:#4d3a1a!important}.a11y-panel .sw-green,.a11y-panel .sw-green *{color:#a9e44d!important}.a11y-panel .sw-wb{color:#000!important}
.lv-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:14px;padding:16px 0}
.lv-logo{font-size:1.6rem!important;font-weight:800;text-decoration:none!important}
.lv-logo small{display:block;font-size:.8rem!important;font-weight:400}
.lv-normal{font-size:1rem!important}
.lv-nav ul{display:flex;flex-wrap:wrap;gap:6px 18px;padding:0;margin:0 0 10px;list-style:none}
.short{border-bottom:2px solid var(--fg)!important;padding:14px 0}
.lv-aside{border-top:3px solid var(--fg)!important;margin-top:24px;padding-top:10px}
.lv-aside img{max-width:160px;height:auto}
.lv-aside .post-content{display:flex;gap:12px;margin:10px 0;align-items:flex-start}
.lv-aside .post-title{height:auto!important}
.np-strip{display:flex;flex-wrap:wrap;gap:6px 22px;padding:8px 0;border-bottom:2px solid var(--fg)!important}
.np-strip[hidden]{display:none!important}
.np-label{font-weight:700;text-transform:uppercase}
/* footer (same content as main template) */
.ts-footer-social-list{display:none}
.m12f{border-top:3px solid var(--fg)!important;margin-top:24px;padding-top:16px}
.m12f-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(14rem,1fr));gap:20px}
.m12f-list{list-style:none;padding:0}.m12f-list li{margin:0 0 .5em}
.m12f-ph li span{display:block;font-weight:700}
.m12f-h{font-size:1.2rem!important;font-weight:700!important}
.m12f-logo{font-size:1.4rem!important;font-weight:800;display:block}
.m12f-logo span{display:block;font-size:.8rem!important;font-weight:400}
.m12f-bottom{border-top:2px solid var(--fg)!important;margin-top:14px;padding:10px 0;text-align:center}
.m12f-bottom li{list-style:none}
.sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media (max-width:575px){html{font-size:18px}html.fs2{font-size:22px}html.fs3{font-size:27px}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.np-strip a,.np-strip [class*="np-st"]{margin-right:.5em}
.np-strip > *{margin-right:.6em}
.np-strip a + *,.np-strip a{padding-right:.35em}
html.img-off .img-alt{display:block!important;max-width:100%;margin:.4em 0!important;padding:.6em .8em!important;border:3px dashed var(--fg)!important;font-weight:700;font-style:italic}
html.img-off .img-alt:before{content:"\1F5BC  ";font-style:normal}
