

/* Start:/local/templates/b2b/css/style.css?178997955912350*/
/* ============================================================
   B2B Cabinet — основные стили шаблона
   ============================================================ */

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    color: #333;
    background: #f4f6f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ============================================================
   Header
   ============================================================ */

.b2b-header {
    background: #0052a3;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.b2b-header__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.b2b-header__logo {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.b2b-header__logo:hover {
    text-decoration: none;
    opacity: 0.85;
}

/* Навигация */

.b2b-header__nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.b2b-header__nav-link {
    color: rgba(255, 255, 255, 0.85);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.b2b-header__nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    text-decoration: none;
}

.b2b-header__nav-link--active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 600;
}

/* Блок пользователя */

.b2b-header__user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex-shrink: 0;
}

.b2b-header__username {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
}

.b2b-header__logout {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 4px 10px;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}

.b2b-header__logout:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    text-decoration: none;
}

/* ============================================================
   Main content
   ============================================================ */

.b2b-main {
    flex: 1;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 24px;
}

/* ============================================================
   Footer
   ============================================================ */

.b2b-footer {
    background: #fff;
    border-top: 1px solid #e0e4ea;
    margin-top: auto;
}

.b2b-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 24px;
    color: #999;
    font-size: 13px;
}

/* ============================================================
   Dashboard — карточки меню (/personal/b2b/index.php)
   ============================================================ */

.b2b-personal-area {
    /* контейнер уже задан .b2b-main */
}

.b2b-personal-area h1 {
    margin: 0 0 24px;
    font-size: 24px;
    color: #1a1a2e;
}

.b2b-role-info {
    background: #fff;
    border: 1px solid #e0e4ea;
    padding: 14px 20px;
    border-radius: 6px;
    margin-bottom: 28px;
    font-size: 14px;
    color: #555;
}

.b2b-role-info p {
    margin: 0;
}

