/* SEC.RU portal navigation v1.1: fresh asset keys after the guarded rollback. */
.is-public .skip-link { z-index: 130; }
.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-brand-group { display: flex; flex: none; flex-direction: column; gap: 3px; padding: 7px 0; }
.portal-project-status { color: #596576; font-size: 11px; line-height: 1.3; }
.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; font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; }
.portal-nav a { display: block; padding: 8px 0 8px 14px; border-left: 3px solid transparent; color: #1f2633; font-size: 15px; line-height: 1.55; text-decoration: none; }
.portal-nav a[aria-current="page"] { border-left-color: #ffd65a; color: #101a3d; font-weight: 700; }
.portal-nav a:hover { border-left-color: #dfe4ec; color: #101a3d; }
.portal-nav__separator { height: 1px; margin: 14px 0; background: #dfe4ec; }
.portal-nav .portal-nav__suggest { color: #8f6500; font-size: 13.5px; font-weight: 700; }
.portal-nav .portal-nav__feedback { margin-top: 18px; color: #5d6677; font-size: 13px; line-height: 1.35; }
.portal-nav__feedback span { display: block; color: #8f6500; font-weight: 700; }
.portal-nav__feedback:hover span { text-decoration: underline; }
.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: 10px; padding: 0 16px; }
  .portal-brand-group { flex: 0 1 auto; min-width: 0; max-width: 192px; }
  .portal-project-status { font-size: 10px; }
  .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--with-video { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .portal-tabbar a[aria-current="page"] { color: #141b33; background: #f7f9fb; font-weight: 600; }
  .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; }
  .is-public .portal-layout .article-layout { grid-template-columns: 1fr; }
  .is-public .portal-layout .materials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .article-formats { column-gap: 12px; row-gap: 0; }
  .article-formats a { font-size: 15px; }
}

/* Белая подложка сохраняет читаемость марки при тёмном оформлении браузера. */
.portal-brand img,.sec-brand img{background:#fff;color-scheme:only light;forced-color-adjust:none}
.video-feed__pages{flex-wrap:wrap}.video-feed__page-links{display:flex;flex-wrap:wrap;align-items:center;gap:5px;flex-basis:100%}.video-feed__page-links>a,.video-feed__page-links>span{display:inline-flex;min-width:32px;min-height:36px;align-items:center;justify-content:center;padding:3px 6px}.video-feed__page-links [aria-current=page]{font-weight:700;background:#f5e6a8;border-radius:4px}
/* Уведомление остаётся видимым в потоке документа и не закрывает материал. */
.cookie-banner{position:static!important;inset:auto!important;width:auto!important;max-width:none;margin:0;padding:12px 20px;border-radius:0;box-shadow:none;background:#f1f4f8;color:#24324a;display:flex;align-items:center;gap:20px}
.cookie-banner[hidden]{display:none!important}.cookie-banner p{margin:0;flex:1;font-size:12px;line-height:1.4;color:inherit}.cookie-banner strong,.cookie-banner a{color:inherit}.cookie-banner>div{display:flex;gap:8px;flex:none}
@media(max-width:700px){.cookie-banner{display:block;padding:12px 16px}.cookie-banner>div{display:flex;margin-top:8px}.cookie-banner .button{min-height:40px;flex:1}.cookie-banner p{font-size:12px}}
