/* =============================================================================
   Справочник скруглений (border-radius)
   Значения привязаны к уже встречающимся в проекте px; подмена в селекторах —
   постепенно.
   Ориентиры: 2xs–xs — мелочи; sm–md — контролы/меню; lg–2xl — карточки/модалки;
   3xl+ — крупные блоки; circle — круг; pill — капсула по высоте строки.
   Только верхние углы: например
   border-radius: var(--radius-3xl) var(--radius-3xl) var(--radius-none) var(--radius-none);
   ============================================================================= */
:root {
    --radius-none: 0;
    --radius-2xs: 3px;
    --radius-xs: 4px;
    --radius-sm: 5px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-10: 10px;
    --radius-xl: 12px;
    --radius-2xl: 16px;
    --radius-3xl: 20px;
    --radius-4xl: 24px;
    --radius-5xl: 32px;
    --radius-circle: 50%;
    /* Справочник цветов — ориентиры: surface-* фоны; text-on-dark/light —
       типографика; accent-* синий и золото; danger/success; *-alpha прозрачности */

    --color-surface-page: rgba(25, 25, 25, 1);
    --color-surface-raised: rgba(32, 32, 32, 1);
    --color-surface-panel: rgba(37, 37, 37, 1);
    --color-surface-elevated: rgba(40, 40, 40, 1);
    --color-surface-input: #313131;
    --color-surface-muted: #333333;
    --color-border-subtle: rgba(220, 220, 220, 0.1);
    --color-border-default: #464646;
    --color-border-light-ui: #ddd;
    --color-border-muted-ui: #ccc;
    --color-border-hairline: #e8e8e8;

    --color-text-on-dark-primary: rgba(255, 255, 255, 0.81);
    --color-text-on-dark-secondary: rgba(255, 255, 255, 0.65);
    --color-text-on-dark-muted: rgba(255, 255, 255, 0.45);
    --color-text-on-dark-strong: rgba(255, 255, 255, 0.95);
    --color-text-on-dark-dim: rgba(255, 255, 255, 0.13);
    --color-text-sidebar-link: rgb(155, 155, 155);
    --color-text-on-light-primary: #242424;
    --color-text-on-light-secondary: #333333;
    --color-text-on-light-muted: #666666;
    --color-text-on-light-soft: #888888;
    --color-text-placeholder: #bdbdbd;
    --color-text-gray-500: #9a9a9a;
    --color-text-gray-400: #b5b5b5;
    --color-text-gray-300: #cccccc;

    --color-accent-primary: #007bff;
    --color-accent-primary-hover: #0056b3;
    --color-accent-primary-soft: #3395ff;
    --color-accent-primary-tint: #9dc0ff;
    --color-accent-focus-ring: rgba(0, 123, 255, 0.35);
    --color-accent-gold: rgba(180, 150, 100, 1);
    --color-accent-gold-deep: #b59861;
    --color-accent-gold-light: #bfab86;

    --color-danger: #e31235;
    --color-danger-bootstrap: #dc3545;
    --color-danger-bootstrap-hover: #c82333;
    --color-accent-magenta: #f1117e;

    --color-on-primary: #ffffff;
    --color-white: #ffffff;
    --color-black: #000000;

    --color-surface-light: #ffffff;
    --color-surface-light-alt: #f8f9fa;
    --color-surface-light-muted: #f9f9f9;
    --color-surface-light-warm: #f5f5f5;
    --color-surface-light-gray: #eee;
    --color-surface-light-border: #e9ecef;
    --color-surface-neutral: #e0e0e0;
    --color-surface-checkout-muted: #f3f4f6;

    --color-success-bg: #d4edda;
    --color-danger-bg: #f8d7da;
    --color-neutral-gray: #6c757d;
    --color-neutral-gray-hover: #5a6268;
    --color-text-muted-cool: #6b7280;

    --color-success: #22c55e;
    --color-overlay-scrim: rgba(0, 0, 0, 0.35);
    --color-overlay-scrim-strong: rgba(0, 0, 0, 0.55);
    --color-white-alpha-04: rgba(255, 255, 255, 0.04);
    --color-white-alpha-08: rgba(255, 255, 255, 0.08);
    --color-white-alpha-10: rgba(255, 255, 255, 0.1);
    --color-white-alpha-15: rgba(255, 255, 255, 0.15);
    --color-white-alpha-18: rgba(255, 255, 255, 0.18);
    --color-white-alpha-28: rgba(255, 255, 255, 0.28);
    --color-black-alpha-06: rgba(0, 0, 0, 0.06);
    --color-black-alpha-08: rgba(0, 0, 0, 0.08);
    --color-black-alpha-10: rgba(0, 0, 0, 0.1);
    --color-black-alpha-12: rgba(0, 0, 0, 0.12);
    --color-black-alpha-20: rgba(0, 0, 0, 0.2);
}

/* Визуально скрытый, но доступный текст: остаётся в DOM для SEO/скринридеров,
   не занимает место и не виден на экране (не display:none — тот убирает
   элемент из accessibility-дерева и не читается роботами). */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

html {
    min-height: 100%;
}

body {
    font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    background-color: rgba(25, 25, 25, 1);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.home-page-offset {
    padding-top: 20px;
}

.footer {
    background: #212121;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 40px 20px 24px;
    box-sizing: border-box;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.footer__columns {
    display: flex;
    gap: 16px;
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.footer__col-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-on-dark-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer__link {
    font-size: 14px;
    color: var(--color-text-on-dark-muted);
    text-decoration: none;
}

.footer__link:hover {
    color: var(--color-text-on-dark-secondary);
}

.footer__bottom {
    border-top: 1px solid var(--color-border-subtle);
    padding-top: 16px;
}

.footer__copyright {
    font-size: 13px;
    color: var(--color-text-on-dark-dim);
}

.main-layout {
    display: flex;
    flex: 1;
    min-height: 0;
}


/* Левое меню */
.left-menu, .right-menu {
    width: 250px;
    box-sizing: border-box;
}

.left-menu {
    width: 250px;
    flex-shrink: 0;
    background-color: rgba(32, 32, 32, 1);
    border-right: 0px solid rgba(220, 220, 220, 0.1);
    padding-left: 8px;
    padding-right: 8px;
    padding-top: 0px;
    padding-bottom: 20px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.left-menu-header {
    height: 44px;
    width: 100%;
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.81);
    flex-shrink: 0;
    z-index: 100;
}

.left-menu-header a {
    color: rgba(255, 255, 255, 0.81);
    text-decoration: none;
    transition: all 0.3s ease;
    height: 32px;
    line-height: 32px;
    padding: 0 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    white-space: nowrap;
}

.left-menu-header a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.81);
}

.left-menu-header .sportcust-sidebar-switcher-logo {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* Переключатель разделов (OS / Seller / сайт) в шапке сайдбара: пилюля из двух секций (как в Sorevki).
   Левая — ссылка на главную раздела, правая — стрелка, открывающая выпадающее меню. */
.nav-split {
    position: relative;
    display: inline-flex;
    align-items: stretch;
    height: 32px;
    border-radius: 6px;
}

.left-menu-header .nav-split__main {
    border-radius: 6px 0 0 6px;
    width: auto;
}

/* static, чтобы меню позиционировалось по всей пилюле (.nav-split), а не по кнопке со стрелкой;
   селектор сложнее общего .nav-dropdown { position: relative } */
.nav-split .nav-split__dropdown {
    position: static;
    display: flex;
}

.left-menu-header .nav-split__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 8px;
    gap: 0;
    border-radius: 0 6px 6px 0;
    border-left: 1px solid transparent;
    color: rgba(255, 255, 255, 0.81);
    transition: all 0.3s ease;
}

.nav-split:hover .nav-split__toggle,
.nav-split:has(.nav-dropdown[open]) .nav-split__toggle {
    border-left-color: rgba(255, 255, 255, 0.12);
}

/* Наведение на пилюлю: обе секции подсвечены, но та, на которую не навели, чуть тусклее */
.left-menu-header .nav-split:hover .nav-split__main,
.left-menu-header .nav-split:hover .nav-split__toggle,
.left-menu-header .nav-split:has(.nav-dropdown[open]) .nav-split__main {
    background-color: rgba(255, 255, 255, 0.05);
}

.left-menu-header .nav-split .nav-split__main:hover,
.left-menu-header .nav-split .nav-split__toggle:hover,
.left-menu-header .nav-split .nav-dropdown[open] > .nav-split__toggle {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Меню по ширине всей пилюли: левый и правый края совпадают с краями обеих секций */
.left-menu-header .nav-split .nav-dropdown__menu {
    left: 0;
    right: 0;
    min-width: 0;
}

.left-menu-header .nav-dropdown__item {
    display: block;
    width: auto;
    height: auto;
    line-height: normal;
    padding: 8px 16px;
    border-radius: 0;
    color: #bdbdbd;
}

.left-menu-header .nav-dropdown__item:hover {
    background-color: rgb(100, 100, 100);
    color: rgba(255, 255, 255, 0.81);
}

.left-menu-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Стили для навигации в левом меню */
.left-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.left-menu li {
    margin: 0;
    padding: 0;
}

.left-menu li.menu-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 8px 8px;
}

.left-menu .sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.left-menu .sidebar__link,
.left-menu ul li a {
    color: rgb(155, 155, 155);
    text-decoration: none;
    height: 30px;
    line-height: 30px;
    padding: 0 8px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.left-menu .sidebar__link:hover,
.left-menu .sidebar__link--active,
.left-menu ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.81);
}

/* Кнопка сворачивания левого сайдбара /os/: галка справа в строке с логотипом */
.left-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: auto;
    padding: 0;
    flex-shrink: 0;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.left-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.81);
}

.left-menu-toggle svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 768px) {
    .left-menu-toggle {
        display: none;
    }
}

/* Свёрнутый сайдбар /os/ (класс на <html>): полоса 56px, у пунктов вместо текста — квадратик */
@media (min-width: 769px) {
    html.os-menu-collapsed .left-menu {
        width: 56px;
    }

    html.os-menu-collapsed .left-menu-header {
        justify-content: center;
    }

    html.os-menu-collapsed .left-menu-header .nav-split {
        display: none;
    }

    html.os-menu-collapsed .left-menu-toggle {
        margin-left: 0;
    }

    html.os-menu-collapsed .left-menu-toggle svg {
        transform: rotate(180deg);
    }

    html.os-menu-collapsed .left-menu ul li a {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        font-size: 0;
    }

    html.os-menu-collapsed .left-menu ul li a::before {
        content: '';
        width: 14px;
        height: 14px;
        border-radius: 3px;
        background: currentColor;
    }
}

/* Правое меню */
.right-menu {
    width: 250px;
    background-color: rgba(32, 32, 32, 1);
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Скроллится отдельно от центральной части страницы — как .left-menu */
    position: sticky;
    top: 0;
    height: 100vh;
    align-self: flex-start;
}

/* Убедимся, что родительские контейнеры не обрезают меню */
.right-menu-header {
    height: 44px;
    background-color: rgba(32, 32, 32, 1);
    border-bottom: 0px solid #464646;
    display: flex;
    align-items: center;
    justify-content: left;
    padding: 0px 20px 0px 20px;
    flex-shrink: 0;
    z-index: 100;
    overflow: visible; /* Добавляем это свойство */
    position: relative; /* Добавляем это свойство */
}

.right-menu-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
} 

.download-all-container {
    margin-bottom: 0px;
    text-align: center;
    width: 100%;
    position: relative; /* Добавляем для правильного позиционирования */
    overflow: visible; /* Добавляем это свойство */
}

.download-all-btn {
    background-color: #007bff;        /* Цвет фона */
    height: 32px;
    color: white;                     /* Цвет текста */
    border: none;                       /* Рамка */
    border-radius: 6px;                 /* Скругление углов */
    padding: 5px 12px;                 /* Внутренние отступы */
    font-size: 14px;                    /* Размер шрифта */
    cursor: pointer;                    /* Курсор при наведении */
    transition: background-color 0.3s;  /* Анимация */
    text-decoration: none;              /* Подчеркивание ссылки */
    display: block;                  /* Меняем с inline-block на block */
    text-align: center;
    width: 100%;                     /* Добавляем полную ширину */
    box-sizing: border-box;          /* Учитываем padding в ширине */
}

.download-all-btn:hover {
    background-color: #0056b3;
    color: white;
    text-decoration: none;
}

/* Разделитель */
.divider {
    width: 1px;
    background-color: #464646;
    flex-shrink: 0;
}

/* Центр */
.center-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background-color: rgba(25, 25, 25, 1);
}

/* Клиентская шапка на главной */
.header {
    height: 110px;
    background: #212121;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    padding: 0 20px;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__container {
    flex-direction: column;
    display: flex;
}

.header__inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.header__bar {
    display: flex;
    align-items: center;
}

/* Основная строка: логотип, каталог, поиск, действия */
.header__bar:not(.header__bar--top) {
    gap: 18px;
    justify-content: flex-start;
}

.header__bar--top {
    height: 28px;
    gap: 10px;
    justify-content: flex-start;
}

.header__top-menus {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header__top-right {
    justify-content: flex-end;
}

.header__bar--bottom {
    height: 68px;
}

.header__menu-link {
    color: #bdbdbd;
    text-decoration: none;
    font-size: 14px;
    height: 24px;
    line-height: 24px;
    padding: 0 8px;
    border-radius: 6px;
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.header__menu-link:hover {
    background-color: rgb(100, 100, 100);
    color: rgba(255, 255, 255, 0.81);
    text-decoration: none;
}

.header__menu-link:focus-visible {
    outline: none;
    background-color: rgb(100, 100, 100);
    color: rgba(255, 255, 255, 0.81);
}

/* Выпадающий список в верхнем меню шапки */
.nav-dropdown {
    position: relative;
}

.nav-dropdown__summary {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    user-select: none;
}

.nav-dropdown__summary::-webkit-details-marker {
    display: none;
}

.nav-dropdown__summary::marker {
    content: none;
}

.nav-dropdown__chevron {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.nav-dropdown[open] .nav-dropdown__chevron {
    transform: rotate(180deg);
}

.nav-dropdown[open] > .nav-dropdown__summary {
    background-color: rgb(100, 100, 100);
    color: rgba(255, 255, 255, 0.81);
}

.nav-dropdown__menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 6px 0;
    min-width: 220px;
    z-index: 200;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.nav-dropdown__item {
    display: block;
    padding: 8px 16px;
    color: #bdbdbd;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s;
}

.nav-dropdown__item:hover {
    background-color: rgb(100, 100, 100);
    color: rgba(255, 255, 255, 0.81);
    text-decoration: none;
}

/* Мобильная полоса: назад | логотип | меню (показ ≤768px) */
.header__mobile-tool {
    display: none;
    width: 100%;
    box-sizing: border-box;
}

.header__mobile-tool-cell {
    display: flex;
    align-items: center;
    min-width: 0;
}

.header__mobile-tool-cell--start {
    justify-content: flex-start;
}

.header__mobile-tool-cell--center {
    justify-content: center;
}

.header__mobile-tool-cell--end {
    justify-content: flex-end;
}

.header__mobile-back {
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23242424' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E") center / 22px 22px no-repeat;
    cursor: pointer;
}

.header__mobile-back:hover {
    background-color: rgba(0, 0, 0, 0.06);
}

.header__mobile-back:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(181, 152, 97, 0.6);
}

.header__logo--mobile-toolbar {
    display: block;
    height: 32px;
    width: auto;
    max-width: min(160px, 42vw);
    object-fit: contain;
}

.header__mobile-menu-btn {
    list-style: none;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    color: #242424;
    background: transparent;
    box-sizing: border-box;
}

.header__mobile-menu-btn::-webkit-details-marker {
    display: none;
}

.header__mobile-menu-icon {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    box-shadow: 0 7px 0 currentColor, 0 -7px 0 currentColor;
}

.header__mobile-menu-btn:hover {
    background-color: rgba(0, 0, 0, 0.06);
}

.header__mobile-menu-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(181, 152, 97, 0.6);
}

.header__mobile-menu-panel {
    position: absolute;
    left: 0;
    right: 0;
    width: auto;
    top: 100%;
    margin-top: 4px;
    padding: 8px 0 16px;
    background: rgba(37, 37, 37, 0.98);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    z-index: 9990;
    max-height: min(70vh, 420px);
    overflow-y: auto;
    box-sizing: border-box;
}

.header__mobile-menu-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 12px;
}

.header__mobile-menu-nav--secondary {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.header__mobile-menu-link {
    display: block;
    padding: 14px 12px;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
    border-radius: 10px;
}

.header__mobile-menu-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
}

.header__mobile-menu-link:focus-visible {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.95);
}

/* Аккордеон nav-dropdown внутри мобильного меню */
.header__mobile-menu-panel .nav-dropdown {
    position: static;
}

.header__mobile-menu-panel .nav-dropdown__menu {
    position: static;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    min-width: 0;
    box-shadow: none;
    z-index: auto;
}

.header__mobile-menu-panel .nav-dropdown__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px 11px 24px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 15px;
    font-weight: 400;
    white-space: normal;
    border-radius: 8px;
}

.header__mobile-menu-panel .nav-dropdown__item::before {
    content: '•';
    font-size: 18px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

.header__mobile-menu-panel .nav-dropdown__item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.88);
}

.header__mobile-menu-panel .nav-dropdown[open] > .nav-dropdown__summary {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
}

.header__logo-link {
    display: inline-flex;
    align-items: center;
}

.header__brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    flex: 0 0 auto;
}

.header__catalog-btn-container {
    flex: 0 0 auto;
}

.header__logo {
    height: 40px;
    width: auto;
    display: block;
}

.header__catalog-btn {
    height: 44px;
    padding: 0 14px;
    border-radius: 8px;
    border: 0px solid rgba(0, 0, 0, 0.12);
    text-decoration: none;
    color: #242424;
    font-size: 18px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    background: #b59861;
}

.header__catalog-btn:hover {
    background: #bfab86;
    color: #242424;
    text-decoration: none;
}

/* ─── Каталог: выпадающее меню (CSS-only вкладки) ───────────────────── */
.catalog-dropdown {
    position: relative;
}

.catalog-dropdown__summary {
    cursor: pointer;
    list-style: none;
}

.catalog-dropdown__summary-icon {
    flex-shrink: 0;
    margin-right: 8px; /* Требуемый отступ иконки от текста */
    display: block;
}

.catalog-dropdown__summary-icon--close {
    display: none;
}

.catalog-dropdown[open] .catalog-dropdown__summary-icon--grid {
    display: none;
}

.catalog-dropdown[open] .catalog-dropdown__summary-icon--close {
    display: block;
}

.catalog-dropdown__summary::-webkit-details-marker {
    display: none;
}

.catalog-dropdown__menu {
    /* Полоса на всю ширину окна сразу под шапкой (.header height: 110px) */
    position: fixed;
    left: 0;
    right: 0;
    top: 110px;
    z-index: 9999;

    background: rgba(37, 37, 37, 1);
    border: none;
    border-radius: 0;
    padding: 16px 20px;

    display: none;
    min-width: 0;
    max-width: none;
    width: 100%;
    box-sizing: border-box;
    height: calc(100vh - 110px);
    overflow: hidden;
    box-shadow: none;
}

.catalog-dropdown[open] .catalog-dropdown__menu {
    display: block;
}

.catalog-dropdown__tabgrid {
    display: grid;
    grid-template-columns: 260px 1fr;
    column-gap: 32px;
    align-items: stretch;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    box-sizing: border-box;
    height: 100%;
}

.catalog-dropdown__tab-column {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    height: 100%;
    overflow-y: auto;
}

.catalog-dropdown__radio {
    /* Оставляем в DOM для :checked, но выносим из потока */
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.catalog-dropdown__tab-label {
    cursor: pointer;
    user-select: none;

    display: block;
    height: 48px;
    line-height: 48px;
    padding: 0 10px;
    border-radius: 10px;

    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    font-size: 16px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.catalog-dropdown__tab-label:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(180, 150, 100, 1);
}

#catalog-tab-persons:checked ~ .catalog-dropdown__tab-column .catalog-dropdown__tab-label[for="catalog-tab-persons"],
#catalog-tab-countries:checked ~ .catalog-dropdown__tab-column .catalog-dropdown__tab-label[for="catalog-tab-countries"],
#catalog-tab-regions:checked ~ .catalog-dropdown__tab-column .catalog-dropdown__tab-label[for="catalog-tab-regions"],
#catalog-tab-cities:checked ~ .catalog-dropdown__tab-column .catalog-dropdown__tab-label[for="catalog-tab-cities"],
#catalog-tab-clubs:checked ~ .catalog-dropdown__tab-column .catalog-dropdown__tab-label[for="catalog-tab-clubs"] {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(180, 150, 100, 1);
}

.catalog-dropdown__panels {
    grid-column: 2;
    grid-row: 1 / -1;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.catalog-dropdown__panel {
    display: none;
}

#catalog-tab-persons:checked ~ .catalog-dropdown__panels .panel-persons,
#catalog-tab-countries:checked ~ .catalog-dropdown__panels .panel-countries,
#catalog-tab-regions:checked ~ .catalog-dropdown__panels .panel-regions,
#catalog-tab-cities:checked ~ .catalog-dropdown__panels .panel-cities,
#catalog-tab-clubs:checked ~ .catalog-dropdown__panels .panel-clubs {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
    min-height: 0;
}

.catalog-dropdown__panel-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    flex-shrink: 0;
}

/* В панели Страны колонка растягивается на всю доступную высоту */
.catalog-dropdown__panel > .catalog-dropdown__links-grid {
    flex: 1;
}

.catalog-dropdown__panel-empty {
    color: rgba(255, 255, 255, 0.45);
    padding: 10px 0;
    font-size: 14px;
}

.catalog-dropdown__sports-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.catalog-dropdown__sport-block {
    background: transparent;
    border: none;
    border-radius: 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-sizing: border-box;
}

.catalog-dropdown__sport-link {
    display: block;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 24px;
    margin-bottom: 0;
}

.catalog-dropdown__subtype-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.catalog-dropdown__subtype-link {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 20px;
}

.catalog-dropdown__subtype-link:hover {
    color: rgba(255, 255, 255, 0.95);
}

.catalog-dropdown__links-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.catalog-dropdown__links-grid--countries {
    align-items: start;
}

.catalog-dropdown__links-grid--single-col {
    display: flex;
    flex-direction: column;
    width: 220px;
    flex-shrink: 0;
    overflow-y: auto;
    min-height: 0;
}

.regions-layout,
.cities-layout,
.clubs-layout,
.sport-cat-layout {
    display: flex;
    gap: 24px;
    align-items: stretch;
    flex: 1;
    min-height: 0;
}

.regions-col,
.cities-regions-col,
.cities-ajax-col,
.clubs-regions-col,
.clubs-ajax-col,
.sport-cat-col {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 220px;
    flex-shrink: 0;
    overflow-y: auto;
    min-height: 0;
}

.clubs-ajax-col {
    width: 300px;
}

/* Финальная колонка (категории вида спорта): ширина по самому длинному названию */
.sport-cat-col {
    width: max-content;
    min-width: 220px;
    max-width: 360px;
}

.catalog-dropdown__country-block {
    background: transparent;
    border: none;
    border-radius: 12px;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.catalog-dropdown__country-title {
    margin: 0;
    font-weight: 600;
}

.catalog-dropdown__region-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.catalog-dropdown__link-item,
.catalog-dropdown__region-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
    flex-shrink: 0;
}

.catalog-dropdown__link-item:hover,
.catalog-dropdown__region-link:hover {
    background: rgba(180, 150, 100, 1);
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
}

.catalog-dropdown__radio:checked + .catalog-dropdown__link-item,
.catalog-dropdown__radio:checked + .catalog-dropdown__region-link {
    color: var(--color-accent-gold);
}

label.catalog-dropdown__link-item::after,
label.catalog-dropdown__region-link::after {
    content: '›';
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1;
    opacity: 0.5;
}

.catalog-page {
    width: 100%;
    padding-top: 14px;
}

.catalog-main-page {
    width: 100%;
}

.client-home-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 1100px) {
    .catalog-dropdown__menu {
        min-width: auto;
    }
    .catalog-dropdown__sports-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .catalog-dropdown__links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .catalog-dropdown__menu {
        /* Шапка на узких экранах выше из-за переносов строк */
        top: 140px;
        padding: 12px;
        max-height: calc(100vh - 140px);
    }
    .catalog-dropdown__tabgrid {
        grid-template-columns: 1fr;
        row-gap: 12px;
    }
    .catalog-dropdown__panels {
        grid-column: 1;
        grid-row: auto;
    }
    .catalog-dropdown__links-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    .catalog-dropdown__sports-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

.header__search {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.header__search-input {
    box-sizing: border-box;
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0 44px 0 14px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: #ffffff;
    font-size: 15px;
    line-height: 1.2;
    color: #242424;
}

.header__search-input::placeholder {
    color: #b5b5b5;
}

.header__search-input:focus {
    outline: none;
    border-color: rgba(0, 0, 0, 0.2);
}

.header__search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9a9a9a;
    pointer-events: none;
}

/* Первая версия — стили не сверены со styleguide.html, подлежат ревью. */
.header__search-suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    z-index: 9990;
    max-height: min(60vh, 360px);
    overflow-y: auto;
    box-sizing: border-box;
}

.header__search-suggestions-group {
    padding: 8px 14px 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #9a9a9a;
}

.header__search-suggestions-group:not(:first-child) {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 4px;
}

.header__search-suggestion {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.3;
    color: #242424;
    text-decoration: none;
}

.header__search-suggestion-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header__search-suggestion-code {
    flex: 0 0 auto;
    font-size: 12px;
    color: #9a9a9a;
}

.header__search-suggestion:hover,
.header__search-suggestion--active {
    background: rgba(0, 0, 0, 0.05);
}

.header__actions {
    display: inline-flex;
    align-items: stretch;
    gap: 0;
    flex: 0 0 auto;
}

.header__nav-item {
    display: flex;
    align-items: stretch;
}

.header__nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    min-width: 56px;
    padding: 4px 8px 6px;
    border-radius: 8px;
    text-decoration: none;
    color: #cccccc;
    font-weight: 500;
    box-sizing: border-box;
}

.header__nav-link:hover {
    text-decoration: none;
    color: var(--color-accent-gold);
}

.header__nav-link:hover .header__nav-icon:not(.header__nav-icon--cart):not(.header__nav-icon--orders):not(.header__nav-icon--favorites) {
    filter: brightness(0) saturate(100%) invert(68%) sepia(14%) saturate(1219%) hue-rotate(356deg) brightness(93%) contrast(88%);
}

.header__nav-link:hover .header__nav-icon--cart::before,
.header__nav-link:hover .header__nav-icon--orders::before,
.header__nav-link:hover .header__nav-icon--favorites::before {
    filter: brightness(0) saturate(100%) invert(68%) sepia(14%) saturate(1219%) hue-rotate(356deg) brightness(93%) contrast(88%);
}

