
@media (hover: none) and (pointer: coarse) { #кнопка-лк [data-лк-имя] { display: none; }
#кнопка-лк a { padding: 6px 9px !important; }
}
.шапка, div.topbar { flex-wrap: nowrap !important; row-gap: 0 !important; gap: 10px !important; }
.шапка > *, div.topbar > * { flex: none; order: 3; }
.шапка > a:first-child, div.topbar > .brand { order: 1; flex: 0 1 auto !important; min-width: 0; overflow: hidden; }
.шапка > a:first-child span, div.topbar > .brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.шапка > span[style*="flex:1"], div.topbar > .spacer { order: 2; flex: 1 1 0 !important; min-width: 0; }
.шапка > a[title="Главная"], div.topbar > a[title="Главная"] { order: 3; padding: 0 !important; width: 34px; height: 34px; justify-content: center; }
.шапка a[title="Главная"] span, div.topbar a[title="Главная"] span { display: none; }
.шапка #кн-помощь, div.topbar #btn-help, div.topbar .справка-кнопка { order: 4; }
.шапка #кнопка-лк, div.topbar #кнопка-лк { order: 5; }
.шапка #кнопка-лк [data-лк-имя], div.topbar #кнопка-лк [data-лк-имя] { display: none; }
.шапка #кнопка-лк a, div.topbar #кнопка-лк a { padding: 0 !important; width: 34px; height: 34px; justify-content: center; }
@media (max-width: 700px) { .шапка, div.topbar { padding-top: 8px !important; padding-bottom: 8px !important; }
}
@media (max-width: 700px) { header.topbar { flex-wrap: nowrap !important; row-gap: 0 !important; gap: 8px !important; padding-top: 8px !important; padding-bottom: 8px !important; }
header.topbar > * { flex: none; order: 3; }
header.topbar > .brand { order: 1; flex: 0 1 auto !important; min-width: 0; overflow: hidden; }
header.topbar > .brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
header.topbar > .spacer { order: 2; flex: 1 1 0 !important; min-width: 0; }
header.topbar > a[title="Главная"] { order: 3; padding: 0 !important; width: 34px; height: 34px; justify-content: center; }
header.topbar a[title="Главная"] span { display: none; }
#кн-помощь, #btn-help { order: 4; }
#кнопка-лк { order: 5; }
#кнопка-лк [data-лк-имя] { display: none; }
#кнопка-лк a { padding: 0 !important; width: 34px; height: 34px; justify-content: center; }
}



.шапка #кнопка-лк:empty, div.topbar #кнопка-лк:empty { display: inline-block; width: 34px; height: 34px; }
