@import '../../../../styles/design-tokens'; // Тёмный боковой рейл портала на всю высоту (фирменный navy-градиент, золотой // маркер активного пункта). Не «плавает»: примыкает к контенту, тянется по высоте. .nav { display: flex; flex-direction: column; width: 248px; padding: $sp-4 0 $sp-3; background: $grad-header; box-shadow: inset -1px 0 0 rgba(255, 255, 255, .06); transition: width .2s; } .navCollapsed { width: 64px; } // ---- Шапка рейла: бренд + сворачивание ---- .head { display: flex; align-items: center; justify-content: space-between; gap: $sp-2; padding: 0 $sp-4 $sp-4; border-bottom: 1px solid rgba(255, 255, 255, .08); } .navCollapsed .head { flex-direction: column; gap: $sp-3; padding: 0 0 $sp-3; } .brand { display: flex; align-items: center; gap: $sp-2; min-width: 0; } .brandText { font-family: $font-serif; font-size: 15px; font-weight: 600; color: $white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .toggle { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; border: 1px solid rgba(255, 255, 255, .18); border-radius: $r-sm; background: transparent; color: rgba(255, 255, 255, .6); cursor: pointer; transition: .16s; &:hover { border-color: $gold-400; color: $gold-300; } } // ---- Пункты разделов ---- .items { display: flex; flex-direction: column; gap: 2px; margin-top: $sp-4; } .navCollapsed .items { margin-top: $sp-3; } .item { position: relative; display: flex; align-items: center; gap: $sp-3; width: 100%; padding: 12px 18px; border: 0; border-left: 3px solid transparent; background: transparent; color: rgba(255, 255, 255, .62); font-family: $font-sans; font-size: 13.5px; font-weight: 500; text-align: left; white-space: nowrap; cursor: pointer; transition: color .18s, background .18s, border-color .18s; &:hover { color: rgba(255, 255, 255, .92); background: rgba(255, 255, 255, .04); } } .navCollapsed .item { justify-content: center; padding: 12px 0; } .itemActive { color: $white; background: rgba(255, 255, 255, .07); border-left-color: $gold-500; .itemIcon { color: $gold-400; } } .itemIcon { flex-shrink: 0; display: inline-flex; color: inherit; } .itemTitle { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; } .badge { flex-shrink: 0; min-width: 18px; padding: 1px 6px; border-radius: $r-full; background: $gold-500; color: $navy-950; font-size: $fs-overline; font-weight: 700; text-align: center; } .navCollapsed .badge { position: absolute; top: 6px; right: 8px; }