.header__nav-icon {
    position: relative;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
}

.header__nav-icon--orders {
    background-image: none;
}

.header__nav-icon--orders::before {
    content: "";
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cccccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/%3E%3Cpolyline points='3.27 6.96 12 12.01 20.73 6.96'/%3E%3Cline x1='12' y1='22.08' x2='12' y2='12'/%3E%3C/svg%3E");
}

.header__nav-icon--home {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cccccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5L12 3l9 7.5'/%3E%3Cpath d='M5 9.5V21h14V9.5'/%3E%3Cpath d='M10 21v-6h4v6'/%3E%3C/svg%3E");
}

.header__nav-icon--persons {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cccccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

.header__nav-icon--profile {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cccccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.header__nav-icon--favorites {
    background-image: none;
}

.header__nav-icon--favorites::before {
    content: "";
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cccccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78l1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E");
}

.header__notify-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.header__notify-btn:hover {
    background-color: rgb(100, 100, 100);
}

.header__notify-btn-icon {
    display: block;
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bdbdbd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0'/%3E%3C/svg%3E");
}

.header__notify-btn .header__nav-notify {
    right: -6px;
    top: -6px;
}

.header__nav-icon--notifications {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cccccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0'/%3E%3C/svg%3E");
}

.header__mobile-notify-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
}

.header__mobile-notify-btn:hover {
    background-color: rgba(0, 0, 0, 0.06);
}

.header__mobile-notify-btn .header__nav-icon--notifications {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2f2f2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0'/%3E%3C/svg%3E");
}

.header__nav-icon--catalog {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23cccccc' d='M4 7.556C4 4.628 4.628 4 7.556 4s3.555.628 3.555 3.556-.627 3.555-3.555 3.555S4 10.484 4 7.556m0 8.888c0-2.928.628-3.555 3.556-3.555s3.555.627 3.555 3.555S10.484 20 7.556 20 4 19.372 4 16.444M16.444 4c-2.928 0-3.555.628-3.555 3.556s.627 3.555 3.555 3.555S20 10.484 20 7.556 19.372 4 16.444 4m-3.555 12.444c0-2.928.627-3.555 3.555-3.555S20 13.516 20 16.444 19.372 20 16.444 20s-3.555-.628-3.555-3.556'/%3E%3C/svg%3E");
}

.header__nav-icon--seller-dashboard {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cccccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E");
}

.header__nav-icon--seller-shops {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cccccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E");
}

.header__nav-icon--seller-products {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cccccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E");
}

.header__nav-icon--cart {
    background-image: none;
}

.header__nav-icon--cart::before {
    content: "";
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cccccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E");
}

.header__nav-notify {
    position: absolute;
    right: -6px;
    top: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #e31235;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    box-sizing: border-box;
}

.header__nav-notify:empty {
    display: none;
}

.header__nav-label {
    margin: 0;
    font-size: 12px;
    color: inherit;
    line-height: 1.15;
    text-align: center;
    max-width: 72px;
}

/* Промо-баннер главной (заглушка; на узких экранах скрыт) */
.client-home-banner {
    display: none;
    padding: 20px 0 0 0;
}

.client-home-slider {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.client-home-slider__viewport {
    width: 100%;
}

.client-home-slider__track {
    display: flex;
    width: 100%;
    transform: translateX(0%);
    transition: transform 260ms ease;
    will-change: transform;
}

.client-home-slider__slide {
    flex: 0 0 100%;
    width: 100%;
    aspect-ratio: 24 / 5; /* 2880x600 */
    display: block;
    text-decoration: none;
}

.client-home-slider__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.client-home-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.95);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
    opacity: 0.85;
    user-select: none;
}

.client-home-slider__arrow:hover {
    background: rgba(0, 0, 0, 0.55);
    border-color: rgba(255, 255, 255, 0.28);
    opacity: 1;
}

.client-home-slider__arrow:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.35);
}

.client-home-slider__arrow--prev {
    left: 12px;
}

.client-home-slider__arrow--next {
    right: 12px;
}

.client-home-slider__arrow-icon {
    font-size: 28px;
    line-height: 1;
    margin-top: -2px;
}

@media (min-width: 768px) {
    .client-home-banner {
        display: block;
        width: 100%;
    }
}

/* Фиксированная заголовочная область */
.fixed-header {
    height: 44px;
    background-color: rgba(25, 25, 25, 1);
    border-bottom: 0px solid #464646;
    display: flex;
    align-items: center;
    padding: 0 20px;
    flex-shrink: 0;
    z-index: 100;
}

/* Полоса крошек скрыта: не видна и не резервирует место в layout */
.fixed-header.breadcrumbs-hide {
    display: none;
}

.layout-content-wrap {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

/* Клиент: крошки внутри scrollable-content (скроллятся вместе с контентом) */
.layout-content-wrap--stack {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
}

.client-breadcrumbs-row {
    flex-shrink: 0;
    width: 100%;
    margin: 0 0 0px;
}

.client-breadcrumbs-row.breadcrumbs-hide {
    display: none;
}

/* Breadcrumbs */
.breadcrumbs {
    height: 50px;
    width: 100%;
    background-color: rgba(25, 25, 25, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 8px;
}

.breadcrumbs__container {
    height: 100%;
    padding: 0 0;
    display: flex;
    align-items: center;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.breadcrumbs__actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.breadcrumbs__icon-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 0;
    background-color: transparent;
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
    transition: opacity 0.2s ease, transform 0.2s ease;
    opacity: 0.95;
}

.breadcrumbs__icon-btn:hover,
.breadcrumbs__icon-btn:focus-visible {
    outline: none;
    transform: translateY(-1px);
    opacity: 1;
}

.breadcrumbs__icon-btn--favorite {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cccccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78l1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E");
}

.breadcrumbs__icon-btn--link {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cccccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 1 0-7l1-1a5 5 0 0 1 7 7l-1 1'/%3E%3Cpath d='M14 11a5 5 0 0 1 0 7l-1 1a5 5 0 0 1-7-7l1-1'/%3E%3C/svg%3E");
}

.breadcrumbs__icon-btn--favorite:hover,
.breadcrumbs__icon-btn--favorite:focus-visible {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b59861' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78l1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E");
}

.breadcrumbs__icon-btn--link:hover,
.breadcrumbs__icon-btn--link:focus-visible {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b59861' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 1 0-7l1-1a5 5 0 0 1 7 7l-1 1'/%3E%3Cpath d='M14 11a5 5 0 0 1 0 7l-1 1a5 5 0 0 1-7-7l1-1'/%3E%3C/svg%3E");
}

.breadcrumbs__icon-btn.is-copied {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b59861' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 1 0-7l1-1a5 5 0 0 1 7 7l-1 1'/%3E%3Cpath d='M14 11a5 5 0 0 1 0 7l-1 1a5 5 0 0 1-7-7l1-1'/%3E%3C/svg%3E");
}

.breadcrumbs__separator {
    color: rgba(255, 255, 255, 0.13);
    font-size: 14px;
}

.breadcrumbs__current {
    color: rgba(255, 255, 255, 0.81);
    font-size: 14px;
    line-height: 24px;
    display: inline-flex;
    align-items: center;
}

.breadcrumbs__separator + .breadcrumbs__current {
    margin-left: 8px;
}

.breadcrumbs__link {
    color: rgba(255, 255, 255, 0.81);
    text-decoration: none;
    height: 24px;
    line-height: 24px;
    padding: 0 8px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    font-size: 14px;
    display: block;
}

.breadcrumbs__link:hover {
    background-color: rgba(40, 40, 40, 1);
    color: rgba(255, 255, 255, 0.81);
    text-decoration: none;
}

/* Для совместимости со старым именованием */
.breadcrumbs a {
    color: rgba(255, 255, 255, 0.81);
    text-decoration: none;
    height: 24px;
    line-height: 24px;
    padding: 0 8px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    font-size: 14px;
    display: inline-block;
}

.breadcrumbs a:hover {
    background-color: rgba(40, 40, 40, 1);
    color: rgba(255, 255, 255, 0.81);
    text-decoration: none;
}

/* Стили для обычного текста в хлебных крошках (разделители) */
.breadcrumbs {
    color: rgba(255, 255, 255, 0.81);
    font-size: 14px;
}

/* Контейнер для прокрутки */
.scrollable-content {
    flex: 1;
    padding: 0px 0px 20px 0px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.os-scrollable-content {
    flex: 1;
    padding: 20px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-content {
    padding: 0px 20px 0px 20px;
}

.page-title {
    background: transparent;
    text-align: left;
    max-width: 100%;
    width: 100%;
}

/* Заголовок страницы со строкой поиска в одной строке (первая версия, не сверена со styleguide) */
.page-title--with-search {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.page-title--with-search .header__search {
    flex: 0 1 320px;
    width: 320px;
    max-width: 100%;
}

/* Заголовок страницы с тулбаром действий, прижатым к правому краю (карточка заказа в /os/) */
.page-title--with-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.page-title__toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.container {
    background: transparent;
    /* background: rgb(62, 62, 62); */
    padding: 0px;
    border-radius: 0px;
    text-align: center;
    max-width: 100%;
    width: 100%;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .fixed-header {
        padding: 0 12px;
    }

    .breadcrumbs__actions {
        display: none;
    }

    .scrollable-content {
        padding: 0px 0px calc(
            var(--mobile-bottom-nav-total-height)
            + 12px
        ) 0px;
    }

    .main-content {
        padding: 0px 12px 0px 12px;
    }

    .product-card-mobile-offset {
        padding-top: 12px;
    }

    .home-page-offset {
        padding-top: 16px;
    }

    .category-page-mobile-offset {
        padding-top: 12px;
    }

    .profile-mobile-offset {
        padding-top: 12px;
    }

    .catalog-top-offset {
        padding-top: 16px;
    }

    .catalog-page {
        width: 100%;
        padding-top: 0px;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .catalog-page h1 {
        display: none;
    }

    .catalog-page .filter-bar {
        margin: 0;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .catalog-page .filter-bar + * {
        margin-top: 16px;
    }

    .catalog-page .filter-bar::-webkit-scrollbar {
        display: none;
    }

    .catalog-page .filter-bar__item {
        flex-shrink: 0;
    }

    .footer {
        display: none;
    }

    .header {
        position: sticky;
        top: 0;
        z-index: 100;
        height: auto;
        min-height: 0;
        padding: 0 12px;
        border-bottom: 0px solid rgba(255, 255, 255, 0.1);
    }

    .header__mobile-tool {
        display: grid;
        grid-template-columns: 44px 1fr auto;
        align-items: center;
        column-gap: 6px;
        min-height: 48px;
        padding: 4px 0;
    }

    .header__mobile-tool-cell--end {
        gap: 4px;
    }

    .header__inner {
        padding: 8px 0;
        gap: 0;
    }

    .header__top-menus {
        display: none;
    }

    .header__bar:not(.header__bar--top) .header__brand {
        display: none;
    }

    .header__bar:not(.header__bar--top) {
        height: auto;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .header__search {
        max-width: none;
        width: 100%;
    }

    .header__actions-container {
        display: none;
    }

    .header--mobile-compact .header__catalog-btn-container,
    .header--mobile-compact .header__search {
        display: none;
    }

    .header--mobile-compact .header__mobile-back {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2f2f2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E");
    }

    .header--mobile-compact .header__mobile-menu-btn {
        color: #f2f2f2;
    }

    body {
        padding-bottom: var(--mobile-bottom-nav-total-height);
    }
}

/* Нижняя панель навигации (только мобильная витрина, ≤768px) */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    :root {
        --mobile-bottom-nav-height: 52px;
        --mobile-bottom-nav-safe-gap: 24px;
        --mobile-bottom-nav-link-pad-top: 6px;
        --mobile-bottom-nav-link-pad-bottom: 8px;
        --mobile-bottom-nav-link-gap: 4px;
        --mobile-bottom-nav-icon-size: 28px;
        --mobile-bottom-nav-label-font-size: 10px;
        --mobile-bottom-nav-label-line-height: 1.2;
        --mobile-bottom-nav-label-lines: 1;
        --mobile-bottom-nav-content-height: calc(
            var(--mobile-bottom-nav-link-pad-top)
            + var(--mobile-bottom-nav-icon-size)
            + var(--mobile-bottom-nav-link-gap)
            + (var(--mobile-bottom-nav-label-font-size) * var(--mobile-bottom-nav-label-line-height) * var(--mobile-bottom-nav-label-lines))
            + var(--mobile-bottom-nav-link-pad-bottom)
        );
        --mobile-bottom-nav-bar-height: max(var(--mobile-bottom-nav-height), var(--mobile-bottom-nav-content-height));
        --mobile-bottom-nav-total-height: calc(
            var(--mobile-bottom-nav-bar-height)
            + var(--mobile-bottom-nav-safe-gap)
            + env(safe-area-inset-bottom, 0px)
        );
    }

    .mobile-bottom-nav {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 500;
        min-height: var(--mobile-bottom-nav-bar-height);
        padding-bottom: calc(env(safe-area-inset-bottom, 0px) + var(--mobile-bottom-nav-safe-gap));
        background: rgba(25, 25, 25, 1);
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
    }

    .mobile-bottom-nav__inner {
        display: flex;
        align-items: stretch;
        justify-content: space-between;
        gap: 0;
        max-width: 1440px;
        margin: 0 auto;
        padding: 0 4px;
    }

    .mobile-bottom-nav .header__nav-item {
        flex: 1;
        min-width: 0;
    }

    .mobile-bottom-nav .header__nav-link {
        min-width: 0;
        width: 100%;
        max-width: none;
        gap: var(--mobile-bottom-nav-link-gap);
        padding: var(--mobile-bottom-nav-link-pad-top) 2px var(--mobile-bottom-nav-link-pad-bottom);
        color: rgb(255 255 255 / 40%);
    }

    .mobile-bottom-nav .header__nav-link:hover,
    .mobile-bottom-nav .header__nav-link:active,
    .mobile-bottom-nav .header__nav-link:focus-visible {
        color: var(--color-accent-gold);
    }

    .mobile-bottom-nav .header__nav-label {
        max-width: none;
        font-size: var(--mobile-bottom-nav-label-font-size);
        line-height: var(--mobile-bottom-nav-label-line-height);
    }

    .mobile-bottom-nav .header__nav-icon {
        width: var(--mobile-bottom-nav-icon-size);
        height: var(--mobile-bottom-nav-icon-size);
    }

    .mobile-bottom-nav .header__nav-icon:not(.header__nav-icon--cart):not(.header__nav-icon--favorites) {
        filter: brightness(0) invert(1);
        opacity: 0.4;
    }

    .mobile-bottom-nav .header__nav-icon--cart::before,
    .mobile-bottom-nav .header__nav-icon--favorites::before {
        filter: brightness(0) invert(1);
        opacity: 0.4;
    }

    .mobile-bottom-nav .header__nav-notify {
        background: #e31235 !important;
        color: #ffffff !important;
        opacity: 1 !important;
        filter: none !important;
    }

    .mobile-bottom-nav .header__nav-link.mobile-bottom-nav__link--active {
        color: var(--color-accent-gold);
    }

    .mobile-bottom-nav .header__nav-link:hover .header__nav-icon:not(.header__nav-icon--cart):not(.header__nav-icon--orders):not(.header__nav-icon--favorites),
    .mobile-bottom-nav .header__nav-link:active .header__nav-icon:not(.header__nav-icon--cart):not(.header__nav-icon--orders):not(.header__nav-icon--favorites),
    .mobile-bottom-nav .header__nav-link:focus-visible .header__nav-icon:not(.header__nav-icon--cart):not(.header__nav-icon--orders):not(.header__nav-icon--favorites),
    .mobile-bottom-nav__link--active .header__nav-icon:not(.header__nav-icon--cart):not(.header__nav-icon--orders):not(.header__nav-icon--favorites) {
        filter: brightness(0) saturate(100%) invert(68%) sepia(14%) saturate(1219%) hue-rotate(356deg) brightness(93%) contrast(88%);
        opacity: 1;
    }

    .mobile-bottom-nav .header__nav-link:hover .header__nav-icon--cart::before,
    .mobile-bottom-nav .header__nav-link:active .header__nav-icon--cart::before,
    .mobile-bottom-nav .header__nav-link:focus-visible .header__nav-icon--cart::before,
    .mobile-bottom-nav__link--active .header__nav-icon--cart::before,
    .mobile-bottom-nav .header__nav-link:hover .header__nav-icon--orders::before,
    .mobile-bottom-nav .header__nav-link:active .header__nav-icon--orders::before,
    .mobile-bottom-nav .header__nav-link:focus-visible .header__nav-icon--orders::before,
    .mobile-bottom-nav__link--active .header__nav-icon--orders::before,
    .mobile-bottom-nav .header__nav-link:hover .header__nav-icon--favorites::before,
    .mobile-bottom-nav .header__nav-link:active .header__nav-icon--favorites::before,
    .mobile-bottom-nav .header__nav-link:focus-visible .header__nav-icon--favorites::before,
    .mobile-bottom-nav__link--active .header__nav-icon--favorites::before {
        filter: brightness(0) saturate(100%) invert(68%) sepia(14%) saturate(1219%) hue-rotate(356deg) brightness(93%) contrast(88%);
        opacity: 1;
    }
}

@media print {
    .mobile-bottom-nav {
        display: none !important;
    }
}

.container.preview-container {
    max-width: 200px;  /* Максимальный размер превью на сайте */
    width: 100%;
}

.block-preview-board {
    background: rgb(255, 255, 255);
    padding: 0px;
    border-radius: 16px;
    text-align: center;
    max-width: 100%;
    width: 300px;
    margin-bottom: 0;
}

/* Заголовки */
h1 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 28px;
    margin: 0px;
    margin-bottom: 0px;
    text-align: left;
}

h2 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 24px;
    margin: 0px;
    margin-bottom: 20px;
    text-align: left;
}

h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    margin: 0px;
    margin-bottom: 20px;
    text-align: left;
}

p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin-bottom: 20px;
    text-align: left;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.canvas-container {
    margin: 20px 0;
    border: 2px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    display: inline-block;
    width: var(--preview-width);
    height: var(--preview-height);
}


.image-preview {
    display: block;
    width: var(--preview-width);
    height: var(--preview-height);
    object-fit: contain;
    border: 1px solid #ccc;
    image-rendering: high-quality;
    image-rendering: -webkit-optimize-contrast;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Стили для изображений превью */
.image-preview.preview-image {
    max-width: 300px;
    max-height: 300px;
    width: 100%;
    height: auto;
    object-fit: contain;
    border: 0px solid #ddd;
    border-radius: 16px 16px 0px 0px;
    background: #ffffff;
    display: block;
    margin: 0 auto;
    padding: 16px 0px 16px 0px;
} 

.product-info-container {
    /* background: #cccccc; */
    align-items: flex-start;
    box-sizing: border-box;
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    justify-content: flex-start;
    padding: 10px 10px 10px 10px;
    width: 100%;
}

.price-container {
    /* background: #555555;*/
    margin: 0px;
    width: 100%;
}

.price-container p {
    color: #f1117e;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0px;
    padding: 0px;
}

.name-container {
    /* background: #666666;*/
    margin: 0px;
    width: 100%;
}

.name-container p {
    color: #666;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0;
    margin: 0px;
    margin-top: 1px;
    margin-bottom: 1px;
    padding: 0px;
}
.info {
    margin-top: 20px;
    color: #666;
    font-size: 14px;
}

.catalog-btn {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    margin-top: 5px;
    width: calc(100% - 0px);
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    box-sizing: border-box;
    font-size: 14px;
}

.catalog-btn-container {
    width: 100%;
}

.download-btn:hover {
    background-color: #0056b3;
} 

/* Стили для формы */
.form-container {
    color: #ffffff;
}

.form-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #464646;
}

.form-group {
    margin-bottom: 0px;
}

.form-label {
    display: block;
    color: #cccccc;
    font-size: 11px;
    margin-bottom: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 520px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Плавающие подписи — форма персоны в ЛК (my_person_form.html) */
/* .container (обёртка почти любой страницы) задаёт text-align: center —
   без сброса здесь любой новый текстовый элемент внутри формы (подсказка,
   заголовок группы чекбоксов, текст ошибки) наследует center и уезжает
   в центр, пока его не пропатчат точечно (как раньше было с
   .form-float__label). Сброс на корне класса избавляет от точечных фиксов. */
.my-person-form {
    text-align: left;
}

.my-person-form__stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.my-person-form__stack .form-float {
    margin-bottom: 0;
}

#clubCascade {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#cascadeCityWrapper,
#cascadeClubWrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Выпадающий список поиска города/клуба в каскаде (вид как у .checkout-city-dropdown) */
.cascade-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1e2128;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 0 0 8px 8px;
    z-index: 100;
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 280px;
    overflow-y: auto;
}
.cascade-dropdown li {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cascade-dropdown li:hover,
.cascade-dropdown li.is-active {
    background: rgba(255,255,255,0.07);
}
.cascade-dropdown li.is-empty {
    cursor: default;
    color: rgba(255,255,255,0.5);
}
.cascade-dropdown__place {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}

.my-person-form__section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary, #888);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-top: 12px;
}

.my-person-form__actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.my-person-form__actions .my-person-form__action-btn {
    flex: 1 1 140px;
    min-height: 40px;
}

.my-person-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 0px;
}

.my-person-form__row--favorite-name {
    grid-template-columns: 1fr 1fr 48px;
    align-items: end;
}

.my-person-form__row .form-float {
    margin-bottom: 0;
}

@media (max-width: 520px) {
    .my-person-form__row {
        grid-template-columns: 1fr;
    }
}

.my-person-form .form-float {
    position: relative;
    margin-bottom: 0px;
    border-radius: var(--radius-lg);
    background: rgba(25, 25, 25, 1);
    border: 1px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.my-person-form .form-float:focus-within {
    border-color: var(--color-accent-primary);
    box-shadow: 0 0 0 1px var(--color-accent-focus-ring);
}

.my-person-form .form-float--error:focus-within {
    border-color: rgba(227, 18, 53, 0.55);
    box-shadow: 0 0 0 1px rgba(227, 18, 53, 0.25);
}

.my-person-form .form-float--error:not(:focus-within) {
    border-color: rgba(227, 18, 53, 0.55);
}

.my-person-form .form-float .form-float__control {
    border: none;
    background: transparent;
    width: 100%;
    box-sizing: border-box;
    padding: 22px 12px 8px;
}

.my-person-form .form-float .form-float__control:focus {
    outline: none;
    border: none;
    box-shadow: none;
    background-color: transparent;
}

.my-person-form .form-float:has(input[required]) .form-float__label::after,
.my-person-form .form-float:has(select[required]) .form-float__label::after {
    content: " *";
    color: #c62828;
}

.my-person-form .form-float__label {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    line-height: 1.25;
    color: var(--color-text-on-dark-muted);
    pointer-events: none;
    transition: top 0.2s ease, transform 0.2s ease, font-size 0.2s ease, color 0.2s ease;
    transform-origin: left center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Явно: блок на всю ширину поля (left/right), без этого выравнивание текста
       наследуется — .container задаёт text-align: center, что ломает лейбл
       в любом попапе, который не переопределяет его обратно на left. */
    text-align: left;
}

.my-person-form .form-float:has(textarea) .form-float__label {
    top: 16px;
    transform: translateY(0);
}

/* Ручка растягивания только по вертикали — по горизонтали поле уходит за край модалки */
.my-person-form .form-float textarea.form-float__control {
    resize: vertical;
}

.my-person-form .form-float:focus-within .form-float__label,
.my-person-form .form-float:has(input:not(:placeholder-shown)) .form-float__label,
.my-person-form .form-float:has(textarea:not(:placeholder-shown)) .form-float__label,
.my-person-form .form-float--select.form-float--select-filled .form-float__label,
.my-person-form .form-float--has-placeholder .form-float__label {
    top: 8px;
    transform: translateY(0) scale(0.92);
    font-size: 11px;
    color: var(--color-text-on-dark-secondary);
}

.my-person-form .form-float:focus-within .form-float__control,
.my-person-form .form-float:has(input:not(:placeholder-shown)) .form-float__control,
.my-person-form .form-float:has(textarea:not(:placeholder-shown)) .form-float__control,
.my-person-form .form-float--select.form-float--select-filled .form-float__control,
.my-person-form .form-float--has-placeholder .form-float__control {
    padding-top: 22px;
    padding-bottom: 8px;
}

.my-person-form .form-float--select select.form-float__control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.form-error {
    margin-top: 6px;
    font-size: 12px;
    color: var(--color-danger);
}

/* Корзина: форма редактирования персонализации — те же плавающие поля, что в ЛК персоны */
.cart-list__edit-form.my-person-form {
    max-width: 560px;
    display: block;
    gap: 0;
}

.cart-list__edit-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cart-list__edit-stack .my-person-form .form-float {
    margin-bottom: 0;
}

.cart-list__edit-section .my-person-form__row .form-float {
    margin-bottom: 0;
}

.cart-list__edit-section--actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.cart-list__edit-section--actions .cart-list__edit-action-btn {
    flex: 1 1 140px;
    min-height: 44px;
}

.my-person-form .form-float--image .pf-field-preview {
    display: block;
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
    margin-bottom: 8px;
    border-radius: var(--radius-md);
}

.my-person-form .form-float--image input[type="file"].form-float__control {
    cursor: pointer;
}

.my-person-form .form-float--image.form-float--has-value .form-float__label,
.my-person-form .form-float--image:focus-within .form-float__label {
    top: 8px;
    transform: translateY(0) scale(0.92);
    font-size: 11px;
    color: var(--color-text-on-dark-secondary);
}

.my-person-form .form-float--image.form-float--has-value .form-float__control,
.my-person-form .form-float--image:focus-within .form-float__control {
    padding-top: 22px;
    padding-bottom: 8px;
}

/* Кнопка "Изменить" вместо нативного input[type=file] — показывается,
   когда файл уже был загружен раньше (см. field.html), потому что браузер
   не может вернуть его выбранное состояние в свежесгенерированном HTML. */
.my-person-form .form-float--image .pf-file-input--hidden {
    display: none;
}

.my-person-form .form-float--image .pf-file-custom {
    /* Grid, а не flex: колонка под имя файла задана как minmax(0, 1fr) —
       её минимальный размер явно 0 на уровне трека, а не на уровне
       min-width самого элемента, поэтому длинное имя без пробелов
       (white-space: nowrap) не может распереть ни колонку, ни родительские
       flex-контейнеры выше (.pf-variant-fields/.pf-block/.pf-card-block--fields). */
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    background-color: rgba(25, 25, 25, 1);
    border: 1px solid rgba(25, 25, 25, 1);
    border-radius: 4px;
    padding: 22px 5px 8px;
}

.my-person-form .form-float--image .pf-file-custom:hover {
    border-color: #464646;
}

.my-person-form .form-float--image .pf-file-custom__btn {
    background-color: var(--color-white-alpha-08);
    color: var(--color-text-on-dark-primary);
    border: none;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
}

.my-person-form .form-float--image .pf-file-custom__btn:hover {
    background-color: var(--color-white-alpha-15);
}

.my-person-form .form-float--image .pf-file-custom__name {
    display: block;
    min-width: 0;
    max-width: 100%;
    font-size: 12px;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    /* Явно: наследуется бы center от .container без этого. */
    text-align: left;
}

.form-input {
    width: 100%;
    background-color: rgba(25, 25, 25, 1);
    border: 1px solid rgba(25, 25, 25, 1);
    border-radius: 4px;
    padding: 5px 5px;
    color: #ffffff;
    font-size: 12px;
    box-sizing: border-box;
}

.form-input:hover {
    border: 1px solid #464646;
}

/* Поле с ошибкой / не заполнено (цвет как у .form-float--error); при фокусе — обычная синяя рамка */
.form-input--error,
.form-input--error:hover {
    border-color: rgba(227, 18, 53, 0.55);
}

.form-input:focus {
    outline: none;
    border-color: #007bff;
    background-color: #333333;
}

.form-input::placeholder {
    color: #888888;
}

#id_code::placeholder {
    font-weight: 700;
}

.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;
    -webkit-box-shadow: 0 0 0 1000px rgba(25, 25, 25, 1) inset;
    box-shadow: 0 0 0 1000px rgba(25, 25, 25, 1) inset;
    transition: background-color 5000s ease-in-out 0s;
}

.form-input--uppercase {
    text-transform: uppercase;
}

.form-input--fit {
    width: auto;
    max-width: 100%;
}


/* Стили для загрузки и удаления файла */
.file-info-container {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.clear-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    margin-left: 10px;
}

.clear-btn:hover {
    background: #c82333;
} 

/* Стили для полей выбора цвета */
input[type="color"].form-input {
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    height: 30px;  /* Общая высота контейнера */
    padding: 2px;  /* Отступ между рамкой и цветным полем */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

input[type="color"].form-input::-webkit-color-swatch-wrapper {
    padding: 0;
    border: none;
    border-radius: 4px;
}

input[type="color"].form-input::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
    height: 100%;  /* Цветное поле займет всю доступную высоту */
}

input[type="color"].form-input::-moz-color-swatch {
    border: none;
    border-radius: 4px;
    height: 100%;
}

input[type="color"].form-input:hover {
    border: 1px solid #464646;
}

input[type="color"].form-input:focus {
    border: 1px solid #007bff;
}

/* Стили для сетки холстов */
.canvas-grid {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
    padding: 0 20px;
    flex-wrap: nowrap;
    align-items: flex-start;
}

.canvas-item {
    text-align: center;
    min-width: 0;
    flex-shrink: 1;
}

/* Пропорциональные размеры холстов на основе preview_width */
.canvas-item:nth-child(1) { /* XS - 244px */
    flex-basis: 244px;
    flex-grow: 0.64;
}

.canvas-item:nth-child(2) { /* S - 293px */
    flex-basis: 293px;
    flex-grow: 0.77;
}

.canvas-item:nth-child(3) { /* M - 342px */
    flex-basis: 342px;
    flex-grow: 0.9;
}

.canvas-item:nth-child(4) { /* L - 380px */
    flex-basis: 380px;
    flex-grow: 1;
}

.canvas-item img {
    border: 1px solid #ddd;
    border-radius: 4px;
    background: transparent;   /* было: #f9f9f9 */
    width: 100%;
    height: auto;
    max-width: 100%;
}

.size-info {
    font-size: 12px;
    color: #666;
    margin: 5px 0;
    text-align: left;
}

.download-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 12px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 12px;
}

.download-btn:hover {
    background: #0056b3;
}

/* Адаптивность для разных размеров экранов */
@media (max-width: 1400px) {
    .canvas-grid {
        gap: 10px;
        padding: 0 10px;
    }
    
    .canvas-item:nth-child(1) { flex-basis: 195px; }
    .canvas-item:nth-child(2) { flex-basis: 234px; }
    .canvas-item:nth-child(3) { flex-basis: 274px; }
    .canvas-item:nth-child(4) { flex-basis: 304px; }
}

@media (max-width: 1200px) {
    .canvas-grid {
        gap: 8px;
        padding: 0 5px;
    }
    
    .canvas-item:nth-child(1) { flex-basis: 170px; }
    .canvas-item:nth-child(2) { flex-basis: 205px; }
    .canvas-item:nth-child(3) { flex-basis: 240px; }
    .canvas-item:nth-child(4) { flex-basis: 266px; }
}

@media (max-width: 1000px) {
    .canvas-grid {
        gap: 5px;
        padding: 0;
    }
    
    .canvas-item:nth-child(1) { flex-basis: 146px; }
    .canvas-item:nth-child(2) { flex-basis: 176px; }
    .canvas-item:nth-child(3) { flex-basis: 205px; }
    .canvas-item:nth-child(4) { flex-basis: 228px; }
    
    .size-info {
        font-size: 10px;
    }
    
    .download-btn {
        padding: 4px 8px;
        font-size: 10px;
    }
}

@media (max-width: 800px) {
    .canvas-grid {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .canvas-item {
        flex-basis: calc(50% - 7.5px);
        max-width: calc(50% - 7.5px);
    }
    
    .canvas-item:nth-child(1), .canvas-item:nth-child(2) {
        margin-bottom: 10px;
    }
}

@media (max-width: 500px) {
    .canvas-item {
        flex-basis: 100%;
        max-width: 100%;
    }
}  

/* Стили для блока импорта XLSX */
.import-xlsx-container {
    margin-bottom: 15px;
    background-color: rgba(70, 70, 70, 0.2);
    border-radius: 4px;
    padding: 15px;
}

.import-xlsx-container .form-title {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.download-example-link {
    color: #007bff;
    text-decoration: none;
    font-size: 12px;
    display: block;
    text-align: left;
    transition: color 0.3s;
}

.download-example-link:hover {
    color: #0056b3;
    text-decoration: underline;
} 

/* Стили для избранных цветов */
.color-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-input-small {
    width: 40% !important;
    flex-shrink: 0;
    min-width: 60px;
}

.favorite-colors {
    display: flex;
    gap: 3px;
    align-items: center;
    flex-wrap: nowrap;
}

/* Увеличенный отступ между любимыми цветами — только для карточки товара */
.favorite-colors.pf-favorite-colors-lg {
    gap: 6px;
}

.color-btn {
    width: 20px;
    height: 20px;
    border: 1px solid #464646;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    margin: 0;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.color-btn:hover {
    border-color: #007bff;
    transform: scale(1.2);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
    z-index: 1;
}

.color-btn:active {
    transform: scale(0.9);
}

/* Эффект для белого цвета - добавляем тонкую внутреннюю рамку */
.color-btn[data-color="#ffffff"] {
    box-shadow: inset 0 0 0 1px #ddd;
}

.color-btn[data-color="#ffffff"]:hover {
    box-shadow: inset 0 0 0 1px #ddd, 0 2px 4px rgba(0, 123, 255, 0.3);
}

/* Увеличенные квадратики любимых цветов — только для карточки товара */
.color-btn.pf-color-btn-lg {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

/* Обновляем стили для поля цвета с уменьшенным размером */
input[type="color"].color-input-small {
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    height: 30px;
    padding: 2px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

input[type="color"].color-input-small::-webkit-color-swatch-wrapper {
    padding: 0;
    border: none;
    border-radius: 4px;
}

input[type="color"].color-input-small::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
    height: 100%;
}

input[type="color"].color-input-small::-moz-color-swatch {
    border: none;
    border-radius: 4px;
    height: 100%;
}

input[type="color"].color-input-small:hover {
    border: 1px solid #464646;
}

input[type="color"].color-input-small:focus {
    border: 1px solid #007bff;
}

/* Поле выбора пользовательского цвета — высота как у полей формы (44px) */
.pf-color-picker {
    width: 20% !important;
    flex-shrink: 0;
    min-width: 60px;
}

input[type="color"].pf-color-picker {
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    height: 44px;
    padding: 2px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

input[type="color"].pf-color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
    border: none;
    border-radius: 4px;
}

input[type="color"].pf-color-picker::-webkit-color-swatch {
    border: none;
    border-radius: 6px;
    height: 100%;
}

input[type="color"].pf-color-picker::-moz-color-swatch {
    border: none;
    border-radius: 4px;
    height: 100%;
}

input[type="color"].pf-color-picker:hover {
    border: 1px solid #464646;
}

input[type="color"].pf-color-picker:focus {
    border: 1px solid #007bff;
}

/* Разделенная кнопка скачивания */
.split-download-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    font-size: 14px;
    border-radius: 6px;
    overflow: visible; /* Меняем с hidden на visible */
    width: 100%;
}

.download-main-btn {
    background-color: #007bff;
    color: white;
    border: none;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease-in;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    flex: 1;
    white-space: nowrap;
}

.download-main-btn:hover {
    background-color: #0056b3;
    color: white;
    text-decoration: none;
}

.download-dropdown {
    position: relative;
    overflow: visible; /* Добавляем */
}

.download-dropdown-btn {
    background-color: #007bff;
    color: white;
    border: none;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    width: 26px;
    height: 32px;
    cursor: pointer;
    transition: background-color 0.2s ease-in;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.download-dropdown-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.download-dropdown-btn:hover {
    background-color: #0056b3;
}

.download-dropdown-btn:hover::before {
    background: rgba(255, 255, 255, 0.3); /* Немного ярче при hover */
}

/* Альтернативный вариант - более заметный разделитель */
.download-dropdown-btn-alt {
    background-color: #007bff;
    color: white;
    border: none;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    border-left: 1px solid rgba(255, 255, 255, 0.2); /* Белый разделитель */
    width: 24px;
    height: 28px;
    cursor: pointer;
    transition: background-color 0.2s ease-in;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-arrow {
    width: 16px;
    height: 16px;
    fill: white;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Исправленное позиционирование меню */
.download-dropdown-menu {
    position: absolute; /* Возвращаем absolute вместо fixed */
    top: 100%; /* Сразу под кнопкой */
    right: 0; /* Выравниваем по правому краю кнопки */
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    min-width: 200px;
    max-height: 400px; /* Ограничиваем высоту */
    overflow-y: auto; /* Добавляем прокрутку */
    display: none;
}

.download-dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    border-bottom: 1px solid #eee;
    text-align: left; /* Выравнивание по левому краю */
}

.dropdown-item:hover {
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    text-align: left; /* Сохраняем выравнивание при hover */
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:first-child {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.dropdown-item:last-child {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

/* Убеждаемся, что само меню тоже выровнено корректно */
.download-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    min-width: 200px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    text-align: left; /* Выравнивание содержимого меню по левому краю */
}

/* ВАЖНО: Убедимся, что родительский контейнер позиционирован правильно */
.download-dropdown {
    position: relative;
}

/* Убедимся, что header не обрезает меню */
.right-menu-header {
    height: 44px;
    background-color: rgba(32, 32, 32, 1);
    border-bottom: 0px solid #464646;
    display: flex;
    align-items: center;
    justify-content: left;
    padding: 0px 20px 0px 20px;
    flex-shrink: 0;
    z-index: 100;
    overflow: visible; /* КРИТИЧЕСКИ ВАЖНО */
    position: relative;
}

.download-all-container {
    margin-bottom: 0px;
    text-align: center;
    width: 100%;
    position: relative;
    overflow: visible; /* КРИТИЧЕСКИ ВАЖНО */
}

.split-download-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    font-size: 14px;
    border-radius: 6px;
    overflow: visible; /* КРИТИЧЕСКИ ВАЖНО - было hidden! */
    width: 100%;
} 

/* Добавляем стиль для разделителя в меню */
.dropdown-divider {
    height: 1px;
    background-color: #eee;
    margin: 4px 0;
}

/* Обновляем максимальную высоту меню и добавляем прокрутку */
.download-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    min-width: 200px;
    max-height: 400px; /* Ограничиваем высоту */
    overflow-y: auto; /* Добавляем прокрутку */
    display: none;
} 

/* Панель инструментов над таблицей */
.table-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.table-toolbar .toolbar-btn,
.page-title__toolbar .toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 16px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.table-toolbar .toolbar-btn:hover,
.page-title__toolbar .toolbar-btn:hover {
    background-color: #0056b3;
}

/* Стили для таблицы файлов */
.files-table-container {
    margin: 20px 0;
    overflow-x: auto;
}

.files-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.files-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
}

.files-table td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
    text-align: left;
}

.files-table tr:hover {
    background: #f8f9fa;
}

.preview-cell {
    width: 60px;
    text-align: center;
}

/* Список контактных каналов */
.contacts-channel {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.contacts-channel__icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: #555;
}

.contacts-channel__link {
    font-size: 14px;
}

.contacts-channel__link:hover {
    text-decoration: underline;
}

.file-preview {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.filename-cell {
    min-width: 200px;
    text-align: left;
}

.filename {
    font-weight: 500;
    color: #333;
}

.file-size {
    color: #666;
    font-size: 0.9em;
    margin-left: 8px;
}

.date-cell {
    min-width: 150px;
    text-align: left;
}

.created-date {
    color: #666;
    font-size: 0.9em;
}

.actions-cell {
    width: 100px;
    text-align: center;
}

.company-actions-cell {
    white-space: nowrap;
    min-width: 132px;
}

.delete-btn:hover {
    background: #f8d7da;
} 

/* Стили для кнопок в форме загрузки */

/* Стили для формы загрузки */
#uploadForm {
    margin-top: 15px;
}

#uploadForm .form-group {
    margin-bottom: 15px;
}

#uploadInfo {
    color: #666;
    font-style: italic;
} 

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }

    .left-menu {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(220, 220, 220, 0.1);
        height: auto;
        position: static;
    }
} 

