/* SEC.RU portal navigation v1.1: fresh asset keys after the guarded rollback. */
.portal-top { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid #dfe4ec; background: #fff; }
.portal-top__inner { display: flex; align-items: center; gap: 24px; width: 100%; max-width: 1240px; min-height: 68px; margin: 0 auto; padding: 0 24px; }
.portal-brand { display: flex; flex: none; }
.portal-brand img { display: block; width: 126px; height: 36px; }
.portal-search { display: flex; flex: 1; max-width: 560px; min-width: 0; margin: 0; overflow: hidden; border: 1px solid #c9cdd4; border-radius: 5px; }
.portal-search input { flex: 1; min-width: 0; min-height: 42px; padding: 10px 14px; border: 0; background: #fff; color: #17253e; font: inherit; font-size: 14px; }
.portal-search input::placeholder { color: #5e6570; opacity: 1; }
.portal-search button { flex: none; padding: 10px 20px; border: 0; border-radius: 0; background: #ffdc73; color: #141b33; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.portal-search button:hover { background: #ffd65a; }
.portal-user { margin-left: auto; }
.portal-user a, .portal-user .auth-state__action { margin: 0; padding: 8px 0; border: 0; background: transparent; color: #141b33; font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.portal-icon, .portal-tabbar, .portal-nav__close { display: none; }
.portal-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: start; gap: 40px; width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px 64px; }
.portal-nav { display: flex; flex-direction: column; position: sticky; top: 84px; padding: 22px 0 0; }
.portal-nav a { display: block; min-height: 40px; padding: 10px 14px; border-left: 3px solid transparent; color: #1f2633; font-size: 15px; line-height: 1.3; text-decoration: none; }
.portal-nav a:hover { background: #f7f9fb; }
.portal-nav a[aria-current="page"] { border-left-color: #ffdc73; color: #141b33; font-weight: 700; }
.portal-nav__separator { height: 1px; margin: 16px 0 12px; background: #dfe4ec; }
.portal-nav .portal-nav__suggest { color: #796024; font-size: 13px; font-weight: 700; }
.portal-nav__logout { display: none; }
.portal-layout > #main-content { min-width: 0; }
.is-public .portal-layout .shell, .is-public .portal-layout .hero-minimal .hero-minimal__inner, .is-public .portal-layout .article-hero { width: 100%; }
.is-public .portal-layout .article-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; }
.is-public .portal-layout .rubric-explorer { grid-template-columns: minmax(0, 1fr); }
.is-public .kodos-banner.shell { width: min(1192px, calc(100% - 48px)); margin-top: 16px; margin-bottom: 0; }
.portal-top a:focus-visible, .portal-top button:focus-visible, .portal-nav a:focus-visible, .portal-nav button:focus-visible, .portal-tabbar a:focus-visible { outline: 2px solid #141b33; outline-offset: 3px; }
.portal-search:focus-within { outline: 2px solid #141b33; outline-offset: 2px; }
.portal-search input:focus-visible { outline: none; }
.portal-nav-backdrop[hidden] { display: none; }

@media (max-width: 1000px) {
  .portal-top__inner { min-height: 58px; gap: 24px; padding: 0 16px; }
  .portal-brand img { width: 112px; height: 32px; }
  .portal-search, .portal-user { display: none; }
  .portal-icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid #dfe4ec; border-radius: 5px; background: #fff; color: #141b33; cursor: pointer; }
  .portal-icon--search { margin-left: auto; }
  .portal-layout { display: block; padding: 0 16px 40px; }
  .portal-nav { display: none; position: fixed; top: 0; bottom: 0; left: 0; z-index: 120; width: min(304px, calc(100% - 64px)); padding: 20px 16px; overflow-y: auto; background: #fff; }
  .portal-nav.is-open { display: flex; }
  .portal-nav__close { display: flex; align-items: center; justify-content: center; align-self: flex-end; flex: none; width: 44px; height: 44px; margin-bottom: 8px; padding: 0; border: 1px solid #dfe4ec; border-radius: 5px; background: #fff; color: #141b33; cursor: pointer; }
  .portal-nav a { flex: none; min-height: 44px; }
  .portal-nav__logout { display: block; margin-top: 16px; }
  .portal-nav__logout button { width: 100%; min-height: 44px; padding: 10px 17px; border: 0; background: #f7f9fb; color: #141b33; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
  .portal-nav-backdrop { position: fixed; inset: 0; z-index: 110; padding: 0; border: 0; border-radius: 0; background: rgb(20 27 51 / .35); cursor: pointer; }
  .portal-menu-open { overflow: hidden; }
  .portal-tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; min-height: 62px; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid #dfe4ec; background: #fff; }
  .portal-tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 0; min-height: 62px; color: #525966; font-size: 11px; line-height: 1.2; text-decoration: none; }
  .portal-tabbar a:hover { color: #141b33; background: #f7f9fb; }
  .is-public { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .is-public .cookie-banner { bottom: calc(78px + env(safe-area-inset-bottom)); }
  .is-public .kodos-banner.shell { width: calc(100% - 32px); margin-top: 10px; }
  .is-public .portal-layout .article-layout { grid-template-columns: 1fr; }
}

@media (min-width: 1001px) and (max-width: 1200px) {
  .portal-layout { gap: 28px; grid-template-columns: 170px minmax(0, 1fr); }
  .is-public .portal-layout .article-layout { grid-template-columns: 1fr; }
  .is-public .portal-layout .materials-grid { grid-template-columns: 1fr; }
}
