/* Лебёдушка · восстановление навигации, 23.11.2026.
   Исходные 63 публичных пункта; скрытые старые пункты не публикуются. */
.lebed-full-directory{display:none}
.ref-nav .lebed-directory-desktop-link{
  font-weight:780!important;
  white-space:nowrap!important;
}
@media(max-width:1100px){
  .ref-nav .lebed-directory-desktop-link{display:none!important}
  .site-head.ref-head>.leb-full-directory{
    display:block;
    position:relative;
    z-index:85;
    margin:9px 16px 12px;
    color:#24607e;
    font-size:14px;
  }
  .leb-full-directory>summary{
    display:flex;
    align-items:center;
    gap:11px;
    min-height:46px;
    padding:10px 15px;
    border-radius:12px;
    border:1px solid rgba(46,130,174,.23);
    background:linear-gradient(145deg,#e6f5fb,#f2fafc);
    box-shadow:0 3px 12px rgba(37,102,145,.08);
    cursor:pointer;
    list-style:none;
    user-select:none;
  }
  .leb-full-directory>summary::-webkit-details-marker{display:none}
  .leb-full-directory>summary strong{
    color:#205d7b;
    font-size:14px;
    line-height:1.3;
  }
  .leb-full-directory-symbol{
    color:#267cac;
    font-size:18px;
    line-height:1;
  }
  .leb-full-directory-count{
    margin-left:auto;
    color:#487e97;
    font-size:12px;
    font-weight:700;
  }
  .leb-full-directory-caret{
    font-size:20px;
    transition:transform .2s ease;
  }
  .leb-full-directory[open] .leb-full-directory-caret{transform:rotate(180deg)}
  .leb-full-directory-panel{
    margin-top:8px;
    padding:15px;
    border:1px solid #d3e6ec;
    border-radius:16px;
    background:#fff;
    box-shadow:0 12px 32px rgba(32,93,122,.12);
    max-height:min(65vh,640px);
    overflow-y:auto;
    overscroll-behavior:contain;
  }
  .leb-full-quick{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    padding:0 0 15px;
    border-bottom:1px solid #dfebee;
    margin-bottom:10px;
  }
  .leb-full-quick a{
    display:inline-flex;
    align-items:center;
    border-radius:999px;
    background:#e8f6fa;
    border:1px solid #d0e9f2;
    padding:9px 12px;
    font-size:12px;
    font-weight:750;
    line-height:1.25;
    color:#246484;
    text-decoration:none;
  }
  .leb-full-directory-groups{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
  .leb-full-directory-group{
    min-width:0;
    border:1px solid #ddecef;
    border-radius:12px;
    background:#f9fcfd;
  }
  .leb-full-directory-group>summary{
    display:flex;
    gap:8px;
    align-items:center;
    justify-content:space-between;
    padding:13px 12px;
    cursor:pointer;
    color:#235e7b;
    font-size:13px;
    font-weight:800;
    line-height:1.35;
  }
  .leb-full-directory-group>summary span{
    flex:0 0 auto;
    display:grid;
    place-items:center;
    width:25px;
    height:25px;
    border-radius:50%;
    background:#e5f1f6;
    color:#337795;
    font-size:11px;
  }
  .leb-full-directory-links{
    display:flex;
    flex-direction:column;
    gap:3px;
    padding:3px 9px 11px;
  }
  .leb-full-directory-links a{
    display:block;
    min-width:0;
    padding:11px 9px;
    border-radius:9px;
    font-size:13px;
    line-height:1.4;
    font-weight:600;
    color:#285e78;
    text-decoration:none;
    overflow-wrap:anywhere;
  }
  .leb-full-directory-links a:hover,
  .leb-full-quick a:hover{background:#e0f2f9}
  .leb-full-directory-links .leb-full-group-label{
    display:block;
    padding:9px 9px 4px;
    color:#7a96a3;
    font-size:11px;
    font-weight:780;
    text-transform:uppercase;
    letter-spacing:.07em;
  }
  .leb-full-directory summary:focus-visible,
  .leb-full-directory a:focus-visible{
    outline:3px solid #165a89;
    outline-offset:2px;
  }
}
@media(max-width:600px){
  .site-head.ref-head>.leb-full-directory{margin:7px 12px 10px}
  .leb-full-directory-panel{max-height:min(70vh,580px);padding:12px}
  .leb-full-directory-groups{grid-template-columns:1fr;gap:8px}
  .leb-full-directory-count{font-size:11px}
  .leb-full-quick a{padding:9px 10px;font-size:11px}
}
@media(prefers-reduced-motion:reduce){
  .leb-full-directory-caret{transition:none}
}


/* 23.11.2026 post-publication regression fixes. */
/* Site theme's generic details rules were overriding the base display. */
.site-head.ref-head > details.leb-full-directory{
  display:none!important;
}
@media(max-width:1100px){
  .site-head.ref-head > details.leb-full-directory{
    display:block!important;
  }
}
@media(min-width:601px) and (max-width:1100px){
  /* Existing late desktop grid rules accidentally overlap the brand and facts
     on tablet widths. Restore the intended two-row header structure. */
  .site-head.ref-head > .head-top{
    display:grid!important;
    width:calc(100% - 24px)!important;
    max-width:100%!important;
    margin:0 auto!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:"brand access" "facts facts"!important;
    gap:11px 16px!important;
    align-items:center!important;
  }
  .site-head.ref-head > .head-top > .head-brand{
    grid-area:brand!important;
    min-width:0!important;
    width:auto!important;
    max-width:100%!important;
  }
  .site-head.ref-head > .head-top > .head-facts{
    grid-area:facts!important;
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:12px!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
  }
  .site-head.ref-head > .head-top > .accessibility-row{
    grid-area:access!important;
    justify-self:end!important;
    min-width:0!important;
  }
  .site-head.ref-head .head-fact{
    min-width:0!important;
    max-width:100%!important;
  }
  .site-head.ref-head .head-brand-text{
    min-width:0!important;
    max-width:100%!important;
  }
  .site-head.ref-head > .ref-nav{
    display:flex!important;
    flex-wrap:nowrap!important;
    width:calc(100% - 24px)!important;
    max-width:calc(100% - 24px)!important;
    min-width:0!important;
    margin:9px auto 0!important;
    padding:0 9px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    overscroll-behavior-x:contain;
    justify-content:flex-start!important;
    scrollbar-width:thin;
    border-radius:13px!important;
  }
}

@media(min-width:601px) and (max-width:1100px){
  main#main{overflow-x:clip!important}
}