/* Стили для страницы конструкторов */
.constructors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: none;
}

.constructor-card {
    background: rgba(40, 40, 40, 1);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    display: block;
    cursor: pointer;
    position: relative;
}

.constructor-card:hover {
    background: rgba(50, 50, 50, 1);
    border-color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.constructor-card h3 {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    font-size: 20px;
}

.constructor-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    line-height: 1.5;
    font-size: 16px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .auth-wrapper {
        position: fixed;
        inset: 0;
        padding: 0 12px;
    }

    .constructors-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .constructor-card {
        padding: 20px;
    }
}

/* Стили для страниц авторизации */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    background-color: rgba(25, 25, 25, 1);
}

.auth-card {
    background-color: rgba(32, 32, 32, 1);
    border-radius: 32px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-card h2 {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin: 0 0 32px;
    font-size: 24px;
    font-weight: 600;
}

.auth-card .form-group:not(.form-float) {
    margin-bottom: 20px;
}

.auth-card label:not(.buyer-type-toggle) {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin-bottom: 6px;
}

.auth-card input[type="email"]:not(.form-float__control),
.auth-card input[type="password"]:not(.form-float__control),
.auth-card input[type="text"]:not(.form-float__control) {
    width: 100%;
    padding: 10px 12px;
    background-color: rgba(45, 45, 45, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.auth-card input:not(.form-float__control):focus {
    outline: none;
    border-color: rgba(39, 69, 199, 0.8);
}

.auth-card .btn-submit {
    width: 100%;
    padding: 12px;
    background-color: rgba(39, 69, 199, 1);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 8px;
}

.auth-card .btn-submit:hover {
    background-color: rgba(30, 55, 170, 1);
}

.auth-card .btn-submit.is-loading,
.auth-card .btn-primary.is-loading {
    background-image: linear-gradient(90deg, var(--color-accent-primary) 0%, rgba(100, 130, 245, 1) 50%, var(--color-accent-primary) 100%);
    background-size: 200% 100%;
    animation: btn-loading-gradient 1.2s linear infinite;
    cursor: default;
}

@keyframes btn-loading-gradient {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.auth-card .auth-link {
    text-align: center;
}

.auth-card .auth-link a {
    color: rgba(39, 69, 199, 1);
    text-decoration: none;
    font-size: 14px;
}

.auth-card .auth-link a:hover {
    text-decoration: underline;
}

.auth-card .error-list {
    background-color: rgba(200, 50, 50, 0.15);
    border: 1px solid rgba(200, 50, 50, 0.3);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 20px;
    color: rgba(255, 100, 100, 0.9);
    font-size: 13px;
    list-style: none;
}

.auth-card .buyer-type-toggles {
    justify-content: center;
}

.auth-card .buyer-type-toggles__break {
    display: none;
}

.auth-card-logo {
    max-width: 200px;
    margin: 0 auto;
}

.auth-card-logo img {
    width: 100%;
    height: auto;
    display: block;
}

/* Кнопки ЛК / checkout: шаблоны используют .btn .btn-primary .btn-secondary .btn-full */
button.btn {
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
}

a.btn {
    text-decoration: none;
    box-sizing: border-box;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    min-height: 44px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s, color 0.2s;
    text-align: center;
}

.btn__label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.btn__sub {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.8;
}

.btn:focus-visible {
    outline: 2px solid var(--color-accent-focus-ring);
    outline-offset: 2px;
}

.btn-primary {
    background-color: var(--color-accent-primary);
    color: var(--color-on-primary);
}

.btn-primary:hover {
    background-color: var(--color-accent-primary-hover);
    color: var(--color-on-primary);
}

.btn-secondary {
    background-color: var(--color-white-alpha-08);
    color: var(--color-text-on-dark-primary);
}

.btn-secondary:hover {
    background-color: var(--color-white-alpha-15);
    color: var(--color-text-on-dark-strong);
}

.btn-danger {
    background-color: #c62828;
    color: #fff;
}

.btn-danger:hover {
    background-color: #b71c1c;
    color: #fff;
}

.btn-full {
    width: 100%;
}

/* Пагинация каталога скрыта: подгрузка товаров идёт через infinite scroll (#catalog-sentinel), блок остаётся в DOM для сервер-рендера без JS */
.catalog-pagination {
    display: none;
}

/* Пагинация */
.pagination-bar {
    display: flex;
    justify-content: right;
    align-items: center;
    gap: 16px;
    padding: 12px 12px 12px 12px;
    flex-wrap: wrap;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: background-color 0.2s;
}

.pagination__link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.pagination__link--active {
    background-color: #007bff;
    color: #fff;
    pointer-events: none;
}

.pagination__ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

.pagination__per-page {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.pagination__per-page select {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 13px;
    cursor: pointer;
}

.pagination__per-page-btn {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.pagination__per-page-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}


/* ─── Каталог: общие ─────────────────────────────────────────── */

.catalog-empty {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
    margin-top: 2rem;
}

/* ─── Каталог: главная (home) ────────────────────────────────── */

.catalog-home {
    width: 100%;
    max-width: 100%;
    align-self: flex-start;
}

.catalog-home__header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.catalog-home__logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.catalog-home__logo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    font-size: 64px;
    flex-shrink: 0;
}

.catalog-home__info h1 {
    margin-bottom: 6px;
}

.catalog-home__geo {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin-bottom: 8px;
}

.catalog-home__sports {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0;
}

.catalog-home__subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    margin-bottom: 20px;
}

.catalog-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.catalog-home__actions {
    margin-bottom: 24px;
}

.catalog-home__actions .catalog-btn {
    display: inline-flex;
    max-width: 300px;
}

.catalog-home__manage {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.catalog-home__manage-title {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0;
}

.catalog-link {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.catalog-link:hover {
    color: #3395ff;
    text-decoration: none;
}

/* ─── Каталог: панель фильтров (dropdown-style) ──────────────── */

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.filter-bar + * {
    margin-top: 24px;
}

.filter-bar__item {
    position: relative;
    display: flex;
}

.filter-bar__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border: none;
    border-radius: 12px;
    background: #464646;
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    line-height: 1;
}

.filter-bar__item:hover .filter-bar__btn,
.filter-bar__item.is-open .filter-bar__btn {
    background: #5a5a5a;
    color: rgba(255, 255, 255, 0.95);
}

.filter-bar__item--active .filter-bar__btn {
    border: none;
    color: #242424;
    background: #b59861;
    border-radius: 12px 0 0 12px;
}

.filter-bar__item--active:hover .filter-bar__btn,
.filter-bar__item--active.is-open .filter-bar__btn {
    color: #242424;
    background: #b59861;
}

.filter-bar__arrow {
    width: 12px;
    height: 12px;
    color: currentColor;
    margin-left: 2px;
    flex-shrink: 0;
    transition: transform 0.15s;
}

.filter-bar__item.is-open .filter-bar__arrow {
    transform: rotate(180deg);
}

.filter-bar__item--active .filter-bar__arrow {
    display: none;
}

.filter-bar__reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 0 12px 12px 0;
    background: #b59861;
    color: #242424;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.filter-bar__reset:hover {
    color: #fff;
    text-decoration: none;
}

.filter-bar__reset svg {
    width: 12px;
    height: 12px;
    color: currentColor;
}

.filter-bar__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 210px;
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 6px 0;
    z-index: 300;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.filter-bar__item.is-open .filter-bar__dropdown {
    display: block;
}

/* Дропдаун фильтра реализован как <dialog class="popup">,
   чтобы на мобильном переиспользовать готовую шторку снизу экрана как есть (белая).
   На десктопе возвращаем тёмную палитру и анкорное позиционирование
   под кнопкой вместо стилей popup (белая модалка). */
@media (min-width: 1025px) {
    .filter-bar__item .filter-bar__dropdown {
        background: #2a2a2a;
        border: 1px solid rgba(255, 255, 255, 0.08);
        overflow: visible;
        width: auto;
        max-width: none;
        right: auto;
        margin: 0;
    }

    .filter-bar__dropdown .popup__form {
        padding: 6px 0;
    }

    .filter-bar__item .filter-bar__dropdown .popup__header {
        display: none;
    }

    .filter-bar__price-dropdown .popup__form {
        padding: 12px 14px;
    }
}

.filter-bar__option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    color: #bdbdbd;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.filter-bar__option:hover {
    background-color: rgb(100, 100, 100);
    color: rgba(255, 255, 255, 0.81);
    text-decoration: none;
}

.filter-bar__option--checked {
    color: #fff;
}

.filter-bar__radio {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
    transition: border-color 0.15s, background 0.15s;
}

.filter-bar__option--checked .filter-bar__radio {
    border-color: #007bff;
    background: #007bff;
    box-shadow: inset 0 0 0 3px #1c2235;
}

.filter-bar__checkbox {
    position: relative;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
    transition: border-color 0.15s, background 0.15s;
}

.filter-bar__option--checked .filter-bar__checkbox {
    border-color: #007bff;
    background: #007bff;
}

.filter-bar__option--checked .filter-bar__checkbox::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-bar__dropdown-footer {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    padding: 8px 14px 0;
    border-top: 0px solid rgba(255, 255, 255, 0.08);
}

.filter-bar__dropdown-footer .btn {
    flex: 1 1 0;
    min-height: 32px;
    padding: 6px 12px;
    font-size: 13px;
}

.filter-bar__dropdown-reset {
    display: none;
}

.filter-bar__dropdown-footer--has-selection .filter-bar__dropdown-reset {
    display: inline-flex;
}

.filter-bar__price-dropdown {
    min-width: 260px;
}

.filter-bar__price-apply {
    display: block;
    width: 100%;
    margin-top: 12px;
    text-align: center;
}

/* ─── Каталог: заголовок секции ───────────────────────────────── */

.catalog-section-title {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    margin: 24px 0 12px;
}

.catalog-section-title:first-of-type {
    margin-top: 16px;
}

/* ─── Каталог: сайдбар регионов ──────────────────────────────── */

.catalog-sidebar-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    margin: 16px 0 16px 0;
}

.catalog-sidebar {
    min-width: 0;
    align-self: stretch;
}

.catalog-sidebar-stack {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.catalog-sidebar-panel {
    border-radius: var(--radius-3xl);
    background: rgba(255, 255, 255, 0.05);
    padding: 14px;
}

.catalog-sidebar__nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.catalog-sidebar__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    font-weight: 500;
}

.catalog-sidebar__link:hover,
.catalog-sidebar__link:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.98);
}

.catalog-sidebar__link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.35);
    outline-offset: 2px;
}

.catalog-sidebar-layout--full {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

.catalog-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.catalog-block {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.catalog-sidebar-content {
    min-width: 0;
}

@media (max-width: 1100px) {
    .catalog-sidebar-layout {
        grid-template-columns: 1fr;
    }

    .catalog-sidebar-stack {
        position: static;
    }
}

@media (max-width: 768px) {
    .catalog-sidebar {
        display: none;
    }

    .catalog-sidebar-layout {
        margin-top: 0;
    }
}

/* ─── Каталог: сетка карточек ────────────────────────────────── */

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}

.catalog-grid--with-sidebar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 768px) {
    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.home-products-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
}

.home-products-head h1 {
    margin: 0;
}

.home-products-head__link {
    color: #9dc0ff;
    font-size: 14px;
    text-decoration: none;
}

.home-products-head__link:hover {
    text-decoration: underline;
}

.catalog-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
    text-decoration: none;
    transition: background 0.2s;
}

.catalog-card:hover {
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.catalog-card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.catalog-card__color-badge {
    position: absolute;
    left: 8px;
    bottom: 8px;
    padding: 4px 8px;
    border-radius: 8px;
    background: #b59861;
    color: #242424;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    z-index: 1;
}

.catalog-card__image.is-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e4e4e4 37%, #f0f0f0 63%);
    background-size: 400% 100%;
    animation: catalog-card-shimmer 1.4s ease infinite;
}

@keyframes catalog-card-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.catalog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0px;
    box-sizing: border-box;
}

.catalog-card__no-image {
    color: #ccc;
    font-size: 13px;
}

.cart-item-preview-link {
    text-decoration: none;
}

.cart-item-preview-link:hover,
.cart-item-preview-link:focus,
.cart-item-preview-link:active {
    text-decoration: none;
}

.cart-item-preview {
    width: 96px;
    aspect-ratio: 3/4;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cart-item-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    padding: 0;
    box-sizing: border-box;
}

.cart-item-preview__no-image {
    color: #ccc;
    font-size: 13px;
    text-align: center;
}

/* Плитка «Смотреть всю подборку» — как будто 4-й товар в ряду миниатюр (карточка роли персоны) */
.cart-item-preview--gold {
    background: var(--color-accent-gold-deep);
    flex-direction: column;
    gap: 6px;
    padding: 10px 6px;
    box-sizing: border-box;
    text-decoration: none;
    text-align: center;
    flex-shrink: 0;
}

.cart-item-preview__more-arrow {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E");
}

.cart-item-preview__more-text {
    font-size: 11px;
    line-height: 1.3;
    font-weight: 600;
    color: #fff;
}

.cart {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 20px;
    align-items: start;
}

.cart--single-column {
    grid-template-columns: minmax(0, 1fr);
}

.cart__contant {
    border-radius: var(--radius-5xl);
    background: rgba(255, 255, 255, 0.05);
}

/* Оформление заказа: левая колонка */
.checkout-main {
    padding: 0;
    text-align: left;
}


