/* Общая шапка, меню и панель контактов для всех страниц */
@font-face{font-family:"Circe";src:url("../fonts/Circe-Bold.woff2") format("woff2");font-weight:700;font-display:swap}
@font-face{font-family:"PT Mono";src:url("../fonts/PT-Mono.woff2") format("woff2");font-weight:400;font-display:swap}
:root{--tv-bar:56px}
body{padding-top:0!important}
.tv-bar,.tv-bar *,.tv-panel,.tv-panel *{box-sizing:border-box}
.tv-bar{position:sticky;top:0;z-index:30;height:calc(var(--tv-bar) + env(safe-area-inset-top,0px));padding:env(safe-area-inset-top,0px) 24px 0;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;background:rgba(18,18,18,.97);border-bottom:1px solid rgba(242,242,238,.28);color:#f2f2ee;font:17px/1.55 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;flex:0 0 auto}
.tv-bar.tv-fixed{position:fixed;left:0;right:0;top:0;background:rgba(18,18,18,.78);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.tv-bar a,.tv-panel a{color:inherit;text-decoration:none}
.tv-bar a:focus-visible,.tv-cbtn:focus-visible,.tv-panel a:focus-visible{outline:2px solid #f2f2ee;outline-offset:3px}
.tv-brand{display:flex;align-items:center;gap:12px;font:400 17px/1.15 Georgia,"Iowan Old Style",serif}
.tv-brand img{height:36px;width:auto;display:block}
.tv-nav{display:flex;gap:32px}
.tv-nav a{font-size:16px;padding:8px 0}
.tv-nav a:hover,.tv-nav a[aria-current]{text-decoration:underline;text-underline-offset:6px}
.tv-cbtn{justify-self:end;font:inherit;font-size:16px;color:#f2f2ee;background:none;border:1px solid #f2f2ee;padding:8px 18px;cursor:pointer;border-radius:0}
.tv-cbtn[aria-expanded=true]{background:#f2f2ee;color:#121212}
.tv-panel{position:fixed;z-index:31;right:24px;top:calc(var(--tv-bar) + env(safe-area-inset-top,0px) + 12px);width:min(340px,calc(100vw - 32px));background:#121212;color:#f2f2ee;border:1.5px solid #f2f2ee;padding:20px 22px;display:none;font:17px/1.55 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
.tv-panel.open{display:block}
.tv-ph{margin:0;font:400 22px/1.2 Georgia,"Iowan Old Style",serif}
.tv-panel ul{list-style:none;margin:12px 0 0;padding:0}
.tv-panel li{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:0 16px;padding:10px 0;border-top:1px solid rgba(242,242,238,.28);margin:0}
.tv-panel li a{margin-left:auto;font-size:16px}
.tv-panel li a:hover{text-decoration:underline;text-underline-offset:4px}
@media(max-width:700px){
 body{padding-bottom:calc(var(--tv-bar) + env(safe-area-inset-bottom,0px))!important}
 .tv-bar{padding:env(safe-area-inset-top,0px) 14px 0;grid-template-columns:1fr auto}
 .tv-brand{font-size:14px;gap:10px}
 .tv-brand img{height:32px}
 .tv-nav{position:fixed;left:0;right:0;bottom:0;height:calc(var(--tv-bar) + env(safe-area-inset-bottom,0px));padding-bottom:env(safe-area-inset-bottom,0px);justify-content:space-around;align-items:center;gap:0;background:#121212;border-top:1px solid rgba(242,242,238,.28);z-index:30}
 .tv-cbtn{padding:7px 14px;font-size:15px}
 .tv-panel{right:16px;left:16px;width:auto}
}
