/* B2B Portal. Deliberately loaded after the legacy bundle; no business hooks change. */
:root {
    --b2b-bg: #f3f5f8;
    --b2b-surface: #fff;
    --b2b-ink: #202a3c;
    --b2b-muted: #788295;
    --b2b-line: #e8ecf2;
    --b2b-blue: #2463eb;
    --b2b-blue-soft: #edf3ff;
    --b2b-sidebar: 248px;
}
.b2b-portal, .b2b-auth { color: var(--b2b-ink); background: var(--b2b-bg); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }
.b2b-portal *, .b2b-auth * { box-sizing: border-box; }
.b2b-portal a, .b2b-auth a { text-decoration: none; }
.b2b-portal :focus-visible, .b2b-auth :focus-visible { outline: 3px solid #8eb4ff; outline-offset: 3px; }
.b2b-portal .global-container { display: block; min-width: 0; padding-left: var(--b2b-sidebar); transition: padding .2s; }
.b2b-portal .header { position: relative; top: auto; z-index: 200; min-width: 0; background: #fff; border-bottom: 1px solid var(--b2b-line); }
.b2b-topbar { height: 82px; padding: 0 28px; display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--b2b-line); padding-right: 300px; }
.b2b-topbar__label { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.b2b-topbar__label small { color: var(--b2b-muted); font-size: 12px; font-weight: 400; }
.b2b-topbar__mobile-brand { display: none; }
.b2b-topbar__divider { width: 1px; height: 18px; background: #dfe4ed; margin: 0 3px; }
.b2b-topbar__user { margin-left: auto; min-width: 0; display: grid; gap: 4px; text-align: right; }
.b2b-topbar__user strong { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 190px; }
.b2b-topbar__user span { font-size: 11px; color: var(--b2b-muted); }
.b2b-menu-toggle { display: none; flex: 0 0 38px; height: 38px; border: 1px solid var(--b2b-line); background: white; border-radius: 10px; color: var(--b2b-ink); font-size: 20px; cursor: pointer; }
.b2b-portal .header-menu__list { position: absolute; right: 24px; top: 20px; gap: 9px; padding: 0; background: none; border-radius: 0; }
.b2b-portal .header-menu__btn { width: 40px; height: 40px; background: #f5f7fa; border-radius: 12px; box-shadow: none; }
.b2b-portal .header-menu__btn:hover { background: var(--b2b-blue-soft); }
.b2b-portal .header-menu__btn svg path { stroke: #738198; }
.b2b-portal .header-menu__btn:hover svg path { stroke: var(--b2b-blue); }
.b2b-portal .header-menu__btn_user { color: var(--b2b-blue); background: #e9f0ff; font-size: 12px; }
.b2b-portal .header-menu__badge { background: var(--b2b-blue); color: white; border: 2px solid #fff; min-width: 18px; height: 18px; font-size: 10px; }
.b2b-portal .profile-modal { border: 1px solid var(--b2b-line); border-radius: 16px; box-shadow: 0 12px 36px #263b5e20; }
.b2b-portal .header-user-title { font-weight: 600; color: var(--b2b-ink); }
.b2b-portal .control-panel { color: var(--b2b-ink); }
.b2b-portal .control-panel__content { padding: 14px 28px; gap: 18px; background: #fff; }
.b2b-portal .control-panel__block { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 20px; min-width: 0; }
.b2b-portal .control-panel__item { min-width: 0; align-content: start; gap: 5px; }
.b2b-portal .control-panel__item-label { color: var(--b2b-muted); font-size: 10px; letter-spacing: .035em; }
.b2b-portal .control-panel__item-content { font-size: 11px; line-height: 1.45; font-weight: 500; }
.b2b-portal .control-panel__item-title { -webkit-line-clamp: 2; }
.b2b-portal .control-panel__item_consignee { grid-column: auto; }
.b2b-portal .control-panel__item_btn { align-self: center; }
.b2b-portal .control-panel__item_btn a { width: 36px; height: 36px; border: 1px solid var(--b2b-line); border-radius: 10px; color: var(--b2b-blue); }
.b2b-portal .side-menu, .b2b-portal .side-menu.side-menu_absolute { position: fixed; top: 0; left: 0; bottom: 0; width: var(--b2b-sidebar); min-width: 0; height: 100vh; height: 100dvh; padding: 28px 16px 18px; background: #fff; border-right: 1px solid var(--b2b-line); z-index: 300; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; transition: width .2s, transform .2s; }
.b2b-brand { display: flex; align-items: center; gap: 10px; color: var(--b2b-ink); }
.b2b-brand__mark { width: 39px; height: 39px; border-radius: 12px; background: var(--b2b-blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 4px 12px #2463eb20; }
.b2b-brand__mark svg { width: 27px; height: 27px; }
.b2b-brand__text { display: grid; gap: 4px; white-space: nowrap; }
.b2b-brand__text strong { font-size: 20px; font-weight: 700; letter-spacing: -.7px; }
.b2b-brand__text small { font-size: 10px; color: var(--b2b-muted); letter-spacing: .03em; }
.b2b-portal .side-menu .b2b-brand { padding: 0 7px; }
.b2b-nav-caption { font-size: 10px; font-weight: 600; color: #a0a8b6; text-transform: uppercase; letter-spacing: .12em; padding: 32px 14px 12px; }
.b2b-portal .menu { margin: 0; }
.b2b-portal .menu__list { gap: 5px; }
.b2b-portal .menu__link { padding: 13px 14px; gap: 12px; border-radius: 11px; min-height: 46px; color: #687386; font-size: 13px; font-weight: 500; }
.b2b-portal .menu__link .icon { width: 20px; height: 20px; flex: 0 0 20px; padding: 0; border-radius: 0; background: none; box-shadow: none; }
.b2b-portal .menu__link .icon::before { display: none; }
.b2b-portal .menu__link svg { width: 19px; height: 19px; }
.b2b-portal .menu__link svg [stroke]:not([stroke="none"]) { stroke: currentColor; }
.b2b-portal .menu__link svg [fill]:not([fill="none"]) { fill: currentColor; }
.b2b-portal .menu__link .menu__item-text { font-size: 13px; line-height: 1.35; opacity: 1; visibility: visible; color: inherit; }
.b2b-portal .menu__link:hover { background: #f6f8fb; color: var(--b2b-blue); }
.b2b-portal .menu__link.active { color: var(--b2b-blue); background: #edf3ff; font-weight: 600; }
.b2b-portal .menu__link.active .icon { background: none; }
.b2b-portal .menu__link_overdue, .b2b-portal .menu__link_overdue .menu__item-text { color: #c93c47; }
.b2b-portal .side-menu .contact-us { width: auto; padding: 15px; margin: 16px 0; background: #f6f8fb; border: 1px solid var(--b2b-line); border-radius: 14px; }
.b2b-portal .side-menu .contact-us h3 { opacity: 1; visibility: visible; height: auto; color: #7c8799; font-size: 10px; line-height: 1.5; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px; }
.b2b-portal .side-menu .manager-info { display: flex; opacity: 1; visibility: visible; height: auto; }
.b2b-portal .side-menu .contact-us__btn { padding: 8px; }
.b2b-portal .side-menu .contact-us__btn .icon { display: none; }
.b2b-portal .manager-info__name { font-size: 12px; color: var(--b2b-ink); }
.b2b-portal .manager-info__phone { font-size: 11px; color: #7c8799; }
.b2b-portal .contact-us__btn { margin-top: 13px; color: var(--b2b-blue); background: white; border: 1px solid #dbe5f6; border-radius: 9px; min-height: 34px; justify-content: center; }
.b2b-portal .contact-us__btn path { stroke: var(--b2b-blue); }
.b2b-portal .contact-us__btn-text { opacity: 1; visibility: visible; font-size: 12px; color: var(--b2b-blue); }
.b2b-portal .collapse-btn { margin-top: 6px; padding: 9px 14px; gap: 12px; color: #8690a0; width: 100%; }
.b2b-portal .collapse-btn .icon { width: 22px; height: 22px; padding: 5px; box-shadow: none; background: none; transform: none; }
.b2b-portal .collapse-btn .icon path { stroke: #8690a0; }
.b2b-portal .collapse-btn__text { font-size: 12px; opacity: 1; visibility: visible; }
.b2b-sidebar-note { padding: 15px 14px 0; color: #a0a8b6; font-size: 10px; line-height: 1.6; border-top: 1px solid var(--b2b-line); margin-top: 15px; }
.b2b-portal .main, .b2b-portal .global-container_no-col .main { display: block; min-width: 0; min-height: calc(100vh - 150px); padding: 28px 28px 0; }
.b2b-page-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.b2b-portal .page-title { margin: 0; color: var(--b2b-ink); font-size: 27px; line-height: 1.3; font-weight: 650; letter-spacing: -.6px; padding: 0; }
.b2b-page-heading__date { color: #8993a2; font-size: 11px; white-space: nowrap; }
.b2b-portal .main > section { min-width: 0; }
.b2b-portal .footer { display: flex; justify-content: space-between; align-items: center; padding: 28px 0 22px; margin-top: 24px; border-top: 1px solid #e4e9f0; }
.b2b-portal .copyright, .b2b-footer-links { font-size: 11px; color: #929baa; }
.b2b-footer-links { display: flex; gap: 20px; }
.b2b-footer-links a { color: #778396; }
.b2b-welcome { display: grid; grid-template-columns: 1fr 300px; overflow: hidden; position: relative; min-height: 240px; padding: 32px 36px; margin: 0 0 18px; background: #eaf0ff; border: 1px solid #e0e8fa; border-radius: 20px; }
.b2b-eyebrow { display: block; color: #6184c7; text-transform: uppercase; letter-spacing: .12em; font-size: 9px; font-weight: 600; margin-bottom: 14px; }
.b2b-welcome h2 { color: #233557; font-size: 29px; font-weight: 650; line-height: 1.22; letter-spacing: -.8px; margin: 0 0 12px; }
.b2b-welcome h2 span { color: #6982b0; }
.b2b-welcome p { font-size: 12px; color: #7384a3; line-height: 1.5; }
.b2b-portal .b2b-welcome__action { display: inline-flex; min-height: 38px; margin-top: 19px; font-size: 11px; padding: 10px 17px; gap: 25px; }
.b2b-welcome__action span { font-size: 17px; }
.b2b-welcome__visual { position: relative; }
.b2b-orbit { position: absolute; width: 245px; height: 245px; border-radius: 50%; border: 1px solid #cad9f4; top: -29px; left: 32px; }
.b2b-orbit--two { width: 185px; height: 185px; top: 2px; left: 62px; }
.b2b-paper { position: absolute; width: 124px; height: 151px; left: 88px; top: 8px; border-radius: 17px; background: linear-gradient(130deg, #fff 20%, #f5f8ff); transform: rotate(12deg); box-shadow: 9px 16px 25px #4f71b324; border: 1px solid white; padding: 20px; }
.b2b-paper__icon { display: flex; width: 34px; height: 34px; border-radius: 10px; align-items: center; justify-content: center; background: #e9efff; color: #4c7ad6; font-size: 24px; margin-bottom: 21px; }
.b2b-paper__line { display: block; width: 75px; height: 6px; border-radius: 3px; background: #dce6f8; margin-top: 8px; }
.b2b-paper__line--short { width: 48px; }
.b2b-paper__check { position: absolute; right: -20px; top: 75px; border-radius: 50%; width: 44px; height: 44px; background: #b5ead1; box-shadow: 0 5px 16px #43806218; color: #30956b; font-size: 25px; display: flex; align-items: center; justify-content: center; border: 5px solid #eaf0ff; }
.b2b-cube { position: absolute; left: 30px; top: 118px; width: 59px; height: 59px; background: linear-gradient(135deg, #7a9de9, #bfd0f7); border: 1px solid #c8d8ff; border-radius: 15px; transform: rotate(-13deg); box-shadow: 0 10px 15px #6a88c424; }
.b2b-cube:after { content: ''; position: absolute; inset: 13px; border: 1px solid #e3ecff; border-radius: 5px; }
.b2b-welcome__label { position: absolute; bottom: -12px; left: 54px; font-size: 8px; letter-spacing: .12em; text-transform: uppercase; color: #8ea3c7; }
.b2b-services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 26px; }
.b2b-service { display: flex; align-items: center; gap: 12px; padding: 20px 17px; border-radius: 15px; background: white; border: 1px solid var(--b2b-line); transition: border-color .15s, transform .15s; }
.b2b-service:hover { border-color: #afc6f4; transform: translateY(-2px); }
.b2b-service strong { display: block; color: #354057; font-size: 12px; margin-bottom: 6px; font-weight: 600; }
.b2b-service small { display: block; color: #9099a8; font-size: 10px; line-height: 1.4; }
.b2b-service__icon { width: 39px; height: 39px; flex: 0 0 39px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.b2b-service__icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.b2b-service__icon--blue { background: #eaf1ff; color: #6692ec; }
.b2b-service__icon--violet { background: #f1edff; color: #a08ad8; }
.b2b-service__icon--green { background: #e7f7f1; color: #61b294; }
.b2b-service__icon--orange { background: #fff2e7; color: #dca16e; }
.b2b-service__arrow { align-self: flex-start; margin-left: auto; color: #b7bfcc; font-size: 15px; }
/* Shared forms, content cards and existing tabular components. */
.b2b-portal .btn, .b2b-auth .btn { font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; border-radius: 9px; min-height: 40px; }
.b2b-portal .red-btn, .b2b-auth .red-btn { color: white; background: var(--b2b-blue); border-color: var(--b2b-blue); }
.b2b-portal .red-btn:hover, .b2b-auth .red-btn:hover { background: #1954d6; border-color: #1954d6; }
.b2b-portal .red-border-btn, .b2b-auth .red-border-btn { color: var(--b2b-blue); border-color: #cbdaf9; background: #fff; }
.b2b-portal .red-border-btn:hover { background: var(--b2b-blue-soft); }
.b2b-portal .transparent-btn { color: #6c7a90; }
.b2b-portal .btn:disabled, .b2b-auth .btn:disabled { opacity: .45; cursor: not-allowed; }
.b2b-portal .content-block { border: 1px solid var(--b2b-line); border-radius: 17px; background: #fff; box-shadow: 0 2px 3px #243a5e02; padding: 24px; }
.b2b-portal .content-block_no-pad { padding: 22px 0; }
.b2b-portal .content-block_bg-transparent, .b2b-portal .content-block_breadcrumbs { background: transparent; border: 0; box-shadow: none; }
.b2b-portal .content-block_image { padding: 0; }
.b2b-portal .block-title, .b2b-portal h2 { color: #303c51; font-weight: 600; font-size: 18px; line-height: 1.4; }
.b2b-portal .block-title { margin: 0; }
.b2b-portal .b2b-welcome h2 { color: #233557; font-size: 29px; font-weight: 650; line-height: 1.22; letter-spacing: -.8px; margin: 0 0 12px; }
.b2b-portal .cart__empty-block { width: min(100%, 340px); padding: 30px; text-align: center; }
.b2b-portal .cart__empty-block .btn { width: 100%; min-width: 0; }
.b2b-portal .pagination__item.active { background: var(--b2b-blue); box-shadow: none; font-size: 13px; }
.b2b-portal .dashboard { gap: 18px; min-width: 0; }
.b2b-portal .dashboard > * { min-width: 0; }
.b2b-portal .table-wrapper { border-radius: 0; }
.b2b-portal .table__head { color: #8b95a5; background: #f8f9fc; font-size: 10px; font-weight: 500; border-top: 1px solid #edf0f5; border-bottom: 1px solid #edf0f5; }
.b2b-portal .table__cell_title { color: #7c889b; text-transform: none; font-size: 11px; font-weight: 500; line-height: 1.45; }
.b2b-portal .table__content { border-color: #edf0f5; color: #4e5b70; font-size: 12px; }
.b2b-portal .table__content:hover { background: #fafbfe; }
.b2b-portal .table__cell { line-height: 1.5; }
.b2b-portal .table__head .table__cell { color: #7c889b; }
.b2b-portal .table__content .table__cell { color: #4e5b70; }
.b2b-portal .table__cell_link { color: var(--b2b-blue); }
.b2b-portal .table__delete-row-btn { opacity: .65; }
.b2b-portal .table__delete-row-btn:hover { opacity: 1; }
.b2b-portal input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]), .b2b-portal textarea, .b2b-auth input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) { color: var(--b2b-ink); border-color: #dfe5ee; background: white; border-radius: 8px; font-family: inherit; }
.b2b-portal input:focus, .b2b-portal textarea:focus, .b2b-auth input:focus { border-color: #80a7f9; }
.b2b-portal .select2-container--default .select2-selection--single, .b2b-portal .select2-container--default .select2-selection--multiple { border-color: #dfe5ee; border-radius: 8px; font-size: 12px; background: #fff; }
.b2b-portal .tabs__item.active, .b2b-portal .tabs__btn.active { color: var(--b2b-blue); border-color: var(--b2b-blue); }
.b2b-portal .catalog-card { border: 1px solid var(--b2b-line); border-radius: 16px; background: #fff; }
.b2b-portal .main-error { padding: 15px 18px; border: 1px solid #f2d6d8; background: #fff5f5; color: #b14350; border-radius: 12px; font-size: 13px; line-height: 1.55; margin-bottom: 18px; }
.b2b-portal .main-success { padding: 15px 18px; border: 1px solid #cce8db; background: #f1fbf6; color: #398b68; border-radius: 12px; }
.b2b-portal .main-empty { color: #8a94a5; padding: 20px 24px; line-height: 1.6; }
.b2b-portal .modal__content, .b2b-portal .modal__inner { border-radius: 18px; }
.b2b-portal .anmarto-home-search { border: 1px solid var(--b2b-line); padding: 24px !important; margin-bottom: 18px !important; }
.b2b-portal .anmarto-home-search > div:first-child { font-size: 17px !important; color: #303c51; }
.b2b-nav-backdrop { display: none; }
/* Desktop collapse is independent of the legacy 1380px breakpoint. */
.b2b-portal.b2b-nav-collapsed { --b2b-sidebar: 82px; }
.b2b-nav-collapsed .side-menu { padding-inline: 12px; }
.b2b-nav-collapsed .side-menu .b2b-brand { padding-inline: 8px; }
.b2b-nav-collapsed .b2b-brand__text, .b2b-nav-collapsed .menu__item-text, .b2b-nav-collapsed .b2b-nav-caption, .b2b-nav-collapsed .contact-us, .b2b-nav-collapsed .b2b-sidebar-note, .b2b-nav-collapsed .collapse-btn__text { display: none !important; }
.b2b-nav-collapsed .menu { margin-top: 32px; }
.b2b-nav-collapsed .menu__link { justify-content: center; padding: 13px; }
.b2b-nav-collapsed .collapse-btn .icon { transform: rotate(180deg); }
/* Authentication shares the same visual language and keeps Bitrix validation. */
.b2b-auth .login { display: grid; grid-template-columns: 1fr 1fr; background: #fff; min-height: 100vh; min-height: 100dvh; padding: 0; }
.b2b-login-story { position: relative; display: flex; flex-direction: column; padding: 48px 11%; min-height: 100vh; min-height: 100dvh; background: #eef3fc; overflow: hidden; }
.b2b-login-story .b2b-brand__text strong { font-size: 23px; }
.b2b-login-story__main { margin: auto 0; padding-block: 50px 36px; }
.b2b-login-story h2 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.15; font-weight: 650; letter-spacing: -1.5px; color: #263858; margin: 0 0 20px; }
.b2b-login-story h2 span { color: #7391c1; }
.b2b-login-story p { font-size: 14px; line-height: 1.8; color: #8190a7; max-width: 330px; }
.b2b-login-illustration { position: relative; width: 100%; max-width: 390px; margin: 38px 0 0; padding: 20px; border: 1px solid #fff; border-radius: 19px; background: #ffffffa8; box-shadow: 0 15px 35px #6684b817; transform: rotate(-3deg); }
.b2b-login-illustration__bar { display: flex; gap: 5px; padding-bottom: 16px; border-bottom: 1px solid #e7edf7; }
.b2b-login-illustration__bar i { width: 6px; height: 6px; background: #cedaeb; border-radius: 50%; }
.b2b-login-illustration__row { display: flex; align-items: center; gap: 13px; margin-top: 19px; }
.b2b-login-illustration__icon { height: 35px; width: 35px; border-radius: 10px; background: #e4edff; color: #799ddd; display: grid; place-items: center; font-size: 19px; }
.b2b-login-illustration__row:nth-child(3) .b2b-login-illustration__icon { background: #e3f3eb; color: #72b99a; }
.b2b-login-illustration__row:nth-child(4) .b2b-login-illustration__icon { background: #efe9fd; color: #b09ad9; }
.b2b-login-illustration__row strong { display: block; font-size: 11px; color: #687e9f; font-weight: 500; }
.b2b-login-illustration__row small { display: block; margin-top: 5px; height: 4px; width: 96px; background: #e7edf6; border-radius: 3px; }
.b2b-login-illustration__check { margin-left: auto; color: #8ab8a2; font-size: 14px; }
.b2b-login-story__foot { color: #9aa9bf; font-size: 10px; letter-spacing: .02em; }
.b2b-auth .login__content { min-width: 0; }
.b2b-auth .login__section { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; padding: 42px 12%; }
.b2b-auth .login__grid { display: none; }
.b2b-auth .login__form-wrapper { display: flex; flex: 1; align-items: center; justify-content: center; height: auto; }
.b2b-auth .login__form { max-width: 380px; width: 100%; padding: 35px 0; gap: 23px; }
.b2b-auth .login__form h1 { font-size: 29px; line-height: 1.3; letter-spacing: -.8px; color: var(--b2b-ink); text-align: left; font-weight: 650; }
.b2b-auth .b2b-login-subtitle { font-size: 12px; color: #909aaa; line-height: 1.65; margin-top: -13px; margin-bottom: 9px; }
.b2b-auth .login__form label { font-size: 12px; gap: 9px; }
.b2b-auth .login__form label > span { color: #728096; }
.b2b-auth .login__form input:not([type="checkbox"]):not([type="hidden"]) { height: 48px; padding: 12px 14px; width: 100%; font-size: 14px; background: #fcfdff; }
.b2b-auth .login__row_center .btn { width: 100%; height: 47px; font-size: 13px; }
.b2b-auth .login__row_center .btn span { margin-left: auto; }
.b2b-auth .login__link { color: #567dc4; font-size: 11px; font-weight: 400; }
.b2b-auth .login__form .checkbox-block { font-size: 11px; display: flex; }
.b2b-auth .main-error { padding: 14px; background: #fff3f4; border: 1px solid #f0d2d6; color: #b54957; border-radius: 10px; font-size: 12px; line-height: 1.6; }
.b2b-auth .b2b-auth-footer { text-align: center; color: #a0a8b6; font-size: 10px; line-height: 1.8; padding-top: 20px; }
@media (min-width: 1800px) { .b2b-portal .main { padding-inline: 44px; } .b2b-welcome { grid-template-columns: 1fr 400px; } }
@media (max-width: 1200px) {
    .b2b-portal { --b2b-sidebar: 218px; }
    .b2b-portal .side-menu { padding-inline: 12px; }
    .b2b-brand__text strong { font-size: 18px; }
    .b2b-topbar { padding-left: 24px; }
    .b2b-topbar__label small, .b2b-topbar__divider { display: none; }
    .b2b-portal .main { padding: 24px 22px 0; }
    .b2b-services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .b2b-portal .control-panel__block { gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .b2b-welcome { grid-template-columns: 1fr 230px; padding: 28px; }
    .b2b-welcome__visual { transform: scale(.9); transform-origin: center; }
    .b2b-portal .b2b-welcome h2 { font-size: 26px; }
}
@media (max-width: 960px) {
    .b2b-topbar__user { display: none; }
    .b2b-topbar { padding-right: 245px; }
    .b2b-portal .header-menu__list { right: 18px; gap: 6px; }
    .b2b-portal .header-menu__btn { width: 36px; height: 36px; }
    .b2b-welcome { grid-template-columns: 1fr; }
    .b2b-welcome__visual { display: none; }
    .b2b-auth .login__section { padding-inline: 10%; }
    .b2b-login-story { padding-inline: 10%; }
    .b2b-login-story h2 { font-size: 34px; }
}
@media (max-width: 760px) {
    .b2b-portal, .b2b-portal.b2b-nav-collapsed { --b2b-sidebar: 0px; }
    .b2b-portal .side-menu, .b2b-portal .side-menu.side-menu_absolute { width: 248px; transform: translateX(-100%); padding: 24px 16px 18px; }
    .b2b-portal.b2b-nav-mobile-open .side-menu { transform: translateX(0); }
    .b2b-nav-mobile-open .b2b-nav-backdrop { display: block; position: fixed; inset: 0; background: #182a4855; backdrop-filter: blur(2px); z-index: 290; border: 0; }
    .b2b-nav-collapsed .side-menu .b2b-brand__text, .b2b-nav-collapsed .side-menu .menu__item-text, .b2b-nav-collapsed .side-menu .b2b-nav-caption, .b2b-nav-collapsed .side-menu .contact-us, .b2b-nav-collapsed .side-menu .b2b-sidebar-note, .b2b-nav-collapsed .side-menu .collapse-btn__text { display: revert !important; }
    .b2b-nav-collapsed .side-menu .menu__link { justify-content: flex-start; }
    .b2b-menu-toggle { display: block; }
    .b2b-topbar { height: 68px; padding: 0 16px; gap: 10px; }
    .b2b-topbar__label { font-size: 14px; }
    .b2b-topbar__workspace { display: none; }
    .b2b-topbar__mobile-brand { display: inline; }
    .b2b-portal .header-menu__list { top: 15px; right: 16px; gap: 7px; }
    .b2b-portal .header-menu__item:nth-child(1), .b2b-portal .header-menu__item:nth-child(2) { display: none; }
    .b2b-portal .header-menu__btn { width: 34px; height: 34px; border-radius: 10px; }
    .b2b-portal .control-panel__content { padding: 13px 16px; gap: 10px; }
    .b2b-portal .control-panel__block { display: flex; gap: 22px; overflow-x: auto; padding-bottom: 4px; }
    .b2b-portal .control-panel__item { min-width: 120px; max-width: 170px; }
    .b2b-portal .control-panel__item_btn { min-width: auto; }
    .b2b-portal .main, .b2b-portal .global-container_no-col .main { padding: 22px 16px 0; }
    .b2b-page-heading { margin-bottom: 18px; }
    .b2b-portal .page-title { font-size: 23px; }
    .b2b-page-heading__date { display: none; }
    .b2b-welcome { min-height: 0; padding: 25px; border-radius: 17px; }
    .b2b-portal .b2b-welcome h2 { font-size: 25px; }
    .b2b-service { padding: 17px 13px; gap: 9px; }
    .b2b-service__arrow { display: none; }
    .b2b-service__icon { width: 34px; height: 34px; flex-basis: 34px; }
    .b2b-service strong { font-size: 11px; }
    .b2b-service small { font-size: 9px; }
    .b2b-portal .content-block { padding: 18px; border-radius: 14px; }
    .b2b-portal .content-block_no-pad { padding: 18px 0; }
    .b2b-portal .content-block_image { padding: 0; }
    .b2b-portal .content-block__row { flex-wrap: wrap; gap: 12px; }
    .b2b-portal .block-title { font-size: 17px; }
    .b2b-portal .dashboard { grid-template-columns: 100%; }
    .b2b-portal .dashboard > [class*="dashboard__span-"] { grid-column: 1 / -1; }
    .b2b-portal .footer { align-items: flex-start; gap: 16px; }
    .b2b-footer-links { flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
    .b2b-auth .login { grid-template-columns: 1fr; }
    .b2b-login-story { min-height: 0; padding: 24px; }
    .b2b-login-story__main { padding: 30px 0 0; margin: 0; }
    .b2b-login-story h2 { font-size: 29px; letter-spacing: -.8px; margin-bottom: 10px; }
    .b2b-login-story p { font-size: 12px; max-width: none; }
    .b2b-login-illustration, .b2b-login-story__foot { display: none; }
    .b2b-auth .login__section { min-height: 0; padding: 22px 28px 28px; }
    .b2b-auth .login__form { padding: 15px 0; gap: 21px; }
    .b2b-auth .login__form h1 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) { .b2b-portal *, .b2b-auth * { transition: none !important; scroll-behavior: auto !important; } }