.checkout-section {
    margin-bottom: 24px;
    text-align: left;
}

.checkout-section:last-child {
    margin-bottom: 0;
}

.checkout-section__title {
    padding: 0 12px 0 12px;
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 600;
    text-align: left;
}

.checkout-address-item__card {
    border: 1px solid transparent;
    box-sizing: border-box;
}

.checkout-address-item__card:has(.checkout-address-item__input:checked) {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.checkout-address-item__card:has(.checkout-address-item__input:focus-visible) {
    outline: 2px solid rgba(255, 255, 255, 0.35);
    outline-offset: 2px;
}

.checkout-address-item__label {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0;
    flex: 1;
    min-width: 0;
    margin: 0;
    cursor: pointer;
    text-align: left;
}

/* Радио скрыто визуально; выбор — по клику на карточку и подсветке :checked */
.checkout-address-item__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
    appearance: none;
}

.checkout-address-item__body {
    flex: 1;
    min-width: 0;
}

.checkout-address-summary__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 16px;
}

.checkout-address-summary__product {
    display: flex;
    gap: 12px;
    min-width: 0;
    align-items: flex-start;
}

.checkout-address-summary__logo {
    width: 96px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    border-radius: var(--radius-lg, 8px);
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}

/* Уменьшенный вдвое логотип (карточка заказа в бэк-офисе) */
.checkout-address-summary__logo--sm {
    width: 48px;
}

.checkout-address-summary__logo--sm .checkout-address-summary__logo-fallback {
    width: 28px;
    height: 28px;
    background-size: 20px 20px;
}

.checkout-address-summary__logo--has-image {
    background: transparent;
}

.checkout-address-summary__logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Грузовик в стиле stroke-иконок шапки (см. .header__nav-icon) */
.checkout-address-summary__logo-fallback {
    display: block;
    width: 56px;
    height: 56px;
    margin: auto;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40px 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cccccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2'/%3E%3Cpath d='M15 18H9'/%3E%3Cpath d='M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3C/svg%3E");
}

.checkout-method-card__logo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}

.checkout-method-card__logo--has-image {
    background: transparent;
}

.checkout-method-card__logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.checkout-method-card__logo-fallback {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 28px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 26px 26px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cccccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2'/%3E%3Cpath d='M15 18H9'/%3E%3Cpath d='M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3C/svg%3E");
}

.checkout-address-summary__body {
    min-width: 0;
    flex: 1;
}

/* Заголовок отгрузки в бэк-офисе: название слева, пилюля статуса справа */
.os-shipment-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    text-align: left;
}

.os-shipment-card__head > strong {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

.os-shipment-card__head > .order-pill {
    flex: 0 0 auto;
    margin-left: auto;
}

/* Метка перевозчика: белая пилюля с зелёным текстом (цвет СДЭК), слева в строке */
.os-shipment-card__head > .order-pill--cdek {
    margin-left: 0;
    background: #ffffff;
    color: #1ab248;
}

/* Красный круг «отозвать заявку» справа от пилюли; диаметр 25px = высота .order-pill (13px × 1.3 + 2 × 4px, округлено).
   Крест — SVG-фон 11×11 (нечётный размер, чтобы центр попал на целый пиксель); текст кнопки скрыт font-size: 0 */
.os-shipment-card__revoke {
    flex: 0 0 auto;
    margin: 0;
}

.os-shipment-card__revoke button {
    display: block;
    box-sizing: border-box;
    width: 25px;
    height: 25px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: #c92a2a;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 11'%3E%3Cpath d='M1.5 1.5l8 8M9.5 1.5l-8 8' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 11px 11px;
    font-size: 0;
    cursor: pointer;
}

.os-shipment-card__revoke button:hover {
    background-color: #a61e1e;
}

/* Пилюля-кнопка «Отправить заявку»: та же капсула .order-pill, но кликабельная */
.os-shipment-card__action {
    flex: 0 0 auto;
    margin: 0 0 0 auto;
}

.os-shipment-card__action .order-pill {
    display: block;
    border: none;
    font-family: inherit;
    cursor: pointer;
}

.os-shipment-card__action .order-pill:hover {
    filter: brightness(1.15);
}

.checkout-address-summary__body--left {
    text-align: left;
}

.checkout-address-summary__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
    min-width: 110px;
}

.checkout-method-card__price {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.delivery-address-segmented__location--cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px 16px;
}

.delivery-address-segmented__location-text {
    min-width: 0;
}

.delivery-address-segmented__location-action {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

button.checkout-address-summary__link-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
    width: auto;
    max-width: none;
    text-align: right;
}

@media (max-width: 768px) {
    .checkout-address-summary__row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .checkout-address-summary__aside {
        align-items: flex-start;
        justify-content: flex-start;
        min-width: 0;
        width: 100%;
    }

    .checkout-address-summary__aside .cart-list__price-wrap {
        align-items: flex-start;
    }

    .delivery-address-segmented__location--cols {
        grid-template-columns: 1fr;
    }

    .delivery-address-segmented__location-action {
        justify-self: start;
        align-items: flex-start;
    }
}

.delivery-address-segmented {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.delivery-address-segmented__rule {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 12px 0 0;
    padding: 8px 0 0;
    height: 0;
    background: transparent;
}

.delivery-address-segmented__method {
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
}

.delivery-address-segmented--checkout-summary .delivery-address-segmented__method strong {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

.delivery-address-segmented__block .my-order-list__meta {
    margin: 0 0 0.35em 0;
}

.delivery-address-segmented__block .my-order-list__meta:last-child {
    margin-bottom: 0;
}

/* Окно выбора адреса доставки — общий .popup (шапка, фон, шторка на мобильных) + .popup--address:
   ширина под список карточек и прокрутка списка внутри окна. Содержимое (карточки) — свои классы ниже. */
@media (min-width: 1025px) {
    dialog.popup.popup--address {
        max-width: 620px;
    }

    dialog.popup--address[open] {
        display: flex;
        flex-direction: column;
        max-height: min(90vh, 640px);
    }

    dialog.popup--address[open] .popup__form {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .popup--address .popup__header {
        flex-shrink: 0;
    }

    /* Окно адреса в /os/ лежит внутри .popup--wide, чьи правила по потомкам (padding 0 у .popup__form,
       шапка 32px 36px 8px, заголовок 28px) задели бы и его — возвращаем значения обычного .popup */
    dialog.popup--wide[open] dialog.popup--address[open] .popup__form {
        padding: 0 36px 36px;
        overflow: visible;
    }

    .popup--wide .popup--address .popup__header {
        padding: 18px 0 16px;
    }

    .popup--wide .popup--address .popup__title {
        font-size: 1.15rem;
        display: block;
    }
}

.checkout-address-dialog__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.checkout-address-dialog__footer {
    flex-shrink: 0;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.checkout-recipient-dialog__form .form-group:last-of-type {
    margin-bottom: 0;
}

.checkout-recipient-dialog__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
    flex-shrink: 0;
}

.delivery-address-segmented__recipient-empty {
    color: rgba(255, 255, 255, 0.42);
    font-style: italic;
}

.checkout-address-dialog__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.checkout-address-dialog__card {
    box-sizing: border-box;
    border: 2px solid transparent;
    transition: border-color 0.15s ease;
}

.checkout-address-dialog__card--selected {
    border-color: #007bff;
}

.checkout-address-dialog__card--selectable {
    position: relative;
}

.checkout-address-dialog__card--selectable:hover {
    border-color: rgba(200, 200, 205, 0.55);
}

.checkout-address-dialog__card--add {
    display: block;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.88);
}

.checkout-address-dialog__card--add:hover {
    border-color: rgba(200, 200, 205, 0.55);
    color: #fff;
}

.checkout-address-dialog__pick-row {
    align-items: stretch;
}

.checkout-address-dialog__pick-row--stacked {
    position: relative;
    z-index: 2;
    /* Иначе flex-ряд перехватывает клики выше формы с submit */
    pointer-events: none;
}

.checkout-address-dialog__pick-face {
    flex: 1;
    min-width: 0;
    pointer-events: none;
}

.checkout-address-dialog__pick-form-full {
    position: absolute;
    inset: 0;
    z-index: 1;
    margin: 0;
    padding: 0;
}

.checkout-address-dialog__pick-overlay-full {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    opacity: 0;
    font-size: 0;
}

.checkout-address-dialog__pick-overlay-full:focus-visible {
    outline: 2px solid #007bff;
    outline-offset: -2px;
}

.checkout-address-dialog__row-actions--interactive {
    pointer-events: none;
}

.checkout-address-dialog__row-actions--interactive .checkout-address-dialog__action-link {
    pointer-events: auto;
}

.checkout-address-dialog__row-actions--interactive .my-order-list__status {
    pointer-events: none;
}

.checkout-address-dialog__row-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.checkout-address-dialog__action-link {
    text-decoration: none;
    font-size: 0.85rem;
}

.checkout-address-dialog__action-link--danger {
    color: rgba(255, 100, 100, 0.8);
}

.checkout-address-dialog__picked {
    font-size: 0.8rem;
    color: rgba(120, 200, 140, 0.95);
}

.checkout-address-dialog__add-row {
    align-items: center;
    min-height: 2.5rem;
}

.checkout-address-dialog__add-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.88);
}

.checkout-method-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkout-method-list__item {
    margin: 0;
    padding: 0;
    text-align: left;
}

.checkout-method-radio {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    text-align: left;
}

.checkout-method-radio__input {
    flex-shrink: 0;
    margin-top: 0;
}

.checkout-method-radio__name {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
}

.checkout-method-radio__price {
    flex-shrink: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    text-align: right;
}

.checkout-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 480px;
    text-align: left;
}

.checkout-fields .form-group {
    margin-bottom: 0;
}

.checkout-fields .form-label {
    text-align: left;
}

.checkout-fields .form-input,
.checkout-fields select.form-input {
    text-align: left;
}

.checkout-checkbox-label {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    cursor: pointer;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.9);
}

.checkout-checkbox-label input {
    flex-shrink: 0;
    margin-top: 2px;
}

.cart__empty-inline {
    margin: 0 12px 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}

/* Растягиваем колонку на высоту строки грида — иначе aside короткий и sticky у .cart-sidebar не работает */
.cart__sidebar {
    min-width: 0;
    align-self: stretch;
}

.cart__head {
    padding: 12px 12px 0 12px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.cart__title {
    margin: 0;
    font-size: 22px;
}

.cart__meta {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
}

.cart__head-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.cart-print-btn {
    gap: 8px;
    padding: 8px 14px;
    min-height: 36px;
}

.cart-print-options-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-print-options-list__item {
    margin: 0;
    padding: 0;
}

#cart-print-dialog .cart-share__menu-item {
    border-radius: 8px;
    color: #222222;
}

#cart-print-dialog .cart-item-menu__menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 50px;
}

#cart-print-dialog .cart-item-menu__menu-item .cart-list__action-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: 20px 20px;
    flex: 0 0 20px;
}

#cart-print-dialog .cart-list__action-icon--print {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9V2h12v7'/%3E%3Cpath d='M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2'/%3E%3Cpath d='M6 14h12v8H6z'/%3E%3Cpath d='M18 14h1'/%3E%3C/svg%3E");
}

.cart-list__action-icon--print {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9V2h12v7'/%3E%3Cpath d='M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2'/%3E%3Cpath d='M6 14h12v8H6z'/%3E%3Cpath d='M18 14h1'/%3E%3C/svg%3E");
}

.cart-list__action-icon--label-a6 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 19L7 5L12 19M3.9 14H10.1'/%3E%3Cpath d='M20.5 5.5C15 5.8 13 9.5 13 14.5'/%3E%3Ccircle cx='17.5' cy='14.5' r='4.5'/%3E%3C/svg%3E");
}

.cart-list-wrap {
    padding: 0px;
    margin-top: 12px;
}

.cart-list {
    list-style: none;
    padding: 0px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-list__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: stretch;
    gap: 16px;
    padding: 12px;
    border-radius: var(--radius-3xl);
    background: rgba(255, 255, 255, 0.05);
}

/* Корзина: количество в DOM между инфо и действиями (моб. порядок); на ≥769px — прежняя сетка через contents */
@media (min-width: 769px) {
    .cart-list--qty-in-details .cart-list__item {
        grid-template-columns: auto minmax(0, 1fr) auto auto;
        grid-template-rows: auto 1fr;
    }

    .cart-list--qty-in-details .cart-list__product,
    .cart-list--qty-in-details .cart-list__details {
        display: contents;
    }

    .cart-list--qty-in-details .cart-item-preview-link {
        grid-column: 1;
        grid-row: 1 / -1;
        align-self: start;
    }

    .cart-list--qty-in-details .cart-list__product-info {
        grid-column: 2;
        grid-row: 1;
        align-self: start;
    }

    .cart-list--qty-in-details .cart-list__actions {
        grid-column: 2;
        grid-row: 2;
        align-self: end;
        margin-top: 0;
    }

    .cart-list--qty-in-details .cart-list__count {
        grid-column: 3;
        grid-row: 1 / -1;
        align-self: center;
    }

    .cart-list--qty-in-details .cart-list__price-wrap {
        grid-column: 4;
        grid-row: 1 / -1;
        align-self: center;
        justify-self: end;
    }
}

/* ЛК /profile/persons/: строка как в корзине, без колонок количества и цены */
.cart-list__item--person {
    grid-template-columns: minmax(0, 1fr);
}

/* Карточка вида спорта персоны: миниатюры подборки переносятся под текст на узких экранах */
.cart-list__item--person .cart-list__product {
    flex-wrap: wrap;
}

/* Миниатюры товаров подборки (до 3 шт.) + кнопка «Смотреть всю подборку» в карточке роли персоны */
.cart-list__role-previews {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* На мобильных в карточке вида спорта: миниатюры отдельной строкой после текста, достаточно 2 шт. (3-я скрывается, золотая плитка остаётся) */
@media (max-width: 768px) {
    .cart-list__role-previews {
        flex-basis: 100%;
    }

    .cart-list__role-previews .cart-item-preview:nth-child(3):not(.cart-item-preview--gold) {
        display: none;
    }
}

/* Список персон в ЛК: аватар 1:1 (корзина остаётся 3:4) */
.cart-item-preview.person-list-preview {
    aspect-ratio: 1 / 1;
}

.cart-list__item--person .cart-item-preview.person-list-preview {
    background: #d6d6d6;
}

.cart-item-preview--transparent {
    background: transparent;
}

.person-list-preview__initials {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Чекбокс со скруглением 4px: нативный вид (белый фон, серая рамка, заливка акцентом при выборе), но с управляемым радиусом */
.checkbox-rounded {
    -webkit-appearance: none;
    appearance: none;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin: 0;
    border: 1px solid #b4b4b4;
    border-radius: 4px;
    background: #fff center / 14px 14px no-repeat;
    cursor: pointer;
}

/* Внутри .checkout-checkbox-label у input есть margin-top: 2px — для скруглённого чекбокса он не нужен */
.checkout-checkbox-label .checkbox-rounded {
    margin-top: 0;
}

.checkbox-rounded:checked,
.checkbox-rounded:indeterminate {
    border-color: var(--color-accent-primary);
    background-color: var(--color-accent-primary);
}

.checkbox-rounded:checked {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.5l3 3 6-6.5' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.checkbox-rounded:indeterminate {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7h8' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

.checkbox-rounded:focus-visible {
    outline: 2px solid var(--color-accent-focus-ring);
    outline-offset: 2px;
}

.checkbox-rounded:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ЛК /profile/persons/: чекбокс выбора в левом верхнем углу аватара (массовое удаление) */
.person-list-preview-wrap {
    position: relative;
    flex-shrink: 0;
}

.person-list-check {
    position: absolute;
    top: 6px;
    left: 6px;
}

/* Строка «Все» + групповые действия справа (удалить / формат печати имени) */
.persons-list-select-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin: 0px 12px 0;
}

.persons-list-select-bar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: auto;
}

.persons-list-select-all {
    margin: 0 0 0 6px;
    align-items: center;
}

.persons-list-select-all__count {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Плашка массовых действий над таблицей (общий компонент): появляется при выделении строк,
   фиксирована внизу области контента. left/right и отступы панели выставляет static/js/bulk_bar.js */
.bulk-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 20px;
    z-index: 100;
    display: flex;
    justify-content: center;
    padding: 0 20px;
    pointer-events: none;
}

.bulk-bar[hidden] {
    display: none;
}

.bulk-bar__panel {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px 24px;
    flex-wrap: wrap;
    width: 100%;
    padding: 10px 16px;
    box-sizing: border-box;
    background: rgba(40, 40, 40, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.bulk-bar__panel .persons-list-select-all {
    margin: 0;
}

.bulk-bar__panel .persons-list-select-bar__actions {
    margin-left: 0;
    flex-wrap: nowrap;
}

/* Сводка по выбранным позициям избранного: в одной строке с «Выбрано: N» */
.persons-list-select-info__row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 6px;
}

.persons-list-select-info__text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.persons-list-select-info__text[hidden] {
    display: none;
}

.persons-list-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 12px;
    padding: 0 12px 0 12px;
}

.persons-list-toolbar__link {
    text-decoration: none;
    flex-shrink: 0;
}

.persons-list-empty {
    margin: 0;
    padding: 8px 0 0;
    color: rgba(255, 255, 255, 0.65);
    text-align: left;
}

.persons-list-content {
    padding: 12px;
}

/* Составная кнопка «основное действие | ▾» с выпадающим меню (меню — .cart-share__menu) */
.btn-split {
    display: inline-flex;
    flex-shrink: 0;
}

.btn-split__main {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.btn-split__arrow {
    position: relative;
    padding: 0 12px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.btn-split__arrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.btn-split__arrow svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    transition: transform 0.15s ease;
}

.btn-split__arrow[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.cart-share__menu--right {
    left: auto;
    right: 0;
}

.persons-list-add-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-shrink: 0;
}

.profile__head--favorites-lists-toolbar {
    align-items: center;
    flex-wrap: wrap;
    row-gap: 10px;
}

.favorites-lists-toolbar__actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.favorites-list-pills-scroll {
    min-width: 0;
}

.favorites-list-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    padding: 0;
}

.favorites-list-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-sizing: border-box;
    padding: 6px 6px 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    line-height: 1.2;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.12);
    border: 0px solid rgba(255, 255, 255, 0.18);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.favorites-list-pill:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.28);
}

.favorites-list-pill--active {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.38);
    color: #fff;
    /* Одна высота для всех активных пилюль (с кнопками и без, напр. «Без списка»). */
    min-height: 40px;
}

.favorites-list-pill--named {
    max-width: 100%;
    padding-right: 9px;
    gap: 6px;
}

.favorites-list-pill--no-badge {
    padding-right: 12px;
}

.favorites-list-pill__text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.favorites-list-pill__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.28);
    color: rgba(255, 255, 255, 0.95);
}

.favorites-list-pill--active .favorites-list-pill__badge {
    background: rgba(0, 0, 0, 0.38);
}

.favorites-list-pill__tools {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 2px;
}

.favorites-list-pill__tool-form {
    margin: 0;
}

.favorites-list-pill__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    margin: 0;
    border: none;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    color: inherit;
}

.favorites-list-pill__icon-btn:hover {
    background: rgba(0, 0, 0, 0.35);
}

.favorites-list-pill__icon-btn .cart-list__action-icon {
    width: 16px;
    height: 16px;
}

.favorites-list-pill__icon-btn .header__nav-icon {
    width: 16px;
    height: 16px;
    background-size: 16px 16px;
}

.favorites-list-add-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    font-size: 20px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.15s ease;
}

.favorites-list-add-circle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.favorites-list-add-circle:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.55);
    outline-offset: 2px;
}

.favorites-list-add-circle__icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2.2;
    fill: none;
    stroke-linecap: round;
}

@media (max-width: 768px) {
    /* Клип по дуге карточки (у .profile-layout__main уже border-radius), без прямоугольного «вылезания» пилюль в углы. */
    .profile-layout__main--favorites-lists-panel {
        overflow: hidden;
    }

    /* Скроллпорт на всю ширину панели: обрезка по краю обёртки, а не по padding main-content. */
    .profile-layout__main-content--favorites-lists .favorites-list-pills-scroll {
        margin-left: -12px;
        margin-right: -12px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 4px;
    }

    .profile-layout__main-content--favorites-lists .favorites-list-pills-scroll::-webkit-scrollbar {
        display: none;
    }

    .profile-layout__main-content--favorites-lists .favorites-list-pills {
        flex-wrap: nowrap;
        width: max-content;
        max-width: none;
        margin-top: 0px;
        margin-left: 12px;
        margin-right: 12px;
    }

    .profile-layout__main-content--favorites-lists .favorites-list-pills > * {
        flex-shrink: 0;
    }

    /* Иначе при nowrap пилюля тянется на всю ширину трека и ломает ряд. */
    .favorites-list-pill--named {
        max-width: min(320px, 85vw);
    }
}

.popup {
    border: none;
    padding: 0;
    color: #999;
    background: #222222;
    overflow: hidden;
}

/* Скругление как у .btn; высота/padding у полей «Как назвать?» и «Изменить список»
   (десктоп и мобиль — эти два диалога всегда выглядят как пилюля). */
#favorites-list-dialog .form-input,
#favorites-list-edit-dialog .form-input {
    line-height: 1.2;
    min-height: 40px;
    padding: 10px 18px;
    border-radius: var(--radius-lg);
}

@media (max-width: 1024px) {
    /* iOS Safari: при font-size < 16px на input страница при фокусе масштабируется.
       Только мобиль — на десктопе попапы с .my-person-form (карточка товара внутри
       модалки, «Оформить на группу», «Перенести в избранное») должны выглядеть как
       на карточке товара, без раздутого шрифта. :not(.popup--edit) — там поля уже
       ведут себя как на карточке товара сами по себе. */
    .popup:not(.popup--edit) .form-input {
        font-size: 16px;
        line-height: 1.35;
    }
}

@media (min-width: 1025px) {
    .popup {
        border-radius: 12px;
        max-width: 420px;
        width: calc(100% - 32px);
    }

    .popup__sheet-handle {
        display: none;
    }
}

@media (max-width: 1024px) {
    /* Только [open]: иначе display:flex перебивает UA display:none у закрытого dialog */
    dialog.popup[open] {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        margin: 0;
        width: 100%;
        max-width: none;
        max-height: min(90dvh, 92vh);
        border-radius: 32px 32px 0 0;
        display: flex;
        flex-direction: column;
        box-shadow: 0 -6px 28px rgba(0, 0, 0, 0.18);
        animation: popup-sheet-in 0.28s cubic-bezier(0.32, 0.72, 0, 1) both;
    }

    dialog.popup.popup--sheet-dragging[open] {
        animation: none;
        touch-action: none;
    }

    dialog.popup.popup--sheet-dragging[open] .popup__form {
        touch-action: none;
        overscroll-behavior: none;
    }

    .popup__sheet-handle {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 24px;
        padding: 10px 48px 10px;
        margin: 0;
        touch-action: none;
        box-sizing: border-box;
        user-select: none;
        -webkit-user-select: none;
    }

    .popup__sheet-handle::after {
        content: "";
        display: block;
        width: 36px;
        height: 4px;
        border-radius: 999px;
        background: rgba(0, 0, 0, 0.22);
    }

    dialog.popup[open] .popup__form {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
    }
}

@keyframes popup-sheet-in {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.popup::backdrop {
    background: rgba(0, 0, 0, 0.45);
}

.popup__form {
    padding: 0 36px 36px 36px;
}

.popup__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 0 16px;
    margin: 0;
}

.popup__header .popup__title {
    margin: 0;
    flex: 1;
    min-width: 0;
}

.popup__close {
    flex-shrink: 0;
    box-sizing: border-box;
    border: none;
    background: transparent;
    color: #666;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 8px;
    margin: -8px -8px -8px 0;
    border-radius: 8px;
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.popup__close:hover {
    color: #222;
    background: rgba(0, 0, 0, 0.06);
}

.popup__title {
    margin: 0 0 16px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #e2e2e2;
}

.popup__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* Модалка с увеличенным фото товара (избранное): картинка вписывается по ширине
   и по высоте экрана, белый фон как у миниатюры .cart-item-preview. */
.popup--image .popup__image {
    display: block;
    width: 100%;
    max-height: min(70dvh, 70vh);
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
}

/* Две кнопки в одну строку на всю ширину формы (минус gap) */
#favorite-list-to-cart-dialog .popup__actions {
    justify-content: flex-start;
}

#favorite-list-to-cart-dialog .popup__actions > .btn {
    flex: 1 1 0;
    min-width: 0;
}

/* Модалка редактирования позиции избранного (docs/favorites/favorites.md,
   «Вариант A») — .popup с изображением слева/сверху и своим скроллом только
   по блоку полей (шапка и кнопки всегда на месте), поверх базового .popup. */
dialog.popup--edit[open] {
    display: flex;
    flex-direction: column;
}

/* [data-product-edit-body] (favorites_list.html/cart_detail.html) — обёртка,
   в которую JS вставляет фрагмент (.popup__header + .popup__form--edit). Без
   этого правила она не участвует в flex-цепочке дальше (min-height у
   flex-элемента по умолчанию auto — не сжимается), контент растёт сверх
   max-height диалога, и overflow: hidden у .popup обрезает низ (кнопки). */
