/*
 * BLOCK: HEADER / TOP NAVIGATION
 * Редактируйте переменные ниже для изменения только шапки.
 */
.chm-component-v7 .forum-topbar {
  --header-brand-size: var(--chm-font-brand-title,24px);
  --header-brand-weight: 800;
  --header-brand-line: 1.05;
  --header-brand-spacing: -0.025em;

  --header-subtitle-size: var(--chm-font-brand-subtitle,12.5px);
  --header-subtitle-weight: 700;
  --header-subtitle-line: 1.1;
  --header-subtitle-spacing: .06em;

  --header-nav-size: var(--chm-font-nav,14px);
  --header-nav-weight: 700;
  --header-nav-line: 1;
  --header-nav-spacing: 0;

  --header-search-size: var(--chm-font-search,15px);
  --header-search-weight: 500;
  --header-search-line: 1.35;

  --header-account-size: var(--chm-font-account,15px);
  --header-account-weight: 650;
  --header-counter-size: var(--chm-font-counter,10.5px);

  --header-mobile-nav-size: var(--chm-font-mobile-nav,10.5px);
  --header-mobile-nav-weight: 750;
}
.chm-component-v7 .forum-brand-title{
  font-family:var(--cmp-font-heading)!important;font-size:var(--header-brand-size)!important;font-weight:var(--header-brand-weight)!important;line-height:var(--header-brand-line)!important;letter-spacing:var(--header-brand-spacing)!important;
}
.chm-component-v7 .forum-brand-forum{
  font-family:var(--cmp-font-body)!important;font-size:var(--header-subtitle-size)!important;font-weight:var(--header-subtitle-weight)!important;line-height:var(--header-subtitle-line)!important;letter-spacing:var(--header-subtitle-spacing)!important;
}
.chm-component-v7 .forum-navlinks>a,.chm-component-v7 .forum-navlinks>button{
  font-family:var(--cmp-font-heading)!important;font-size:var(--header-nav-size)!important;font-weight:var(--header-nav-weight)!important;line-height:var(--header-nav-line)!important;letter-spacing:var(--header-nav-spacing)!important;
}
.chm-component-v7 .forum-top-search input{
  font-family:var(--cmp-font-body)!important;font-size:var(--header-search-size)!important;font-weight:var(--header-search-weight)!important;line-height:var(--header-search-line)!important;
}
.chm-component-v7 .forum-account-links a,.chm-component-v7 .forum-account-head,.chm-component-v7 .forum-notif-item b,.chm-component-v7 .forum-lang-menu a{
  font-family:var(--cmp-font-body)!important;font-size:var(--header-account-size)!important;font-weight:var(--header-account-weight)!important;
}
.chm-component-v7 .forum-counter{font-size:var(--header-counter-size)!important;font-weight:800!important}
.chm-component-v7 .forum-mobile-nav a,.chm-component-v7 .forum-mobile-nav button,.chm-component-v7 .forum-mobile-nav-label{
  font-family:var(--cmp-font-heading)!important;font-size:var(--header-mobile-nav-size)!important;font-weight:var(--header-mobile-nav-weight)!important;
}

/* v7.2 — one header/logo geometry on every forum page. */
.chm-component-v7 .forum-topbar-inner{
  width:min(100%,var(--chm-ui-page-max))!important;
  max-width:var(--chm-ui-page-max)!important;
  min-height:64px!important;
  height:64px!important;
  margin-inline:auto!important;
  padding-inline:var(--chm-ui-gutter)!important;
}
.chm-component-v7 .forum-brand{min-width:0!important;gap:10px!important}
.chm-component-v7 .forum-brand .forum-site-logo{
  display:grid!important;place-items:center!important;
  width:var(--chm-ui-logo-size)!important;height:var(--chm-ui-logo-size)!important;
  min-width:var(--chm-ui-logo-size)!important;flex:0 0 var(--chm-ui-logo-size)!important;
  padding:0!important;border:0!important;border-radius:50%!important;
  overflow:hidden!important;background:transparent!important;box-shadow:none!important;
}
.chm-component-v7 .forum-brand .forum-site-logo::before,
.chm-component-v7 .forum-brand .forum-site-logo::after{display:none!important;content:none!important}
.chm-component-v7 .forum-brand .forum-site-logo-img{
  display:block!important;width:100%!important;height:100%!important;
  object-fit:cover!important;border-radius:50%!important;clip-path:circle(49% at 50% 50%)!important;
  background:transparent!important;box-shadow:none!important;
}
.chm-component-v7 .forum-brand-copy{min-width:0!important}
.chm-component-v7 .forum-top-actions{flex:0 0 auto!important}

