/* USHU.SU 12.2: защищённый от сбоя модулей компактный верхний блок. */
.theme-ushu .site-header{position:sticky;top:0;z-index:50;background:#fff!important;border-bottom:1px solid #dce6df;box-shadow:0 3px 12px rgba(27,66,49,.07)}
.theme-ushu .head-inner{display:grid;grid-template-columns:auto minmax(0,1fr) auto;max-width:1480px;min-height:58px;gap:12px;align-items:center;padding:7px clamp(12px,2vw,26px);margin:auto}
.theme-ushu .brand{min-width:0;max-width:none;display:flex;align-items:center;gap:8px;white-space:nowrap;margin:0;min-height:0}
.theme-ushu .brand-mark{width:38px;height:38px;flex:0 0 38px;border-radius:9px;font-size:24px}
.theme-ushu .brand-text{font-size:14px;display:grid;gap:2px;overflow:visible;white-space:nowrap;line-height:1.1}
.theme-ushu .brand-text strong{font-size:20px}
.theme-ushu .brand-text small{font-size:9px;letter-spacing:.06em}
.theme-ushu .main-menu{display:flex;flex:1 1 auto;width:auto;min-width:0;max-width:100%;gap:2px;flex-wrap:nowrap;align-items:center;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#adcabb transparent;padding:1px}
.theme-ushu .main-menu a{display:block;flex:0 0 auto;white-space:nowrap;padding:8px 9px;font-size:12px;line-height:1.3;border-radius:6px;min-height:0}
.theme-ushu .head-tools{display:flex;align-items:center;justify-content:flex-end;min-width:0;gap:6px;margin:0}
.theme-ushu .head-tools .wu-top-search{min-width:100px;max-width:125px}
.theme-ushu .head-tools .btn.small{min-height:35px;padding:7px 10px;font-size:12px}
.theme-ushu .head-tools .logout{margin:0}
.theme-ushu .page-content{padding-top:17px}
.theme-ushu .wu-hero-inner{min-height:0;grid-template-columns:minmax(0,1.4fr) minmax(0,.7fr)}
.theme-ushu .wu-hero-content{padding:28px 30px 25px}
.theme-ushu .wu-hero h1{font-size:clamp(30px,3.1vw,46px);margin:12px 0;line-height:1.12}
.theme-ushu .wu-hero-content>p{font-size:15px;line-height:1.45;margin-bottom:13px}
.theme-ushu .wu-hero-stats{margin-top:13px;padding-top:10px;gap:11px}
.theme-ushu .wu-hero-stats b{font-size:21px}
.theme-ushu .wu-hero-art{min-height:235px}
.theme-ushu .wu-hanzi{font-size:clamp(135px,15vw,220px)}
@media(min-width:741px) and (max-width:1170px){
 .theme-ushu .head-inner{grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:auto auto;row-gap:4px;padding-top:6px;padding-bottom:5px}
 .theme-ushu .brand{grid-column:1;grid-row:1}
 .theme-ushu .head-tools{grid-column:3;grid-row:1}
 .theme-ushu .main-menu{grid-column:1/-1;grid-row:2;width:100%;justify-content:center;padding:0;order:initial;flex:initial;overflow-x:auto}
 .theme-ushu .main-menu a{padding:6px 11px}
}
@media(max-width:740px){
 .theme-ushu .site-header{position:static}
 .theme-ushu .head-inner{display:flex;flex-wrap:wrap;gap:8px;min-height:54px;padding:7px 12px}
 .theme-ushu .brand{order:1;flex:1 1 auto;max-width:calc(100% - 115px);margin:0}
 .theme-ushu .brand-text strong{font-size:18px}
 .theme-ushu .nav-burger{display:grid;order:2!important;flex:0 0 38px;height:38px;width:38px}
 .theme-ushu .head-tools{order:3!important;width:auto;flex:0 0 auto;gap:5px;margin-left:0}
 .theme-ushu .head-tools .wu-top-search{display:none}
 .theme-ushu .head-tools .btn.small{padding:6px 9px}
 .theme-ushu .main-menu{display:none;order:6;width:100%;flex:1 1 100%;flex-direction:column;align-items:stretch;overflow:visible;max-height:none;padding:4px 0;gap:2px}
 .theme-ushu .nav-toggle:checked ~ .main-menu{display:flex}
 .theme-ushu .main-menu a{width:100%;padding:10px 12px;font-size:14px}
 .wu-mobile-search{display:block}
 .theme-ushu .wu-hero-inner{grid-template-columns:1fr}
 .theme-ushu .wu-hero-art{display:none}
 .theme-ushu .wu-hero-content{padding:21px 18px}
 .theme-ushu .wu-hero h1{font-size:clamp(27px,7vw,36px);margin:9px 0}
 .theme-ushu .wu-hero-stats{margin-top:12px;gap:8px;flex-wrap:wrap}
 .theme-ushu .page-content{padding-top:12px}
}
@media(max-width:450px){
 .theme-ushu .brand-text small{display:none}
 .theme-ushu .brand-mark{width:34px;height:34px;flex-basis:34px}
 .theme-ushu .head-tools .btn.small{font-size:11px}
}

/* v13: понятная резервная главная страница при временно недоступном модуле. */
.theme-ushu .wu-fallback{max-width:960px;margin:12px auto 50px;padding:clamp(26px,4vw,48px);border:1px solid #cdded3;border-radius:18px;background:#fff;box-shadow:0 12px 36px rgba(20,55,40,.06)}
.theme-ushu .wu-fallback h1{margin:10px 0 14px;font-size:clamp(25px,3.4vw,40px);line-height:1.16;color:#194338}
.theme-ushu .wu-fallback p{font-size:16px;line-height:1.7;color:#51685d;max-width:690px}
.theme-ushu .wu-fallback-links{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}
.theme-ushu .wu-fallback-link{display:inline-flex;padding:11px 15px;border-radius:9px;background:#206149;color:#fff;font-weight:700;text-decoration:none}
.theme-ushu .wu-fallback-link:hover{background:#194a38}
.theme-ushu .wu-fallback-admin a{color:#206149;text-decoration:underline}
@media(max-width:600px){.theme-ushu .wu-fallback{padding:20px}.theme-ushu .wu-fallback-links{display:grid}.theme-ushu .wu-fallback-link{justify-content:center}}
.theme-ushu[data-mode=dark] .wu-fallback{background:#20342e;border-color:#426555}
.theme-ushu[data-mode=dark] .wu-fallback h1{color:#e7f4e7}
.theme-ushu[data-mode=dark] .wu-fallback p{color:#bacfc0}

/* Редакция 62: компактная навигация с выпаданием дополнительных разделов. */
@media(min-width:741px){
 .theme-ushu .main-menu{overflow:visible!important;min-width:0;gap:2px}
 .theme-ushu .wu-nav-more{margin-left:2px}
 .theme-ushu .head-inner{grid-template-columns:auto minmax(0,1fr) auto}
 .theme-ushu .brand{max-width:188px}
 .theme-ushu .brand-text strong{font-size:19px}
 .theme-ushu .main-menu>a{padding:8px 8px;font-size:12px}
 .theme-ushu .wu-mobile-search{display:none!important}
}
@media(min-width:741px) and (max-width:1080px){
 .theme-ushu .head-inner{grid-template-columns:auto 1fr;grid-template-rows:auto auto}
 .theme-ushu .brand{grid-row:1;grid-column:1}
 .theme-ushu .head-tools{grid-row:1;grid-column:2;justify-self:end}
 .theme-ushu .main-menu{grid-row:2;grid-column:1/-1;justify-content:center}
}
@media(max-width:740px){
 .theme-ushu .main-menu .wu-nav-more{width:100%;flex:0 0 auto}
 .theme-ushu .wu-nav-more-menu a{display:block;width:100%}
 .theme-ushu .wu-top-search{display:none!important}
 .theme-ushu .wu-mobile-search{display:block!important}
}
.theme-ushu .wu-hero-inner{min-height:0!important}
.theme-ushu .wu-hero-content{padding-top:25px;padding-bottom:25px}