dialog.popup--edit[open] [data-product-edit-body] {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

/* Шапка вынесена за пределы .popup__form (чтобы оставаться на месте при
   скролле полей) — в базовом .popup она получает горизонтальный отступ от
   родителя .popup__form (padding: 0 24px 24px 24px, см. выше), здесь
   родителя нет, поэтому задаём те же 24px явно. */
.popup--edit .popup__header {
    padding: 18px 24px 16px;
}

dialog.popup--edit[open] .popup__form--edit {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding: 0;
}

.popup--edit .popup__edit-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.popup--edit .popup__edit-media {
    flex: 0 0 auto;
    padding: 24px 24px 0 24px;
}

.popup--edit .popup__edit-fields {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 16px 24px 24px;
}

/* Внутри — те же .pf-specs-block/.pf-card-block--fields, что на карточке
   товара (product_custom_detail_5.html) — интервалы между заголовком и
   полями и высота полей берутся из той же CSS (.pf-specs-block, .my-person-form),
   без собственного flex-gap здесь. Первый блок — без своего верхнего отступа,
   как .pf-buy-group .pf-specs-block на карточке (иначе двойной отступ сверху
   вместе с padding-top контейнера). */
.popup--edit .popup__edit-fields > .pf-specs-block:first-child {
    margin-top: 0;
}

.popup--edit .popup__actions--edit {
    flex: 0 0 auto;
    padding: 16px 24px;
    display: flex;
    gap: 12px;
    margin-top: 0;
}

.popup--edit .popup__actions--edit .btn {
    flex: 1 1 0;
}

/* Мобиль (<1025px, тот же брейкпоинт, что у остальных .popup-шторок):
   картинка — фиксированный компактный размер 150×200 (3:4), по центру. Число
   взято из .pf2-media--compact выше в этом файле («Карточка v2»), но без
   самой механики fixed-позиционирования/FLIP оттуда — см.
   docs/catalog/product-card-mobile-v2.md, «Берём только конкретное число». */
@media (max-width: 1024px) {
    .popup--edit .popup__edit-media .pf-media-main {
        width: 150px;
        height: 200px;
        margin: 0 auto;
    }

    .popup--edit .popup__edit-media .pf-media-gallery {
        display: none;
    }
}

/* Десктоп (≥1025px): двухколоночный grid — картинка 3:4 слева (280px),
   справа блок полей со своим скроллом. */
@media (min-width: 1025px) {
    .popup--edit {
        max-width: 880px;
        /* Базовый .popup на десктопе не ограничивает высоту (только
           max-width) — без своего max-height здесь нечему было переполнять
           .popup__edit-fields в рамках экрана, и скролл внутри неё не
           включался: колесо мыши прокручивало страницу за модалкой. */
        max-height: 85vh;
    }

    .popup--edit .popup__edit-body {
        flex-direction: row;
    }

    .popup--edit .popup__edit-media {
        flex: 1 1 0;
        min-width: 0;
        padding: 24px 0 24px 24px;
    }

    .popup--edit .popup__edit-fields {
        flex: 1 1 0;
        min-width: 0;
        padding: 24px;
    }
}

/* Широкая модалка просмотра (.popup.popup--wide) — заказ продавца в /os/: таблица и строки
   «подпись — значение»; содержимое подгружается скриптом seller_order_modal.js. */
@media (min-width: 1025px) {
    .popup--wide {
        max-width: 968px;
        height: 85vh;
        border-radius: 0 0 24px 24px;
    }

    dialog.popup--wide[open] {
        display: flex;
        flex-direction: column;
        margin: 0 auto auto;
    }

    /* Шапка фиксирована, прокручивается только .popup__content; боковые/нижний отступы
       .popup__form переехали на шапку и контент, чтобы скроллбар был у края окна. */
    dialog.popup--wide[open] .popup__form {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        padding: 0;
        overflow: hidden;
    }

    .popup--wide .popup__header {
        flex-shrink: 0;
        padding: 32px 36px 8px;
    }

    /* Линия под шапкой, когда контент уехал под неё (класс ставит seller_order_modal.js) */
    .popup--wide .popup__header--scrolled {
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
    }

    .popup--wide .popup__content {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        padding: 0 36px 36px;
    }

    .popup--wide .popup__body {
        display: flex;
        flex-direction: column;
        gap: 32px;
        padding-top: 24px;
    }

    .popup--wide .popup__block {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    /* Две равные колонки секций в одну строку (модалка отгрузки: Отправитель | Получатель) */
    .popup--wide .popup__cols {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
    }

    /* Секции: заголовок, таблица и ряды «подпись — значение» идут колонкой с шагом 12px
       (ряд 24px + 12px = 36px, как в референсе); отступы заголовка и рядов обнуляются */
    .popup--wide .popup__table,
    .popup--wide .popup__section {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .popup--wide .popup__body .profile-card__title,
    .popup--wide .popup__body .profile-card__row {
        margin: 0;
    }

    .popup--wide .popup__body .profile-card__row {
        font-size: 15px;
        line-height: 24px;
    }

    .popup--wide .popup__body .profile-card__row--split {
        grid-template-columns: 243px minmax(0, 1fr);
        column-gap: 16px;
    }

    .popup--wide .popup__body .profile-card__value {
        justify-self: start;
        text-align: left;
        color: rgba(255, 255, 255, 0.9);
    }

    .popup--wide .popup__body .profile-card__title {
        font-weight: 600;
        font-size: 19px;
    }

    .popup--wide .popup__title {
        font-size: 28px;
        display: flex;
        align-items: center;
        gap: 12px;
    }
}

/* Модалка «Оформить на группу» (docs/orders/batch_order.md) — список персон
   с чекбоксами внутри .popup, см. templates/styleguide/styleguide.html. */
.pf-batch-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.pf-batch-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 320px;
    overflow-y: auto;
}

.pf-batch-head,
.pf-batch-list__item {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) 56px 56px;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
}

.pf-batch-head {
    color: #999;
    font-size: 0.85rem;
}

.pf-batch-list__item {
    color: #e2e2e2;
    cursor: pointer;
}

.pf-batch-list__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pf-batch-list__item input {
    flex-shrink: 0;
}

.pf-batch-counter {
    margin-top: 12px;
    color: #999;
    font-size: 0.9rem;
}

/* Предпросмотр группового заказа — сортировка по клику на заголовок столбца. */
.pf-batch-th--sortable {
    cursor: pointer;
    user-select: none;
}

.pf-batch-sort-indicator {
    display: inline-block;
    font-size: 0.75em;
    color: #999;
}

.popup__warn {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--color-text-on-dark-secondary);
}

.favorites-item-list-form {
    display: flex;
    align-items: center;
    position: relative;
}

.favorites-item-list-form__label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

.favorites-item-list-form__select {
    min-width: 0;
    max-width: 100%;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 13px;
}

.favorites-move__menu {
    left: auto;
    right: 0;
    min-width: 180px;
}

.cart-list__product {
    display: flex;
    gap: 12px;
    min-width: 0;
    align-items: stretch;
}

.cart-list__details {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-list__product-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    padding-right: 40px;
}

.cart-list__name,
.cart-list__price,
.cart-list__personalization,
.cart-list__subtotal {
    margin: 0;
}

.cart-list__name {
    font-size: 15px;
    font-weight: 600;
}

.cart-list__name-link,
.cart-list__name-link:visited,
.cart-list__name-link:hover,
.cart-list__name-link:active {
    color: inherit;
    text-decoration: none;
}

.cart-list__price,
.cart-list__personalization,
.cart-list__subtotal {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}

.cart-list__edit-form {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-list__edit-form .pf-field {
    margin-bottom: 0;
}

.cart-list__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    margin-top: auto;
}

.cart-list__count {
    display: flex;
    align-items: center;
    width: 100%;
}

.cart-list--my-order-detail .cart-list__count {
    justify-content: center;
}

.cart-list--my-order-detail .cart-list__qty-input {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cart-list--my-order-detail .cart-list__qty-stepper {
    background: rgb(55 55 55);
    border: 1px solid rgb(80 80 80);
}

.cart-list__qty-form {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 40px;
    justify-content: space-between;
    width: 100%;
}

.cart-list__qty-label {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
}

.cart-list__qty-stepper {
    display: inline-flex;
    align-items: stretch;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    background: rgba(25, 25, 25, 1);
    margin-left: auto;
}

.favorites-paid-dropdown.cart-share.printlist-status-dropdown {
    margin-left: 12px;
}

.cart-list__size-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid rgb(80 80 80);
    border-radius: 6px;
    background: rgb(55 55 55);
    color: rgb(190 190 190);
    white-space: nowrap;
}

.cart-list__size-chip-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
}

.cart-list__size-chip-value {
    font-size: 13px;
    font-weight: 600;
}

.cart-list__problem {
    margin: 0;
    font-size: 14px;
    color: var(--color-danger);
}

/* Дубликат для мобилы (в cart-list__count, последней строкой после статуса оплаты) — на десктопе сообщение выводится рядом с кнопками, см. .cart-list__actions--desktop-only .cart-list__problem */
.cart-list__problem--count {
    display: none;
}

.cart-list__qty-btn {
    width: 36px;
    min-width: 36px;
    border: none;
    margin: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
}

.cart-list__qty-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.cart-list__qty-input {
    width: 48px;
    height: 32px;
    box-sizing: border-box;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    padding: 0 4px;
    text-align: center;
    appearance: textfield;
    -moz-appearance: textfield;
}

.cart-list__qty-input::-webkit-outer-spin-button,
.cart-list__qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-list__action-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    padding: 0;
    background: #007bff;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.cart-list__action-btn:hover {
    transform: translateY(-1px);
}

.cart-list__action-btn--danger {
    background: rgba(255, 255, 255, 0.12);
}

.cart-list__action-btn--ghost {
    background: rgba(255, 255, 255, 0.12);
}

.cart-list__action-icon {
    width: 16px;
    height: 16px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
}

.cart-list__action-icon--edit {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.12 2.12 0 1 1 3 3L7 19l-4 1 1-4 12.5-12.5z'/%3E%3C/svg%3E");
}

.cart-list__action-icon--text-format {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5v14'/%3E%3Cpath d='M10 5v14'/%3E%3Cpath d='M3 19L10 5'/%3E%3Crect x='13.5' y='5' width='8' height='10.5' rx='2'/%3E%3Cpath d='M17.5 5v14'/%3E%3C/svg%3E");
}

.cart-list__action-icon--text-t {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 7 4 4 20 4 20 7'/%3E%3Cline x1='9' y1='20' x2='15' y2='20'/%3E%3Cline x1='12' y1='4' x2='12' y2='20'/%3E%3C/svg%3E");
}

.cart-list__action-icon--download {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
}

.cart-list__action-icon--delete {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'/%3E%3Cpath d='M19 6l-1 14H6L5 6'/%3E%3Cpath d='M10 11v6'/%3E%3Cpath d='M14 11v6'/%3E%3Cpath d='M9 6V4h6v2'/%3E%3C/svg%3E");
}

.cart-list__action-icon--share {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v11'/%3E%3Cpath d='M8 7l4-4 4 4'/%3E%3Cpath d='M8 11H7a3 3 0 0 0-3 3v4a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3v-4a3 3 0 0 0-3-3h-1'/%3E%3C/svg%3E");
}

.cart-list__action-icon--link {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 1 0-7l1-1a5 5 0 0 1 7 7l-1 1'/%3E%3Cpath d='M14 11a5 5 0 0 1 0 7l-1 1a5 5 0 0 1-7-7l1-1'/%3E%3C/svg%3E");
}

.cart-list__action-icon--impersonate {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 8V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2v-3'/%3E%3Cpath d='M3 12h12'/%3E%3Cpath d='m11 8 4 4-4 4'/%3E%3C/svg%3E");
}

.cart-list__action-icon--eye {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

.cart-list__action-icon--eye-off {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94'/%3E%3Cpath d='M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19'/%3E%3Cpath d='M14.12 14.12a3 3 0 1 1-4.24-4.24'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E");
}

.cart-list__action-icon--more {
    width: 24px;
    height: 6px;
    background-size: 24px 6px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 6' fill='rgba(255,255,255,0.5)'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='12' cy='3' r='3'/%3E%3Ccircle cx='21' cy='3' r='3'/%3E%3C/svg%3E");
}

.cart-list__action-icon--move {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.2 17.2h15'/%3E%3Cpath d='M7 13.6l-4.8 3.6L7 20.8'/%3E%3Cpath d='M21.8 6.8H6.8'/%3E%3Cpath d='M17 3.2l4.8 3.6L17 10.4'/%3E%3C/svg%3E");
}

.cart-list__action-icon--persons {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

.cart-list__action-icon--cart {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E");
}

.cart-list__action-icon--shiplist {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/%3E%3Cpolyline points='3.27 6.96 12 12.01 20.73 6.96'/%3E%3Cline x1='12' y1='22.08' x2='12' y2='12'/%3E%3C/svg%3E");
}

.cart-list__action-icon--shiplist-cancel {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cmask id='m'%3E%3Crect width='24' height='24' fill='white'/%3E%3Crect x='11' y='0' width='13' height='13' fill='black'/%3E%3C/mask%3E%3Cg mask='url(%23m)'%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/%3E%3Cpolyline points='3.27 6.96 12 12.01 20.73 6.96'/%3E%3Cline x1='12' y1='22.08' x2='12' y2='12'/%3E%3C/g%3E%3Cpath d='M14 2l8 8M22 2l-8 8'/%3E%3C/svg%3E");
}

.cart-list__action-icon--favorite {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78l1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E");
}

.cart-list__action-icon--file {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3C/svg%3E");
}

.cart-list__action-icon--file-price {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cg transform='translate(7.2 11) scale(0.4)' stroke-width='4'%3E%3Cline x1='12' y1='1' x2='12' y2='23'/%3E%3Cpath d='M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6'/%3E%3C/g%3E%3C/svg%3E");
}

.cart-list__action-icon--calculator {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='16' height='20' x='4' y='2' rx='2'/%3E%3Cline x1='8' x2='16' y1='6' y2='6'/%3E%3Cline x1='16' x2='16' y1='14' y2='18'/%3E%3Cpath d='M16 10h.01M12 10h.01M8 10h.01M12 14h.01M8 14h.01M12 18h.01M8 18h.01'/%3E%3C/svg%3E");
}

.cart-share {
    position: relative;
}

.cart-item-menu {
    position: relative;
    z-index: 2;
    display: none;
}

.cart-item-menu__trigger {
    width: 28px;
    height: 28px;
}

.cart-item-menu .cart-item-menu__dropdown {
    left: auto;
    right: 0;
    min-width: 140px;
}

.cart-item-menu .cart-item-menu__menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 50px;
}

.cart-item-menu .cart-item-menu__menu-item .cart-list__action-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: 20px 20px;
    flex: 0 0 20px;
}

.cart-item-menu .cart-item-menu__menu-item--delete {
    color: #dc3545;
}

.cart-item-menu .cart-item-menu__menu-item--delete:hover,
.cart-item-menu .cart-item-menu__menu-item--delete:focus-visible {
    color: #dc3545;
}

.cart-item-menu .cart-item-menu__menu-item--delete .cart-list__action-icon--delete {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc3545' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'/%3E%3Cpath d='M19 6l-1 14H6L5 6'/%3E%3Cpath d='M10 11v6'/%3E%3Cpath d='M14 11v6'/%3E%3Cpath d='M9 6V4h6v2'/%3E%3C/svg%3E");
}

.cart-share__menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: auto;
    z-index: 25;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(18, 18, 18, 0.98);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    box-sizing: border-box;
}

.cart-share__menu[hidden] {
    display: none !important;
}

.cart-share__menu-item {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: 0;
    border-radius: 8px;
    padding: 8px 10px;
    text-align: left;
    text-decoration: none;
    background: transparent;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.25;
    white-space: normal;
    cursor: pointer;
}

.cart-share__menu-item:hover {
    background: rgba(255, 255, 255, 0.12);
}

.cart-share__menu-item--current {
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
}

.favorite-person-picker {
    align-self: stretch;
    display: flex;
}

.favorite-person-picker .cart-list__action-btn {
    width: 100%;
    height: 100%;
    min-height: 48px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    background: #222222;
    color: var(--color-text-on-dark-primary);
    transform: none;
}

.favorite-person-picker .cart-list__action-btn:hover,
.favorite-person-picker .cart-list__action-btn:focus-visible {
    background: #222222;
    border-color: var(--color-accent-primary);
    box-shadow: 0 0 0 1px var(--color-accent-focus-ring);
}

.favorite-person-picker .cart-list__action-btn:hover {
    transform: none;
}

.favorite-person-picker .cart-list__action-icon {
    width: 20px;
    height: 20px;
    background-size: 20px 20px;
}

.favorite-person-picker__menu {
    left: auto;
    right: 0;
    min-width: 220px;
    max-height: 240px;
    overflow-y: auto;
}

.cart-list__action-icon--copy {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cdefs%3E%3Cmask id='copyCut'%3E%3Crect width='24' height='24' fill='white'/%3E%3Crect x='1' y='8' width='15' height='15' rx='3' fill='black'/%3E%3C/mask%3E%3C/defs%3E%3Crect x='9' y='2' width='13' height='13' rx='2' mask='url(%23copyCut)'/%3E%3Crect x='2' y='9' width='13' height='13' rx='2'/%3E%3C/svg%3E");
}

/* Таблицы OS (.files-table): те же кнопки/иконки, что в ЛК; светлый фон — тёмные пиктограммы */
.files-table .cart-list__actions {
    margin-top: 0;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.files-table .actions-cell {
    width: auto;
    min-width: 108px;
    text-align: center;
    vertical-align: top;
}

.files-table .company-actions-cell {
    min-width: 140px;
}

.files-table .table-inline-form {
    display: contents;
}

.files-table .cart-list__action-btn--ghost,
.files-table .cart-list__action-btn--danger {
    background: #e9ecef;
}

.files-table .cart-list__action-btn--ghost:hover {
    background: #dee2e6;
}

.files-table .cart-list__action-btn--danger:hover {
    background: #f8d7da;
}

.files-table .cart-list__action-icon--print {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23212529' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9V2h12v7'/%3E%3Cpath d='M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2'/%3E%3Cpath d='M6 14h12v8H6z'/%3E%3Cpath d='M18 14h1'/%3E%3C/svg%3E");
}

@media print {
    html,
    body {
        background: #fff !important;
        color: #000 !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        display: block !important;
    }

    html,
    html * {
        color: #000000 !important;
    }

    header,
    .client-breadcrumbs-row,
    footer,
    .right-menu,
    .cart-print-btn,
    .cart-list__actions,
    .cart-list__qty-btn,
    .cart-sidebar__checkout-btn,
    .cart-sidebar .my-person-form {
        display: none !important;
    }

    .scrollable-content {
        overflow: visible !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    .main-layout,
    .center-content {
        overflow: visible !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        display: block !important;
    }

    .container {
        max-width: none !important;
        padding: 0 !important;
    }

    .cart-list__item {
        background: transparent !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
        grid-template-columns: minmax(0, 1fr) 72px 110px !important;
        gap: 10px !important;
    }

    .cart-list--qty-in-details .cart-list__product,
    .cart-list--qty-in-details .cart-list__details {
        display: contents !important;
    }

    .cart-list--qty-in-details .cart-list__item {
        grid-template-columns: auto minmax(0, 1fr) 210px 110px !important;
        gap: 10px !important;
    }

    .cart-list--qty-in-details .cart-item-preview-link {
        grid-column: 1;
    }

    .cart-list--qty-in-details .cart-list__product-info {
        grid-column: 2;
    }

    .cart-list--qty-in-details .cart-list__count {
        grid-column: 3;
    }

    .cart-list--qty-in-details .cart-list__price-wrap {
        grid-column: 4;
    }

    .cart-list__count,
    .cart-list__price-wrap {
        white-space: nowrap;
    }

    .cart-list__mobile-price-line {
        display: none !important;
    }

    .cart-list__item > .cart-list__price-wrap {
        display: flex !important;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
    }

    body.print-no-prices .cart-list__price-wrap,
    body.print-no-prices .cart-list__mobile-price-line,
    body.print-no-prices .cart-sidebar__row--money,
    body.print-no-prices .cart-sidebar__total--money {
        display: none !important;
    }

    body.print-no-prices .cart-list__item {
        grid-template-columns: minmax(0, 1fr) 72px !important;
    }

    body.print-no-prices .cart-list--qty-in-details .cart-list__item {
        grid-template-columns: auto minmax(0, 1fr) 210px !important;
    }

    .cart-list__price-current {
        white-space: nowrap;
    }

    .cart-list__qty-input {
        border: none !important;
        background: transparent !important;
        color: #000 !important;
        padding: 0 !important;
        width: auto !important;
    }

    .cart__sidebar {
        position: static !important;
    }

    @page {
        margin: 14mm 11mm 12mm 11mm;
    }
}
.files-table .cart-list__action-icon--edit {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23495057' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.12 2.12 0 1 1 3 3L7 19l-4 1 1-4 12.5-12.5z'/%3E%3C/svg%3E");
}

.files-table .cart-list__action-icon--delete {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23495057' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'/%3E%3Cpath d='M19 6l-1 14H6L5 6'/%3E%3Cpath d='M10 11v6'/%3E%3Cpath d='M14 11v6'/%3E%3Cpath d='M9 6V4h6v2'/%3E%3C/svg%3E");
}

.files-table .cart-list__action-icon--download {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23495057' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
}

.files-table .cart-list__action-icon--copy {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23495057' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cdefs%3E%3Cmask id='copyCutOs'%3E%3Crect width='24' height='24' fill='white'/%3E%3Crect x='1' y='8' width='15' height='15' rx='3' fill='black'/%3E%3C/mask%3E%3C/defs%3E%3Crect x='9' y='2' width='13' height='13' rx='2' mask='url(%23copyCutOs)'/%3E%3Crect x='2' y='9' width='13' height='13' rx='2'/%3E%3C/svg%3E");
}

.files-table .cart-list__action-icon--forward {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23495057' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
}

.files-table .cart-list__action-icon--external {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23495057' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3C/svg%3E");
}

.files-table .cart-list__action-icon--link {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23495057' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 1 0-7l1-1a5 5 0 0 1 7 7l-1 1'/%3E%3Cpath d='M14 11a5 5 0 0 1 0 7l-1 1a5 5 0 0 1-7-7l1-1'/%3E%3C/svg%3E");
}

.cart-list__price-wrap {
    min-width: 110px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
}

.cart-list__price-current,
.cart-list__price-note {
    margin: 0;
}

.cart-list__price-current {
    font-size: 16px;
    font-weight: 700;
    color: #22c55e;
}

.cart-list__price-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.cart-list__price-retail {
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: line-through;
}

/* Корзина: на широком экране цены в правой колонке; дубликат строки только для мобилы */
.cart-list__mobile-price-line {
    display: none;
}

/* На мобиле скрываем строку крошек целиком, без резервирования высоты */
@media (max-width: 768px) {
    .client-breadcrumbs-row {
        display: none;
    }
}

.cart-sidebar {
    border-radius: var(--radius-5xl);
    background: rgba(255, 255, 255, 0.05);
    padding: 24px;
    position: sticky;
    top: 0px;
    min-width: 0;
    /* .container задаёт text-align: center — иначе адрес и ссылки в сайдбаре центрируются */
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cart-sidebar__title {
    margin: 0;
    font-size: 20px;
}

.cart-sidebar__rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-sidebar__row,
.cart-sidebar__total {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.cart-sidebar__row--separator,
.cart-sidebar__total {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 8px;
}

.cart-sidebar__total {
    margin-top: 0px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

.cart-sidebar__checkout-btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.cart-sidebar__repeat-form {
    margin-top: 10px;
}

/* Промокод: поле и кнопка «Применить» в одну строку, высота поля подогнана под высоту кнопки (.btn min-height: 44px) */
.cart-sidebar__promo-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cart-sidebar__promo-field {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}

.cart-sidebar__promo-row .form-float__control {
    height: 44px;
    padding: 14px 12px 4px;
}

.cart-sidebar__promo-row .btn {
    flex-shrink: 0;
}

/* ЛК заказ: оплата — кнопка сверху, чекбокс согласия снизу (разметка: сначала кнопка, ниже условия) */
.order-pay-form {
    margin-top: 0;
}

.order-pay-form__stack {
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
}

.order-pay-form__terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    margin: 0;
    padding: 0px 0px;
    border-radius: 6px;
    border: 1px solid transparent;
    box-sizing: border-box;
}

.order-pay-form__terms--error {
    border-color: var(--color-danger, #e74c3c);
    background: rgba(231, 76, 60, 0.12);
}

.order-pay-form__checkbox {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
}

.order-pay-form__terms-text {
    flex: 1;
}

.order-pay-form__error {
    margin-top: 6px;
}

a.cart-sidebar__checkout-btn {
    text-decoration: none;
}

.cart-sidebar__checkout-btn--secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.9);
}


.cart-sidebar__secondary-link {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
}

.cart-sidebar__secondary-link:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.cart-sidebar__delivery {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.cart-sidebar__delivery .cart-sidebar__title {
    margin-bottom: 10px;
}

.cart-sidebar__delivery-row {
    display: flex;
    gap: 6px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4px;
}

.cart-sidebar__delivery-label {
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

.cart-sidebar__delivery-address {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 6px;
    line-height: 1.5;
}

.cart-sidebar__delivery-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
}

.cart-sidebar__delivery-link:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.cart-empty__text {
    margin: 0;
}

@media (max-width: 1100px) {
    .cart {
        grid-template-columns: 1fr;
    }

    .cart-sidebar {
        position: static;
    }
}

.order-delivery-card {
        margin-top: 24px;
        margin-bottom: 0px;
        padding: 0px;
        text-align: left;
}

/* Профиль: двухколоночный макет как у корзины, сайдбар слева */
.profile-page {
    margin-top: 0px;
    text-align: left;
    padding-bottom: calc(
            var(--mobile-bottom-nav-total-height)
            + 12px
        );
}

.profile-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

/* Избранное: отступ между блоком «Списки» и телом страницы */
.profile-favorites-main-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.profile-layout__sidebar {
    min-width: 0;
    align-self: stretch;
}

.profile-sidebar-stack {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-sidebar-panel {
    border-radius: var(--radius-5xl);
    background: rgba(255, 255, 255, 0.05);
    padding: 14px;
}

.profile-sidebar-user {
    display: flex;
    flex-direction: column;
    align-items: left;
    text-align: left;
    gap: 10px;
    padding: 24px;
}

.profile-sidebar-user__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: left;
    justify-content: left;
    color: rgba(255, 255, 255, 0.45);
}

.profile-sidebar-user__avatar svg {
    width: 36px;
    height: 36px;
    display: block;
}

.profile-sidebar-user__name-link {
    display: block;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.88);
}

.profile-sidebar-user__name-link:hover,
.profile-sidebar-user__name-link:focus-visible {
    color: rgba(255, 255, 255, 0.5);
}

.profile-sidebar-user__name-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.35);
    outline-offset: 2px;
    border-radius: 4px;
}

.profile-sidebar-user__name {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
    color: var(--color-text-on-dark-strong);
}

.profile-sidebar-user__roles {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    gap: 6px;
    max-width: 100%;
    margin-top: 6px;
}

/* Пилюли ролей в сайдбаре ЛК (отдельно от order-pill статусов заказа) */
.profile-role-pill {
    display: inline-block;
    box-sizing: border-box;
    max-width: 100%;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    background: #495057;
    color: rgba(255, 255, 255, 0.95);
}

.profile-role-pill--admin {
    background: #7048e8;
    color: #fff;
}

.profile-role-pill--buyer {
    background: #1971c2;
    color: #fff;
}

.profile-role-pill--buyer-coach {
    background: #0b7285;
    color: #fff;
}

.profile-role-pill--buyer-club_director {
    background: #5f3dc4;
    color: #fff;
}

.profile-role-pill--buyer-parent {
    background: #e67700;
    color: #fff;
}

.profile-role-pill--buyer-athlete {
    background: #2f9e44;
    color: #fff;
}

.profile-role-pill--buyer-other {
    background: #495057;
    color: rgba(255, 255, 255, 0.95);
}

.buyer-subtypes-field ul,
.form-group ul:has(.buyer-subtypes-checkboxes) {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.buyer-subtypes-field li label,
.form-group ul:has(.buyer-subtypes-checkboxes) li label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: normal;
    cursor: pointer;
    line-height: 1.35;
}

.profile-role-pill--seller {
    background: #2f9e44;
    color: #fff;
}

.profile-role-pill--seller-owner {
    background: #1864ab;
    color: #fff;
}

.profile-role-pill--seller-staff {
    background: #5c940d;
    color: #fff;
}

/* Выпадающее меню активной роли (как пункт сайдбара, без JS) */
.profile-role-menu {
    margin-top: 10px;
    width: 100%;
    max-width: 100%;
}

.profile-role-menu__summary {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    border: none;
    background: transparent;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

.profile-role-menu__summary::-webkit-details-marker {
    display: none;
}

.profile-role-menu__summary::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(255, 255, 255, 0.45);
    margin-left: auto;
}

.profile-role-menu[open] .profile-role-menu__summary::after {
    border-top: none;
    border-bottom: 5px solid rgba(255, 255, 255, 0.45);
}

.profile-role-menu__summary:hover,
.profile-role-menu__summary:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.98);
}

