/* LABITECHS v2.0.1: approved emblem. Navigation remains original v2.0.1. */
.site-header{height:94px}
.site-header .header-inner{width:min(1530px,calc(100% - 60px));max-width:none;gap:16px}
.site-header .brand--labvychmat{display:flex;align-items:center;flex-shrink:0;gap:12px;width:min(335px,28vw);min-width:0;white-space:normal}
.site-header .brand-symbol-img{display:block;flex:0 0 auto;width:78px;height:76px;max-width:none;object-fit:contain}
.site-header .brand-organization{border-left:3px solid #1369b6;padding-left:12px;min-width:0;max-width:240px;display:flex;flex-direction:column;gap:3px;line-height:1.13;color:#0c3068}
.site-header .brand-organization strong{font-size:clamp(16px,1.2vw,20px);font-weight:850;letter-spacing:.3px;overflow-wrap:anywhere}
.site-header .brand-organization small{font-size:clamp(9px,.67vw,11px);font-weight:600;line-height:1.3;color:#536d87;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.site-header .main-nav{min-width:0;flex-wrap:nowrap;gap:clamp(7px,.65vw,12px)}
.site-header .main-nav>a{white-space:nowrap;font-size:clamp(14px,.91vw,15px);font-weight:700;line-height:1.3}
.site-header .main-nav .nav-contact{font-weight:750;padding:11px 12px}
.footer .brand--labvychmat{display:flex;align-items:center;gap:12px;max-width:100%;white-space:normal;padding:4px 6px;border-radius:12px;background:#fff;color:#12396d;width:min(310px,100%)}
.footer .brand-symbol-img{display:block;width:70px;height:68px;flex:none;object-fit:contain}
.footer .brand-organization{display:flex;flex-direction:column;min-width:0;line-height:1.2}
.footer .brand-organization strong{font-size:17px;color:#09336b;font-weight:850}
.footer .brand-organization small{font-size:12px;color:#3c5e87}
@media(max-width:1550px){
 .site-header{height:86px}
 .site-header .brand--labvychmat{width:min(320px,76vw)}
 .site-header .brand-symbol-img{width:70px;height:69px}
 .site-header .brand-organization strong{font-size:19px}
 .site-header .brand-organization small{font-size:10px}
 .site-header .menu-toggle{display:flex}
 .site-header .main-nav{display:none;position:absolute;top:100%;left:0;right:0;width:100%;flex-direction:column;align-items:stretch;gap:0;background:#fff;padding:16px max(20px,calc((100vw - 1180px)/2));border-bottom:1px solid #d8e4f3;box-shadow:0 25px 55px #123e7930;max-height:calc(100dvh - 86px);overflow:auto}
 .site-header .main-nav.is-open{display:flex}
 .site-header .main-nav>a{display:block;padding:15px 18px;font-size:17px;color:#31506f}
 .site-header .main-nav .nav-contact{display:inline-flex;margin:8px 18px;align-self:flex-start;color:#fff}
}
@media(max-width:650px){
 .site-header{height:76px}
 .site-header .header-inner{width:calc(100% - 28px);gap:9px}
 .site-header .brand--labvychmat{gap:7px;width:min(320px,calc(100vw - 98px))}
 .site-header .brand-symbol-img{width:58px;height:57px}
 .site-header .brand-organization{border-left-width:2px;padding-left:9px}
 .site-header .brand-organization strong{font-size:clamp(13px,4.2vw,18px)}
 .site-header .brand-organization small{font-size:9px;line-height:1.2}
 .site-header .main-nav{max-height:calc(100dvh - 76px)}
 .footer .brand-symbol-img{width:58px;height:57px}
}
@media(max-width:360px){.site-header .brand-organization{padding-left:7px}.site-header .brand-organization small{display:none}.site-header .brand-symbol-img{width:52px;height:51px}}
.back-to-top:not([hidden]){position:fixed;z-index:75;right:max(17px,env(safe-area-inset-right));bottom:calc(22px + env(safe-area-inset-bottom));display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:10px 16px;background:#1156a5;color:#fff;border:2px solid #fff;border-radius:999px;box-shadow:0 6px 24px #0b326c55;font-weight:700;font-size:13px;line-height:1;cursor:pointer;transition:background-color .15s,transform .15s}
.back-to-top:not([hidden]):hover{background:#0d4287;transform:translateY(-2px)}
.back-to-top:focus-visible{outline:3px solid #ee344b;outline-offset:3px}
@media(max-width:650px){.back-to-top:not([hidden]){right:14px;bottom:calc(18px + env(safe-area-inset-bottom));width:50px;height:50px;padding:10px}.back-to-top span{display:none}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}.back-to-top:not([hidden]){transition:none!important}}

/* v2.0.5: slogan is clipped to two lines, never increasing header height. */
.site-header .brand-slogan{max-width:100%;overflow-wrap:anywhere;word-break:normal;line-height:1.25}
.admin-settings-hint{margin:14px 0 0;color:#536d87;font-size:13px;line-height:1.5}
.admin-brand strong{overflow-wrap:anywhere}

/* v2.0.6: RU / EN / slogan stack. Keep existing 94/86/76px header heights. */
.site-header .brand-organization{gap:2px;justify-content:center;max-height:calc(100% - 12px)}
.site-header .brand-short-ru{font-size:clamp(15px,1.08vw,18px);line-height:1.12;display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;overflow-wrap:normal}
.site-header .brand-short-en{display:block;font-size:clamp(12px,.85vw,14px);font-weight:800;line-height:1.12;letter-spacing:.2px;color:#1163ad;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.site-header .brand-slogan{font-size:clamp(9px,.63vw,10px);line-height:1.18;max-width:100%;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
@media(max-width:1550px){
  .site-header .brand-short-ru{font-size:17px}
  .site-header .brand-short-en{font-size:12px}
  .site-header .brand-slogan{font-size:9px}
}
@media(max-width:650px){
  .site-header .brand-organization{gap:2px}
  .site-header .brand-short-ru{font-size:clamp(13px,3.8vw,16px)}
  .site-header .brand-short-en{font-size:clamp(11px,3.1vw,12px)}
  .site-header .brand-slogan{font-size:9px;line-height:1.13;-webkit-line-clamp:2}
}
@media(max-width:360px){
  .site-header .brand-organization small.brand-slogan{display:-webkit-box;-webkit-line-clamp:1}
}