/* v7.2.2 — AUTH HEADER = SAME LIGHT BRAND SYSTEM AS THE FORUM */
.chm-component-v7 .forum-auth-topbar{
  position:sticky!important;
  top:0!important;
  z-index:100!important;
  width:100%!important;
  background:rgba(255,255,255,.97)!important;
  color:#10223a!important;
  border-bottom:1px solid #e4ebf2!important;
  box-shadow:0 4px 18px rgba(34,63,92,.045)!important;
  backdrop-filter:blur(18px)!important;
  -webkit-backdrop-filter:blur(18px)!important;
}
.chm-component-v7 .forum-auth-topbar-inner{
  width:min(100%,var(--chm-ui-page-max))!important;
  max-width:var(--chm-ui-page-max)!important;
  min-height:64px!important;
  height:64px!important;
  margin-inline:auto!important;
  padding-inline:var(--chm-ui-gutter)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
}
.chm-component-v7 .forum-auth-brand{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  min-width:0!important;
  color:#10223a!important;
  text-decoration:none!important;
}
.chm-component-v7 .forum-auth-brand-mark{
  display:grid!important;
  place-items:center!important;
  width:var(--chm-ui-logo-size)!important;
  height:var(--chm-ui-logo-size)!important;
  min-width:var(--chm-ui-logo-size)!important;
  flex:0 0 var(--chm-ui-logo-size)!important;
  padding:0!important;
  border:0!important;
  border-radius:50%!important;
  overflow:hidden!important;
  background:transparent!important;
  box-shadow:none!important;
}
.chm-component-v7 .forum-auth-brand-mark::before,
.chm-component-v7 .forum-auth-brand-mark::after{display:none!important;content:none!important}
.chm-component-v7 .forum-auth-brand-img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  border-radius:50%!important;
  clip-path:circle(49% at 50% 50%)!important;
  background:transparent!important;
  box-shadow:none!important;
}
.chm-component-v7 .forum-auth-brand>span:last-child{
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  min-width:0!important;
  line-height:1!important;
}
.chm-component-v7 .forum-auth-brand b{
  color:#10223a!important;
  font-family:var(--cmp-font-heading)!important;
  font-size:var(--chm-font-brand-title,24px)!important;
  line-height:1.05!important;
  font-weight:800!important;
  letter-spacing:-.025em!important;
}
.chm-component-v7 .forum-auth-brand small{
  margin-top:3px!important;
  color:#7b8ca1!important;
  font-family:var(--cmp-font-body)!important;
  font-size:var(--chm-font-brand-subtitle,12.5px)!important;
  line-height:1!important;
  font-weight:750!important;
  letter-spacing:.08em!important;
}
.chm-component-v7 .forum-auth-lang-trigger{
  min-height:38px!important;
  padding:0 11px!important;
  border:1px solid #dce6ef!important;
  border-radius:11px!important;
  background:#f8fbff!important;
  color:#53677e!important;
  box-shadow:none!important;
}
.chm-component-v7 .forum-auth-lang-trigger:hover{
  background:#fff!important;
  border-color:#bfd3e6!important;
  color:#0b64ad!important;
}
.chm-component-v7 .forum-auth-lang-menu{
  background:#fff!important;
  border-color:#dce6ef!important;
  box-shadow:0 18px 46px rgba(31,62,92,.14)!important;
}