.profile-role-menu__summary:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.35);
    outline-offset: 2px;
}

.profile-role-menu__panel {
    padding: 4px 0 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-role-menu__form {
    margin: 0;
}

.profile-role-menu__option {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    box-sizing: border-box;
}

.profile-role-menu__option:hover,
.profile-role-menu__option:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.98);
}

.profile-role-menu__option:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.35);
    outline-offset: 2px;
}

/* Кнопка «Стать продавцом» */
.profile-become-seller-form {
    margin-top: 8px;
}

.profile-become-seller-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    cursor: pointer;
    padding: 2px 4px;
    text-decoration: underline;
    text-decoration-style: dashed;
    text-underline-offset: 3px;
}

.profile-become-seller-btn:hover {
    color: rgba(255, 255, 255, 0.75);
}

.profile-layout__main {
    border-radius: var(--radius-5xl);
    background: rgba(255, 255, 255, 0.05);
    padding: 0px;
    min-width: 0;
}

.profile-layout__main-content {
    padding: 12px;
}

.profile-main__head {
    padding: 0 4px 0;
    margin-bottom: 14px;
}

.profile__head {
    padding: 12px 12px 0 12px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.profile-main__title {
    margin: 0;
    font-size: 22px;
}

.profile-hub__lead {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.65);
}

.profile-sidebar__nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-sidebar__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    font-weight: 500;
}

.profile-sidebar__icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-sidebar__icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.profile-sidebar__link:hover,
.profile-sidebar__link:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.98);
}

.profile-sidebar__link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.35);
    outline-offset: 2px;
}

.profile-sidebar__link--current {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.98);
}

/* ЛК покупателя: второе меню (как сендвич мобильной шапки) — только узкая вёрстка профиля */
.profile-sidebar-site-nav {
    display: none;
}

.profile-sidebar-site-nav__title {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.profile-sidebar-site-nav__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-sidebar-site-nav__nav--secondary {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-sidebar-site-nav__link {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    font-weight: 500;
}

.profile-sidebar-site-nav__link:hover,
.profile-sidebar-site-nav__link:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.98);
}

.profile-sidebar-site-nav__link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.35);
    outline-offset: 2px;
}

/* Аккордеон nav-dropdown внутри сайдбара профиля */
.profile-sidebar-site-nav .nav-dropdown {
    position: static;
}

.profile-sidebar-site-nav .nav-dropdown__menu {
    position: static;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    min-width: 0;
    box-shadow: none;
    z-index: auto;
}

.profile-sidebar-site-nav .nav-dropdown__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px 9px 24px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    font-weight: 400;
    white-space: normal;
    border-radius: 8px;
}

.profile-sidebar-site-nav .nav-dropdown__item::before {
    content: '•';
    font-size: 18px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

.profile-sidebar-site-nav .nav-dropdown__item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.88);
}

.profile-sidebar-site-nav .nav-dropdown[open] > .nav-dropdown__summary {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
}

.profile-order-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
}

.profile-order-detail__cart-list {
    padding: 0;
}

.profile-card--summary {
    position: sticky;
    top: 0;
    margin-bottom: 0;
}

.profile-order-meta__row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.profile-order-meta__total {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 12px 0 0;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

.profile-order-meta__back {
    width: 100%;
    margin-top: 12px;
    text-align: center;
    text-decoration: none;
    display: block;
    line-height: 44px;
}

.my-order-list {
    list-style: none;
    margin: 0;
    padding: 0px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.my-order-list__item {
    margin: 0;
}

.my-order-list__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.my-order-list__link:hover .my-order-list__card,
.my-order-list__link:focus-visible .my-order-list__card {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

.my-order-list__link:focus-visible {
    outline: none;
}

.my-order-list__link:focus-visible .my-order-list__card {
    outline: 2px solid rgba(255, 255, 255, 0.35);
    outline-offset: 2px;
}

.my-order-list__card {
    margin-bottom: 0;
}

.my-order-list__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.my-order-list__order-no {
    margin: 0 0 6px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.my-order-list__order-no--with-deadline-pill {
    margin: 0;
}

.my-order-list__order-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 0px;
    flex-wrap: wrap;
}

.my-order-list__meta {
    margin: 0px 0;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
}

.my-order-list__right {
    text-align: right;
}

.my-order-list__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    margin-top: 8px;
}

.my-order-list__action-link {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.my-order-list__action-link:hover {
    color: rgba(255, 255, 255, 0.95);
}

.my-order-list__amount {
    margin: 0 0 8px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.my-order-list__status {
    display: block;
    margin: 0 0 0px;
}

/* Плашка «Основной» в списке адресов: размер и вид как у пункта меню шапки при наведении */
.my-order-list__badge {
    display: inline-block;
    flex-shrink: 0;
    height: 24px;
    line-height: 24px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 14px;
    background-color: rgb(100, 100, 100);
    color: rgba(255, 255, 255, 0.81);
}

.my-order-list__status--inline {
    display: inline-flex;
    margin: 0;
}

.my-order-list__meta--pill {
    display: block;
    margin-top: 0;
}

/* Капсулы статусов заказа / оплаты (профиль, корзина, OS) */
.order-pill {
    display: inline-block;
    box-sizing: border-box;
    max-width: 100%;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    background: #495057;
    color: #fff;
}

/* Пилюля-кнопка (трек по клику копируется и т.п.): плоская, как span — без стандартной рамки кнопки браузера */
button.order-pill {
    border: none;
    font-family: inherit;
    cursor: pointer;
}

.my-order-list .order-pill {
    font-size: 12px;
    padding: 3px 10px;
}

.my-order-list__row--columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: 16px;
    align-items: center;
}

.my-order-list__pay-col {
    display: flex;
    align-items: center;
    min-width: 120px;
}

.my-order-list__main {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.my-order-list__toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.my-order-list__toolbar form {
    display: flex;
    margin: 0;
}

.my-order-list__toolbar-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.my-order-list__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.my-order-list__card--clickable {
    cursor: pointer;
}

@media (max-width: 768px) {
    .my-order-list__toolbar-buttons {
        display: none;
    }

    .my-order-list__head .cart-item-menu {
        display: inline-flex;
    }
}

.my-order-list__status-col {
    display: flex;
    align-items: center;
}

.my-order-list__total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    min-width: 110px;
}

.my-order-list__total-amount {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #22c55e;
}

@media (max-width: 768px) {
    .my-order-list__row--columns {
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        gap: 12px;
    }

    .my-order-list__main {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .my-order-list__status-col {
        grid-column: 1;
        grid-row: 2;
        justify-content: flex-start;
    }

    .my-order-list__total {
        grid-column: 2;
        grid-row: 2;
        align-items: flex-start;
    }

    .my-order-list__pay-col {
        grid-column: 3;
        grid-row: 2;
        min-width: 0;
    }
}

.order-pill--new,
.order-pill--unpaid,
.order-pill--erroneous {
    background: #c92a2a;
    color: #fff;
}

.order-pill--paid,
.order-pill--delivered {
    background: #2f9e44;
    color: #fff;
}

/* Булев индикатор: галочка в зелёном круге / крестик в красном круге */
.bool-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.bool-icon--yes {
    background: #2f9e44;
}

.bool-icon--yes::before {
    content: "\2713";
}

.bool-icon--no {
    background: #c92a2a;
}

.bool-icon--no::before {
    content: "\2715";
}

.order-pill--pending,
.order-pill--clarification,
.order-pill--partial {
    background: #e67700;
    color: #fff;
}

.order-pill--approved,
.order-pill--in_production {
    background: #1971c2;
    color: #fff;
}

.order-pill--shipped {
    background: #0b7285;
    color: #fff;
}

.order-pill--returned,
.order-pill--refunded {
    background: #7048e8;
    color: #fff;
}

.order-pill--cancelled,
.order-pill--inbox {
    background: #495057;
    color: rgba(255, 255, 255, 0.95);
}

/* Дедлайн PL (сравнение с «сегодня» по Москве): empty / overdue / urgent / soon / ok; подпись #222222 */
.order-pill--deadline-empty {
    background: #495057;
}

.order-pill--deadline-ok {
    background: #51cf66;
}

.order-pill--deadline-soon {
    background: #fab005;
}

.order-pill--deadline-urgent {
    background: #ff8787;
}

.order-pill--deadline-overdue {
    background: #862e2e;
}

/* Остаток до срока сдачи партии Почты России (текст): >48 ч зелёный, 24–48 ч жёлтый, <24 ч красный */
.post-dropoff-left--ok {
    color: #51cf66;
}

.post-dropoff-left--soon {
    color: #fab005;
}

.post-dropoff-left--urgent {
    color: var(--color-danger);
}

.order-pill--deadline-empty,
.order-pill--deadline-ok,
.order-pill--deadline-soon,
.order-pill--deadline-urgent,
.order-pill--deadline-overdue {
    color: #222222;
}

/* Статус PL (производство): цвета по этапам; подпись всегда #222222 */
.order-pill--printlist-empty {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.14);
    padding: 3px 11px;
}

.order-pill--printlist-open {
    background: #ffc9d9;
}

.order-pill--printlist-filled {
    background: #c9b0c8;
}

.order-pill--printlist-taken {
    background: #66d9e8;
}

.order-pill--printlist-printed {
    background: #a5d8ff;
}

.order-pill--printlist-transferred {
    background: #90a4ae;
}

.order-pill--printlist-trimmed {
    background: #e9ecef;
}

.order-pill--printlist-packed {
    background: #339af0;
}

.order-pill--printlist-assembled,
.order-pill--printlist-assembled-partial {
    background: #ffe066;
}

.order-pill--printlist-ready-ship,
.order-pill--printlist-ready {
    background: #b2f2bb;
}

.order-pill--printlist-ready-ship-partial {
    background: #8fd99a;
}

.order-pill--ship-not-allowed {
    background: #ffeaea;
    color: #c00000;
}

.order-pill--printlist-shipped {
    background: #51cf66;
}

.order-pill--printlist-shipped-partial {
    background: #37b24d;
}

.order-pill--printlist-shipped-archive {
    background: #2f9e44;
}

.order-pill--printlist-empty,
.order-pill--printlist-open,
.order-pill--printlist-filled,
.order-pill--printlist-taken,
.order-pill--printlist-printed,
.order-pill--printlist-transferred,
.order-pill--printlist-trimmed,
.order-pill--printlist-packed,
.order-pill--printlist-assembled,
.order-pill--printlist-assembled-partial,
.order-pill--printlist-ready,
.order-pill--printlist-ready-ship,
.order-pill--printlist-ready-ship-partial,
.order-pill--printlist-shipped,
.order-pill--printlist-shipped-partial,
.order-pill--printlist-shipped-archive {
    color: #222222;
}

.my-order-list__empty {
    text-align: center;
    padding: 24px 16px;
}

.my-order-list__empty-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.55);
}

.my-order-list__empty-actions {
    text-align: left;
}

/* Переключатель «Карточки/Таблица» и тёмная табличная вёрстка (ЛК продавца: заказы на производстве, реестр списков) */
.orders-view-toggle {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-pill);
}

.orders-view-toggle__btn {
    padding: 6px 14px;
    border: none;
    border-radius: var(--radius-pill);
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.orders-view-toggle__btn--active {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.95);
}

.profile-dark-table-container {
    overflow-x: auto;
}

/* Модификатор для таблиц со всплывающими меню в ячейках (напр. дропдаун статуса) — auto-скролл обрезал бы их */
.profile-dark-table-container--no-clip {
    overflow: visible;
}

.profile-dark-table {
    width: auto;
    border-collapse: collapse;
}

/* Модификатор: таблица на всю ширину контейнера (по умолчанию — по ширине колонок) */
.profile-dark-table--full {
    width: 100%;
}