.b2b-menu-sections {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.b2b-menu-item {
    background: #fff;
    border: 1px solid #e0e4ea;
    padding: 20px 24px;
    border-radius: 8px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.b2b-menu-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.b2b-menu-item-primary {
    background: linear-gradient(135deg, #1a6ecb 0%, #0052a3 100%);
    border-color: #0052a3;
}

/* Чейнинг .b2b-menu-item.b2b-menu-item-primary даёт специфичность 0,2,x
   и гарантированно перебивает общие правила .b2b-menu-item h3 a / .b2b-menu-item p */
.b2b-menu-item.b2b-menu-item-primary h3 a {
    color: #fff;
    font-size: 16px;
}

.b2b-menu-item.b2b-menu-item-primary h3 a:hover {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.b2b-menu-item.b2b-menu-item-primary p {
    color: rgba(255, 255, 255, 0.9);
}

.b2b-menu-item-primary:hover {
    box-shadow: 0 6px 20px rgba(0, 82, 163, 0.35);
}

.b2b-menu-item h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.b2b-menu-item h3 a {
    color: #0066cc;
}

.b2b-menu-item h3 a:hover {
    text-decoration: underline;
}

.b2b-menu-item p {
    color: #777;
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

.b2b-notice {
    background: #fff8e1;
    border: 1px solid #ffca28;
    padding: 14px 20px;
    border-radius: 6px;
    color: #795700;
    font-size: 13px;
    line-height: 1.6;
}

.b2b-notice p {
    margin: 0;
}

.b2b-personal-manager {
    background: #fff;
    border: 1px solid #e0e4ea;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 28px;
}

.b2b-personal-manager h3 {
    margin: 0 0 16px;
    font-size: 16px;
    color: #1a1a2e;
}

.b2b-personal-manager__card {
    padding: 12px 0;
    border-top: 1px solid #e0e4ea;
    font-size: 14px;
    color: #555;
}

.b2b-personal-manager__card:first-of-type {
    border-top: none;
    padding-top: 0;
}

.b2b-personal-manager__card p {
    margin: 0 0 4px;
}

.b2b-personal-manager__card p:last-child {
    margin-bottom: 0;
}

.b2b-personal-manager__card a {
    color: #0066cc;
}

/* ============================================================
   Company page — данные организации
   ============================================================ */

.b2b-company-info h2 {
    margin: 0 0 20px;
    font-size: 20px;
}

.b2b-company-card {
    background: #fff;
    border: 1px solid #e0e4ea;
    border-radius: 8px;
    padding: 30px;
}

.b2b-company-field {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 16px;
    margin-bottom: 18px;
    align-items: start;
}

.b2b-company-field:last-child {
    margin-bottom: 0;
}

.b2b-company-field label {
    font-weight: 600;
    color: #555;
}

.b2b-company-field div {
    color: #222;
}

/* ============================================================
   Breadcrumbs
   ============================================================ */

.b2b-breadcrumbs {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
}

.b2b-breadcrumbs a {
    color: #0066cc;
}

.b2b-breadcrumbs a:hover {
    text-decoration: underline;
}

/* ============================================================
   Утилиты — alerts, errors
   ============================================================ */

.b2b-error {
    background: #fff0f0;
    border: 1px solid #f5c2c2;
    color: #c0392b;
    padding: 14px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.b2b-alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin: 20px 0;
    line-height: 1.6;
}

.b2b-alert-error {
    background: #fff0f0;
    border: 1px solid #f5c2c2;
    color: #721c24;
}

.b2b-alert code {
    background: rgba(0, 0, 0, 0.06);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 12px;
}

/* ============================================================
   Auth form — страница входа
   ============================================================ */

/* body на странице входа не имеет контента кроме формы —
   центрируем через flexbox на .b2b-main */
.b2b-auth-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 40px;
}

.b2b-auth-box {
    background: #fff;
    border: 1px solid #e0e4ea;
    border-radius: 10px;
    padding: 40px 48px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

.b2b-auth-logo {
    font-size: 20px;
    font-weight: 700;
    color: #0052a3;
    text-align: center;
    margin-bottom: 8px;
}

.b2b-auth-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    text-align: center;
    margin: 0 0 28px;
}

.b2b-auth-field {
    margin-bottom: 18px;
}

.b2b-auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}

.b2b-auth-field input[type="text"],
.b2b-auth-field input[type="password"],
.b2b-auth-field input[type="email"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-size: 14px;
    color: #222;
    transition: border-color 0.15s;
    background: #fafbfc;
}

.b2b-auth-field input:focus {
    outline: none;
    border-color: #0066cc;
    background: #fff;
}

.b2b-auth-remember {
    margin-bottom: 20px;
    font-size: 13px;
    color: #555;
}

.b2b-auth-remember label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.b2b-auth-submit {
    width: 100%;
    padding: 11px;
    background: #0052a3;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.b2b-auth-submit:hover {
    background: #003d80;
}

.b2b-auth-links {
    margin-top: 16px;
    text-align: center;
    font-size: 13px;
}

.b2b-auth-links a {
    color: #0066cc;
}

.b2b-auth-error {
    background: #fff0f0;
    border: 1px solid #f5c2c2;
    color: #c0392b;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 13px;
}

/* ============================================================
   Profile page — редактирование профиля
   ============================================================ */

.b2b-profile h1 {
    margin: 0 0 28px;
    font-size: 24px;
    color: #1a1a2e;
}

.b2b-profile__success {
    background: #eafaf1;
    border: 1px solid #a9dfbf;
    color: #1e8449;
    padding: 12px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.b2b-profile__errors {
    background: #fff0f0;
    border: 1px solid #f5c2c2;
    color: #c0392b;
    padding: 12px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.b2b-profile__errors p {
    margin: 0 0 4px;
}

.b2b-profile__errors p:last-child {
    margin: 0;
}

.b2b-profile__form {
    max-width: 640px;
}

.b2b-profile__section {
    background: #fff;
    border: 1px solid #e0e4ea;
    border-radius: 8px;
    padding: 28px 32px;
    margin-bottom: 20px;
}

.b2b-profile__section h2 {
    margin: 0 0 20px;
    font-size: 16px;
    color: #1a1a2e;
    border-bottom: 1px solid #e0e4ea;
    padding-bottom: 12px;
}

.b2b-profile__hint {
    font-size: 13px;
    color: #888;
    margin: -10px 0 18px;
}

.b2b-profile__row {
    display: grid;
    grid-template-columns: 180px 1fr;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.b2b-profile__row:last-child {
    margin-bottom: 0;
}

.b2b-profile__row label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.b2b-profile__req {
    color: #e74c3c;
}

.b2b-profile__row input[type="text"],
.b2b-profile__row input[type="email"],
.b2b-profile__row input[type="tel"],
.b2b-profile__row input[type="password"] {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-size: 14px;
    color: #222;
    background: #fafbfc;
    transition: border-color 0.15s;
}

.b2b-profile__row input:focus {
    outline: none;
    border-color: #0066cc;
    background: #fff;
}

.b2b-profile__footer {
    display: flex;
    justify-content: flex-start;
}

.b2b-profile__save {
    padding: 10px 28px;
    background: #0052a3;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.b2b-profile__save:hover {
    background: #003d80;
}

/* End */


/* Start:/local/js/b2b/mesk/mesk.css?17899796417133*/
/* b2b.mesk — виджет помощника Mesk. Палитра — из local/templates/b2b/css/style.css. MVP:
   без поля ввода (нет .b2b-mesk__form/__input/__send) и без пульсации подсветки. */

.b2b-mesk {
    --mesk-primary: #0052a3;
    --mesk-primary-dark: #003d80;
    --mesk-accent: #0066cc;
    --mesk-accent-soft: #eef5fc;
    --mesk-bg: #ffffff;
    --mesk-bot-bg: #f4f6f9;
    --mesk-text: #333333;
    --mesk-muted: #555555;
    --mesk-border: #e0e4ea;
    --mesk-focus: #ffca28;
    --mesk-shadow: 0 6px 20px rgba(0, 0, 0, .25);

    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900; /* выше шапки (100), ниже облачков b2b.hints (1000) */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    color: var(--mesk-text);
}

.b2b-mesk *,
.b2b-mesk *::before,
.b2b-mesk *::after {
    box-sizing: border-box;
}

/* ── Кнопка ─────────────────────────────────────────────── */

.b2b-mesk__fab {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 6px 16px 6px 8px;
    border: 0;
    border-radius: 28px;
    background: var(--mesk-primary);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--mesk-shadow);
}

.b2b-mesk__fab:hover {
    background: var(--mesk-primary-dark);
}

.b2b-mesk__fab:focus-visible,
.b2b-mesk__chip:focus-visible,
.b2b-mesk__act:focus-visible,
.b2b-mesk__home:focus-visible,
.b2b-mesk__close:focus-visible {
    outline: 3px solid var(--mesk-focus);
    outline-offset: 2px;
}

.b2b-mesk__cat {
    display: block;
    width: 44px;
    flex: none;
}

.b2b-mesk__cat svg {
    display: block;
    width: 100%;
    height: auto;
}

.b2b-mesk__ghost {
    animation: b2b-mesk-shimmer 2.4s ease-in-out infinite alternate;
}

/* Панель открыта — «наблюдатель» появился, суперпозиция схлопнулась. */
.b2b-mesk[data-open="true"] .b2b-mesk__ghost {
    opacity: 0;
    animation: none;
}

/* ── Панель ─────────────────────────────────────────────── */

.b2b-mesk__panel {
    position: absolute;
    right: 0;
    bottom: 68px;
    display: flex;
    flex-direction: column;
    width: 360px;
    height: 520px;
    max-height: calc(100vh - 120px);
    overflow: hidden;
    background: var(--mesk-bg);
    border: 1px solid var(--mesk-border);
    border-radius: 8px;
    box-shadow: var(--mesk-shadow);
}

.b2b-mesk__panel[hidden] {
    display: none;
}

.b2b-mesk__head {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 8px 10px 14px;
    background: var(--mesk-primary);
    color: #fff;
}

.b2b-mesk__title {
    flex: 1;
    font-weight: 600;
}

.b2b-mesk__home,
.b2b-mesk__close {
    padding: 4px 8px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.b2b-mesk__close {
    font-size: 20px;
    line-height: 1;
}

.b2b-mesk__home:hover,
.b2b-mesk__close:hover {
    background: rgba(255, 255, 255, .15);
}

/* ── Лента ──────────────────────────────────────────────── */

.b2b-mesk__log {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    overflow-y: auto;
}

.b2b-mesk__msg {
    max-width: 88%;
    padding: 8px 12px;
    border-radius: 8px;
    overflow-wrap: anywhere;
    animation: b2b-mesk-in .18s ease-out;
}

.b2b-mesk__msg--bot {
    align-self: flex-start;
    background: var(--mesk-bot-bg);
}

.b2b-mesk__msg--user {
    align-self: flex-end;
    background: var(--mesk-accent);
    color: #fff;
}

.b2b-mesk__msg p,
.b2b-mesk__msg ul,
.b2b-mesk__msg ol {
    margin: 0 0 6px;
}

.b2b-mesk__msg ul,
.b2b-mesk__msg ol {
    padding-left: 18px;
}

.b2b-mesk__msg > :last-child {
    margin-bottom: 0;
}

.b2b-mesk__sep {
    align-self: center;
    color: var(--mesk-muted);
    font-size: 12px;
}

.b2b-mesk__manager {
    margin: 6px 0;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid var(--mesk-border);
    border-radius: 6px;
}

.b2b-mesk__manager a {
    color: var(--mesk-accent);
}

.b2b-mesk__acts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.b2b-mesk__act {
    display: inline-block;
    padding: 4px 10px;
    border: 0;
    border-radius: 4px;
    background: var(--mesk-accent);
    color: #fff;
    font: inherit;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
}

.b2b-mesk__act:hover {
    background: var(--mesk-primary-dark);
    color: #fff;
}

/* ── Чипы (последний элемент панели — поля ввода в MVP нет) ───────────── */

.b2b-mesk__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 40%;
    padding: 8px 12px 12px;
    overflow-y: auto;
    border-top: 1px solid var(--mesk-border);
}

.b2b-mesk__chips:empty {
    display: none;
}

.b2b-mesk__chip {
    padding: 5px 10px;
    border: 1px solid var(--mesk-accent);
    border-radius: 14px;
    background: #fff;
    color: var(--mesk-accent);
    font: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.b2b-mesk__chip:hover {
    background: var(--mesk-accent-soft);
}

.b2b-mesk__chip--nav {
    border-color: var(--mesk-border);
    color: var(--mesk-muted);
}

/* ── Подсветка элемента страницы (класс вешается на чужой элемент; статичная
   рамка — без пульсации, снимается через HIGHLIGHT_MS в mesk.js) ─────────── */

.b2b-mesk-highlight {
    outline: 3px solid #ffca28 !important;
    outline-offset: 3px !important;
}

@keyframes b2b-mesk-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: none; }
}

@keyframes b2b-mesk-shimmer {
    from { opacity: .2; }
    to   { opacity: .6; }
}

/* ── Мобильная ширина: нижний лист ──────────────────────── */

@media (max-width: 600px) {
    .b2b-mesk {
        right: 16px;
        bottom: 16px;
    }

    .b2b-mesk__fab {
        padding: 6px;
    }

    .b2b-mesk__fab-label {
        display: none;
    }

    .b2b-mesk__panel {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        width: auto;
        height: 75vh;
        max-height: none;
        border-radius: 12px 12px 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .b2b-mesk__msg,
    .b2b-mesk__ghost {
        animation: none;
    }
}

@media print {
    .b2b-mesk {
        display: none !important;
    }
}

/* End */
/* /local/templates/b2b/css/style.css?178997955912350 */
/* /local/js/b2b/mesk/mesk.css?17899796417133 */
