/* Кнопка день/ночь и анимация перехода (общие для всех страниц). Ночные цвета: theme-night.css */
.themebtn{position:relative;flex:none;width:40px;height:40px;margin:0 6px;padding:0;border-radius:50%;border:1px solid rgba(128,128,128,.45);background:transparent;color:inherit;cursor:pointer;display:inline-grid;place-items:center;font:inherit;transition:background .25s,border-color .25s,transform .25s}
.themebtn:hover{background:rgba(128,128,128,.18);transform:scale(1.06)}
.themebtn:focus-visible{outline:3px solid #ff8a3d;outline-offset:3px}
.themebtn .ic{position:absolute;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:opacity .45s ease,transform .6s cubic-bezier(.3,1.4,.5,1)}
.themebtn .moon{opacity:0;transform:rotate(-100deg) scale(.3)}
.themebtn .sun{opacity:1;transform:none}
html[data-theme="day"] .themebtn .sun{opacity:0;transform:rotate(100deg) scale(.3)}
html[data-theme="day"] .themebtn .moon{opacity:1;transform:none}
.themebtn.spin{animation:tspin .7s cubic-bezier(.3,1.3,.5,1)}
@keyframes tspin{0%{transform:rotate(0) scale(1)}45%{transform:rotate(180deg) scale(1.18)}100%{transform:rotate(360deg) scale(1)}}
.themebtn.float{position:fixed;top:14px;right:14px;z-index:9999;margin:0;background:rgba(20,20,20,.55);color:#fff;border-color:rgba(255,255,255,.35);backdrop-filter:blur(8px)}
html[data-theme="day"] .themebtn.float{background:rgba(255,255,255,.7);color:#171817;border-color:rgba(0,0,0,.25)}
::view-transition-old(root),::view-transition-new(root){animation:none;mix-blend-mode:normal}
::view-transition-old(root){z-index:1}::view-transition-new(root){z-index:2}
.theme-anim *{transition:background-color .6s ease,color .6s ease,border-color .6s ease!important}
/* карта: ночью тёмная подложка */
html[data-theme="night"] .maplibregl-canvas{filter:invert(.9) hue-rotate(180deg) brightness(.95) contrast(1.05)}
@media (prefers-reduced-motion:reduce){.themebtn,.themebtn .ic{transition:none}.themebtn.spin{animation:none}}
/* единая типографика заголовков на всех страницах (как на главной) */
h1,h2,h3,h4{font-family:"Segoe UI",system-ui,-apple-system,Arial,sans-serif!important;font-weight:700!important;letter-spacing:-.015em!important}
/* единая типографика шапки на всех страницах (как на главной): ссылки 600, кнопки 700, название 700 */
.ma-header a,.topbar a,.op-header a{font-family:"Segoe UI",system-ui,-apple-system,Arial,sans-serif!important;font-weight:600!important}
.ma-header :is(strong,b),.topbar :is(strong,b),.op-header :is(strong,b){font-family:"Segoe UI",system-ui,-apple-system,Arial,sans-serif!important;font-weight:700!important}
.ma-header :is([class*="cta"],[class*="action"],[class*="report"],.op-button),.topbar :is([class*="cta"],[class*="action"],.op-button),.op-header :is([class*="cta"],[class*="action"],.op-button){font-weight:700!important}
.ma-header .ma-brand strong,.op-header .op-brand strong{font:700 16px Bahnschrift,Arial,sans-serif!important;letter-spacing:5px!important}
.ma-header .ma-brand strong span,.ma-header [class*="action"] span,.ma-header [class*="cta"] span{font-weight:inherit!important;font-family:inherit!important}