.profile-dark-table th {
    padding: 10px 12px;
    text-align: left;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.profile-dark-table td {
    padding: 10px 12px;
    white-space: nowrap;
    vertical-align: top;
    text-align: left;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-dark-table__row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.profile-dark-table__subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* Кружок отгрузки перед её номером (реестр партий /seller/printlists/): белый — в отгрузке один заказ,
   светло-серый — отгрузка отправлена, --c1…--c30 — составная отгрузка (несколько заказов), свой цвет на отгрузку:
   номер цвета = id отгрузки по модулю 30 (orders/seller_cabinet_views.py, SHIPMENT_DOT_COLORS) */
.shipment-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-radius: 50%;
    /* низ кружка на базовой линии → центр (4px) совпадает с серединой цифр 12px; middle сажал его ниже */
    vertical-align: baseline;
}

.shipment-dot--single {
    background: #ffffff;
}

.shipment-dot--sent {
    background: #b5b5b5;
}
.shipment-dot--c1 { background: #f55e47; }
.shipment-dot--c2 { background: #8147f5; }
.shipment-dot--c3 { background: #47f5a4; }
.shipment-dot--c4 { background: #f5c747; }
.shipment-dot--c5 { background: #ea47f5; }
.shipment-dot--c6 { background: #47def5; }
.shipment-dot--c7 { background: #bbf547; }
.shipment-dot--c8 { background: #f54798; }
.shipment-dot--c9 { background: #4775f5; }
.shipment-dot--c10 { background: #53f547; }
.shipment-dot--c11 { background: #e62b0f; }
.shipment-dot--c12 { background: #560fe6; }
.shipment-dot--c13 { background: #0fe682; }
.shipment-dot--c14 { background: #e6ad0f; }
.shipment-dot--c15 { background: #d80fe6; }
.shipment-dot--c16 { background: #0fc9e6; }
.shipment-dot--c17 { background: #9ee60f; }
.shipment-dot--c18 { background: #e60f73; }
.shipment-dot--c19 { background: #0f48e6; }
.shipment-dot--c20 { background: #1de60f; }
.shipment-dot--c21 { background: #f7a497; }
.shipment-dot--c22 { background: #b797f7; }
.shipment-dot--c23 { background: #97f7ca; }
.shipment-dot--c24 { background: #f7dd97; }
.shipment-dot--c25 { background: #f097f7; }
.shipment-dot--c26 { background: #97eaf7; }
.shipment-dot--c27 { background: #d7f797; }
.shipment-dot--c28 { background: #f797c4; }
.shipment-dot--c29 { background: #97b1f7; }
.shipment-dot--c30 { background: #9ef797; }

.profile-dark-table__sort-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.profile-dark-table__sort-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

.profile-dark-table__sort-link--active {
    color: rgba(255, 255, 255, 0.95);
}

.profile-dark-table__sort-arrow {
    font-size: 10px;
}

.profile-dark-table td a {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}

.profile-dark-table .actions-cell {
    width: auto;
    min-width: 108px;
    text-align: left;
    vertical-align: top;
}

.profile-dark-table .cart-list__actions {
    margin-top: 0;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
}

/* Действия заказа в /os/orders/: три группы (изготовление / доставка / редактирование) в одну строку, между группами увеличенный отступ, кнопки на фиксированных местах */
.profile-dark-table .cart-list__actions--grouped {
    gap: 12px;
}

.cart-list__actions-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-list__action-slot {
    display: block;
    width: 32px;
    height: 32px;
}

/* Реестр списков на печать (PL): карточка — дедлайн, название, доля заказов, действия; ряд заглушек */
.printlist-registry-card__row1 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    justify-content: space-between;
}

.printlist-registry-card__row1-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    min-width: 0;
    flex: 1;
}

.printlist-registry-card__deadline-pill {
    flex-shrink: 0;
}

/* PL: статус — сплит-пилюля + меню как у «Поделиться» в корзине (cart-share__menu), стрелка как в JBNC; в конце строки карточки */
.printlist-status-dropdown.cart-share {
    flex-shrink: 0;
    margin-left: auto;
    max-width: min(100%, 280px);
}

.printlist-registry-card__row1-main .cart-share.printlist-status-dropdown:has([data-printlist-status-menu]:not([hidden])) {
    z-index: 40;
}

.printlist-status-split.order-pill {
    display: flex;
    align-items: stretch;
    align-self: flex-start;
    margin: 0;
    padding: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.printlist-status-split--fixed.order-pill {
    width: 200px;
    flex: 0 0 200px;
}

.printlist-status-split--favorite-paid.order-pill {
    width: 140px;
    flex: 0 0 140px;
}

.printlist-status-split__label {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 4px 6px 4px 10px;
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.printlist-status-split__arrow {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    margin: 0;
    padding: 0 6px;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.printlist-status-split__arrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 1px;
    background: rgba(34, 34, 34, 0.22);
}

.printlist-status-split__arrow:hover,
.printlist-status-split__arrow:focus-visible {
    background: rgba(0, 0, 0, 0.06);
    outline: none;
}

.order-pill--printlist-transferred .printlist-status-split__arrow:hover,
.order-pill--printlist-packed .printlist-status-split__arrow:hover,
.order-pill--printlist-shipped .printlist-status-split__arrow:hover,
.order-pill--printlist-shipped-partial .printlist-status-split__arrow:hover,
.order-pill--printlist-shipped-archive .printlist-status-split__arrow:hover,
.order-pill--printlist-transferred .printlist-status-split__arrow:focus-visible,
.order-pill--printlist-packed .printlist-status-split__arrow:focus-visible,
.order-pill--printlist-shipped .printlist-status-split__arrow:focus-visible,
.order-pill--printlist-shipped-partial .printlist-status-split__arrow:focus-visible,
.order-pill--printlist-shipped-archive .printlist-status-split__arrow:focus-visible {
    background: rgba(0, 0, 0, 0.12);
}

.printlist-status-split .dropdown-arrow {
    width: 14px;
    height: 14px;
    margin-top: 0;
    fill: currentColor;
    transition: transform 0.15s ease;
}

.printlist-status-dropdown:has([data-printlist-status-menu]:not([hidden])) .printlist-status-split__arrow .dropdown-arrow {
    transform: rotate(180deg);
}

.printlist-status-dropdown .cart-share__menu {
    box-sizing: border-box;
    width: max-content;
    min-width: 100%;
    max-width: min(94vw, 440px);
    max-height: min(70vh, 380px);
    overflow-y: auto;
    overflow-x: auto;
}

.printlist-status-dropdown .cart-share__menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.printlist-status-dropdown .printlist-status-swatch.order-pill {
    display: inline-block;
    width: 10px;
    height: 10px;
    min-width: 10px;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    font-size: 0;
    line-height: 0;
    flex-shrink: 0;
    box-sizing: border-box;
}

.printlist-status-dropdown .printlist-status-menu-item__label {
    flex: 1;
    min-width: 0;
}

.printlist-status-menu-form {
    margin: 0;
    display: block;
}

.order-pill--printlist-empty.printlist-status-split {
    padding: 0;
}

.order-pill--printlist-empty .printlist-status-split__label {
    padding-left: 11px;
}

.printlist-status-dropdown:has([data-order-status-menu]:not([hidden])) .printlist-status-split__arrow .dropdown-arrow,
.printlist-status-dropdown:has([data-favorite-paid-menu]:not([hidden])) .printlist-status-split__arrow .dropdown-arrow {
    transform: rotate(180deg);
}

.order-pill--new .printlist-status-split__arrow:hover,
.order-pill--unpaid .printlist-status-split__arrow:hover,
.order-pill--erroneous .printlist-status-split__arrow:hover,
.order-pill--paid .printlist-status-split__arrow:hover,
.order-pill--delivered .printlist-status-split__arrow:hover,
.order-pill--pending .printlist-status-split__arrow:hover,
.order-pill--clarification .printlist-status-split__arrow:hover,
.order-pill--partial .printlist-status-split__arrow:hover,
.order-pill--approved .printlist-status-split__arrow:hover,
.order-pill--in_production .printlist-status-split__arrow:hover,
.order-pill--shipped .printlist-status-split__arrow:hover,
.order-pill--returned .printlist-status-split__arrow:hover,
.order-pill--refunded .printlist-status-split__arrow:hover,
.order-pill--cancelled .printlist-status-split__arrow:hover,
.order-pill--inbox .printlist-status-split__arrow:hover,
.order-pill--new .printlist-status-split__arrow:focus-visible,
.order-pill--unpaid .printlist-status-split__arrow:focus-visible,
.order-pill--erroneous .printlist-status-split__arrow:focus-visible,
.order-pill--paid .printlist-status-split__arrow:focus-visible,
.order-pill--delivered .printlist-status-split__arrow:focus-visible,
.order-pill--pending .printlist-status-split__arrow:focus-visible,
.order-pill--clarification .printlist-status-split__arrow:focus-visible,
.order-pill--partial .printlist-status-split__arrow:focus-visible,
.order-pill--approved .printlist-status-split__arrow:focus-visible,
.order-pill--in_production .printlist-status-split__arrow:focus-visible,
.order-pill--shipped .printlist-status-split__arrow:focus-visible,
.order-pill--returned .printlist-status-split__arrow:focus-visible,
.order-pill--refunded .printlist-status-split__arrow:focus-visible,
.order-pill--cancelled .printlist-status-split__arrow:focus-visible,
.order-pill--inbox .printlist-status-split__arrow:focus-visible {
    background: rgba(0, 0, 0, 0.12);
}

.printlist-registry-card__title {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.printlist-registry-card__title-link {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    word-break: break-word;
}

.printlist-registry-card__title-link:hover,
.printlist-registry-card__title-link:focus-visible {
    text-decoration: underline;
}

.printlist-registry-card__fraction {
    flex-shrink: 0;
    font-size: 15px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.75);
}

.printlist-registry-card__actions.cart-list__actions {
    margin-top: 0;
    align-items: center;
    justify-content: flex-end;
}

.printlist-registry-card__row2 {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
    padding-top: 4px;
}

.printlist-registry-card__stub {
    min-height: 36px;
    border-radius: var(--radius-pill);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
    cursor: not-allowed;
    padding: 0;
}

.profile-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-3xl);
    padding: 12px;
}

.profile-card-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0px;
}

.order-detail__sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-detail__title {
    padding: 0 12px 0 12px;
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 600;
    text-align: left;
}

.order-detail__card {
    margin-top: 0px;
    margin-bottom: 0px;
    padding: 0px;
    text-align: left;
}

.order-detail-card--rows-gap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-detail-card--rows-gap .profile-card__row {
    margin: 0;
}

.profile-card-stack {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 1024px) {
    .profile-card-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .profile-card-stack {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Четыре карточки в одну строку (бэк-офис: пользователь, оплата); --5 — пять (карточка заказа) */
.profile-card-stack--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-card-stack--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1200px) {
    .profile-card-stack--4,
    .profile-card-stack--5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .profile-card-stack--4,
    .profile-card-stack--5 {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Карточки в строке выравниваются по высоте; действие внизу карточки — .profile-card__row--bottom.
   Во flex отступы не схлопываются, поэтому верхние убираем (промежутки как в обычном потоке). */
.profile-card-stack--4 > .profile-card,
.profile-card-stack--5 > .profile-card {
    display: flex;
    flex-direction: column;
}

.profile-card-stack--4 > .profile-card > * + *,
.profile-card-stack--5 > .profile-card > * + * {
    margin-top: 0;
}

.profile-card-stack--4 > .profile-card > hr,
.profile-card-stack--5 > .profile-card > hr {
    margin-top: 6px;
}

.profile-card-stack--4 > .profile-card > .profile-card__row--bottom,
.profile-card-stack--5 > .profile-card > .profile-card__row--bottom {
    margin-top: auto;
    text-align: left;
}

.profile-card__row--bottom > .profile-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.profile-card--last {
    margin-bottom: 0;
}

.notification-item {
    padding: 0;
    overflow: hidden;
}

.notification-item__toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.notification-item__dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e31235;
}

.notification-item:not(.notification-item--unread) .notification-item__dot {
    background: #3b82f6;
}

.notification-item__date {
    flex-shrink: 0;
    color: var(--color-text-on-dark-secondary);
    font-size: 13px;
}

.notification-item__title {
    flex: 1;
    min-width: 0;
    color: var(--color-text-on-dark-strong);
    font-weight: 600;
}

.notification-item__arrow {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    color: var(--color-text-on-dark-secondary);
    transition: transform 0.15s ease;
}

.notification-item--expanded .notification-item__arrow {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .notification-item__toggle {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "dot date arrow"
            ". title title";
        align-items: center;
        column-gap: 10px;
        row-gap: 4px;
    }

    .notification-item__dot {
        grid-area: dot;
    }

    .notification-item__date {
        grid-area: date;
    }

    .notification-item__arrow {
        grid-area: arrow;
        justify-self: end;
    }

    .notification-item__title {
        grid-area: title;
    }
}

.notification-item__body {
    padding: 0 12px 12px 30px;
}

.notification-item__body-collapsed {
    margin: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    opacity: 0.75;
    font-size: 14px;
}

.notification-item__body-full {
    display: none;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.notification-item--expanded .notification-item__body-collapsed {
    display: none;
}

.notification-item--expanded .notification-item__body-full {
    display: block;
}

.profile-card__title {
    margin: 0 0 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

/* Шапка карточки: заголовок и пилюля статуса в одну строку */
.profile-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 6px;
}

.profile-card__head .profile-card__title {
    margin: 0;
    line-height: 25px;
}

.profile-card__row {
    margin: 6px 0 0 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
}

.profile-card__row--left {
    text-align: left;
}

.profile-card__row--split {
    display: grid;
    grid-template-columns: minmax(96px, 170px) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.profile-card__label {
    justify-self: start;
    color: rgba(255, 255, 255, 0.62);
}

.profile-card__value {
    justify-self: end;
    text-align: right;
    min-width: 0;
}

.profile-card__btn-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-card__btn {
    width: auto;
    display: inline-block;
    text-decoration: none;
    padding: 0 16px;
    line-height: 36px;
}

.profile-card__btn--muted {
    background: #6c757d;
}

@media (max-width: 1100px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-sidebar-stack {
        position: static;
    }

    .profile-card--summary {
        position: static;
    }

    .profile-sidebar-site-nav {
        display: block;
    }

    /* Избранное / персоны: на узкой сетке сайдбар ЛК не дублируем — навигация в шапке/нижнем меню */
    .profile-page--favorites .profile-layout__sidebar,
    .profile-page--persons .profile-layout__sidebar,
    .profile-page--notifications .profile-layout__sidebar,
    .profile-page--orders .profile-layout__sidebar,
    .profile-page--addresses .profile-layout__sidebar,
    .profile-page--shops .profile-layout__sidebar,
    .profile-page--seller-dashboard .profile-layout__sidebar,
    .profile-page--seller-orders .profile-layout__sidebar {
        display: none;
    }
}

@media (max-width: 900px) {
    .profile-order-detail {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .profile-layout__main--buyer-mobile-hidden {
        display: none;
    }

    .profile-page--client .profile-sidebar-site-nav {
        display: none;
    }

    .cart-list__product-info {
        padding-right: 0;
    }

    .cart-item-menu__trigger {
        width: auto;
        height: auto;
        padding: 0;
        border-radius: 0;
        background: transparent;
    }

    .cart-list__item {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cart-list__count {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .cart-list__problem--count {
        display: block;
        width: 100%;
        margin-top: 8px;
    }

    .cart-list--my-order-detail .cart-list__count {
        margin-left: 108px;
        width: calc(100% - 108px);
    }

    .favorites-paid-dropdown.cart-share.printlist-status-dropdown {
        margin-left: 0;
        margin-top: 8px;
        width: 100%;
    }

    .cart-list__item > .cart-list__price-wrap {
        display: none;
    }

    .checkout-address-summary__price-wrap {
        display: none;
    }

    .cart-list__mobile-price-line {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: baseline;
        gap: 6px 10px;
        margin: 0 0 0px;
    }

    .checkout-address-summary__body .cart-list__mobile-price-line {
        margin-bottom: 6px;
    }

    .cart-list__mobile-price-line .cart-item-menu {
        display: inline-flex;
        margin-left: auto;
        align-self: center;
    }

    .cart-list__mobile-price-line .cart-list__price-current {
        font-size: 16px;
        font-weight: 700;
    }

    .cart-list__mobile-price-line .cart-list__price-retail {
        font-size: 13px;
    }

    .cart-list__actions {
        align-items: stretch;
    }

    .cart-list__actions--desktop-only {
        display: none;
    }

    .cart-list__qty-form {
        flex-wrap: nowrap;
    }

    .cart-list--qty-in-details .cart-list__product,
    .cart-list--qty-in-details .cart-list__details {
        display: flex;
    }

    .cart-list--qty-in-details .cart-list__product {
        flex-direction: row;
        align-items: stretch;
        gap: 12px;
    }

    .cart-list--qty-in-details .cart-list__details {
        flex-direction: column;
        gap: 12px;
    }

    .cart-list--qty-in-details .cart-list__actions {
        margin-top: 0;
    }
}

body.print-no-prices .cart-list__mobile-price-line {
    display: none;
}

.catalog-card__body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.catalog-card__price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.catalog-card__price {
    color: #22c55e;
    font-size: 16px;
    font-weight: 700;
}

.catalog-card__price-retail {
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    font-weight: 400;
    text-decoration: line-through;
}

.catalog-card__name {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.catalog-card__hint {
    color: rgba(255, 255, 255, 0.35);
    font-size: 11px;
    margin-top: 2px;
}


/* ─── Карточка товара: форма персонализации ──────────────────── */

.pf-page {
    width: 100%;
    max-width: 100%;
}

.pf-product-layout {
    display: grid;
    grid-template-columns: minmax(220px, 580px) minmax(260px, 1fr) minmax(260px, 360px);
    gap: 12px;
    align-items: start;
}

.pf-card-block {
    background: rgba(255, 255, 255, 0.04);
    border: 0px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 12px;
}

.pf-card-block--media {
    background: transparent;
    border: 0;
    padding: 0;
}

.pf-card-block--fields {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pf-card-block--buy {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pf-buy-group {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pf-buy-group .pf-card-block {
    background: transparent;
    border: none;
    padding: 0;
}

.pf-buy-group .pf-specs-block {
    margin-top: 0;
}

/* Обёртка середины формы: сохраняет прежний gap между блоками .pf-buy-group. */
.pf-buy-scroll {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Десктоп (3 колонки), только shrink-карточка: правый сайдбар не выше фото,
   цена сверху и кнопки снизу закреплены, середина (.pf-buy-scroll) скроллится
   отдельно. --pf-buy-h выставляет скрипт в product_custom_detail_5.html. */
@media (min-width: 1101px) {
    .pf-page--media-shrink .pf-product-layout__buy {
        position: sticky;
        top: 92px;
        display: flex;
        flex-direction: column;
        max-height: var(--pf-buy-h, calc(100vh - 104px));
    }

    .pf-page--media-shrink .pf-product-layout__buy .pf-form,
    .pf-page--media-shrink .pf-product-layout__buy .pf-buy-group {
        min-height: 0;
        max-height: 100%;
    }

    .pf-page--media-shrink .pf-product-layout__buy .pf-form {
        flex: 0 1 auto;
    }

    .pf-page--media-shrink .pf-buy-group > * {
        flex-shrink: 0;
    }

    .pf-page--media-shrink .pf-buy-group > .pf-buy-scroll {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .pf-page--media-shrink .pf-buy-scroll > * {
        flex-shrink: 0;
    }
}

.pf-media-layout {
    display: grid;
    grid-template-columns: minmax(54px, 74px) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.pf-media-gallery {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pf-media-thumb {
    width: 100%;
    max-width: 84px;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.pf-media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.pf-media-thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.45);
    font-size: 16px;
}

.pf-media-main {
    width: 100%;
    aspect-ratio: 3 / 4;
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pf-media-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Спиннер «макет рисуется»: класс is-rendering ставится скриптом на карточке товара,
   пока превью-картинка внутри догружается. Эталон — styleguide.html («Спиннер загрузки превью»). */
.is-rendering::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 2;
}

.is-rendering::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    box-sizing: border-box;
    border: 3px solid rgba(128, 128, 128, 0.25);
    border-top-color: rgba(110, 110, 110, 1);
    border-radius: 50%;
    animation: pf-render-spin 0.8s linear infinite;
    z-index: 3;
}

.pf-media-thumb.is-rendering::before {
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border-width: 2px;
}

@keyframes pf-render-spin {
    to { transform: rotate(360deg); }
}

.pf-media-placeholder {
    color: rgba(25, 25, 25, 0.5);
    font-size: 13px;
    text-align: center;
    padding: 12px;
}

.pf-media-gallery-placeholder {
    width: 100%;
    max-width: 84px;
    aspect-ratio: 3 / 4;
    border: 1px dashed rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.45);
    font-size: 16px;
}

.pf-rating-block {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 20px;
}

.pf-rating-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.58);
    min-height: 20px;
}

.pf-rating-icon {
    width: 16px;
    height: 16px;
    line-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pf-rating-icon svg {
    width: 16px;
    height: 16px;
}

.pf-rating-icon--star {
    color: rgba(255, 194, 46, 0.95);
}

.pf-rating-icon--question {
    color: rgba(255, 255, 255, 0.38);
}

.pf-rating-text {
    font-size: 14px;
    line-height: 1.3;
}

.pf-specs-block {
    margin-top: 20px;
}

.pf-specs-panel {
    margin-top: 12px;
}

.pf-specs-wrapper {
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-left: none;
    border-radius: 0;
    overflow: hidden;
}

.pf-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.pf-specs-table tr + tr {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pf-specs-key,
.pf-specs-value {
    padding: 5px 0;
    vertical-align: middle;
    font-size: 13px;
    line-height: 1.35;
}

.pf-specs-key {
    width: 52%;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    padding-left: 0px;
    text-align: left;
}

.pf-specs-value {
    color: rgba(255, 255, 255, 0.88);
    padding-right: 0px;
}

.pf-specs-copy-btn {
    border: none;
    background: transparent;
    color: inherit;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: inherit;
    cursor: pointer;
}

.pf-specs-copy-icon {
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.38);
    display: inline-flex;
}

.pf-specs-copy-icon svg {
    width: 100%;
    height: 100%;
}

.pf-specs-header-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 12px;
}

.pf-specs-header-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    text-align: left;
}

.pf-specs-header-action {
    justify-self: end;
}

.pf-advanced-toggle > summary {
    cursor: pointer;
    list-style: none;
}

.pf-advanced-toggle > summary::-webkit-details-marker {
    display: none;
}

.pf-advanced-toggle__chevron {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.2s ease;
}

.pf-advanced-toggle[open] .pf-advanced-toggle__chevron {
    transform: rotate(180deg);
}

.pf-specs-detail-btn {
    margin-top: 0;
    border: 0px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.88);
    border-radius: 12px;
    min-height: 28px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    align-self: flex-start;
    width: fit-content;
}

/* Расширенные настройки JBNC: переключатель режима под заголовком + иконка-подсказка.
   Пилюля задана явно: var(--radius-pill) в :root не определён. */
.pf-adv-switch__row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.pf-adv-switch .orders-view-toggle,
.pf-adv-switch .orders-view-toggle__btn {
    border-radius: 999px;
}

.pf-adv-help-btn {
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: none;
    color: rgba(255, 255, 255, 0.58);
    line-height: 0;
    cursor: pointer;
    flex: 0 0 auto;
}

.pf-adv-help-btn:hover {
    color: rgba(255, 255, 255, 0.92);
}

.pf-adv-help-btn svg {
    width: 24px;
    height: 24px;
}

/* Таблица размеров — модальное окно (<dialog>). display только под [open]:
   иначе он перебивает UA display:none у закрытого dialog (тот же приём,
   что и у dialog.popup[open], см. выше). */
.pf-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    border: none;
    padding: 0;
    /* У <dialog> (в отличие от div) есть непрозрачный UA-фон — без сброса
       он перекрывает страницу под затемнением сплошной заливкой. */
    background: none;
}
.pf-modal::backdrop {
    background: transparent;
}
dialog.pf-modal[open] {
    /* UA-стиль dialog:modal задаёт width/height: fit-content и margin: auto
       вместо растягивания на весь экран (в отличие от обычного div) — без
       явного сброса контейнер сжимался бы до размера .pf-modal__window. */
    width: 100%;
    height: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pf-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}
.pf-modal__window {
    position: relative;
    background: #1e1e1e;
    border-radius: 16px;
    max-width: 720px;
    width: calc(100% - 32px);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}
.pf-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}
.pf-modal__title {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
}
.pf-modal__close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.15s;
}
.pf-modal__close:hover {
    color: rgba(255, 255, 255, 0.9);
}
.pf-modal__body {
    overflow-y: auto;
    padding: 20px 24px 24px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.5;
}
.pf-modal__body table {
    width: 100%;
    border-collapse: collapse;
}
.pf-modal__body th,
.pf-modal__body td {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}
.pf-modal__body th {
    background: rgba(255, 255, 255, 0.07);
    font-weight: 600;
}
@media (max-width: 480px) {
    .pf-modal__window {
        border-radius: 12px;
        max-height: 90vh;
    }
    .pf-modal__header {
        padding: 14px 16px 12px;
    }
    .pf-modal__body {
        padding: 16px;
    }
}

.pf-print-files {
    margin-top: 20px;
}

.pf-print-files__body {
    margin-top: 0px;
}

.pf-print-files__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.pf-print-files__item {
    margin: 0;
}

.pf-print-files__link {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pf-print-files__empty {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.pf-brand-block {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 0px solid #e8e8e8;
    border-radius: 12px;
    margin-top: 20px;
}

.pf-brand-logo {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: #f3f4f6;
    display: grid;
    place-items: center;
}

.pf-brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    padding: 2px;
    box-sizing: border-box;
}

.pf-brand-logo-placeholder {
    font-size: 10px;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: 0.06em;
}

.pf-brand-meta {
    min-width: 0;
}

.pf-brand-name {
    margin: 0 0 4px;
    font-size: 16px;
    line-height: 1.2;
}

.pf-brand-original {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    line-height: 1.2;
}

.pf-brand-check {
    width: 18px;
    height: 18px;
    color: #22c55e;
    display: inline-flex;
}

.pf-title {
    font-size: 24px;
}

.pf-image {
    margin-bottom: 16px;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pf-image img {
    max-width: 100%;
    max-height: 360px;
    object-fit: contain;
}

.pf-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 0px;
}

.pf-price {
    color: #22c55e;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 0;
}

.pf-price-retail {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 400;
    text-decoration: line-through;
}

.pf-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

/* Поле "Персона" — замещает поля имени/фамилии/типа в форме персонализации,
   когда товар открыт из персонального каталога (?person=). Показывает факт
   привязки вместо текста, чтобы значения из Person нельзя было разойтись с
   тем, что уйдёт в форму (см. docs/persons/persons.md) — кнопка "сбросить"
   снимает привязку и возвращает обычные редактируемые поля. Визуально
   повторяет .pf-file-custom (кнопка "Изменить" у загруженного файла). */
.pf-person-field {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    background-color: rgba(25, 25, 25, 1);
    border: 1px solid rgba(25, 25, 25, 1);
    border-radius: var(--radius-lg);
    padding: 22px 12px 8px;
}

.pf-person-field__label {
    position: absolute;
    left: 12px;
    top: 8px;
    font-size: 11px;
    line-height: 1.25;
    color: var(--color-text-on-dark-secondary);
    pointer-events: none;
}

.pf-person-field__value {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pf-person-field__clear {
    flex: 0 0 auto;
    background-color: var(--color-white-alpha-08);
    color: var(--color-text-on-dark-primary);
    border: none;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12px;
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.pf-person-field__clear:hover {
    background-color: var(--color-white-alpha-15);
}

.pf-message {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 12px;
}

.pf-message--success {
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: rgba(100, 220, 130, 0.9);
}

.pf-message--error {
    background: rgba(200, 50, 50, 0.15);
    border: 1px solid rgba(200, 50, 50, 0.3);
    color: rgba(255, 100, 100, 0.9);
}

/* Плавающее уведомление о фоновом процессе (например, генерация PDF) */
.pf-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 240px;
    max-width: 320px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #1e1e1e;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.pf-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.pf-toast__text {
    font-size: 13px;
    color: var(--color-text-on-dark-primary);
}

.pf-toast--error .pf-toast__text {
    color: rgba(255, 100, 100, 0.9);
}

.pf-toast__progress {
    height: 4px;
    border-radius: 2px;
    background: var(--color-text-on-dark-dim);
    overflow: hidden;
    position: relative;
    display: none;
}

.pf-toast--loading .pf-toast__progress {
    display: block;
}

.pf-toast__progress::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -40%;
    width: 40%;
    border-radius: 2px;
    background: var(--color-accent-primary);
    animation: pf-toast-progress-slide 1.1s ease-in-out infinite;
}

@keyframes pf-toast-progress-slide {
    0% { left: -40%; }
    100% { left: 100%; }
}

/* ─── Форма ─────────────────────────────────────────────────── */

.pf-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pf-imprint {
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pf-size-imprint {
    border: none;
    padding: 0;
    margin: 12px 0 0 0;
}

.pf-color-imprint {
    border: none;
    padding: 0;
    margin: 0;
}

.pf-patch-size-imprint {
    border: none;
    padding: 0;
    margin: 0;
}

.pf-imprint__legend {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 0 8px;
    border-top: 1px solid #464646;
    width: 100%;
    display: block;
}

.pf-imprint__legend--first {
    border-top: none;
}

.pf-block {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* A block whose only fields are readonly (hidden via [hidden] in field.html)
   still counts as a rendered flex item in .pf-imprint even at 0 height —
   its share of the parent's own gap remained, showing as blank space.
   Collapsing the block itself removes it from that layout entirely. */
.pf-block:not(:has(> :not([hidden]))) {
    display: none;
}

.pf-block__title {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ─── Поля формы ────────────────────────────────────────────── */

.pf-field {
    margin-bottom: 0;
}

.pf-field + .pf-field {
    margin-top: 8px;
}

.pf-field--error .form-input {
    border-color: rgba(200, 50, 50, 0.6);
}

.pf-required {
    color: #f1117e;
    margin-left: 2px;
}

.pf-error {
    display: block;
    color: rgba(255, 100, 100, 0.9);
    font-size: 11px;
    margin-top: 3px;
}

.pf-help {
    display: block;
    color: rgba(255, 255, 255, 0.35);
    font-size: 11px;
    margin-top: 3px;
}

.pf-field-preview {
    max-width: 80px;
    max-height: 80px;
    border-radius: 6px;
    margin-bottom: 6px;
    display: block;
}

.form-input--readonly {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ─── CSS-only radio-варианты (без JavaScript) ──────────────── */

.pf-variant-group {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Скрываем нативные radio-кнопки */
.pf-variant-group > input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Лейбл варианта */
.pf-variant-group > label {
    display: block;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    transition: background 0.15s;
}

.pf-variant-group > label::before {
    content: '○  ';
}

.pf-variant-group > label:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Выбранный вариант */
.pf-variant-group > input[type="radio"]:checked + label {
    background: rgba(0, 123, 255, 0.1);
    color: #fff;
}

.pf-variant-group > input[type="radio"]:checked + label::before {
    content: '●  ';
}

/* Поля вариантов скрыты по умолчанию. display переключается инлайн через JS
   (showPanel() в product_custom_detail_5.html) между 'none' и 'flex' —
   тот же паттерн отступа между полями, что и у .pf-block. */
.pf-variant-fields {
    display: none;
    flex-direction: column;
    gap: 14px;
    padding: 0;
}

/* Показываем поля выбранного варианта */
.pf-variant-group > input[type="radio"]:checked + label + .pf-variant-fields {
    display: block;
}

/* ─── Выбор размера ─────────────────────────────────────────── */

.pf-size-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pf-size-option {
    cursor: pointer;
}

.pf-size-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pf-size-option span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.15s;
}

.pf-size-option span:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.pf-size-option input[type="radio"]:checked + span {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

.pf-article {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    margin-top: 12px;
}

/* ─── Кнопка отправки ───────────────────────────────────────── */

.pf-submit {
    margin-top: 0px;
}

/* Кнопка «Добавить в корзину» + степпер количества (появляется после добавления) */
.pf-buy-cart-control {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.pf-buy-cart-control .pf-submit {
    flex: 1 1 auto;
}

.pf-buy-qty-stepper {
    flex: 0 0 auto;
    height: 44px;
    border-radius: var(--radius-lg);
}

.pf-buy-qty-stepper[hidden] {
    display: none;
}

.pf-buy-qty-stepper .cart-list__qty-btn {
    height: 100%;
    align-self: stretch;
}

.pf-buy-qty-value {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    align-self: stretch;
}

.pf-submit--link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-align: center;
}

.pf-favorite-submit {
    display: none;
    margin-top: 10px;
}

@media (max-width: 1100px) {
    .pf-product-layout {
        grid-template-columns: 1fr;
    }

    .pf-product-layout__buy {
        order: 2;
    }

    .pf-product-layout__info {
        order: 3;
    }

    /* .pf-page--media-shrink only: the shrink-on-scroll product card
       (product_custom_detail.html). CSS Grid gives each item its own
       auto-sized row as the containing block for position: sticky, so a
       sticky child can never stick past its own (content-height) cell. Flex
       keeps the whole column as the containing block, letting the media
       block stay pinned while the taller form content below it scrolls.
       The plain product card (product_simple_detail.html) shares this same
       markup/classes but has no such script, so it keeps the grid layout
       above and scrolls normally. */
    .pf-page--media-shrink .pf-product-layout {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 768px) {
    .pf-favorite-submit {
        display: flex;
    }
}

/* Overlay back/menu buttons for the shrink-on-scroll product card only
   exist visually at the ≤600px breakpoint below (where the header is
   hidden and the image effect is active) — hidden by default so it
   doesn't render as an unstyled block above the product layout on
   desktop/tablet. */
.pf-media-overlay-nav {
    display: none;
}

@media (max-width: 600px) {
    .pf-media-layout {
        grid-template-columns: 1fr;
    }

    .pf-media-gallery {
        display: none;
    }

    /* Everything below is .pf-page--media-shrink only (the shrink-on-scroll
       product card) — it depends on the scroll script in
       product_custom_detail.html to size/position these elements. The plain
       product card (product_simple_detail.html) shares the same markup and
       classes but has no such script, so it must not get position: sticky /
       pointer-events: none here or the image would just stick at a guessed
       offset instead of scrolling normally. */

    /* .pf-card-block--media is the element that's actually position: sticky.
       It's a direct flex child of .pf-product-layout (a tall column spanning
       media + the whole form below), so it has room to stay stuck for the
       entire scroll, unlike its child .pf-media-layout (a CSS Grid, whose
       auto-sized cell would give a nested sticky child no such room).
       Its own height is fixed by JS to the media's original, unscaled size
       and never changes again — that reserves constant space in the flow so
       the form content below is driven by plain scrolling and tracks the
       shrinking image's bottom edge in lockstep, instead of the content
       racing ahead because the reserved space was shrinking too. */
    .pf-page--media-shrink .pf-card-block--media {
        position: sticky;
        top: var(--pf-media-pin-top, 92px);
        z-index: 10;
        /* The wrapper's box stays at the full, unscaled height (see above),
           but once the visible image shrinks, the leftover space below it is
           just empty — without this, that invisible area still sits on top
           of the form (z-index) and swallows clicks meant for it. */
        pointer-events: none;
    }

    .pf-page--media-shrink .pf-media-main {
        pointer-events: auto;
        /* Needs its own stacking position + z-index: .pf-media-backdrop is
           position: absolute, and positioned elements always paint above
           normal-flow ones regardless of DOM order — without this the
           backdrop would cover the image instead of sitting behind it. */
        position: relative;
        z-index: 1;
    }

    .pf-page--media-shrink .pf-media-main--scaled {
        width: auto;
        margin: 0 auto;
    }

    /* Full-width backdrop behind the (narrow, centered) shrinking image.
       Matches the page background so it reads as empty space, not a new
       visible bar — its only job is to mask scrolled-up form content across
       the full width once it slides in behind the pinned, shrunk image,
       since the image itself is too narrow to cover that on its own. Height
       is kept in sync with .pf-media-main by the scroll script, oversized by
       12px on top and bottom (top: -12px here + the matching +24px in the
       script) so it also covers the header-to-image gap, not just the
       image's own box. */
    .pf-page--media-shrink .pf-media-backdrop {
        position: absolute;
        top: -12px;
        left: 0;
        width: 100%;
        background: rgba(25, 25, 25, 1);
    }

    /* Hides the site header only on this page (shrink-on-scroll product
       card), only at this breakpoint — .pf-media-overlay-nav below takes
       over the back/menu controls, placed over the image instead. */
    body:has(.pf-page--media-shrink) .header {
        display: none;
    }

    /* Fixed (not sticky/absolute) so the controls neither move nor resize
       as .pf-media-main shrinks and .pf-card-block--media/.pf-media-backdrop
       shift beneath them on scroll. z-index above the backdrop (10) and the
       image (1) keeps them clickable throughout. */
    .pf-page--media-shrink .pf-media-overlay-nav {
        position: fixed;
        top: 12px;
        left: 12px;
        right: 12px;
        z-index: 20;
        display: flex;
        justify-content: space-between;
        pointer-events: none;
    }

    .pf-page--media-shrink .pf-media-overlay-btn {
        pointer-events: auto;
        width: 44px;
        height: 44px;
        padding: 0;
        margin: 0;
        border: none;
        border-radius: 50%;
        background-color: var(--color-overlay-scrim-strong);
        background-repeat: no-repeat;
        background-position: center;
        background-size: 22px 22px;
        cursor: pointer;
        list-style: none;
    }

    .pf-page--media-shrink .pf-media-overlay-btn::-webkit-details-marker {
        display: none;
    }

    .pf-page--media-shrink .pf-media-overlay-btn--back {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2f2f2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E");
    }

    .pf-page--media-shrink .pf-media-overlay-btn--menu {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2f2f2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='7' x2='20' y2='7'/%3E%3Cline x1='4' y1='12' x2='20' y2='12'/%3E%3Cline x1='4' y1='17' x2='20' y2='17'/%3E%3C/svg%3E");
    }

    /* position: fixed rather than anchored (top: 100%) to the 44px-wide
       button, so the panel can span a comfortable width instead of the
       button's own. */
    .pf-page--media-shrink .pf-media-overlay-menu-panel {
        position: fixed;
        top: 64px;
        left: 12px;
        right: 12px;
        margin: 0;
        padding: 8px 0 16px;
        background: rgba(37, 37, 37, 0.98);
        border-radius: 12px;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
        z-index: 20;
        max-height: min(70vh, 420px);
        overflow-y: auto;
        box-sizing: border-box;
        pointer-events: auto;
    }
}

/* Chrome's scroll anchoring tries to compensate scroll position when
   content above the viewport resizes — since the shrink-on-scroll product
   card's JS resizes the media block on every scroll tick, it kept fighting
   the user's own scroll and snapping the page back toward the top. */
body:has(.pf-page--media-shrink) {
    overflow-anchor: none;
}

/* ─── Управление каталогом клуба ─────────────────────────────── */

.manage-catalog-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.manage-catalog-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

.manage-catalog-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.manage-catalog-item--hidden {
    opacity: 0.5;
}

.manage-catalog-item input[type="checkbox"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: #007bff;
}

.manage-catalog-item__name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.manage-catalog-item__badge {
    flex-shrink: 0;
    font-size: 14px;
}

.manage-catalog-item__hint {
    flex-shrink: 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
}

/* Группировка фильтров */
.catalog-filters-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    margin-top: 15px;
}

.catalog-filters-group h3 {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Бейджи типов товаров */
.catalog-card__badge {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
    font-weight: 500;
}

/* Редактор макетов (designer) */
.designer-layout {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.designer-canvas-area {
    flex: 1;
    min-width: 300px;
}
.designer-preview-wrap {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    display: inline-block;
}
.designer-preview-img {
    max-width: 100%;
    height: auto;
    display: block;
}
.designer-preview-placeholder {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 60px 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}
.designer-block-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
    position: relative;
}
.designer-block-card-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 12px;
    width: 100%;
    margin-bottom: 8px;
}
.designer-block-card-header-actions {
    display: flex;
    justify-self: end;
}
.designer-block-remove-btn {
    position: static;
    border: none;
    background: #6c757d;
    color: #ffffff;
    border-radius: 4px;
    padding: 4px 10px;
    line-height: 1;
    cursor: pointer;
}
.designer-block-remove-btn:hover {
    background: #5a6268;
}
.designer-template-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.designer-template-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.designer-template-list li a {
    color: rgba(100, 180, 255, 1);
    text-decoration: none;
}
.designer-template-list li a:hover {
    text-decoration: underline;
}
.form-row {
    display: flex;
    gap: 12px;
}
.form-row .half {
    flex: 1;
}

/* --- Импersonация --- */
.impersonation-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 16px;
    background: #fff3cd;
    border-bottom: 2px solid #ffc107;
    font-size: 13px;
    color: #664d03;
    flex-wrap: wrap;
}
.impersonation-banner__text {
    flex: 1;
    min-width: 0;
}
.impersonation-banner__form {
    flex-shrink: 0;
}
.impersonation-banner__btn {
    padding: 4px 14px;
    background: #ffc107;
    color: #000;
    border: none;
    border-radius: var(--radius-sm, 4px);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.impersonation-banner__btn:hover {
    background: #e0a800;
}

/* --- Фото отгрузки (ЛК продавца) --- */
.seller-shipment-photos {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.seller-shipment-photos__item {
    flex: 0 0 auto;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.seller-shipment-photos__link {
    display: block;
    border-radius: var(--radius-sm, 4px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.seller-shipment-photos__thumb {
    display: block;
    width: 100%;
    height: auto;
    max-height: 160px;
    object-fit: cover;
    vertical-align: middle;
}
.seller-shipment-photos__meta {
    font-size: 0.8rem;
    opacity: 0.85;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    word-break: break-all;
}
.seller-shipment-photos__delete-btn {
    font-size: 0.85rem;
    padding: 0.35rem 0.65rem;
}
.seller-shipment-photos__label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}
.seller-shipment-photos__input {
    max-width: 100%;
}

/* --- Каталог категорий (как плитка карточек) --- */
.category-catalog {
    padding-bottom: 1.25rem;
}
.category-catalog__title {
    margin: 0 0 1rem;
    font-size: 2rem;
    line-height: 1.15;
    font-weight: 700;
    color: #1f2230;
}
.category-catalog__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.9rem;
}
.category-catalog__card {
    text-decoration: none;
    color: #ffffff;
}
.category-catalog__media {
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    background: #252525;
    border: 0px solid #ebedf3;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.category-catalog__name-overlay {
    display: none;
}
.category-catalog__emoji {
    font-size: 3rem;
    line-height: 1;
}
.category-catalog__name {
    margin-top: 0.55rem;
    font-size: 0.95rem;
    line-height: 1.3;
    text-align: center;
    min-height: 2.4em;
}
.category-catalog__card:hover .category-catalog__media {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.category-catalog__card:active .category-catalog__media {
    transform: scale(0.95);
    background-color: #333333;
    transition: transform 0.1s ease, background-color 0.1s ease;
}
@media (max-width: 1200px) {
    .category-catalog__grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}
@media (max-width: 992px) {
    .category-catalog__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (max-width: 768px) {
    .category-catalog__title {
        font-size: 1.65rem;
    }
    .category-catalog__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
    .category-catalog__media {
        border-radius: 12px;
        padding: 10px;
        overflow: hidden;
        align-items: flex-start;
        justify-content: flex-start;
        flex-direction: column;
    }
    .category-catalog__emoji {
        font-size: 2.25rem;
    }
    .category-catalog__name-overlay {
        display: block;
        position: static;
        margin: 0;
        font-size: 0.82rem;
        line-height: 1.2;
        font-weight: 600;
        color: #ffffff;
        text-align: left;
    }
    .category-catalog__media .category-catalog__emoji {
        margin-top: 0px;
        font-size: 4.2rem;
        transform: translateX(18px) translateY(18px);
    }
    .category-catalog__name {
        display: none;
    }
}
@media (max-width: 520px) {
    .category-catalog__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* --- Каталог: список подкатегорий (строка: превью + название) --- */
.category-catalog--list {
    padding-top: 0;
}
.category-catalog__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.category-catalog__list-item {
    margin: 0;
    border-bottom: 0px solid #e8eaef;
}
.category-catalog__list-item:last-child {
    border-bottom: none;
}
.category-catalog__row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 3.25rem;
    padding: 0 0;
    text-decoration: none;
    color: #ffffff;
    transition: background-color 0.15s ease;
}
.category-catalog__row:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}
.category-catalog__row:active {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transform: scale(0.98);
    transition: background-color 0.08s ease, transform 0.08s ease;
}
.category-catalog__thumb {
    flex: 0 0 auto;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 10px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.category-catalog__thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.category-catalog__thumb-img--contain {
    width: 90%;
    height: 90%;
    object-fit: contain;
}
.category-catalog__thumb-emoji {
    font-size: 1.65rem;
    line-height: 1;
}
.category-catalog__row-text {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.category-catalog__row-title {
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
}
.category-catalog__row-subtitle {
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 768px) {
    .category-catalog__row {
        min-height: 3.5rem;
        padding: 0 0;
        gap: 0.75rem;
    }
    .category-catalog__thumb {
        width: 3.1rem;
        height: 3.1rem;
        border-radius: 9px;
    }
    .category-catalog__thumb-emoji {
        font-size: 1.5rem;
    }
    .category-catalog__row-title {
        font-size: 0.95rem;
    }
}

/* ── Buyer type toggles (profile edit) ─────────────────────── */
.buyer-type-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.buyer-type-toggles__break {
    flex-basis: 100%;
    height: 0;
}

.buyer-type-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 20px;
    border: 1.5px solid rgba(255,255,255,0.2);
    cursor: pointer;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    user-select: none;
    white-space: nowrap;
}

.buyer-type-toggle input[type="checkbox"] {
    display: none;
}

span.buyer-type-toggle {
    cursor: default;
}

.buyer-type-toggle--sm {
    padding: 3px 10px;
    font-size: 12px;
}

/* Hover на невыбранной */
.buyer-type-toggle:not(:has(input:checked)):hover {
    border-color: rgba(255,255,255,0.5);
    color: rgba(255,255,255,0.9);
}

/* Новая отметка, обычный тип → зелёный */
.buyer-type-toggle[data-status=""]:not([data-moderated]):has(input:checked),
/* Сохранённый active или approved → зелёный */
.buyer-type-toggle[data-status="active"]:has(input:checked),
.buyer-type-toggle[data-status="approved"]:has(input:checked),
/* Span-пилюли сайдбара (нет чекбокса) */
span.buyer-type-toggle[data-status="active"],
span.buyer-type-toggle[data-status="approved"] {
    border-color: #3cc07a;
    background: rgba(60,192,122,0.12);
    color: #5dd89a;
}

/* Новая отметка, модерируемый тип → жёлтый */
.buyer-type-toggle[data-status=""][data-moderated]:has(input:checked),
/* Сохранённый pending → жёлтый */
.buyer-type-toggle[data-status="pending"]:has(input:checked),
span.buyer-type-toggle[data-status="pending"] {
    border-color: #f0a500;
    background: rgba(240,165,0,0.12);
    color: #f0c040;
}

/* Отклонён */
.buyer-type-toggle[data-status="rejected"]:has(input:checked),
span.buyer-type-toggle[data-status="rejected"] {
    border-color: #e05555;
    background: rgba(224,85,85,0.12);
    color: #f07070;
}

.buyer-type-toggle__icon {
    flex-shrink: 0;
    opacity: 0.9;
}

.buyer-type-toggle__icon--pending {
    display: none;
}

.buyer-type-toggle[data-status=""]:has(input:checked) .buyer-type-toggle__icon--pending,
.buyer-type-toggle[data-status="pending"]:has(input:checked) .buyer-type-toggle__icon--pending,
span.buyer-type-toggle[data-status="pending"] .buyer-type-toggle__icon--pending {
    display: inline;
}

/* Cookie consent banner */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.14);
    padding: 16px 20px;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cookie-banner p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #333;
}
.cookie-banner__btn {
    align-self: flex-start;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}
.cookie-banner__btn:hover {
    background: #333;
}

@media (max-width: 768px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: calc(var(--mobile-bottom-nav-total-height) + 8px);
        max-width: none;
    }
}

/* ─── Карточка товара v2 (Stories: фото + шторка) ──────────────
   В отличие от product_custom_detail.html, фото не завязано на скролл
   страницы вообще — компактное состояние переключается дискретно
   (.pf2-media--compact), одним классом в момент открытия/закрытия
   шторки, а не пересчитывается непрерывно по window.scrollY. Шторка —
   переиспользованный без изменений .popup/.popup__sheet-handle
   (см. выше в этом файле) + static/js/favorites_dialog_sheet_drag.js. */

@media (max-width: 600px) {
    body:has(.pf2-page) .header {
        display: none;
    }

    body:has(.pf2-page) .client-breadcrumbs-row {
        display: none;
    }

    /* Price + product info block, moved out of the sheet — plain normal-
       flow content between the photo and the sheet, scrolls with the page
       like the photo does while the sheet is closed. */
    .pf2-info {
        margin-top: 0;
        margin-bottom: 92px;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    /* Price card sits right after the photo — flush against it (no outer
       gap, square top corners) instead of looking like a separate floating
       card. Only the outer spacing (.pf2-info's own margin-top, above) and
       top corner rounding change — the card's own padding stays exactly as
       the base .pf-card-block rule sets it, so its height is unaffected. */
    .pf2-info > .pf-card-block--buy:first-child {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        /* Same breakout technique as .pf2-media: negative margins cancel
           out .main-content's own 12px left/right padding so this block's
           outer edge spans the full screen width, like the photo above it. */
        margin-left: -12px;
        margin-right: -12px;
    }

    /* Product name is already shown as the sheet's own peek title
       (.popup__title) — showing it again here (product_info_block.html's
       <h1 class="pf-title">) duplicated it. Scoped to .pf2-info so
       product_info_block.html's own title stays untouched everywhere else
       it's reused. */
    .pf2-info .pf-title {
        display: none;
    }

    /* While the sheet is closed, the photo is plain normal-flow content —
       it scrolls together with the price/info block below it, like an
       ordinary product page. Negative margins break it out of
       .main-content's own 12px left/right padding so it's still flush with
       the real viewport edges without needing position: fixed for this. */
    .pf2-media {
        margin: 0 -12px;
    }

    /* Only once the sheet opens does the "special" pinned/compact behavior
       kick in: fixed to the real viewport (not the padded page flow), plus
       an opaque background matching the page background (body's
       rgba(25, 25, 25, 1)) so it fully curtains over whatever the page had
       scrolled to underneath — otherwise that scrolled content would peek
       through on either side of the now-narrow 150px photo. top:0 + bottom:0
       (not just a height matching the photo) stretches this curtain the
       full screen height, not just behind the photo itself — the sheet
       (higher z-index) then sits on top of the lower part of it, so there's
       no gap anywhere content underneath could peek through. */
    .pf2-media.pf2-media--compact {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 5;
        margin: 0;
        background: rgba(25, 25, 25, 1);
    }

    /* Compact state shrinks the whole photo box to a fixed 200x150 (3:4,
       same ratio as everywhere else on the site), centered — both
       dimensions set explicitly rather than relying on aspect-ratio to
       auto-compute width from height, which didn't size it correctly.
       Selector chains both classes on .pf2-media itself (higher specificity
       than plain ".pf2-media .pf-media-main" below) — same specificity +
       later source order was letting that rule's width:100% win instead. */
    .pf2-media.pf2-media--compact .pf-media-main {
        width: 150px;
        height: 200px;
        margin: 0 auto;
        border-radius: 12px;
    }

    /* Переиспользуем разметку product_media_block.html как есть (та же,
       что у обычной и старой custom-карточки), но здесь галерея миниатюр
       скрыта — виден только .pf-media-main на всю ширину экрана. */
    .pf2-media .pf-media-gallery {
        display: none;
    }

    .pf2-media .pf-media-layout,
    .pf2-media .pf-card-block--media {
        display: block;
    }

    /* aspect-ratio НЕ переопределяется — используется дефолт 3/4 из базового
       правила .pf-media-main (styles.css:7759), чтобы фото сохраняло свои
       пропорции, а не растягивалось на всю высоту экрана. */
    .pf2-media .pf-media-main {
        width: 100%;
        margin: 0;
        border-radius: 0;
    }

    .pf2-media .pf-media-main img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .pf2-media-overlay-nav {
        position: fixed;
        top: 12px;
        left: 12px;
        right: 12px;
        z-index: 20;
        display: flex;
        justify-content: space-between;
        pointer-events: none;
    }

    .pf2-media-overlay-btn {
        pointer-events: auto;
        width: 44px;
        height: 44px;
        padding: 0;
        margin: 0;
        border: none;
        border-radius: 50%;
        background-color: var(--color-overlay-scrim-strong);
        background-repeat: no-repeat;
        background-position: center;
        background-size: 22px 22px;
        cursor: pointer;
        list-style: none;
    }

    .pf2-media-overlay-btn::-webkit-details-marker {
        display: none;
    }

    .pf2-media-overlay-btn--back {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2f2f2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E");
    }

    .pf2-media-overlay-btn--favorite {
        display: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2f2f2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78l1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E");
    }

    /* Always rendered (not a <dialog>/showModal) — collapsed by default,
       showing just the handle + "Создать макет" button (or, once every
       required field is filled in, the "Изменить макет"/"Добавить в
       корзину" pair — see .pf2-sheet--ready below) peeking above the fold;
       max-height + overflow:hidden clips the rest of the form underneath.
       Tapping the peeking area (bound in JS) expands it.
       80px = handle's own height (24px: box-sizing:border-box, min-height:
       24px, static/style.css:5185) + the button row (44px, height-locked
       above) + its own 12px bottom margin — sized exactly to that sum so
       nothing from .popup__form (whose header is hidden, but other
       content like .pf-buy-group isn't) peeks through below the button.
       bottom: the persistent .mobile-bottom-nav (z-index: 500, same as the
       expanded-state fix at padding-bottom above) sits at bottom: 0 too and
       paints over anything there with a lower z-index — at only 80px tall,
       the whole collapsed peek was entirely behind it, not just its lower
       edge. Lifting the peek up by the nav's own height clears it entirely;
       the open state (below) resets this back to bottom: 0, since its own
       .popup__form padding-bottom already handles that case by scrolling
       past it instead. */
    .pf2-sheet {
        position: fixed;
        left: 0;
        right: 0;
        bottom: var(--mobile-bottom-nav-total-height);
        z-index: 30;
        border-radius: 24px 24px 0 0;
        max-height: 80px;
        overflow: hidden;
        box-shadow: 0 -6px 28px rgba(0, 0, 0, 0.18);
        transition: max-height 0.3s ease;
        cursor: pointer;
    }

    /* Reserves exactly the compact photo's height (200px, see
       .pf2-media--compact .pf-media-main above) + a 12px gap, instead of a
       flat min(90dvh, 92vh) that ignored the photo and painted over it.
       min-height alongside max-height (both the same value): the box must
       always be exactly this tall — max-height alone would let a short
       form (e.g. no size/color options) leave the sheet shorter than its
       cap, floating with a bigger gap above it than the intended 12px.
       display:flex + .popup__form as the flex-scrolling child (below)
       instead of overflow-y here directly — otherwise .popup__sheet-handle
       scrolled away together with the content instead of staying put, and
       touch scrolling over the sheet was moving the page behind it. */
    .pf2-page--sheet-open .pf2-sheet {
        display: flex;
        flex-direction: column;
        bottom: 0;
        min-height: calc(100dvh - 200px - 12px);
        max-height: calc(100dvh - 200px - 12px);
        cursor: default;
    }

    /* Once the sheet is expanded, the compact photo above it is no longer a
       navigable page — "назад"/"в избранное" sitting on top of it read as
       page-level controls but do nothing useful there (the sheet has its own
       favorite action; closing is tap-outside). Hidden only in this state —
       the collapsed peek (full-size photo) keeps them. */
    .pf2-page--sheet-open .pf2-media-overlay-nav {
        display: none;
    }

    /* The actual scrollable region — everything right after the handle.
       flex: 1 1 auto + min-height: 0 is what lets a flex child scroll
       instead of growing to fit its content (the classic flexbox overflow
       gotcha); same pattern as the shared dialog.popup[open] .popup__form
       rule (static/style.css:5203), which doesn't apply here since this is
       a plain div, not a <dialog>. */
    .pf2-page--sheet-open .pf2-sheet .popup__form {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        /* Without this, once this inner scroll reaches its top/bottom edge,
           the same swipe "chains" into scrolling the page behind it
           instead of stopping — the missing piece copying this pattern
           from the shared dialog.popup[open] .popup__form rule. */
        overscroll-behavior: contain;
        /* .pf2-sheet is pinned to the real viewport's bottom:0, same as the
           persistent .mobile-bottom-nav (z-index: 500, above our z-index:
           30) — so the last chunk of scrolled content coincides with, and
           is painted over by, the nav bar, with no extra scroll room to
           get past it. This padding pushes that much blank space after the
           real content instead, so the actual last content (e.g. the
           submit button) ends up scrollable above the covered zone.
           Reuses the same --mobile-bottom-nav-total-height var the rest of
           the site already uses for this (static/style.css:1787). */
        padding-bottom: calc(var(--mobile-bottom-nav-total-height) + 12px);
    }

    /* Title + favorite/copy-link/close icons row is no longer shown at
       all — replaced by the peek's own CTA button(s) (below) as its
       content, and already hidden separately once expanded (the form
       takes over). Unconditional now, not just for the open state.
       Scoped to the sheet's OWN header (direct child of its own
       .popup__form) — a plain descendant selector also matched the
       .popup__header of unrelated nested <dialog>s rendered inside the
       sheet's form content (e.g. #pf-batch-dialog, "Оформить на группу",
       docs/orders/batch_order.md), hiding their title/[X] too. */
    .pf2-sheet > .popup__form > .popup__header {
        display: none;
    }

    /* The peek's own content: a single CTA. Sibling of .popup__form (not
       inside it), so it's unaffected by that element's own scroll/hide
       rules. Tapping it bubbles up to .pf2-sheet's own click handler (JS),
       same as tapping anywhere else on the collapsed peek — no separate
       listener needed. Hidden once the sheet is expanded, when the form
       itself becomes the visible content instead. */
    .pf2-sheet-order-btn {
        display: block;
        width: calc(100% - 24px);
        margin: 0 12px 12px;
    }

    .pf2-page--sheet-open .pf2-sheet-order-btn {
        display: none;
    }

    /* Alternate peek content once every required field/size is already
       filled in (class toggled in JS) — a pair of buttons instead of the
       single CTA above. Same footprint/margins as .pf2-sheet-order-btn,
       just split into two flex children (pattern reused from
       .my-person-form__actions, static/style.css:2162). Hidden by default;
       shown only in the --ready state, and hidden again once the sheet is
       expanded (the form itself becomes the visible content then). */
    .pf2-sheet-peek-actions {
        display: none;
        width: calc(100% - 24px);
        margin: 0 12px 12px;
        gap: 12px;
    }

    .pf2-sheet--ready .pf2-sheet-order-btn {
        display: none;
    }

    .pf2-sheet--ready .pf2-sheet-peek-actions {
        display: flex;
    }

    .pf2-page--sheet-open .pf2-sheet-peek-actions {
        display: none;
    }

    .pf2-sheet-peek-actions__btn {
        flex: 1 1 0;
    }

    /* Scoped to .pf2-sheet specifically — the shared .popup__form base rule
       (padding: 8px 24px 24px 24px, static/style.css:5227) is used by other
       dialogs (favorites, cart) and stays untouched for them. */
    .pf2-sheet .popup__form {
        padding: 0 12px 12px 12px;
    }

    /* Each section ("Выберите размер", "Выберите цвет", "Заполните данные")
       gets its own card background instead of blending into one shared
       .pf-buy-group surface. Reuses the same look as .pf-card-block
       (background: rgba(255,255,255,0.04), 12px radius/padding) elsewhere
       on this page, rather than un-neutralizing .pf-buy-group .pf-card-block
       {background:transparent} — that override is shared with other pages
       and stays untouched. Scoped to .pf2-sheet only. */
    /* .pf-buy-group's own card look (background/padding/radius) is now
       redundant — each section below already has its own card — leaving
       it would nest a card inside a card. Its flex/gap (not touched here,
       inherited from the shared base rule) still provides the vertical
       spacing between sections, so it stays as the wrapper — just visually
       flattened to transparent, scoped to .pf2-sheet only. */
    .pf2-sheet .pf-buy-group {
        background: transparent;
        padding: 0;
        border-radius: 0;
    }

    .pf2-sheet .pf-specs-block {
        background: rgba(255, 255, 255, 0.04);
        border-radius: 12px;
        padding: 12px;
    }

    /* Hard-pin fields and buttons to exactly 44px — height (not min-height)
       + box-sizing: border-box on both, so padding/content can never push
       either one taller (or, for fields, leave them shorter) than 44px.
       Field padding is reduced from the shared 22/8px (tuned for a taller
       box) to 14/4px — same values already used for this identical
       mismatch in .cart-sidebar__promo-row .form-float__control
       (static/style.css:6032). .pf-specs-detail-btn ("Таблица размеров")
       isn't a .btn — untouched, stays its own separate 28px component.
       Scoped to .pf2-sheet only. */
    .pf2-sheet .form-float__control {
        height: 44px;
        padding: 14px 12px 4px;
        box-sizing: border-box;
    }

    .pf2-sheet .btn {
        height: 44px;
        box-sizing: border-box;
    }

    .pf2-sheet-actions {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    /* Size picker is a plain radio group (name="variant"), not a
       [required] field the shared .form-float--error styling can target —
       its own visual error state, same danger color. */
    .pf2-size-imprint--error {
        border: 1px solid var(--color-danger);
        border-radius: 12px;
        padding: 8px;
    }

    .pf2-validation-summary-list {
        margin: 4px 0 0;
        padding-left: 18px;
    }
}

/* Десктоп (>600px) намеренно не оформляется — вся работа только над
   мобильной версией. Ни одно правило .pf2-* не действует шире 600px. */

/* Тумблер «круг в пилюле» (.sc-switch): серый — выключен, зелёный — включён.
   Используется в «Подписки» профиля; эталон — templates/styleguide/styleguide.html */
.sc-switch-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
}

.sc-switch {
    position: relative;
    width: 44px;
    height: 24px;
    padding: 0;
    border: none;
    border-radius: 12px;
    background: var(--color-neutral-gray);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.sc-switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s ease;
}

.sc-switch[aria-checked="true"] {
    background: #2f9e44;
}

.sc-switch[aria-checked="true"]::after {
    transform: translateX(20px);
}

.sc-switch:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sc-switch-note {
    font-size: 12px;
    line-height: 1.2;
    color: var(--color-text-on-dark-muted);
    text-align: center;
}


/* =============================================================================
   Журнал (/journal/) — templates/journal/*.
   Сетка карточек 3×N без подложки, справа колонка рубрик со счётчиками,
   на мобильном рубрики — горизонтальная лента над списком.
   Эталон — templates/styleguide/styleguide.html («Журнал»).
   ============================================================================= */
.journal-title {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
}

.journal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 32px;
    padding: 12px 12px 0;
    align-items: start;
}

.journal-empty {
    margin: 0;
    color: var(--color-text-on-dark-secondary);
}

/* Рубрики */
.journal-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.journal-nav__link {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 7px 12px;
    border-radius: var(--radius-lg);
    color: var(--color-text-on-dark-primary);
    font-size: 16px;
    line-height: 1.3;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.journal-nav__link:hover {
    background: var(--color-white-alpha-08);
    color: var(--color-text-on-dark-strong);
    text-decoration: none;
}

.journal-nav__link--active,
.journal-nav__link--active:hover {
    background: var(--color-white-alpha-10);
    color: var(--color-text-on-dark-strong);
}

.journal-nav__link--sub {
    margin-left: 12px;
}

.journal-nav__count {
    color: var(--color-text-on-dark-muted);
    font-size: 15px;
}

/* Сетка и карточка статьи */
.journal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 24px;
}

.journal-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.journal-card__link:hover {
    color: inherit;
    text-decoration: none;
}

.journal-card__cover {
    display: block;
    aspect-ratio: 381 / 240;
    overflow: hidden;
    border-radius: var(--radius-10);
    background: var(--color-surface-raised);
}

.journal-card__cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.journal-card__link:hover .journal-card__cover img {
    transform: scale(1.03);
}

.journal-card__title {
    margin: 14px 0 6px;
    padding: 0 4px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-text-on-dark-strong);
    transition: color 0.2s;
}

.journal-card__link:hover .journal-card__title {
    color: var(--color-accent-gold);
}

.journal-card__meta {
    display: flex;
    flex-wrap: wrap;
    padding: 0 4px;
    font-size: 14px;
    color: var(--color-text-on-dark-muted);
}

.journal-card__meta > span + span::before {
    content: "/";
    margin: 0 8px;
    opacity: 0.6;
}

/* Страница статьи */
.journal-article {
    max-width: 760px;
    margin: 0 auto;
    padding: 12px 12px 0;
    text-align: left;
}

.journal-article__category {
    font-size: 14px;
    color: var(--color-accent-primary-soft);
    text-decoration: none;
}

.journal-article__category:hover {
    text-decoration: underline;
}

.journal-article__title {
    margin: 8px 0 12px;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-text-on-dark-strong);
}

.journal-article__meta {
    margin: 0;
    font-size: 14px;
    color: var(--color-text-on-dark-muted);
}

.journal-article__cover {
    display: block;
    width: 100%;
    height: auto;
    margin: 24px 0;
    border-radius: var(--radius-xl);
}

.journal-article__body {
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-text-on-dark-primary);
}

.journal-article__body h2 {
    margin: 36px 0 12px;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text-on-dark-strong);
}

.journal-article__body h3 {
    margin: 28px 0 10px;
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-on-dark-strong);
}

.journal-article__body p {
    margin: 0 0 16px;
}

.journal-article__body ul,
.journal-article__body ol {
    margin: 0 0 16px;
    padding-left: 22px;
}

.journal-article__body li {
    margin-bottom: 6px;
}

.journal-article__body a {
    color: var(--color-accent-primary-soft);
}

.journal-article__body a:hover {
    text-decoration: underline;
}

.journal-article__body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px 0 8px;
    border-radius: var(--radius-xl);
}

.journal-article__body img + p > em {
    font-size: 14px;
    font-style: normal;
    color: var(--color-text-on-dark-muted);
}

.journal-article__body table {
    display: block;
    max-width: 100%;
    margin: 0 0 20px;
    overflow-x: auto;
    border-collapse: collapse;
}

.journal-article__body th,
.journal-article__body td {
    padding: 10px 16px;
    text-align: left;
    white-space: nowrap;
    border-bottom: 1px solid var(--color-border-subtle);
}

.journal-article__body th {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-on-dark-muted);
}

.journal-related {
    margin-top: 48px;
    padding: 0 12px;
    text-align: left;
}

.journal-related__title {
    margin: 0 0 20px;
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text-on-dark-strong);
}

@media (max-width: 1100px) {
    .journal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .journal-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .journal-layout__aside {
        order: -1;
    }

    .journal-nav {
        flex-direction: row;
        gap: 8px;
        margin: 0 -12px;
        padding: 0 12px 4px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .journal-nav::-webkit-scrollbar {
        display: none;
    }

    .journal-nav__link {
        flex-shrink: 0;
        padding: 8px 14px;
        border-radius: var(--radius-5xl);
        background: var(--color-white-alpha-08);
        font-size: 15px;
        white-space: nowrap;
    }

    .journal-nav__link--sub {
        margin-left: 0;
    }
}

@media (max-width: 600px) {
    .journal-title,
    .journal-article__title {
        font-size: 26px;
    }

    .journal-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .journal-article__body {
        font-size: 16px;
    }

    .journal-article__body h2 {
        font-size: 21px;
    }
}
