/* ==========================================================================
           QUICK GUIDE
           ==========================================================================

           Куда обычно смотреть при ручной настройке:
           - :root             -> базовые цвета, тени, glass tokens
           - UI_CONFIG         -> мелкие UI-размеры и визуальные параметры
           - PAGE_DATA         -> весь текстовый и карточный контент страницы
           - CONFIG.objects    -> настройки трёх 3D-механизмов
           - render*()         -> шаблоны секций и карточек
           - getAssemblyFactor -> тайминг сборки при скролле
           - updateScatterTargets -> поведение разлёта и "левитации" деталей

           Если цель — быстро подкрутить конкретное поведение:
           - сделать весь интерфейс визуально компактнее или крупнее:
             правь UI_CONFIG.siteScale (например 0.9 = близко к zoom 90%)
           - больше воздуха между каталогом и преимуществами:
             меняй --assembly-gap-height / --assembly-gap-height-mobile
           - поменять контент каталога, товаров, преимуществ:
             правь PAGE_DATA
           - подвинуть или масштабировать 3D-объект:
             правь CONFIG.objects.<id>.position / scale
           - сделать разлёт деталей компактнее:
             правь CONFIG.objects.<id>.scatter.radius
           - сделать сборку раньше или позже:
             правь CONFIG.objects.<id>.assembly.triggerTopFactor
           - сделать сборку длиннее или короче:
             правь CONFIG.objects.<id>.assembly.triggerHeightFactor
        */

        /* ==========================================================================
           DESIGN TOKENS
           ==========================================================================

           Здесь лежат базовые переменные темы. Их стоит править, если нужно
           глобально сменить настроение страницы, а не локально подкрасить
           один блок.
        */
        :root {
            --ui-site-scale: 1;
            --color-accent: #b60000;
            --color-accent-hover: #dd2222;
            --color-page-bg: #f8fafc;
            --color-border: rgba(229, 231, 235, 0.5);
            --color-text: #1f2937;
            --color-text-strong: #0f172a;
            --color-muted: #6b7280;
            --color-footer-bg: rgba(31, 41, 55, 0.95);

            --glass-bg: rgba(255, 255, 255, 0.65);
            --glass-bg-strong: rgba(255, 255, 255, 0.85);
            --glass-border: rgba(255, 255, 255, 0.8);
            --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.07);

            --header-max-width: calc(1440px * var(--ui-site-scale));
            --hero-content-max-width: calc(650px * var(--ui-site-scale));
            --hero-title-size: 3.5rem;
            --hero-title-letter-spacing: 0.125rem;

            --assembly-gap-height: clamp(calc(220px * var(--ui-site-scale)), 24vw, calc(340px * var(--ui-site-scale)));
            --assembly-gap-height-mobile: clamp(calc(160px * var(--ui-site-scale)), 34vw, calc(240px * var(--ui-site-scale)));

            /*
                UI custom properties ниже получают окончательные значения из UI_CONFIG.
                Значения в :root нужны как читаемый fallback, чтобы CSS оставался
                самодостаточным даже до выполнения JS.
            */
            --ui-section-marker-size: 0.5rem;
            --ui-micro-font-size: 0.625rem;
            --ui-micro-letter-spacing: 0.1em;
            --ui-feature-icon-box-size: 5rem;
            --ui-feature-icon-font-size: 2.5rem;
            --ui-feature-copy-font-size: 0.95rem;
            --ui-feature-card-min-height: 16rem;
            --ui-feature-summary-max-width: 26rem;
            --ui-hero-copy-max-width: 31.25rem;
            --ui-category-card-min-height: 17.5rem;
            --ui-product-image-box-height: 11.25rem;
            --ui-b2b-badge-font-size: 0.75rem;
            --ui-b2b-badge-letter-spacing: 0.08em;
            --ui-b2b-copy-max-width: 37.5rem;
            --ui-b2b-accent-border-width: calc(5px * var(--ui-site-scale));
            --ui-b2b-decor-icon-size: 15rem;
            --ui-b2b-decor-icon-top: -3rem;
            --ui-b2b-decor-icon-right: -2rem;
            --ui-footer-brand-size: 2.5rem;
            --ui-footer-meta-font-size: 0.8rem;
            --ui-footer-border-color: rgba(148, 163, 184, 0.35);
            --ui-status-default-bg: var(--color-muted);
            --ui-status-hit-bg: var(--color-accent);
        }

        html {
            font-size: calc(16px * var(--ui-site-scale));
        }

        /* ==========================================================================
           BASE / LAYOUT
           ==========================================================================

           Здесь только общие правила: фон, типографика страницы, базовая
           геометрия фоновых слоёв и layout-shell.
        */
        body {
            margin: 0;
            padding: 0;
            background: transparent;
            font-family: "Inter", sans-serif;
            color: var(--color-text);
            overflow-x: hidden;
        }

        a {
            color: inherit;
        }

        .grid-bg {
            position: fixed;
            inset: 0;
            background-color: var(--color-page-bg);
            background-image:
                linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
                linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
            background-size:
                calc(40px * var(--ui-site-scale))
                calc(40px * var(--ui-site-scale));
            z-index: -2;
            pointer-events: none;
        }

        #webgl-bg {
            position: fixed;
            inset: 0;
            width: 100vw;
            height: 100vh;
            z-index: -1;
            pointer-events: none;
        }

        .store-content {
            position: relative;
            z-index: 10;
            padding-bottom: 5rem;
        }

        .content-layer {
            z-index: 1;
        }

        .section-marker {
            width: var(--ui-section-marker-size);
            height: var(--ui-section-marker-size);
            border-radius: 50%;
            background: var(--color-accent);
            display: inline-block;
            flex: 0 0 auto;
        }

        .micro-copy {
            font-size: var(--ui-micro-font-size);
            letter-spacing: var(--ui-micro-letter-spacing);
            text-transform: uppercase;
        }

        .glass-card {
            background: var(--glass-bg);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid var(--glass-border);
            box-shadow: var(--glass-shadow);
            border-radius: 0.8rem;
            transition: transform 0.3s ease, border-color 0.3s ease, color 0.3s ease;
        }

        .glass-title-box-full {
            background: var(--glass-bg);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            padding: 1.5rem 2rem;
            border-radius: 1rem;
            border: 1px solid rgba(255, 255, 255, 0.6);
            box-shadow: var(--glass-shadow);
        }

        .glass-section {
            background: rgba(255, 255, 255, 0.4);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-top: 1px solid rgba(255, 255, 255, 0.6);
            border-bottom: 1px solid rgba(255, 255, 255, 0.6);
        }

        .section-title {
            font-size: 1.75rem;
            font-weight: 700;
            text-transform: uppercase;
            color: var(--color-text);
            letter-spacing: -0.02em;
        }

        .section-link {
            font-size: 0.75rem;
            letter-spacing: 0.1em;
            color: var(--color-muted);
            transition: color 0.3s ease;
        }

        .section-link:hover {
            color: var(--color-accent);
        }

        .assembly-gap-section {
            height: var(--assembly-gap-height);
            pointer-events: none;
        }

        /* ==========================================================================
           HEADER
           ==========================================================================

           Здесь кастомные стили оставлены только для тех деталей, которые не стоит
           расписывать utility-классами Bootstrap: стеклянная шапка, поиск и
           action-иконки с badge.
        */
        .header-wrapper {
            position: sticky;
            top: 1rem;
            z-index: 1000;
            padding: 0 1rem;
        }

        .header-shell {
            max-width: var(--header-max-width);
            margin: 0 auto;
            background: var(--glass-bg-strong);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-radius: 0.9rem;
            box-shadow: var(--glass-shadow);
            border: 1px solid rgba(255, 255, 255, 0.5);
        }

        .top-row {
            border-bottom: 1px solid var(--color-border);
            font-size: 0.92rem;
        }

        .top-link {
            color: var(--color-accent);
            text-decoration: none;
            font-weight: 500;
        }

        .top-link:hover {
            color: var(--color-accent-hover);
            text-decoration: underline;
        }

        .city-link {
            color: var(--color-accent);
            text-decoration: none;
            border-bottom: 1px dashed var(--color-accent);
            line-height: 1.2;
        }

        .city-link:hover {
            color: var(--color-accent-hover);
            border-bottom-color: var(--color-accent-hover);
        }

        .phone-link {
            color: #111827;
            text-decoration: none;
            font-weight: 700;
            white-space: nowrap;
        }

        .phone-link:hover {
            color: var(--color-accent);
        }

        .logo-wrap {
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: calc(60px * var(--ui-site-scale));
            transition: opacity 0.25s ease;
        }

        .logo-wrap:hover {
            opacity: 0.86;
        }

        .logo-wrap img {
            display: block;
            width: auto;
            height: 4.5rem;
            object-fit: contain;
        }

        .search-wrap {
            max-width: calc(460px * var(--ui-site-scale));
        }

        .search-wrap .form-control {
            background: rgba(243, 244, 246, 0.8);
            border: 0;
            border-radius: 999px;
            padding: 0.9rem 3rem;
        }

        .search-wrap .form-control::placeholder {
            color: #9ea8b7;
        }

        .search-wrap .form-control:focus {
            background: #fff;
            box-shadow: 0 0 0 0.2rem rgba(190, 18, 60, 0.18);
        }

        .search-icon {
            position: absolute;
            left: 1.1rem;
            top: 50%;
            transform: translateY(-50%);
            color: #9ca3af;
            pointer-events: none;
            z-index: 3;
        }

        .search-submit {
            position: absolute;
            right: 0.35rem;
            top: 0.35rem;
            width: 2.5rem;
            height: 2.5rem;
            border-radius: 50%;
            border: 1px solid #e6e8ee;
            background: #fff;
            color: #9ca3af;
            z-index: 3;
            transition: color 0.3s ease, border-color 0.3s ease;
        }

        .search-submit:hover {
            color: var(--color-accent);
            border-color: #d8dde8;
        }

        .action-link {
            text-decoration: none;
            color: #111827;
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            gap: 0.6rem;
            white-space: nowrap;
        }

        .action-link:hover {
            color: var(--color-accent);
        }

        .action-icon {
            position: relative;
            width: 2.2rem;
            height: 2.2rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 1.55rem;
            color: inherit;
        }

        .action-badge {
            position: absolute;
            top: -0.3rem;
            right: -0.45rem;
            min-width: 1.2rem;
            height: 1.2rem;
            border-radius: 999px;
            padding: 0 0.25rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 0.62rem;
            font-weight: 700;
            color: var(--color-muted);
            border: 2px solid #fff;
            background: rgba(243, 244, 246, 0.9);
            line-height: 1;
        }

        .cart-meta {
            line-height: 1.15;
            min-width: calc(90px * var(--ui-site-scale));
        }

        .cart-state {
            color: var(--color-accent);
            font-size: 0.77rem;
            font-weight: 600;
        }

        .header-top-meta,
        .header-top-contact,
        .header-actions-row {
            min-width: 0;
        }

        .header-top-contact {
            justify-content: flex-end;
        }

        /* ==========================================================================
           HERO
           ==========================================================================

           В hero оставляем кастомную композицию, потому что это точка столкновения
           текста, стеклянного контейнера и 3D-объекта. Bootstrap здесь помогает
           со spacing и responsive flex, но не заменяет композиционный CSS.
        */
        .hero-section {
            min-height: 90vh;
            display: flex;
            align-items: center;
            position: relative;
            z-index: 1;
            pointer-events: none;
            margin-top: calc(-60px * var(--ui-site-scale));
        }

        .hero-content {
            pointer-events: auto;
            max-width: var(--hero-content-max-width);
            background: rgba(255, 255, 255, 0.75);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            padding: 3rem 4rem 3rem 3rem;
            border-radius: 0.5rem;
            box-shadow: var(--glass-shadow);
            border: 1px solid rgba(255, 255, 255, 0.5);
            border-left: 5px solid var(--color-accent);
        }

        .hero-title {
            font-size: var(--hero-title-size);
            font-weight: 900;
            color: var(--color-text-strong);
            line-height: 1.1;
            text-transform: uppercase;
            letter-spacing: var(--hero-title-letter-spacing);
        }

        .hero-title span {
            color: var(--color-accent);
        }

        .hero-summary {
            font-size: 1.1rem;
            max-width: var(--ui-hero-copy-max-width);
        }

        .btn-brand {
            background-color: var(--color-accent);
            color: #fff;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            border: none;
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        .btn-brand:hover {
            background-color: var(--color-accent-hover);
            color: #fff;
        }

        .btn-brand-ghost {
            background: rgba(255, 255, 255, 0.5);
            color: var(--color-text);
            border: 2px solid rgba(31, 41, 55, 0.3);
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .btn-brand-ghost:hover {
            background: rgba(255, 255, 255, 0.85);
            color: var(--color-text-strong);
            border-color: rgba(31, 41, 55, 0.45);
        }

        .call-btn {
            border-color: var(--color-accent);
            color: var(--color-accent);
            font-weight: 600;
            white-space: nowrap;
        }

        .call-btn:hover {
            background: var(--color-accent);
            border-color: var(--color-accent);
            color: #fff;
        }

        /* ==========================================================================
           CATALOG / FEATURE / PRODUCT COMPONENTS
           ==========================================================================

           Этот слой содержит все переиспользуемые карточки и паттерны контента.
           Все повторяющиеся блоки рендерятся из PAGE_DATA, а визуальные детали
           централизованы через CSS vars и именованные классы.
        */
        .catalog-card {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            min-height: var(--ui-category-card-min-height);
            padding: 1.8rem;
            position: relative;
            overflow: hidden;
            text-decoration: none;
        }

        .catalog-card:hover {
            transform: translateY(-5px);
            border-color: rgba(190, 18, 60, 0.4);
        }

        .catalog-card__arrow {
            color: var(--color-accent);
            opacity: 0;
            transform: translate(-10px, 10px);
            transition: opacity 0.3s ease, transform 0.3s ease;
        }

        .catalog-card:hover .catalog-card__arrow {
            opacity: 1;
            transform: translate(0, 0);
        }

        .catalog-card__bg {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            pointer-events: none;
            z-index: 0;
        }

        .catalog-card__bg img {
            width: calc(130px * var(--ui-site-scale));
            height: calc(130px * var(--ui-site-scale));
            object-fit: contain;
            opacity: 0.05;
            transform: scale(0.75);
            transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease;
            mix-blend-mode: multiply;
            filter: grayscale(100%);
        }

        .catalog-card:hover .catalog-card__bg img {
            opacity: 0.15;
            transform: scale(1.1);
            filter: grayscale(0%);
        }

        .category-title {
            font-size: 1rem;
            font-weight: 700;
            text-transform: uppercase;
            color: var(--color-text);
        }

        .category-meta {
            font-size: var(--ui-micro-font-size);
            letter-spacing: var(--ui-micro-letter-spacing);
        }

        .features-showcase {
            position: relative;
            overflow: hidden;
            padding: clamp(2rem, 4vw, 3rem);
            border-radius: 1.5rem;
        }

        .features-showcase::before {
            content: "";
            position: absolute;
            top: -120px;
            left: -80px;
            width: 280px;
            height: 280px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(182, 0, 0, 0.12) 0%, rgba(182, 0, 0, 0) 72%);
            pointer-events: none;
        }

        .features-showcase::after {
            content: "";
            position: absolute;
            inset: 0;
            background:
                linear-gradient(120deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)),
                linear-gradient(180deg, rgba(15, 23, 42, 0.03), rgba(15, 23, 42, 0));
            pointer-events: none;
        }

        .feature-header-group {
            position: relative;
            z-index: 1;
            max-width: 56rem;
            margin-bottom: clamp(2rem, 4vw, 3rem);
        }

        .feature-header-group .section-title {
            font-size: clamp(2.2rem, 4vw, 3.4rem);
            line-height: 1.02;
            letter-spacing: -0.05em;
        }

        .feature-header-group .feature-summary {
            max-width: 42rem;
        }

        .feature-summary {
            max-width: var(--ui-feature-summary-max-width);
            font-size: 1rem;
            line-height: 1.75;
            color: var(--color-muted);
        }

        .feature-ledger {
            position: relative;
            z-index: 1;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            gap: 2.75rem;
            padding: clamp(1.9rem, 3vw, 2.7rem);
            border-radius: 1rem;
            overflow: hidden;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(245, 247, 250, 0.56));
            border: 1px solid rgba(255, 255, 255, 0.72);
        }

        .feature-ledger__orb {
            position: absolute;
            top: -7rem;
            right: -7rem;
            width: 18rem;
            height: 18rem;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(182, 0, 0, 0.09) 0%, rgba(182, 0, 0, 0) 72%);
            filter: blur(12px);
            pointer-events: none;
        }

        .feature-ledger__content,
        .feature-ledger__footer {
            position: relative;
            z-index: 1;
        }

        .feature-ledger__title {
            max-width: 17rem;
            margin: 0 0 1.15rem;
            font-size: clamp(1.65rem, 2.35vw, 2.05rem);
            line-height: 1.1;
            font-weight: 800;
            letter-spacing: -0.04em;
            color: var(--color-text-strong);
        }

        .feature-ledger__copy {
            max-width: 18.5rem;
            margin: 0;
            color: var(--color-muted);
            font-size: 0.98rem;
            line-height: 1.82;
        }

        .feature-ledger__cta {
            min-width: 10.75rem;
            padding: 0.82rem 1.15rem;
            border-radius: 0.5rem;
            font-size: 0.78rem;
            letter-spacing: 0.11em;
        }

        .feature-ledger__decor {
            position: absolute;
            right: -0.75rem;
            bottom: -0.9rem;
            font-size: clamp(4.6rem, 9vw, 6.2rem);
            color: rgba(15, 23, 42, 0.06);
            pointer-events: none;
        }

        .feature-grid {
            position: relative;
            z-index: 1;
        }

        .feature-grid__item {
            position: relative;
        }

        .feature-card {
            position: relative;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            gap: 3rem;
            height: 100%;
            min-height: var(--ui-feature-card-min-height);
            padding: clamp(1.5rem, 2vw, 2rem);
            overflow: hidden;
            border-radius: 0.9rem;
            border-color: rgba(148, 163, 184, 0.18);
            box-shadow: 0 22px 44px rgba(15, 23, 42, 0.04);
        }

        .feature-card:hover {
            transform: translateY(-4px);
            border-color: rgba(190, 18, 60, 0.24);
        }

        .feature-card__top {
            position: relative;
            z-index: 1;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 1rem;
        }

        .feature-card__icon-badge {
            width: var(--ui-feature-icon-box-size);
            height: var(--ui-feature-icon-box-size);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: var(--color-accent);
            border: 1px solid rgba(182, 0, 0, 0.14);
            border-radius: 0.8rem;
            background: rgba(255, 255, 255, 0.78);
            box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
            font-size: var(--ui-feature-icon-font-size);
            flex: 0 0 auto;
            transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
        }

        .feature-card:hover .feature-card__icon-badge {
            background: rgba(182, 0, 0, 0.94);
            color: #fff;
            border-color: rgba(182, 0, 0, 0.22);
        }

        .feature-card__metric-group {
            position: relative;
            z-index: 1;
            text-align: right;
        }

        .feature-card__metric-label {
            display: block;
            margin-bottom: 0.45rem;
            color: var(--color-muted);
            font-size: 0.64rem;
            font-weight: 600;
            letter-spacing: 0.12em;
            text-transform: uppercase;
        }

        .feature-card__metric-value {
            display: inline-block;
            color: rgba(182, 0, 0, 0.9);
            font-size: clamp(1.08rem, 1.2vw, 1.28rem);
            line-height: 1;
            font-weight: 800;
            letter-spacing: -0.03em;
        }

        .feature-card__body {
            position: relative;
            z-index: 1;
        }

        .feature-title {
            font-size: 1.35rem;
            font-weight: 800;
            color: var(--color-text-strong);
            margin-bottom: 0.75rem;
            line-height: 1.12;
            letter-spacing: -0.03em;
        }

        .feature-copy {
            margin: 0;
            font-size: var(--ui-feature-copy-font-size);
            color: var(--color-muted);
            line-height: 1.75;
        }

        @media (min-width: 992px) {
            .feature-grid__item--offset {
                margin-top: 1.35rem;
            }
        }

        .product-card {
            padding: 1rem;
            position: relative;
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .product-card:hover {
            border-color: rgba(190, 18, 60, 0.4);
            transform: translateY(-5px);
        }

        .product-status {
            background: var(--ui-status-default-bg);
            color: #fff;
            font-size: var(--ui-micro-font-size);
            padding: 3px 8px;
            font-weight: 700;
            border-radius: 2px;
            position: absolute;
            top: 1rem;
            left: 1rem;
            z-index: 2;
        }

        .product-status--hit {
            background: var(--ui-status-hit-bg);
        }

        .product-favorite {
            position: absolute;
            top: 1rem;
            right: 1rem;
            color: #9ca3af;
            background: transparent;
            border: none;
            z-index: 2;
            transition: color 0.3s ease;
        }

        .product-favorite:hover {
            color: var(--color-accent);
        }

        .product-image-box {
            height: var(--ui-product-image-box-height);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1rem;
        }

        .product-image-box img {
            max-height: 100%;
            mix-blend-mode: multiply;
        }

        .product-title {
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--color-text);
            height: 40px;
            overflow: hidden;
        }

        .product-meta {
            font-size: var(--ui-micro-font-size);
        }

        .product-price {
            color: var(--color-accent);
        }

        .btn-cart {
            background: var(--color-accent);
            color: #fff;
            font-size: 10px;
            font-weight: 700;
            border: none;
            border-radius: 0.3rem;
            padding: 0.5rem 1rem;
            flex-grow: 1;
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        .btn-cart:hover {
            background: var(--color-accent-hover);
            color: #fff;
        }

        .btn-eye {
            border: 1px solid rgba(107, 114, 128, 0.3);
            background: rgba(255, 255, 255, 0.5);
            color: var(--color-muted);
            width: 40px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 0.3rem;
            transition: border-color 0.3s ease, color 0.3s ease;
        }

        .btn-eye:hover {
            border-color: var(--color-muted);
            color: var(--color-text);
        }

        /* ==========================================================================
           B2B CTA / FOOTER
           ==========================================================================

           Эти секции специально оставлены кастомными: здесь важны не только
           spacing и typography, но и композиционный рисунок карточек.
        */
        .eyebrow-pill {
            display: inline-block;
            padding: 0.35rem 0.85rem;
            margin-bottom: 1rem;
            border-radius: 999px;
            background: rgba(190, 18, 60, 0.1);
            color: var(--color-accent);
            font-size: var(--ui-b2b-badge-font-size);
            font-weight: 700;
            letter-spacing: var(--ui-b2b-badge-letter-spacing);
        }

        .partner-shell {
            position: relative;
            overflow: hidden;
            padding: clamp(2rem, 4vw, 3.25rem);
            border-radius: 1rem;
            background: rgba(255, 255, 255, 0.78);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(255, 255, 255, 0.75);
            box-shadow: var(--glass-shadow);
            transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
        }

        .partner-shell::before {
            content: "";
            position: absolute;
            inset: 0;
            background-image:
                linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
            background-size:
                calc(36px * var(--ui-site-scale))
                calc(36px * var(--ui-site-scale));
            opacity: 0.22;
            pointer-events: none;
        }

        .partner-shell::after {
            content: "";
            position: absolute;
            top: -4rem;
            right: -5rem;
            width: 18rem;
            height: 18rem;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(182, 0, 0, 0.12) 0%, rgba(182, 0, 0, 0) 72%);
            filter: blur(10px);
            pointer-events: none;
            transition: transform 0.45s ease, opacity 0.45s ease;
        }

        .partner-shell:hover {
            transform: translateY(-4px);
            border-color: rgba(190, 18, 60, 0.12);
            box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
        }

        .partner-shell:hover::after {
            transform: translate(-16px, 10px) scale(1.08);
            opacity: 0.95;
        }

        .partner-accent-bar {
            position: absolute;
            left: 0;
            bottom: 0;
            width: 4px;
            height: 8.5rem;
            background: linear-gradient(180deg, rgba(182, 0, 0, 0.2), rgba(182, 0, 0, 0.9));
            border-radius: 0 0.35rem 0.35rem 0;
            transition: height 0.35s ease, background 0.35s ease;
        }

        .partner-shell:hover .partner-accent-bar {
            height: 10rem;
            background: linear-gradient(180deg, rgba(182, 0, 0, 0.28), rgba(182, 0, 0, 1));
        }

        .partner-content {
            position: relative;
            z-index: 1;
        }

        .partner-header {
            display: flex;
            flex-direction: column;
            gap: 2rem;
        }

        .partner-heading {
            max-width: 40rem;
        }

        .partner-kicker {
            display: inline-flex;
            align-items: center;
            gap: 0.7rem;
            margin-bottom: 1.25rem;
            color: var(--color-text-strong);
            font-size: 0.7rem;
            font-weight: 800;
            letter-spacing: 0.22em;
            text-transform: uppercase;
        }

        .partner-kicker__dot {
            width: 0.45rem;
            height: 0.45rem;
            border-radius: 50%;
            background: var(--color-accent);
            flex: 0 0 auto;
        }

        .partner-title {
            margin: 0 0 1.25rem;
            color: var(--color-text-strong);
            font-size: clamp(2rem, 4vw, 3.2rem);
            line-height: 1.02;
            font-weight: 900;
            letter-spacing: -0.04em;
            text-transform: uppercase;
        }

        .partner-copy {
            max-width: var(--ui-b2b-copy-max-width);
            margin: 0;
            color: var(--color-muted);
            font-size: 1.05rem;
            line-height: 1.78;
        }

        .partner-actions {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: center;
            gap: 1.4rem;
            min-width: 18rem;
        }

        .partner-primary {
            padding: 1.1rem 2rem;
            border-radius: 0.4rem;
            font-size: 0.8rem;
            letter-spacing: 0.15em;
            transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
        }

        .partner-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 18px 32px rgba(182, 0, 0, 0.18);
        }

        .partner-secondary {
            display: inline-flex;
            align-items: center;
            gap: 0.65rem;
            color: var(--color-text-strong);
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 800;
            letter-spacing: 0.02em;
            transition: color 0.3s ease, transform 0.3s ease;
        }

        .partner-secondary:hover {
            color: var(--color-accent);
        }

        .partner-secondary:hover i {
            transform: translateX(4px);
        }

        .partner-secondary i {
            transition: transform 0.3s ease;
        }

        .partner-secondary-note {
            margin: 0;
            color: var(--color-muted);
            font-size: 0.68rem;
            font-weight: 700;
            letter-spacing: 0.16em;
            text-transform: uppercase;
        }

        .partner-stats {
            position: relative;
            z-index: 1;
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 1.5rem;
            margin-top: 3.25rem;
            padding-top: 2rem;
            border-top: 1px solid rgba(148, 163, 184, 0.18);
        }

        .partner-stat {
            display: flex;
            align-items: flex-start;
            gap: 1rem;
            padding: 0.55rem 0.35rem;
            border-radius: 0.8rem;
            transition: transform 0.3s ease, background-color 0.3s ease;
        }

        .partner-stat:hover {
            transform: translateY(-3px);
            background: rgba(255, 255, 255, 0.32);
        }

        .partner-stat__icon {
            width: 2.75rem;
            height: 2.75rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 0.65rem;
            background: rgba(255, 255, 255, 0.72);
            border: 1px solid rgba(148, 163, 184, 0.16);
            color: var(--color-accent);
            box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
            font-size: 1.15rem;
            flex: 0 0 auto;
            transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
        }

        .partner-stat:hover .partner-stat__icon {
            transform: translateY(-2px) scale(1.04);
            background: rgba(182, 0, 0, 0.96);
            color: #fff;
            border-color: rgba(182, 0, 0, 0.2);
            box-shadow: 0 18px 34px rgba(182, 0, 0, 0.12);
        }

        .partner-stat__title {
            margin: 0 0 0.35rem;
            color: var(--color-text-strong);
            font-size: 0.8rem;
            font-weight: 800;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            transition: color 0.3s ease;
        }

        .partner-stat:hover .partner-stat__title {
            color: var(--color-accent);
        }

        .partner-stat__copy {
            margin: 0;
            color: var(--color-muted);
            font-size: 0.82rem;
            line-height: 1.65;
            transition: color 0.3s ease;
        }

        .partner-stat:hover .partner-stat__copy {
            color: var(--color-text);
        }

        .site-footer {
            position: relative;
            overflow: hidden;
            background: #27303d;
            color: #fff;
            border-top: 1px solid rgba(182, 0, 0, 0.7);
            z-index: 20;
        }

        .site-footer::before {
            content: "";
            position: absolute;
            inset: 0;
            background-image:
                linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
            background-size:
                calc(48px * var(--ui-site-scale))
                calc(48px * var(--ui-site-scale));
            opacity: 0.14;
            pointer-events: none;
        }

        .footer-shell {
            position: relative;
            z-index: 1;
        }

        .footer-main {
            display: grid;
            grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.45fr) minmax(17rem, 0.8fr);
            gap: clamp(1.5rem, 2.5vw, 2.75rem);
            align-items: start;
            padding: 0.5rem 0 1.75rem;
            border-bottom: 1px solid rgba(148, 163, 184, 0.16);
        }

        .footer-brand-panel {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .footer-brand-header {
            display: flex;
            align-items: center;
            gap: 0.9rem;
        }

        .footer-logo {
            width: 3.5rem;
            height: 3.5rem;
            object-fit: cover;
            border-radius: 0.35rem;
            flex: 0 0 auto;
        }

        .footer-brand-name {
            margin: 0;
            color: #fff;
            font-size: 1.35rem;
            font-weight: 900;
            letter-spacing: -0.03em;
            text-transform: uppercase;
        }

        .footer-brand-copy {
            max-width: 24rem;
            margin: 0;
            color: rgba(226, 232, 240, 0.74);
            font-size: 0.92rem;
            line-height: 1.75;
        }

        .footer-contact-list {
            display: flex;
            flex-direction: column;
            gap: 0.65rem;
        }

        .footer-contact-link,
        .footer-contact-text {
            display: inline-flex;
            align-items: center;
            gap: 0.65rem;
            color: rgba(226, 232, 240, 0.82);
            text-decoration: none;
            font-size: 0.94rem;
            line-height: 1.5;
            transition: color 0.25s ease;
        }

        .footer-contact-link:hover {
            color: #fff;
        }

        .footer-contact-icon {
            width: 0.95rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: var(--color-accent);
            flex: 0 0 auto;
        }

        .footer-nav-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 1.75rem;
            min-width: 0;
        }

        .footer-link-group {
            min-width: 0;
        }

        .footer-title {
            margin: 0 0 0.95rem;
            color: #fff;
            font-size: 0.8rem;
            font-weight: 800;
            letter-spacing: 0.12em;
            text-transform: uppercase;
        }

        .footer-link {
            color: rgba(203, 213, 225, 0.82);
            text-decoration: none;
            font-size: 0.9rem;
            line-height: 1.7;
            transition: color 0.25s ease;
        }

        .footer-link:hover {
            color: #fff;
        }

        .footer-contact-panel {
            padding-left: 1.5rem;
            border-left: 1px solid rgba(148, 163, 184, 0.18);
        }

        .footer-support-copy {
            margin: 0 0 1rem;
            color: rgba(226, 232, 240, 0.72);
            font-size: 0.92rem;
            line-height: 1.7;
        }

        .footer-support-phone {
            margin: 0 0 0.35rem;
            color: #fff;
            font-size: 1.55rem;
            font-weight: 900;
            letter-spacing: -0.03em;
        }

        .footer-meta {
            color: rgba(148, 163, 184, 0.88);
            font-size: var(--ui-footer-meta-font-size);
        }

        .footer-support-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.65rem;
            margin-top: 1.1rem;
        }

        .footer-action-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0.8rem 1rem;
            border-radius: 0.3rem;
            text-decoration: none;
            font-size: 0.68rem;
            font-weight: 800;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
        }

        .footer-action-btn--primary {
            background: var(--color-accent);
            color: #fff;
        }

        .footer-action-btn--primary:hover {
            background: var(--color-accent-hover);
            color: #fff;
        }

        .footer-action-btn--ghost {
            border: 1px solid rgba(148, 163, 184, 0.22);
            background: transparent;
            color: rgba(241, 245, 249, 0.9);
        }

        .footer-action-btn--ghost:hover {
            border-color: rgba(255, 255, 255, 0.32);
            color: #fff;
        }

        .footer-bottom {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 0.9rem 1.5rem;
            padding-top: 1.1rem;
            font-size: var(--ui-footer-meta-font-size);
        }

        .footer-bottom-links {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem 1.25rem;
        }

        .footer-bottom-link {
            color: rgba(148, 163, 184, 0.88);
            text-decoration: none;
            font-size: 0.7rem;
            font-weight: 800;
            letter-spacing: 0.11em;
            text-transform: uppercase;
            transition: color 0.25s ease;
        }

        .footer-bottom-link:hover {
            color: #fff;
        }

        .back-to-top-button {
            border: 1px solid rgba(148, 163, 184, 0.18);
            background: transparent;
            color: rgba(241, 245, 249, 0.9);
            cursor: pointer;
            padding: 0.65rem 0.85rem;
            border-radius: 0.3rem;
            transition: border-color 0.25s ease, color 0.25s ease;
        }

        .back-to-top-button:hover {
            color: #fff;
            border-color: rgba(255, 255, 255, 0.32);
        }

        .inner-page-body {
            background-color: var(--color-page-bg);
        }

        .b2b-shell {
            position: relative;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        .b2b-workarea {
            flex: 1 0 auto;
            padding: 1.75rem 0 4rem;
            position: relative;
            z-index: 1;
        }

        .b2b-content-section {
            width: 100%;
            max-width: var(--header-max-width);
            margin: 0 auto;
        }

        .page-shell-hero {
            position: relative;
            overflow: hidden;
            margin-bottom: 1.75rem;
            padding: clamp(1.75rem, 4vw, 3rem);
            border-radius: 1.15rem;
            border-left: var(--ui-b2b-accent-border-width) solid var(--color-accent);
            background: rgba(255, 255, 255, 0.94);
            border: 1px solid rgba(148, 163, 184, 0.14);
            box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
        }

        .page-shell-hero__mesh {
            position: absolute;
            inset: 0;
            background-image:
                linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
                linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
            background-size:
                calc(34px * var(--ui-site-scale))
                calc(34px * var(--ui-site-scale));
            opacity: 0.18;
            pointer-events: none;
        }

        .page-shell-hero > .row,
        .page-main-panel,
        .page-sidebar-stack,
        .page-bottom-panel {
            position: relative;
            z-index: 1;
        }

        .page-shell-title {
            margin: 0 0 1rem;
            color: var(--color-text-strong);
            font-size: clamp(2rem, 4.2vw, 3.4rem);
            line-height: 0.98;
            font-weight: 900;
            letter-spacing: -0.05em;
            text-transform: uppercase;
        }

        .page-shell-summary {
            max-width: 44rem;
            color: var(--color-muted);
            font-size: 0.98rem;
            line-height: 1.72;
        }

        .page-shell-aside {
            height: 100%;
            padding: 1.5rem;
            border-radius: 0.95rem;
            background: rgba(255, 255, 255, 0.9);
            border: 1px solid rgba(148, 163, 184, 0.14);
            box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
        }

        .page-shell-aside__label {
            margin-bottom: 0.75rem;
            color: var(--color-accent);
            font-size: 0.7rem;
            font-weight: 800;
            letter-spacing: 0.16em;
            text-transform: uppercase;
        }

        .page-shell-aside__copy {
            color: var(--color-muted);
            font-size: 0.92rem;
            line-height: 1.7;
        }

        #navigation .breadcrumb {
            margin-bottom: 0;
            padding: 0;
            background: transparent;
        }

        #navigation .breadcrumb-item,
        #navigation .breadcrumb-item a {
            color: var(--color-muted);
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.12em;
            text-decoration: none;
            text-transform: uppercase;
        }

        #navigation .breadcrumb-item.active {
            color: var(--color-text-strong);
        }

        .page-main-panel {
            padding: clamp(1.25rem, 3vw, 2rem);
            min-height: 100%;
            border-radius: 1rem;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            border: 1px solid rgba(148, 163, 184, 0.14);
            box-shadow: 0 14px 32px rgba(15, 23, 42, 0.05);
        }

        .page-main-panel > :last-child,
        .page-sidebar-card > :last-child,
        .b2b-component-frame > :last-child,
        .b2b-content-card > :last-child,
        .b2b-form-card > :last-child,
        .b2b-info-card > :last-child {
            margin-bottom: 0 !important;
        }

        .page-sidebar-stack {
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
        }

        .page-sidebar-card,
        .b2b-content-card,
        .b2b-form-card,
        .b2b-info-card,
        .b2b-component-frame {
            background: rgba(255, 255, 255, 0.94);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(148, 163, 184, 0.14);
            border-radius: 1rem;
            box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
        }

        .page-sidebar-card,
        .b2b-content-card,
        .b2b-form-card,
        .b2b-info-card {
            padding: 1.4rem;
        }

        .page-sidebar-card__title,
        .b2b-section-label,
        .b2b-content-card h2,
        .b2b-form-card h2,
        .b2b-form-card h3,
        .b2b-info-card h3,
        .b2b-component-frame h2,
        .b2b-component-frame h3 {
            margin: 0 0 1rem;
            color: var(--color-text-strong);
            font-size: 0.85rem;
            font-weight: 800;
            letter-spacing: 0.12em;
            text-transform: uppercase;
        }

        .page-sidebar-card__intro,
        .b2b-panel-intro,
        .b2b-content-card p,
        .b2b-form-card p,
        .b2b-info-card p,
        .b2b-component-frame p,
        .b2b-component-frame li,
        .b2b-component-frame td,
        .b2b-component-frame th {
            color: var(--color-muted);
            line-height: 1.75;
        }

        .page-bottom-panel {
            margin-top: 1.5rem;
        }

        .page-sidebar-card .list-group,
        .page-sidebar-card .nav,
        .page-sidebar-card ul,
        .page-sidebar-card ol {
            margin-bottom: 0;
        }

        .page-sidebar-card ul,
        .page-sidebar-card ol,
        .b2b-content-card ul,
        .b2b-content-card ol,
        .b2b-form-card ul,
        .b2b-component-frame ul,
        .b2b-component-frame ol {
            padding-left: 1.15rem;
        }

        .b2b-prose {
            display: flex;
            flex-direction: column;
            gap: 1.1rem;
        }

        .b2b-prose h2,
        .b2b-prose h3,
        .b2b-prose h4 {
            margin: 0;
            color: var(--color-text-strong);
            font-weight: 800;
            letter-spacing: -0.03em;
        }

        .b2b-prose h2 {
            font-size: clamp(1.4rem, 2vw, 1.9rem);
        }

        .b2b-prose h3 {
            font-size: 1.1rem;
        }

        .b2b-prose p,
        .b2b-prose li {
            margin: 0;
            color: var(--color-muted);
            line-height: 1.85;
        }

        .b2b-prose strong,
        .b2b-prose b {
            color: var(--color-text-strong);
        }

        .b2b-grid-cards,
        .b2b-info-grid,
        .b2b-queue-grid,
        .b2b-contact-grid,
        .b2b-step-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 1rem;
        }

        .b2b-mini-card,
        .b2b-stat-card,
        .b2b-contact-card,
        .b2b-step-card,
        .b2b-queue-card {
            padding: 1.1rem 1.15rem;
            border-radius: 0.9rem;
            background: rgba(255, 255, 255, 0.96);
            border: 1px solid rgba(148, 163, 184, 0.14);
            box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
        }

        .b2b-mini-card__label,
        .b2b-stat-card__label,
        .b2b-step-card__label,
        .b2b-queue-card__label {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.8rem;
            color: var(--color-accent);
            font-size: 0.68rem;
            font-weight: 800;
            letter-spacing: 0.16em;
            text-transform: uppercase;
        }

        .b2b-mini-card__title,
        .b2b-stat-card__title,
        .b2b-contact-card__title,
        .b2b-step-card__title,
        .b2b-queue-card__title {
            margin: 0 0 0.65rem;
            color: var(--color-text-strong);
            font-size: 1rem;
            font-weight: 800;
            letter-spacing: -0.03em;
        }

        .b2b-mini-card__copy,
        .b2b-stat-card__copy,
        .b2b-contact-card__copy,
        .b2b-step-card__copy,
        .b2b-queue-card__copy {
            margin: 0;
            color: var(--color-muted);
            font-size: 0.92rem;
            line-height: 1.7;
        }

        .b2b-stat-card__value {
            display: block;
            margin-bottom: 0.65rem;
            color: var(--color-text-strong);
            font-size: clamp(1.55rem, 2.5vw, 2.25rem);
            font-weight: 900;
            letter-spacing: -0.04em;
        }

        .b2b-checklist,
        .b2b-contact-list,
        .b2b-inline-list,
        .b2b-status-list {
            display: flex;
            flex-direction: column;
            gap: 0.8rem;
            list-style: none;
            padding-left: 0 !important;
            margin: 0;
        }

        .b2b-checklist li,
        .b2b-contact-list li,
        .b2b-inline-list li,
        .b2b-status-list li {
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
            margin: 0;
        }

        .b2b-checklist li::before,
        .b2b-inline-list li::before,
        .b2b-status-list li::before {
            content: "";
            width: 0.5rem;
            height: 0.5rem;
            margin-top: 0.45rem;
            border-radius: 50%;
            background: var(--color-accent);
            flex: 0 0 auto;
        }

        .b2b-contact-link,
        .b2b-prose a,
        .b2b-component-frame a {
            color: var(--color-accent);
            text-decoration-color: rgba(182, 0, 0, 0.3);
            text-underline-offset: 0.15em;
        }

        .b2b-contact-link:hover,
        .b2b-prose a:hover,
        .b2b-component-frame a:hover {
            color: var(--color-accent-hover);
        }

        .b2b-stack {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .b2b-alert,
        .b2b-component-frame .alert,
        .b2b-form-card .alert {
            border: 0;
            border-radius: 0.95rem;
            padding: 1rem 1.1rem;
            box-shadow: 0 18px 32px rgba(15, 23, 42, 0.05);
        }

        .b2b-alert.alert-warning,
        .b2b-component-frame .alert-warning,
        .b2b-form-card .alert-warning {
            color: #7c2d12;
            background: rgba(255, 237, 213, 0.9);
        }

        .b2b-alert.alert-danger,
        .b2b-component-frame .alert-danger,
        .b2b-form-card .alert-danger {
            color: #7f1d1d;
            background: rgba(254, 226, 226, 0.92);
        }

        .b2b-alert.alert-success,
        .b2b-component-frame .alert-success,
        .b2b-form-card .alert-success {
            color: #14532d;
            background: rgba(220, 252, 231, 0.9);
        }

        .b2b-alert.alert-info,
        .b2b-component-frame .alert-info,
        .b2b-form-card .alert-info {
            color: #164e63;
            background: rgba(224, 242, 254, 0.92);
        }

        .b2b-status-pills {
            display: flex;
            flex-wrap: wrap;
            gap: 0.65rem;
        }

        .b2b-status-pill,
        .badge.badge-success,
        .badge.badge-warning,
        .badge.badge-info,
        .badge.badge-danger {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 2rem;
            padding: 0.45rem 0.8rem;
            border-radius: 999px;
            font-size: 0.68rem;
            font-weight: 800;
            letter-spacing: 0.12em;
            text-transform: uppercase;
        }

        .b2b-status-pill,
        .badge.badge-success {
            color: #14532d;
            background: rgba(220, 252, 231, 0.92);
        }

        .badge.badge-warning {
            color: #7c2d12;
            background: rgba(255, 237, 213, 0.9);
        }

        .badge.badge-info {
            color: #164e63;
            background: rgba(224, 242, 254, 0.92);
        }

        .badge.badge-danger {
            color: #7f1d1d;
            background: rgba(254, 226, 226, 0.92);
        }

        .b2b-field,
        .b2b-fieldset {
            display: flex;
            flex-direction: column;
            gap: 0.45rem;
            margin-bottom: 1rem;
        }

        .b2b-form-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 1rem;
        }

        .b2b-field--full {
            grid-column: 1 / -1;
        }

        .b2b-field label,
        .b2b-fieldset legend,
        .b2b-component-frame label,
        .b2b-component-frame .form-group > label,
        .b2b-component-frame strong {
            color: var(--color-text-strong);
            font-size: 0.76rem;
            font-weight: 800;
            letter-spacing: 0.1em;
            text-transform: uppercase;
        }

        .b2b-field input,
        .b2b-field textarea,
        .b2b-field select,
        .b2b-component-frame input[type="text"],
        .b2b-component-frame input[type="password"],
        .b2b-component-frame input[type="email"],
        .b2b-component-frame input[type="search"],
        .b2b-component-frame input[type="tel"],
        .b2b-component-frame textarea,
        .b2b-component-frame select,
        .b2b-component-frame .form-control,
        .page-main-panel input[type="text"],
        .page-main-panel input[type="password"],
        .page-main-panel input[type="email"],
        .page-main-panel textarea,
        .page-main-panel select {
            width: 100%;
            min-height: 3rem;
            padding: 0.85rem 1rem;
            border: 1px solid rgba(203, 213, 225, 0.9);
            border-radius: 0.8rem;
            background: rgba(255, 255, 255, 0.88);
            box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
            color: var(--color-text-strong);
            transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
        }

        .b2b-field textarea,
        .b2b-component-frame textarea,
        .page-main-panel textarea {
            min-height: 7rem;
            resize: vertical;
        }

        .b2b-field input:focus,
        .b2b-field textarea:focus,
        .b2b-field select:focus,
        .b2b-component-frame input:focus,
        .b2b-component-frame textarea:focus,
        .b2b-component-frame select:focus,
        .b2b-component-frame .form-control:focus,
        .page-main-panel input:focus,
        .page-main-panel textarea:focus,
        .page-main-panel select:focus {
            outline: none;
            border-color: rgba(182, 0, 0, 0.4);
            box-shadow: 0 0 0 0.2rem rgba(182, 0, 0, 0.12);
            background: #fff;
        }

        .b2b-button-row,
        .b2b-action-row,
        .b2b-component-frame .form-group,
        .b2b-component-frame form > div {
            margin-bottom: 1rem;
        }

        .b2b-component-frame .btn,
        .b2b-form-card .btn,
        .page-main-panel .btn,
        .page-main-panel button[type="submit"],
        .b2b-form-card button[type="submit"],
        .b2b-component-frame input[type="submit"],
        .b2b-component-frame button[type="submit"],
        .b2b-component-frame button[type="button"] {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            min-height: 2.85rem;
            padding: 0.85rem 1.2rem;
            border: 0;
            border-radius: 0.75rem;
            font-size: 0.76rem;
            font-weight: 800;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            text-decoration: none;
            transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
        }

        .b2b-component-frame .btn:hover,
        .b2b-form-card .btn:hover,
        .page-main-panel .btn:hover,
        .page-main-panel button[type="submit"]:hover,
        .b2b-form-card button[type="submit"]:hover,
        .b2b-component-frame input[type="submit"]:hover,
        .b2b-component-frame button[type="submit"]:hover,
        .b2b-component-frame button[type="button"]:hover {
            transform: translateY(-2px);
        }

        .b2b-component-frame .btn-primary,
        .b2b-component-frame input[type="submit"],
        .b2b-component-frame button[type="submit"],
        .b2b-component-frame button[type="button"],
        .b2b-form-card button[type="submit"],
        .page-main-panel button[type="submit"] {
            background: var(--color-accent);
            color: #fff;
            box-shadow: 0 18px 30px rgba(182, 0, 0, 0.14);
        }

        .b2b-component-frame .btn-primary:hover,
        .b2b-component-frame input[type="submit"]:hover,
        .b2b-component-frame button[type="submit"]:hover,
        .b2b-component-frame button[type="button"]:hover,
        .b2b-form-card button[type="submit"]:hover,
        .page-main-panel button[type="submit"]:hover {
            background: var(--color-accent-hover);
            color: #fff;
        }

        .b2b-component-frame .btn-outline-primary,
        .b2b-component-frame .btn-secondary,
        .b2b-component-frame .btn-light,
        .b2b-component-frame .btn-default,
        .b2b-form-card .btn-outline-primary,
        .page-main-panel .btn-outline-primary {
            background: rgba(255, 255, 255, 0.65);
            color: var(--color-text-strong);
            border: 1px solid rgba(148, 163, 184, 0.26);
            box-shadow: none;
        }

        .b2b-component-frame .btn-outline-primary:hover,
        .b2b-component-frame .btn-secondary:hover,
        .b2b-component-frame .btn-light:hover,
        .b2b-component-frame .btn-default:hover,
        .b2b-form-card .btn-outline-primary:hover,
        .page-main-panel .btn-outline-primary:hover {
            background: rgba(255, 255, 255, 0.95);
            color: var(--color-accent);
            border-color: rgba(182, 0, 0, 0.22);
        }

        .b2b-component-frame .btn-danger,
        .page-main-panel .btn-danger {
            background: #991b1b;
            color: #fff;
        }

        .b2b-component-frame .btn-success,
        .page-main-panel .btn-success {
            background: #166534;
            color: #fff;
        }

        .b2b-component-frame .btn-link,
        .page-main-panel .btn-link {
            padding-left: 0;
            padding-right: 0;
            min-height: auto;
            background: transparent;
            color: var(--color-accent);
            box-shadow: none;
        }

        .b2b-component-frame table,
        .b2b-component-frame .table {
            width: 100%;
            border-radius: 0.95rem;
            overflow: hidden;
            border-collapse: separate;
            border-spacing: 0;
            background: rgba(255, 255, 255, 0.56);
        }

        .b2b-component-frame table th,
        .b2b-component-frame .table th {
            background: rgba(248, 250, 252, 0.95);
            color: var(--color-text-strong);
            font-size: 0.72rem;
            font-weight: 800;
            letter-spacing: 0.12em;
            text-transform: uppercase;
        }

        .b2b-component-frame table th,
        .b2b-component-frame table td,
        .b2b-component-frame .table th,
        .b2b-component-frame .table td {
            padding: 0.95rem 1rem;
            border-color: rgba(226, 232, 240, 0.8);
            vertical-align: middle;
        }

        .b2b-component-frame .pagination,
        .b2b-component-frame .pagination-nav {
            display: flex;
            flex-wrap: wrap;
            gap: 0.45rem;
            padding-left: 0;
            list-style: none;
        }

        .b2b-component-frame .page-link,
        .b2b-component-frame .pagination a,
        .b2b-component-frame .pagination span {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 2.5rem;
            min-height: 2.5rem;
            padding: 0.5rem 0.8rem;
            border-radius: 999px;
            border: 1px solid rgba(203, 213, 225, 0.8);
            background: rgba(255, 255, 255, 0.86);
            color: var(--color-text-strong);
            text-decoration: none;
        }

        .b2b-component-frame hr,
        .b2b-prose hr {
            border: 0;
            height: 1px;
            background: rgba(203, 213, 225, 0.7);
            margin: 1.5rem 0;
        }

        .b2b-component-frame code,
        .b2b-form-card code,
        .b2b-prose code {
            padding: 0.2rem 0.45rem;
            border-radius: 0.4rem;
            background: rgba(15, 23, 42, 0.06);
            color: var(--color-text-strong);
        }

        .b2b-empty-state {
            padding: 1.15rem;
            border-radius: 0.9rem;
            background: rgba(248, 250, 252, 0.9);
            border: 1px dashed rgba(148, 163, 184, 0.32);
            color: var(--color-muted);
        }

        .page-main-panel .notetext {
            margin: 0;
            padding: 1rem 1.1rem;
            border-radius: 0.95rem;
            background: rgba(220, 252, 231, 0.9);
            color: #14532d;
        }

        .personal-nav {
            display: flex;
            flex-direction: column;
            gap: 0.4rem;
        }

        .personal-nav__link {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            padding: 0.95rem 1rem;
            border-radius: 0.85rem;
            text-decoration: none;
            color: var(--color-text-strong);
            font-weight: 700;
            background: rgba(255, 255, 255, 0.9);
            border: 1px solid rgba(148, 163, 184, 0.14);
            transition: transform 0.25s ease, color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
        }

        .personal-nav__link:hover {
            transform: translateX(4px);
            color: var(--color-accent);
            border-color: rgba(182, 0, 0, 0.16);
            background: rgba(255, 255, 255, 0.82);
        }

        .personal-nav__link.is-active {
            color: #fff;
            background: var(--color-accent);
            box-shadow: 0 14px 24px rgba(182, 0, 0, 0.16);
        }

        .personal-nav__link.is-active .personal-nav__arrow {
            color: rgba(255, 255, 255, 0.88);
        }

        .personal-nav__arrow {
            color: var(--color-muted);
            transition: transform 0.25s ease;
        }

        .personal-nav__link:hover .personal-nav__arrow {
            transform: translateX(3px);
        }

        .b2b-profile-form {
            display: grid;
            gap: 1.5rem;
        }

        .b2b-profile-section {
            padding: 1.25rem;
            border-radius: 0.95rem;
            background: rgba(255, 255, 255, 0.94);
            border: 1px solid rgba(148, 163, 184, 0.14);
        }

        .b2b-profile-section__title {
            margin: 0 0 1rem;
            color: var(--color-text-strong);
            font-size: 0.82rem;
            font-weight: 800;
            letter-spacing: 0.12em;
            text-transform: uppercase;
        }

        .stl-map-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 1rem;
        }

        .stl-map-column {
            padding: 1.25rem;
            border-radius: 0.95rem;
            background: rgba(255, 255, 255, 0.94);
            border: 1px solid rgba(148, 163, 184, 0.16);
            box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
        }

        .stl-map-column .map-level-0,
        .stl-map-column ul {
            list-style: none;
            padding-left: 0;
            margin: 0;
        }

        .stl-map-column .map-level-0 > li + li {
            margin-top: 1.1rem;
            padding-top: 1.1rem;
            border-top: 1px solid rgba(226, 232, 240, 0.85);
        }

        .stl-map-column .map-level-0 > li > a {
            display: inline-block;
            margin-bottom: 0.6rem;
            color: var(--color-text-strong);
            font-size: 0.92rem;
            font-weight: 800;
            text-decoration: none;
        }

        .stl-map-column .map-level-0 > li > a:hover,
        .stl-map-column .map-level-1 a:hover,
        .stl-map-column .map-level-2 a:hover,
        .stl-map-column .map-level-3 a:hover {
            color: var(--color-accent);
        }

        .stl-map-column .map-level-1,
        .stl-map-column .map-level-2,
        .stl-map-column .map-level-3 {
            padding-left: 1rem;
        }

        .stl-map-column .map-level-1 li,
        .stl-map-column .map-level-2 li,
        .stl-map-column .map-level-3 li {
            position: relative;
            padding-left: 1rem;
        }

        .stl-map-column .map-level-1 li::before,
        .stl-map-column .map-level-2 li::before,
        .stl-map-column .map-level-3 li::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0.75rem;
            width: 0.45rem;
            height: 1px;
            background: rgba(148, 163, 184, 0.7);
        }

        .stl-map-column a {
            color: var(--color-muted);
            text-decoration: none;
            line-height: 1.7;
        }

        .stl-map-column div {
            margin-bottom: 0.35rem;
            color: var(--color-muted);
            font-size: 0.88rem;
            line-height: 1.7;
        }

        .b2b-auth-grid,
        .b2b-split-hero {
            display: grid;
            grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
            gap: 1rem;
        }

        .b2b-auth-note {
            padding: 1rem 1.1rem;
            border-radius: 0.95rem;
            background: rgba(248, 250, 252, 0.94);
            border: 1px solid rgba(226, 232, 240, 0.9);
        }

        .b2b-auth-note__label {
            margin-bottom: 0.55rem;
            color: var(--color-text-strong);
            font-size: 0.68rem;
            font-weight: 800;
            letter-spacing: 0.14em;
            text-transform: uppercase;
        }

        .b2b-auth-note__copy {
            margin: 0;
            color: var(--color-muted);
            font-size: 0.92rem;
            line-height: 1.7;
        }

        .b2b-map-frame iframe {
            width: 100%;
            min-height: 24rem;
            border: 0;
            border-radius: 0.95rem;
        }

        .b2b-hero-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
        }

        .b2b-hero-actions .btn,
        .b2b-hero-actions a {
            text-decoration: none;
        }

        /* ==========================================================================
           RESPONSIVE
           ==========================================================================

           Здесь только действительно нужные адаптивные правила. Остальной responsive
           layout оставляется на Bootstrap utilities.
        */
        @media (max-width: 991px) {
            .header-wrapper {
                top: 0.45rem;
                padding: 0 0.5rem;
            }

            .header-shell {
                border-radius: 0.7rem;
            }

            .top-row {
                font-size: 0.82rem;
            }

            .top-row .container-fluid,
            .header-shell > .container-fluid {
                padding-left: 1rem !important;
                padding-right: 1rem !important;
            }

            .header-top-meta {
                justify-content: center;
                gap: 0.75rem 1rem !important;
            }

            .header-top-contact {
                justify-content: center;
                gap: 0.75rem !important;
            }

            .logo-wrap {
                min-height: auto;
                justify-content: flex-start;
            }

            .logo-wrap img {
                height: 3.4rem;
            }

            .header-actions-row {
                justify-content: flex-end !important;
                gap: 1.4rem !important;
                margin-right: 0 !important;
            }

            .search-wrap {
                max-width: 100%;
            }

            .hero-content {
                margin: 0 1rem;
                padding: 2rem;
                border-radius: 0.5rem;
                border-left: none;
                border-top: 5px solid var(--color-accent);
                text-align: center;
            }

            .hero-title {
                font-size: 2.5rem;
            }

            .assembly-gap-section {
                height: var(--assembly-gap-height-mobile);
            }

            .feature-header-group {
                margin-bottom: 2rem;
            }

            .feature-summary {
                max-width: none;
            }

            .feature-ledger {
                min-height: 100%;
            }

            .feature-card {
                min-height: 14rem;
            }

            .partner-shell {
                padding: 1.75rem;
            }

            .b2b-workarea {
                padding-top: 1.2rem;
            }

            .page-shell-hero {
                border-left: none;
                border-top: var(--ui-b2b-accent-border-width) solid var(--color-accent);
            }

            .page-shell-aside {
                padding: 1.15rem;
            }

            .b2b-grid-cards,
            .b2b-info-grid,
            .b2b-queue-grid,
            .b2b-contact-grid,
            .b2b-step-grid,
            .b2b-form-grid,
            .stl-map-grid,
            .b2b-auth-grid,
            .b2b-split-hero {
                grid-template-columns: 1fr;
            }

            .partner-stats {
                grid-template-columns: 1fr;
                margin-top: 2.4rem;
                padding-top: 1.5rem;
            }

            .footer-main {
                grid-template-columns: 1fr;
            }

            .footer-nav-grid {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }

            .footer-contact-panel {
                padding-left: 0;
                padding-top: 1rem;
                border-left: none;
                border-top: 1px solid rgba(148, 163, 184, 0.16);
            }
        }

        @media (max-width: 575px) {
            .top-row .container-fluid,
            .header-shell > .container-fluid {
                padding-left: 0.85rem !important;
                padding-right: 0.85rem !important;
            }

            .header-top-meta {
                justify-content: space-between;
            }

            .header-top-contact {
                flex-direction: row;
            }

            .header-city-label {
                display: none;
            }

            .logo-wrap {
                justify-content: center;
            }

            .logo-wrap img {
                height: 2.9rem;
            }

            .search-wrap .form-control {
                padding: 0.8rem 2.75rem;
            }

            .header-actions-row {
                justify-content: center !important;
                gap: 1.1rem !important;
            }

            .features-showcase {
                padding: 1.5rem;
            }

            .page-shell-hero,
            .page-main-panel,
            .page-sidebar-card,
            .b2b-content-card,
            .b2b-form-card,
            .b2b-info-card,
            .b2b-component-frame,
            .stl-map-column {
                padding: 1rem;
            }

            .page-shell-title {
                font-size: 1.85rem;
            }

            .page-shell-summary,
            .page-shell-aside__copy {
                font-size: 0.92rem;
            }

            .b2b-component-frame table,
            .b2b-component-frame .table {
                display: block;
                overflow-x: auto;
            }

            .feature-ledger {
                padding: 1.5rem;
            }

            .feature-ledger__title {
                max-width: none;
                font-size: 1.65rem;
            }

            .feature-card__top {
                gap: 0.75rem;
            }

            .feature-card__icon-badge {
                width: 4.25rem;
                height: 4.25rem;
                font-size: 2rem;
            }

            .feature-card__metric-value {
                font-size: 1.08rem;
            }

            .partner-title {
                font-size: 1.9rem;
            }

            .partner-copy {
                font-size: 0.95rem;
            }

            .partner-primary {
                width: 100%;
                justify-content: center;
            }

            .partner-actions {
                width: 100%;
                min-width: 0;
            }

            .footer-shell {
                padding-left: 0.25rem;
                padding-right: 0.25rem;
            }

            .footer-brand-header {
                align-items: flex-start;
            }

            .footer-logo {
                width: 3.1rem;
                height: 3.1rem;
            }

            .footer-nav-grid {
                grid-template-columns: 1fr;
            }

            .footer-support-actions {
                flex-direction: column;
            }

            .footer-action-btn {
                width: 100%;
            }

            .footer-bottom {
                align-items: flex-start;
            }
        }

/* ==========================================================================
   B2B AUTH POLISH
   ========================================================================== */
.b2b-auth-hero {
    overflow: hidden;
}

.b2b-auth-grid--balanced {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 1.25rem;
    align-items: stretch;
}

.b2b-login-panel,
.b2b-access-steps,
.b2b-register-card {
    min-height: 100%;
}

.b2b-login-card,
.b2b-login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.b2b-login-form__head h3,
.b2b-access-steps h3,
.b2b-register-card h2 {
    margin: 0 0 0.45rem;
    color: var(--color-text-strong);
    font-size: clamp(1.1rem, 1.6vw, 1.55rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    text-transform: none;
}

.b2b-login-form__head p,
.b2b-login-register-note,
.b2b-login-secure-note {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.65;
}

.b2b-login-form .b2b-field,
.b2b-register-card .b2b-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.b2b-login-form label,
.b2b-register-card label {
    color: var(--color-text-strong);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.b2b-login-form .form-control,
.b2b-register-card input,
.b2b-register-card textarea,
.b2b-register-card select {
    width: 100%;
    min-height: 3rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 0.9rem;
    background: rgba(248, 250, 252, 0.92);
    color: var(--color-text-strong);
    padding: 0.8rem 0.95rem;
    font: inherit;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.b2b-register-card textarea {
    min-height: 5rem;
    resize: vertical;
}

.b2b-login-form .form-control:focus,
.b2b-register-card input:focus,
.b2b-register-card textarea:focus,
.b2b-register-card select:focus {
    outline: none;
    border-color: var(--color-accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(182, 0, 0, 0.12);
}

.b2b-login-check {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 2.75rem;
    color: var(--color-muted);
    cursor: pointer;
}

.b2b-login-check input {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--color-accent);
}

.b2b-login-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    margin-top: 0.25rem;
}

.b2b-login-submit,
.b2b-register-card button[type="submit"] {
    min-height: 3rem;
    border: 0;
    border-radius: 0.95rem;
    padding: 0.85rem 1.25rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.b2b-login-link,
.b2b-login-register-note a,
.b2b-access-steps a {
    color: var(--color-accent);
    font-weight: 700;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.2em;
}

.b2b-access-steps__list {
    counter-reset: b2b-auth-step;
    display: grid;
    gap: 0.9rem;
    padding-left: 0 !important;
    list-style: none;
}

.b2b-access-steps__list li {
    position: relative;
    min-height: 3.25rem;
    padding: 0.8rem 0.9rem 0.8rem 3.15rem;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 1rem;
    background: rgba(248, 250, 252, 0.75);
    color: var(--color-muted);
}

.b2b-access-steps__list li::before {
    counter-increment: b2b-auth-step;
    content: counter(b2b-auth-step);
    position: absolute;
    left: 0.85rem;
    top: 0.8rem;
    width: 1.75rem;
    height: 1.75rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--color-text-strong);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
}

.b2b-access-steps__cta {
    margin-top: 0.25rem;
}

.b2b-register-card {
    scroll-margin-top: 7rem;
}

.b2b-register-card .b2b-form-grid {
    gap: 1rem;
}

@media (max-width: 991.98px) {
    .b2b-auth-grid--balanced {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .b2b-login-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .b2b-login-submit,
    .b2b-register-card button[type="submit"] {
        width: 100%;
    }
}

/* ==========================================================================
   B2B CATALOG / CART / PERSONAL PHASES
   ========================================================================== */
.b2b-card-purchase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
}

.b2b-qty-stepper {
    display: inline-grid;
    grid-template-columns: 2.5rem minmax(3.2rem, 1fr) 2.5rem;
    align-items: center;
    min-height: 2.75rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 0.9rem;
    overflow: hidden;
    background: #fff;
}

.b2b-qty-stepper button {
    width: 2.5rem;
    height: 2.75rem;
    border: 0;
    background: rgba(15, 23, 42, 0.04);
    color: var(--color-text-strong);
    font-size: 1.15rem;
    font-weight: 900;
    cursor: pointer;
}

.b2b-qty-stepper button:hover,
.b2b-qty-stepper button:focus-visible {
    background: rgba(182, 0, 0, 0.09);
    outline: none;
}

.b2b-qty-stepper input {
    width: 100%;
    height: 2.75rem;
    border: 0;
    text-align: center;
    font-weight: 800;
    color: var(--color-text-strong);
    background: transparent;
}

.b2b-qty-stepper input:focus { outline: none; }

.btn-cart.is-loading { opacity: .72; cursor: progress; }

.b2b-detail-link {
    min-height: 2.75rem;
    width: auto !important;
    min-width: 100%;
    padding-inline: 1rem;
    border-radius: 0.9rem;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
}

.product-favorite { display: none !important; }

.b2b-product-detail {
    display: grid;
    grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
    gap: 1.25rem;
}

.b2b-product-detail__media {
    display: grid;
    place-items: center;
    min-height: 360px;
    padding: 1.25rem;
}

.b2b-product-detail__media img {
    max-width: 100%;
    max-height: 460px;
    object-fit: contain;
}

.b2b-back-link {
    display: inline-flex;
    margin-bottom: 1rem;
    color: var(--color-accent);
    font-weight: 800;
    text-decoration: none;
}

.b2b-product-detail__price {
    margin: 1rem 0;
    color: var(--color-text-strong);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.b2b-product-detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
}

.b2b-product-detail__actions .btn { min-height: 2.95rem; }

.b2b-product-detail__specs { grid-column: 1 / -1; }
.b2b-product-detail__specs h3 { margin-bottom: 1rem; }
.b2b-spec-table { display: grid; gap: .4rem; }
.b2b-spec-row {
    display: grid;
    grid-template-columns: minmax(160px, .45fr) 1fr;
    gap: 1rem;
    padding: .85rem 1rem;
    border-radius: .9rem;
    background: rgba(248,250,252,.85);
}
.b2b-spec-row dt { color: var(--color-muted); font-weight: 700; }
.b2b-spec-row dd { margin: 0; color: var(--color-text-strong); font-weight: 700; }

.b2b-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 1.25rem;
    align-items: start;
}

.b2b-cart-list { display: grid; gap: .85rem; }
.b2b-cart-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px 150px 140px auto;
    gap: .9rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid rgba(226,232,240,.9);
    border-radius: 1.1rem;
    background: rgba(255,255,255,.9);
}
.b2b-cart-row__title {
    color: var(--color-text-strong);
    font-weight: 850;
    text-decoration: none;
}
.b2b-cart-row__meta,
.b2b-cart-row__price small,
.b2b-cart-summary__meta,
.b2b-cart-summary__note {
    color: var(--color-muted);
    font-size: .9rem;
}
.b2b-cart-row__price,
.b2b-cart-row__sum {
    color: var(--color-text-strong);
    font-weight: 850;
}
.b2b-cart-row__remove {
    min-height: 2.5rem;
    border: 1px solid rgba(182,0,0,.25);
    border-radius: .8rem;
    background: rgba(182,0,0,.05);
    color: var(--color-accent);
    font-weight: 800;
}
.b2b-cart-summary {
    position: sticky;
    top: 1rem;
    padding: 1.25rem;
    border-radius: 1.25rem;
    background: rgba(15,23,42,.96);
    color: #fff;
    box-shadow: 0 24px 60px rgba(15,23,42,.25);
}
.b2b-cart-summary__label { color: rgba(255,255,255,.65); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; }
.b2b-cart-summary__total { font-size: 2rem; font-weight: 950; letter-spacing: -.04em; margin: .3rem 0; }
.b2b-cart-summary__note { color: rgba(255,255,255,.68); margin-top: 1rem; }

.b2b-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}
.b2b-dashboard-card {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    min-height: 10rem;
    padding: 1.1rem;
    border: 1px solid rgba(226,232,240,.9);
    border-radius: 1.15rem;
    background: rgba(248,250,252,.85);
    color: var(--color-text-strong);
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.b2b-dashboard-card:hover,
.b2b-dashboard-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(182,0,0,.28);
    box-shadow: 0 18px 40px rgba(15,23,42,.12);
    outline: none;
}
.b2b-dashboard-card__label { color: var(--color-accent); font-size: .75rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.b2b-dashboard-card strong { font-size: 1.05rem; }
.b2b-dashboard-card span:last-child { color: var(--color-muted); line-height: 1.55; }

@media (max-width: 1199.98px) {
    .b2b-cart-row { grid-template-columns: minmax(0, 1fr) 130px 150px; }
    .b2b-cart-row__sum, .b2b-cart-row__remove { grid-column: auto; }
    .b2b-dashboard-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 991.98px) {
    .b2b-product-detail,
    .b2b-cart-layout { grid-template-columns: 1fr; }
    .b2b-cart-summary { position: static; }
}

@media (max-width: 767.98px) {
    .b2b-cart-row { grid-template-columns: 1fr; }
    .b2b-spec-row { grid-template-columns: 1fr; }
    .b2b-dashboard-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   UI/UX PRO FIX PASS — 2026-06-25
   Rules: single primary action, no duplicate auth copy, no native number spinners,
   professional B2B surfaces, 44px targets, visible states.
   ========================================================================== */
:root {
    --stl-ui-font: Inter, "Fira Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --stl-ui-ink: #101828;
    --stl-ui-muted: #667085;
    --stl-ui-border: #e4e7ec;
    --stl-ui-surface: #fff;
    --stl-ui-soft: #f8fafc;
    --stl-ui-red: #b42318;
    --stl-ui-red-dark: #8f1b13;
    --stl-ui-navy: #101828;
    --stl-ui-shadow: 0 18px 50px rgba(16, 24, 40, .08);
}
body, input, button, textarea, select { font-family: var(--stl-ui-font); }
.page-shell-title,
.section-title,
.b2b-product-detail__title,
.b2b-dashboard-card strong,
.product-title { letter-spacing: -0.035em; text-transform: none; color: var(--stl-ui-ink); }
.partner-kicker,
.b2b-queue-card__label,
.b2b-dashboard-card__label { letter-spacing: .06em; }

/* Real catalog drawer from hamburger */
.header-shell { position: relative; }
.b2b-catalog-toggle { min-width: 44px; min-height: 44px; border-radius: 14px !important; display: inline-flex; align-items: center; justify-content: center; }
.b2b-catalog-toggle:hover,
.b2b-catalog-toggle[aria-expanded="true"] { background: #fff1f0 !important; color: var(--stl-ui-red) !important; }
.b2b-catalog-drawer {
    position: absolute;
    left: 32px;
    top: calc(100% - 8px);
    z-index: 1000;
    width: min(860px, calc(100vw - 64px));
    padding: 22px;
    border: 1px solid rgba(180,35,24,.14);
    border-radius: 28px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 28px 80px rgba(16,24,40,.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(.98);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.b2b-catalog-drawer.is-open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.b2b-catalog-drawer__head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.b2b-catalog-drawer__head strong { font-size: 1.25rem; letter-spacing: -.03em; }
.b2b-catalog-drawer__head span { color: var(--stl-ui-muted); }
.b2b-catalog-drawer__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.b2b-catalog-drawer__grid a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--stl-ui-border);
    border-radius: 16px;
    background: #fff;
    color: var(--stl-ui-ink);
    font-weight: 800;
    text-decoration: none;
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.b2b-catalog-drawer__grid a:hover { transform: translateY(-1px); border-color: rgba(180,35,24,.35); background: #fff7f7; color: var(--stl-ui-red); }

/* Auth: remove duplicate marketing blocks and focus the form */
.b2b-auth-grid--balanced { align-items: stretch; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .7fr); }
.b2b-login-panel,
.b2b-access-steps,
.b2b-register-card { border: 1px solid var(--stl-ui-border); box-shadow: var(--stl-ui-shadow); }
.b2b-login-panel { padding: 0; overflow: hidden; }
.b2b-access-steps h3,
.b2b-register-card h2 { font-size: 1.35rem; letter-spacing: -.03em; text-transform: none; }
.b2b-access-steps__list { margin-bottom: 0; }
.b2b-access-steps__cta { margin-top: 18px; }

/* Hide native spinner everywhere; we own +/- controls */
.b2b-qty-stepper input,
[data-basket-quantity],
[data-cart-quantity] { appearance: textfield; -moz-appearance: textfield; }
.b2b-qty-stepper input::-webkit-outer-spin-button,
.b2b-qty-stepper input::-webkit-inner-spin-button,
[data-basket-quantity]::-webkit-outer-spin-button,
[data-basket-quantity]::-webkit-inner-spin-button,
[data-cart-quantity]::-webkit-outer-spin-button,
[data-cart-quantity]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.b2b-qty-stepper {
    display: inline-grid;
    grid-template-columns: 44px minmax(48px, 1fr) 44px;
    align-items: center;
    min-height: 46px;
    border: 1px solid #d0d5dd;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}
.b2b-qty-stepper button {
    width: 44px;
    height: 44px;
    border: 0;
    background: #fff5f4;
    color: var(--stl-ui-red);
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1;
}
.b2b-qty-stepper button:hover { background: var(--stl-ui-red); color: #fff; }
.b2b-qty-stepper input {
    width: 100%;
    height: 44px;
    border: 0;
    background: #fff;
    color: var(--stl-ui-ink);
    text-align: center;
    font-weight: 900;
    font-size: 1rem;
    outline: none;
}

/* Catalog cards: one primary action; whole card opens detail */
.b2b-product-card--pro {
    position: relative;
    min-height: 100%;
    border: 1px solid rgba(180,35,24,.12) !important;
    border-radius: 24px !important;
    padding: 18px !important;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.b2b-product-card--pro:hover { transform: translateY(-3px); border-color: rgba(180,35,24,.34) !important; box-shadow: 0 22px 60px rgba(16,24,40,.14) !important; }
.b2b-product-card__click { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.b2b-product-card--pro .product-image-box,
.b2b-product-card--pro .product-meta,
.b2b-product-card--pro .product-title,
.b2b-product-card--pro .b2b-card-price-row { position: relative; z-index: 2; }
.b2b-product-card--pro .product-title {
    min-height: 4.4em;
    font-size: .98rem;
    line-height: 1.32;
    font-weight: 800;
    text-transform: none;
}
.b2b-card-price-row { margin-top: auto; margin-bottom: 14px; }
.b2b-product-card--pro .product-price { color: var(--stl-ui-red); letter-spacing: -.03em; }
.b2b-card-purchase { position: relative; z-index: 3; display: grid; gap: 10px; }
.b2b-cart-add-primary,
.b2b-detail-add {
    min-height: 48px;
    border-radius: 999px !important;
    background: linear-gradient(135deg, var(--stl-ui-red), var(--stl-ui-red-dark)) !important;
    box-shadow: 0 10px 24px rgba(180,35,24,.22);
}
.b2b-cart-add-primary.is-hidden,
.b2b-detail-add.is-hidden { display: none !important; }
.b2b-qty-stepper--inline { display: none; width: 100%; }
.b2b-qty-stepper--inline.is-active { display: grid; }
.b2b-detail-stepper { margin-top: 10px; }
.b2b-detail-link,
.btn-eye { display: none !important; }

/* Product detail: Vimos-inspired structure, STL styling */
.b2b-product-detail--vimos { display: grid; gap: 20px; }
.b2b-product-detail__crumbs { display: flex; gap: 8px; align-items: center; color: var(--stl-ui-muted); font-size: .9rem; }
.b2b-product-detail__crumbs a { color: var(--stl-ui-red); font-weight: 800; text-decoration: none; }
.b2b-product-detail__layout { display: grid; grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr) minmax(300px, .55fr); gap: 24px; align-items: start; }
.b2b-product-detail__gallery,
.b2b-product-detail__buybox { border-radius: 28px; border: 1px solid var(--stl-ui-border); box-shadow: var(--stl-ui-shadow); }
.b2b-product-detail__image-frame { aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 28px; background: linear-gradient(180deg, #fff, #f8fafc); border-radius: 24px; }
.b2b-product-detail__image-frame img { max-width: 100%; max-height: 100%; object-fit: contain; }
.b2b-product-detail__info { padding: 6px 0; }
.b2b-product-detail__label { color: var(--stl-ui-red); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: .76rem; margin-bottom: 10px; }
.b2b-product-detail__title { font-size: clamp(1.55rem, 2.5vw, 2.45rem); line-height: 1.05; font-weight: 900; margin-bottom: 20px; }
.b2b-product-detail__meta-grid { display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; padding: 16px; border-radius: 18px; background: #f8fafc; border: 1px solid var(--stl-ui-border); }
.b2b-product-detail__meta-grid span { color: var(--stl-ui-muted); }
.b2b-product-detail__meta-grid strong { color: var(--stl-ui-ink); }
.b2b-product-detail__buybox { position: sticky; top: 24px; padding: 22px; background: #fff; }
.b2b-product-detail__buybox-label { color: var(--stl-ui-muted); font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.b2b-product-detail__price { font-size: clamp(2rem, 4vw, 3rem); line-height: 1; font-weight: 950; letter-spacing: -.05em; color: var(--stl-ui-red); margin: 8px 0 18px; }
.b2b-product-detail__specs { margin-top: 4px; }

/* Cart: main cart first, quick order below, readable rows */
.b2b-cart-shell { border: 1px solid var(--stl-ui-border); box-shadow: var(--stl-ui-shadow); }
.b2b-cart-layout { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 22px; }
.b2b-cart-row { grid-template-columns: minmax(220px, 1fr) 135px 160px 130px 96px; align-items: center; border-color: var(--stl-ui-border); }
.b2b-cart-row__title { color: var(--stl-ui-ink) !important; font-size: 1rem; line-height: 1.25; font-weight: 900; text-decoration: none; }
.b2b-cart-row__price span,
.b2b-cart-row__sum { color: var(--stl-ui-ink); font-weight: 900; white-space: nowrap; }
.b2b-cart-row__remove { min-height: 40px; border-radius: 999px; font-weight: 900; }
.b2b-cart-summary { background: #111827; border-radius: 28px; padding: 24px; }
.b2b-cart-summary .btn-brand { min-height: 48px; color: #fff !important; display: flex; align-items: center; justify-content: center; font-weight: 900; }
.b2b-cart-summary__total { color: #fff; }
.b2b-quick-order-panel { margin-top: 24px; border: 1px dashed rgba(180,35,24,.25); background: #fff; }
.b2b-quick-order-panel h3 { text-transform: none; letter-spacing: -.03em; }

/* Personal cabinet: hide generated template side menu; use our dashboard only */
.bx-sidebar,
.bx-content-sidebar,
.right-sidebar,
.sidebar .sale-personal-section-index-block,
.sale-personal-section-index-block-ico { display: none !important; }
.b2b-personal-dashboard { margin-top: 0 !important; }
.b2b-dashboard-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.b2b-dashboard-card { border: 1px solid var(--stl-ui-border); border-radius: 22px; box-shadow: var(--stl-ui-shadow); text-decoration: none; }
.b2b-dashboard-card:hover { transform: translateY(-2px); border-color: rgba(180,35,24,.35); }
.b2b-queue-card { border-radius: 22px; border: 1px solid var(--stl-ui-border); box-shadow: 0 10px 30px rgba(16,24,40,.06); }
.b2b-queue-card__title { text-transform: none; letter-spacing: -.03em; }
.badge.badge-info { background: #e0f2fe; color: #075985; border-radius: 999px; padding: 6px 10px; }

@media (max-width: 1199px) {
    .b2b-product-detail__layout { grid-template-columns: 1fr; }
    .b2b-product-detail__buybox { position: static; }
    .b2b-dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .b2b-cart-layout { grid-template-columns: 1fr; }
    .b2b-cart-row { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 767px) {
    .b2b-catalog-drawer { left: 16px; width: calc(100vw - 32px); }
    .b2b-catalog-drawer__grid { grid-template-columns: 1fr; }
    .b2b-auth-grid--balanced,
    .b2b-dashboard-grid { grid-template-columns: 1fr; }
}

/* Product detail screenshot fix: no global huge hero, no broken image/alt text */
.b2b-workarea .page-main-panel:has(.b2b-product-detail--vimos) {
    padding-top: 0;
}
.b2b-product-detail--vimos {
    margin-top: 0;
}
.b2b-product-detail__image-frame.is-placeholder {
    background:
        radial-gradient(circle at 30% 20%, rgba(180,35,24,.08), transparent 34%),
        linear-gradient(135deg, #fff, #f8fafc);
    border: 1px dashed rgba(180,35,24,.28);
}
.b2b-product-detail__placeholder {
    display: grid;
    place-items: center;
    gap: 6px;
    min-height: 260px;
    color: #667085;
    text-align: center;
}
.b2b-product-detail__placeholder span {
    font-weight: 900;
    color: #b42318;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .8rem;
}
.b2b-product-detail__placeholder strong {
    font-size: 1.25rem;
    letter-spacing: -.03em;
    color: #101828;
}
@media (min-width: 1200px) {
    .b2b-product-detail--vimos .b2b-product-detail__title {
        font-size: clamp(1.45rem, 2vw, 2.15rem);
    }
}

/* Product detail layout fix: 2-column Vimos-like readable layout */
@media (min-width: 1200px) {
    .b2b-product-detail--vimos .b2b-product-detail__layout {
        grid-template-columns: minmax(420px, 0.9fr) minmax(520px, 1.1fr);
        grid-template-areas:
            "gallery info"
            "gallery buybox";
        align-items: start;
    }
    .b2b-product-detail--vimos .b2b-product-detail__gallery { grid-area: gallery; }
    .b2b-product-detail--vimos .b2b-product-detail__info { grid-area: info; min-width: 0; }
    .b2b-product-detail--vimos .b2b-product-detail__buybox {
        grid-area: buybox;
        position: static;
        margin-top: 18px;
        display: grid;
        grid-template-columns: minmax(220px, auto) minmax(220px, 1fr);
        grid-template-areas:
            "label label"
            "price action"
            "back back";
        gap: 10px 18px;
        align-items: center;
    }
    .b2b-product-detail--vimos .b2b-product-detail__buybox-label { grid-area: label; }
    .b2b-product-detail--vimos .b2b-product-detail__price { grid-area: price; margin: 0; white-space: nowrap; }
    .b2b-product-detail--vimos .b2b-detail-add,
    .b2b-product-detail--vimos .b2b-detail-stepper { grid-area: action; width: 100%; margin: 0; }
    .b2b-product-detail--vimos .b2b-back-link { grid-area: back; margin-top: 2px; }
    .b2b-product-detail--vimos .b2b-product-detail__title {
        max-width: 980px;
        font-size: clamp(1.55rem, 2.15vw, 2.45rem);
        line-height: 1.12;
        word-break: normal;
        overflow-wrap: anywhere;
    }
    .b2b-product-detail--vimos .b2b-product-detail__meta-grid {
        grid-template-columns: 150px minmax(0, 1fr);
    }
}

/* ==========================================================================
   STL B2B master UI polish pass — scoped away from homepage content
   Skills: frontend-design + ui-ux-pro-max
   Direction: Trust & Authority, dense B2B catalog, one primary action.
   ========================================================================== */
:root {
    --stl-ink: #0f172a;
    --stl-ink-strong: #020617;
    --stl-muted: #64748b;
    --stl-soft: #f8fafc;
    --stl-panel: #ffffff;
    --stl-line: #e2e8f0;
    --stl-brand: #b42318;
    --stl-brand-2: #dc2626;
    --stl-blue: #0369a1;
    --stl-radius-lg: 28px;
    --stl-radius-md: 18px;
    --stl-shadow-card: 0 20px 60px rgba(15, 23, 42, .08);
    --stl-shadow-soft: 0 10px 28px rgba(15, 23, 42, .07);
}

.b2b-workarea :where(.b2b-content-card, .b2b-form-card, .b2b-component-frame, .glass-card, .b2b-login-card) {
    border: 1px solid rgba(226, 232, 240, .92);
    box-shadow: var(--stl-shadow-soft);
}
.b2b-workarea :where(.btn, button, a, input, textarea) {
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease, opacity .18s ease;
}
.b2b-workarea :where(a, button, .b2b-product-card) { cursor: pointer; }
.b2b-workarea :where(a, button, input, textarea):focus-visible {
    outline: 3px solid rgba(3, 105, 161, .24);
    outline-offset: 3px;
}
.b2b-workarea :where(.section-title, .page-shell-title, .b2b-product-detail__title, .b2b-queue-card__title, .b2b-dashboard-card strong) {
    letter-spacing: -.045em;
}
.b2b-workarea .page-shell-hero {
    margin-bottom: 24px;
}
.b2b-workarea .page-shell-title {
    font-size: clamp(2.25rem, 5vw, 5.2rem);
    line-height: .95;
}
.b2b-workarea .page-shell-summary {
    color: #667085;
    line-height: 1.58;
}

/* Auth: compact, clear two-path experience */
.b2b-auth-grid--balanced {
    align-items: stretch;
    grid-template-columns: minmax(360px, .9fr) minmax(340px, .7fr);
    gap: 24px;
}
.b2b-login-panel,
.b2b-access-steps,
.b2b-register-card {
    border-radius: var(--stl-radius-lg);
}
.b2b-login-card {
    min-height: 100%;
    padding: clamp(24px, 3vw, 38px);
    border-radius: var(--stl-radius-lg);
}
.b2b-login-form__head h3,
.b2b-access-steps h3,
.b2b-register-card h2 {
    font-size: clamp(1.35rem, 2vw, 2rem);
    line-height: 1.08;
    color: var(--stl-ink-strong);
    margin-bottom: 10px;
}
.b2b-login-form__head p,
.b2b-access-steps,
.b2b-register-card p {
    color: #64748b;
    line-height: 1.58;
}
.b2b-field label {
    color: #344054;
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 800;
}
.b2b-field input,
.b2b-field textarea,
.b2b-login-card .form-control {
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid #dbe3ee;
    background: #f8fafc;
    color: var(--stl-ink);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.b2b-field input:focus,
.b2b-field textarea:focus,
.b2b-login-card .form-control:focus {
    border-color: rgba(3, 105, 161, .55);
    box-shadow: 0 0 0 4px rgba(3, 105, 161, .11);
    background: #fff;
}
.b2b-access-steps__list {
    display: grid;
    gap: 14px;
    padding-left: 0;
    list-style: none;
    counter-reset: step;
}
.b2b-access-steps__list li {
    position: relative;
    padding: 16px 16px 16px 58px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.b2b-access-steps__list li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 16px;
    top: 16px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--stl-ink);
    color: #fff;
    font-weight: 900;
}
.b2b-register-card {
    margin-top: 24px;
    padding: clamp(24px, 3vw, 38px);
}
.b2b-register-card form > button,
.b2b-login-submit,
.btn-brand,
.btn-cart {
    min-height: 48px;
    border-radius: 14px;
    font-weight: 900;
    letter-spacing: .02em;
}

/* Catalog cards: stable image box, cleaner density, no broken images */
.b2b-product-grid {
    row-gap: 26px;
}
.b2b-product-card--pro {
    position: relative;
    min-height: 100%;
    padding: 18px;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(180deg, #fff, #fff 72%, #fff7f6);
    border-color: rgba(180, 35, 24, .14);
}
.b2b-product-card--pro:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 52px rgba(15, 23, 42, .12);
    border-color: rgba(180, 35, 24, .32);
}
.b2b-product-card__click { z-index: 1; }
.b2b-product-card--pro :where(.b2b-card-purchase, button, input) { position: relative; z-index: 2; }
.b2b-product-card--pro .product-image-box {
    min-height: 190px;
    height: 190px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e7edf5;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    overflow: hidden;
}
.b2b-product-card--pro .product-image-box img {
    max-width: 92%;
    max-height: 170px;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.product-image-box.is-placeholder {
    background:
      radial-gradient(circle at 30% 20%, rgba(180,35,24,.09), transparent 36%),
      linear-gradient(135deg, #fff, #f8fafc);
    border-style: dashed;
}
.product-image-box__placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    color: #667085;
    font-weight: 800;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.b2b-product-card--pro .product-meta {
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
}
.b2b-product-card--pro .product-title {
    min-height: 3.9em;
    margin-bottom: 14px;
    font-size: 1.02rem;
    line-height: 1.28;
    letter-spacing: -.025em;
    color: var(--stl-ink);
}
.b2b-card-price-row {
    min-height: 36px;
    display: flex;
    align-items: end;
}
.b2b-product-card--pro .product-price {
    color: var(--stl-brand);
    font-variant-numeric: tabular-nums;
}
.b2b-card-purchase {
    margin-top: 14px;
}
.b2b-cart-add-primary,
.b2b-card-purchase .btn-cart {
    width: 100%;
    justify-content: center;
}
.b2b-qty-stepper--inline.is-active,
.b2b-detail-stepper.is-active {
    display: grid;
}
.b2b-qty-stepper {
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(180,35,24,.2);
    background: #fff;
    overflow: hidden;
}
.b2b-qty-stepper button {
    min-width: 48px;
    border: 0;
    background: var(--stl-brand);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 900;
}
.b2b-qty-stepper input {
    border: 0;
    text-align: center;
    font-weight: 900;
    color: var(--stl-ink);
}

/* Product detail: readable professional B2B PDP */
.b2b-product-detail--vimos {
    padding: clamp(4px, 1vw, 10px) 0 0;
}
.b2b-product-detail__crumbs {
    margin-bottom: 16px;
    font-size: .9rem;
    color: #64748b;
}
.b2b-product-detail__layout {
    display: grid;
    gap: 24px;
}
@media (min-width: 1180px) {
    .b2b-product-detail--vimos .b2b-product-detail__layout {
        grid-template-columns: minmax(420px, .82fr) minmax(560px, 1.18fr);
        grid-template-areas:
            "gallery info"
            "gallery buybox";
    }
    .b2b-product-detail__gallery { grid-area: gallery; }
    .b2b-product-detail__info { grid-area: info; }
    .b2b-product-detail__buybox { grid-area: buybox; }
}
.b2b-product-detail__gallery {
    padding: clamp(18px, 2.2vw, 28px);
    border-radius: 30px;
}
.b2b-product-detail__image-frame {
    min-height: clamp(330px, 34vw, 520px);
    border-radius: 24px;
}
.b2b-product-detail__info {
    padding: clamp(8px, 1vw, 14px) 0 0;
}
.b2b-product-detail__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff1f0;
    color: var(--stl-brand);
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.b2b-product-detail__title {
    margin: 16px 0 18px;
    max-width: 980px;
    font-size: clamp(1.55rem, 2.05vw, 2.25rem) !important;
    line-height: 1.14 !important;
    letter-spacing: -.045em !important;
    text-transform: none !important;
    color: var(--stl-ink-strong);
}
.b2b-product-detail__meta-grid {
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 16px;
}
.b2b-product-detail__copy {
    margin-top: 16px;
    max-width: 760px;
    color: #475569;
    line-height: 1.65;
}
.b2b-product-detail__buybox {
    position: static !important;
    border-radius: 24px;
    padding: 20px;
    display: grid;
    grid-template-columns: minmax(180px, auto) minmax(230px, 1fr);
    grid-template-areas:
      "label label"
      "price action"
      "back back";
    gap: 10px 18px;
    align-items: center;
}
.b2b-product-detail__buybox-label { grid-area: label; }
.b2b-product-detail__price {
    grid-area: price;
    margin: 0 !important;
    white-space: nowrap;
    font-size: clamp(1.9rem, 3vw, 3rem);
    color: var(--stl-brand);
    font-variant-numeric: tabular-nums;
}
.b2b-detail-add,
.b2b-detail-stepper { grid-area: action; width: 100%; margin: 0 !important; }
.b2b-back-link { grid-area: back; }
.b2b-product-detail__specs {
    margin-top: 24px;
    border-radius: 24px;
}
.b2b-spec-row {
    display: grid;
    grid-template-columns: minmax(160px, 260px) 1fr;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #eef2f7;
}
.b2b-spec-row dt {
    color: #64748b;
    font-weight: 800;
}
.b2b-spec-row dd {
    margin: 0;
    color: var(--stl-ink);
    font-weight: 700;
}

/* Cart: make current cart the hero, auxiliary panels subordinate */
.b2b-cart-shell {
    border-radius: 30px;
    padding: clamp(20px, 2.4vw, 32px);
    background: #fff;
}
.b2b-cart-layout {
    gap: 24px;
}
.b2b-cart-main .section-title {
    font-size: clamp(1.45rem, 2vw, 2rem);
}
.b2b-cart-row {
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 16px;
    box-shadow: 0 8px 20px rgba(15,23,42,.05);
}
.b2b-cart-row + .b2b-cart-row { margin-top: 12px; }
.b2b-cart-row__title {
    color: var(--stl-ink);
    font-weight: 900;
    line-height: 1.32;
    letter-spacing: -.02em;
}
.b2b-cart-row__price,
.b2b-cart-row__sum,
.b2b-cart-summary__total {
    font-variant-numeric: tabular-nums;
}
.b2b-cart-summary {
    border-radius: 26px;
    background: linear-gradient(155deg, #111827, #0f172a 70%, #1e293b);
    box-shadow: 0 24px 60px rgba(15,23,42,.22);
}
.b2b-cart-summary .btn-brand {
    background: #dc2626;
    border-color: #dc2626;
}
.b2b-repeat-order-panel {
    border-radius: 24px;
    background: linear-gradient(135deg, #fff, #f8fafc);
}
.b2b-quick-order-panel {
    border-radius: 24px;
    border-style: dashed;
    background: #fff;
}
.b2b-quick-order-panel .btn-primary {
    background: var(--stl-brand);
    border-color: var(--stl-brand);
    border-radius: 14px;
    min-height: 48px;
    font-weight: 900;
    text-transform: uppercase;
}

/* Personal dashboard: fewer placeholder vibes, more operational dashboard */
.b2b-personal-dashboard {
    border-radius: 30px;
    padding: clamp(20px, 2.4vw, 30px);
}
.b2b-dashboard-grid {
    gap: 18px;
}
.b2b-dashboard-card {
    border-radius: 22px;
    padding: 22px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #fff, #f8fafc);
    min-height: 170px;
}
.b2b-dashboard-card:hover {
    transform: translateY(-2px);
    border-color: rgba(180,35,24,.28);
    box-shadow: var(--stl-shadow-soft);
}
.b2b-dashboard-card__label {
    color: var(--stl-brand);
    font-weight: 900;
    letter-spacing: .08em;
}
.b2b-dashboard-card strong {
    color: var(--stl-ink-strong);
    font-size: 1.35rem;
    line-height: 1.05;
}
.b2b-queue-grid {
    gap: 18px;
}
.b2b-queue-card {
    border-radius: 22px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15,23,42,.05);
}
.b2b-queue-card__label {
    color: var(--stl-brand);
    letter-spacing: .08em;
    font-weight: 900;
}
.badge.badge-info,
.badge.badge-success,
.badge.badge-warning {
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 900;
    letter-spacing: .03em;
}

/* Header catalog drawer polish without homepage structural changes */
.b2b-catalog-drawer {
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(15,23,42,.16);
    border: 1px solid #e2e8f0;
}
.b2b-catalog-drawer a {
    min-height: 44px;
    border-radius: 14px;
}

@media (max-width: 991.98px) {
    .b2b-auth-grid--balanced,
    .b2b-product-detail__layout,
    .b2b-cart-layout {
        grid-template-columns: 1fr !important;
    }
    .b2b-product-detail__buybox {
        grid-template-columns: 1fr;
        grid-template-areas: "label" "price" "action" "back";
    }
    .b2b-product-detail__title {
        font-size: clamp(1.35rem, 7vw, 2rem) !important;
    }
    .b2b-workarea .page-shell-title {
        font-size: clamp(2rem, 12vw, 3.5rem);
    }
}
@media (prefers-reduced-motion: reduce) {
    .b2b-workarea *, .b2b-workarea *::before, .b2b-workarea *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* Final fix after visual review: enforce non-overlapping product detail + cart semantics */
@media (min-width: 1180px) {
    body:not(.homepage) .b2b-product-detail--vimos > .b2b-product-detail__layout {
        display: grid !important;
        grid-template-columns: minmax(380px, 0.42fr) minmax(0, 0.58fr) !important;
        grid-template-areas:
            "gallery info"
            "gallery buybox"
            "specs specs" !important;
        gap: 28px 34px !important;
        align-items: start !important;
    }
    body:not(.homepage) .b2b-product-detail--vimos .b2b-product-detail__gallery {
        grid-area: gallery !important;
        width: 100% !important;
        min-width: 0 !important;
    }
    body:not(.homepage) .b2b-product-detail--vimos .b2b-product-detail__info {
        grid-area: info !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 0 !important;
        position: relative !important;
        z-index: 1 !important;
    }
    body:not(.homepage) .b2b-product-detail--vimos .b2b-product-detail__buybox {
        grid-area: buybox !important;
        width: 100% !important;
        min-width: 0 !important;
        position: relative !important;
        top: auto !important;
        z-index: 1 !important;
    }
    body:not(.homepage) .b2b-product-detail--vimos .b2b-product-detail__specs {
        grid-area: specs !important;
    }
    body:not(.homepage) .b2b-product-detail--vimos .b2b-product-detail__image-frame {
        min-height: 420px !important;
        aspect-ratio: 1 / 1 !important;
    }
    body:not(.homepage) .b2b-product-detail--vimos .b2b-product-detail__title {
        display: block !important;
        max-width: 100% !important;
        font-size: clamp(1.42rem, 1.85vw, 2rem) !important;
        line-height: 1.18 !important;
        text-transform: none !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
    }
}
body:not(.homepage) .b2b-product-detail--vimos .b2b-product-detail__placeholder strong {
    text-transform: none;
}
body:not(.homepage) .b2b-product-detail--vimos .b2b-product-detail__price,
body:not(.homepage) .b2b-cart-summary__total,
body:not(.homepage) .b2b-cart-row__sum,
body:not(.homepage) .b2b-cart-row__price span {
    font-variant-numeric: tabular-nums;
}
body:not(.homepage) .b2b-cart-summary .btn-brand-ghost {
    background: rgba(255,255,255,.08) !important;
    color: #fff !important;
    border-color: rgba(255,255,255,.28) !important;
}
body:not(.homepage) .b2b-cart-summary .btn-brand-ghost:hover {
    background: rgba(255,255,255,.16) !important;
    color: #fff !important;
}
body:not(.homepage) .b2b-quick-order-panel textarea::placeholder {
    color: #94a3b8;
    opacity: 1;
}

/* Final micro-polish from visual review */
body:not(.homepage) .b2b-cart-summary .btn-brand-ghost {
    background: rgba(255,255,255,.14) !important;
    border-color: rgba(255,255,255,.42) !important;
    color: #fff !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
body:not(.homepage) .b2b-cart-row__remove {
    background: #fff5f5 !important;
    color: #b42318 !important;
    border: 1px solid rgba(180,35,24,.18) !important;
}
body:not(.homepage) .b2b-cart-row__remove:hover {
    background: #fee4e2 !important;
}

/* Catalog cleanup from user redline: keep only enlarged title, remove redundant cards */
body:not(.homepage) .page-shell-hero--catalog-minimal {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 8px 0 18px !important;
    margin: 0 0 10px !important;
}
body:not(.homepage) .page-shell-title--catalog {
    font-size: clamp(3.4rem, 8vw, 7.6rem) !important;
    line-height: .88 !important;
    letter-spacing: -.075em !important;
    color: #0f172a !important;
    margin: 0 !important;
    text-transform: uppercase;
}
body:not(.homepage) .b2b-catalog-stack {
    gap: 24px !important;
}
body:not(.homepage) .b2b-catalog-strip,
body:not(.homepage) .b2b-catalog-frame {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}
body:not(.homepage) .b2b-catalog-categories .section-title,
body:not(.homepage) .b2b-catalog-filters .section-title {
    font-size: clamp(1.4rem, 2.3vw, 2.2rem) !important;
    margin-bottom: 16px !important;
}
body:not(.homepage) .b2b-catalog-categories .btn {
    border-radius: 999px !important;
    min-height: 44px !important;
    padding-inline: 18px !important;
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
    box-shadow: 0 6px 14px rgba(15,23,42,.05) !important;
}
body:not(.homepage) .b2b-catalog-categories .btn-brand {
    background: #b42318 !important;
    border-color: #b42318 !important;
    color: #fff !important;
}
body:not(.homepage) .b2b-catalog-filters form {
    max-width: 760px;
}
body:not(.homepage) .b2b-catalog-filters .form-select,
body:not(.homepage) .b2b-catalog-filters .form-control {
    min-height: 48px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #dbe3ee;
}
body:not(.homepage) .b2b-catalog-frame .b2b-product-grid {
    margin-top: 4px;
}

/* Vimos-inspired STL PDP */
body:not(.homepage) .b2b-product-detail-frame {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}
.stl-pdp {
    color: #0f172a;
}
.stl-pdp__crumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #64748b;
    font-size: .9rem;
}
.stl-pdp__crumbs a { color: #b42318; font-weight: 800; text-decoration: none; }
.stl-pdp__head {
    margin-bottom: 24px;
    max-width: 1120px;
}
.stl-pdp__title {
    font-size: clamp(1.9rem, 3.1vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -.055em;
    font-weight: 950;
    color: #020617;
    margin: 0 0 14px;
    text-transform: none;
}
.stl-pdp__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #64748b;
    font-weight: 800;
}
.stl-pdp__meta span {
    padding: 7px 11px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e2e8f0;
}
.stl-pdp__main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
    gap: 28px;
    align-items: start;
}
.stl-pdp__gallery,
.stl-pdp__panel,
.stl-pdp__below {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    box-shadow: 0 18px 44px rgba(15,23,42,.08);
}
.stl-pdp__gallery { padding: clamp(18px, 2vw, 28px); }
.stl-pdp__image {
    min-height: clamp(380px, 40vw, 600px);
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    overflow: hidden;
}
.stl-pdp__image img {
    max-width: 92%;
    max-height: 560px;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.stl-pdp__image.is-placeholder {
    border-style: dashed;
    background:
      radial-gradient(circle at 30% 20%, rgba(180,35,24,.08), transparent 36%),
      linear-gradient(135deg, #fff, #f8fafc);
}
.stl-pdp__placeholder { display: grid; place-items: center; gap: 8px; text-align: center; color: #64748b; }
.stl-pdp__placeholder span { color: #b42318; font-weight: 950; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.stl-pdp__placeholder strong { color: #0f172a; font-size: 1.45rem; letter-spacing: -.04em; }
.stl-pdp__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.stl-pdp__badges span {
    padding: 8px 11px;
    border-radius: 999px;
    background: #eff6ff;
    color: #0369a1;
    font-weight: 900;
    font-size: .78rem;
}
.stl-pdp__panel {
    padding: 22px;
    position: sticky;
    top: 16px;
}
.stl-pdp__tools { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 16px; }
.stl-pdp__tools span {
    width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
    background: #f8fafc; border: 1px solid #e2e8f0; color: #0f172a; font-weight: 900;
}
.stl-pdp__option { margin-bottom: 18px; }
.stl-pdp__option-label,
.stl-pdp__price-label {
    color: #64748b;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 9px;
}
.stl-pdp__option-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.stl-pdp__option-pills span {
    padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-weight: 850;
}
.stl-pdp__option-pills .is-active { border-color: #b42318; box-shadow: inset 0 0 0 1px #b42318; }
.stl-pdp__price {
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    line-height: .95;
    font-weight: 950;
    letter-spacing: -.06em;
    color: #b42318;
    margin-bottom: 16px;
    font-variant-numeric: tabular-nums;
}
.stl-pdp__add { width: 100%; min-height: 54px; border-radius: 16px; font-size: 1rem; text-transform: uppercase; font-weight: 950; }
.stl-pdp__stepper { width: 100%; margin-top: 10px; }
.stl-pdp__availability {
    margin-top: 16px;
    padding: 14px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: grid;
    gap: 4px;
}
.stl-pdp__availability strong { color: #15803d; }
.stl-pdp__availability span { color: #64748b; font-size: .92rem; }
.stl-pdp__back { display: inline-flex; margin-top: 14px; color: #b42318; font-weight: 850; text-decoration: none; }
.stl-pdp__below {
    margin-top: 28px;
    padding: clamp(20px, 2.5vw, 32px);
}
.stl-pdp__tabs { display: flex; gap: 22px; border-bottom: 1px solid #e2e8f0; margin-bottom: 18px; }
.stl-pdp__tabs span { padding-bottom: 12px; color: #64748b; font-weight: 900; }
.stl-pdp__tabs .is-active { color: #0f172a; border-bottom: 3px solid #b42318; }
.stl-pdp__description { max-width: 860px; color: #475569; line-height: 1.7; }
.stl-pdp__specs { display: grid; margin-top: 20px; border-top: 1px solid #eef2f7; }
.stl-pdp__spec { display: grid; grid-template-columns: minmax(160px, 260px) 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid #eef2f7; }
.stl-pdp__spec dt { color: #64748b; font-weight: 850; }
.stl-pdp__spec dd { margin: 0; color: #0f172a; font-weight: 750; }
@media (max-width: 991.98px) {
    .stl-pdp__main { grid-template-columns: 1fr; }
    .stl-pdp__panel { position: static; }
    body:not(.homepage) .page-shell-title--catalog { font-size: clamp(2.6rem, 14vw, 4.2rem) !important; }
}

/* Catalog final unpanel fix: no giant white bathtub, calmer title */
body:not(.homepage) .b2b-workarea--catalog-minimal .page-main-panel {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    min-height: auto !important;
}
body:not(.homepage) .b2b-workarea--catalog-minimal .row.g-4.align-items-start {
    --bs-gutter-x: 0 !important;
}
body:not(.homepage) .b2b-workarea--catalog-minimal .bx-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
body:not(.homepage) .b2b-workarea--catalog-minimal .page-shell-hero--catalog-minimal {
    padding: 2px 0 20px !important;
    margin: 0 !important;
}
body:not(.homepage) .b2b-workarea--catalog-minimal .page-shell-title--catalog {
    font-size: clamp(2.85rem, 5.6vw, 5.8rem) !important;
    line-height: .94 !important;
    letter-spacing: -.06em !important;
    max-width: 980px;
}
body:not(.homepage) .b2b-workarea--catalog-minimal .b2b-catalog-stack {
    gap: 28px !important;
}
body:not(.homepage) .b2b-workarea--catalog-minimal .b2b-catalog-categories,
body:not(.homepage) .b2b-workarea--catalog-minimal .b2b-catalog-filters {
    padding: 0 !important;
    margin: 0 !important;
}
body:not(.homepage) .b2b-workarea--catalog-minimal .b2b-catalog-categories .section-title,
body:not(.homepage) .b2b-workarea--catalog-minimal .b2b-catalog-filters .section-title {
    font-size: 1.38rem !important;
    letter-spacing: -.035em;
    color: #111827;
}
body:not(.homepage) .b2b-workarea--catalog-minimal .b2b-catalog-categories .d-flex {
    gap: 10px !important;
}
body:not(.homepage) .b2b-workarea--catalog-minimal .b2b-catalog-categories .btn {
    min-height: 40px !important;
    padding: 9px 15px !important;
    font-size: .82rem !important;
    box-shadow: 0 5px 12px rgba(15,23,42,.045) !important;
}
body:not(.homepage) .b2b-workarea--catalog-minimal .b2b-catalog-filters form {
    max-width: 640px !important;
}
body:not(.homepage) .b2b-workarea--catalog-minimal .b2b-product-card {
    box-shadow: 0 12px 26px rgba(15,23,42,.075) !important;
}
@media (max-width: 767.98px) {
    body:not(.homepage) .b2b-workarea--catalog-minimal .page-shell-title--catalog {
        font-size: clamp(2.2rem, 12vw, 3.5rem) !important;
    }
}

/* Reference catalog adaptation: Tailwind sample -> Bitrix native STL classes */
body:not(.homepage) .b2b-workarea--catalog-minimal .b2b-content-section {
    max-width: 1480px !important;
}
body:not(.homepage) .b2b-workarea--catalog-minimal .page-shell-hero--catalog-minimal {
    padding: 0 0 22px !important;
}
body:not(.homepage) .b2b-workarea--catalog-minimal .page-shell-title--catalog {
    font-size: clamp(2.15rem, 4vw, 3.65rem) !important;
    line-height: 1.02 !important;
    letter-spacing: -.055em !important;
    max-width: 780px !important;
}
.stl-ref-catalog {
    display: grid;
    grid-template-columns: 272px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}
.stl-ref-catalog__sidebar {
    display: grid;
    gap: 22px;
    position: sticky;
    top: 18px;
}
.stl-ref-side-card,
.stl-ref-b2b-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    box-shadow: 0 10px 26px rgba(15,23,42,.055);
    overflow: hidden;
}
.stl-ref-side-card__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #eef2f7;
}
.stl-ref-side-card__head h3 {
    margin: 0;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .075em;
    font-weight: 950;
    color: #0f172a;
}
.stl-ref-icon {
    color: #b42318;
    font-weight: 950;
    font-size: 1.1rem;
    line-height: 1;
}
.stl-ref-category-list {
    display: grid;
    gap: 4px;
    padding: 8px;
}
.stl-ref-category-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    color: #334155;
    text-decoration: none;
    font-weight: 820;
    font-size: .92rem;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.stl-ref-category-link i {
    font-style: normal;
    font-size: 1.35rem;
    color: #cbd5e1;
}
.stl-ref-category-link:hover {
    background: #f8fafc;
    color: #b42318;
    transform: translateX(2px);
}
.stl-ref-category-link.is-active {
    background: #b42318;
    color: #fff;
    box-shadow: 0 12px 28px rgba(180,35,24,.18);
}
.stl-ref-category-link.is-active i { color: #fff; }
.stl-ref-filter-form {
    padding: 16px;
    display: grid;
    gap: 10px;
}
.stl-ref-field-label {
    color: #475569;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .07em;
}
.stl-ref-select {
    min-height: 46px !important;
    border-radius: 14px !important;
    border: 1px solid #e2e8f0 !important;
    background-color: #fff !important;
    font-weight: 750;
}
.stl-ref-filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 4px;
}
.stl-ref-filter-actions .btn {
    min-height: 42px !important;
    border-radius: 13px !important;
    font-size: .8rem !important;
    padding: 0 12px !important;
}
.stl-ref-b2b-panel {
    padding: 22px;
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
    box-shadow: 0 18px 42px rgba(15,23,42,.24);
}
.stl-ref-b2b-panel h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 950;
    letter-spacing: -.035em;
}
.stl-ref-b2b-panel p {
    color: rgba(255,255,255,.68);
    font-size: .86rem;
    line-height: 1.5;
    margin: 0 0 18px;
}
.stl-ref-b2b-panel__actions { display: grid; gap: 9px; }
.stl-ref-panel-link {
    min-height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: .86rem;
    font-weight: 900;
}
.stl-ref-panel-link--ghost { background: rgba(255,255,255,.1); color: #fff; }
.stl-ref-panel-link--primary { background: #fff; color: #0f172a; }
.stl-ref-catalog__main { min-width: 0; }
.stl-ref-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}
.stl-ref-toolbar h2 {
    margin: 0;
    font-size: clamp(1.8rem, 2.7vw, 2.65rem);
    line-height: 1.05;
    letter-spacing: -.055em;
    font-weight: 950;
    color: #0f172a;
}
.stl-ref-toolbar p {
    margin: 6px 0 0;
    color: #64748b;
    font-weight: 700;
}
.stl-ref-toolbar__controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.stl-ref-view-toggle {
    display: flex;
    gap: 4px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 4px;
    box-shadow: 0 8px 18px rgba(15,23,42,.045);
}
.stl-ref-view-toggle span {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: .78rem;
    font-weight: 900;
    color: #64748b;
}
.stl-ref-view-toggle .is-active { background: #b42318; color: #fff; }
.stl-ref-sort {
    min-height: 46px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 0 40px 0 14px;
    background-color: #fff;
    color: #0f172a;
    font-weight: 850;
    box-shadow: 0 8px 18px rgba(15,23,42,.045);
}
.stl-ref-product-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}
.stl-ref-product-cell { min-width: 0; }
.stl-ref-product-card {
    position: relative;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 22px !important;
    box-shadow: 0 8px 22px rgba(15,23,42,.055) !important;
    transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}
.stl-ref-product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(180,35,24,.28) !important;
    box-shadow: 0 20px 42px rgba(15,23,42,.11) !important;
}
.stl-ref-product-card__media {
    aspect-ratio: 1 / 1;
    min-height: auto !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: 0 !important;
    background: #f8fafc !important;
    padding: 28px !important;
}
.stl-ref-product-card__media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform .35s ease;
}
.stl-ref-product-card:hover .stl-ref-product-card__media img { transform: scale(1.06); }
.stl-ref-product-card__meta-row,
.stl-ref-product-card__price-row,
.stl-ref-product-card__stock,
.stl-ref-product-card .b2b-card-purchase,
.stl-ref-product-card__title {
    margin-left: 18px !important;
    margin-right: 18px !important;
}
.stl-ref-product-card__meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 16px;
    margin-bottom: 8px;
}
.stl-ref-product-card .product-meta {
    margin: 0 !important;
    color: #94a3b8 !important;
    font-size: .67rem !important;
    font-weight: 950 !important;
    text-transform: uppercase;
    letter-spacing: .09em;
}
.stl-ref-product-card__badge {
    flex: 0 0 auto;
    padding: 3px 7px;
    border-radius: 7px;
    background: #eff6ff;
    color: #0369a1;
    font-size: .64rem;
    font-weight: 950;
    text-transform: uppercase;
}
.stl-ref-product-card__title {
    min-height: 3.05em;
    margin-top: 0 !important;
    margin-bottom: 18px !important;
    font-size: .98rem !important;
    line-height: 1.34 !important;
    font-weight: 900 !important;
    letter-spacing: -.025em;
    color: #0f172a !important;
}
.stl-ref-product-card:hover .stl-ref-product-card__title { color: #b42318 !important; }
.stl-ref-product-card__price-row {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.stl-ref-product-card .product-price {
    color: #b42318 !important;
    font-size: 1.16rem !important;
    line-height: 1 !important;
    font-weight: 950 !important;
    letter-spacing: -.035em;
    font-variant-numeric: tabular-nums;
}
.stl-ref-product-card__arrow {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border-radius: 13px;
    display: inline-grid;
    place-items: center;
    background: #f8fafc;
    color: #94a3b8;
    font-size: 1.65rem;
    line-height: 1;
    text-decoration: none;
    transition: background .18s ease, color .18s ease;
}
.stl-ref-product-card:hover .stl-ref-product-card__arrow { background: #b42318; color: #fff; }
.stl-ref-product-card__stock {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #94a3b8;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-top: 10px;
    margin-bottom: 14px;
}
.stl-ref-product-card__stock strong { color: #64748b; }
.stl-ref-product-card .b2b-card-purchase {
    margin-bottom: 18px;
}
.stl-ref-product-card .btn-cart {
    width: 100% !important;
    min-height: 44px !important;
    border-radius: 14px !important;
    font-size: .82rem !important;
    font-weight: 950 !important;
    box-shadow: none !important;
}
.stl-ref-product-card .b2b-qty-stepper {
    width: 100% !important;
    min-height: 44px !important;
    border-radius: 14px !important;
}
@media (max-width: 1199.98px) {
    .stl-ref-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
    .stl-ref-catalog { grid-template-columns: 1fr; }
    .stl-ref-catalog__sidebar { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
    .stl-ref-b2b-panel { grid-column: 1 / -1; }
    .stl-ref-toolbar { align-items: flex-start; flex-direction: column; }
    .stl-ref-toolbar__controls { justify-content: flex-start; }
    .stl-ref-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .stl-ref-catalog__sidebar { grid-template-columns: 1fr; }
    .stl-ref-product-grid { grid-template-columns: 1fr; }
    .stl-ref-view-toggle { display: none; }
}

/* Reference catalog toolbar alignment polish */
.stl-ref-toolbar__controls {
    flex-wrap: nowrap !important;
    align-items: center !important;
}
.stl-ref-sort {
    width: 210px;
}
@media (max-width: 767.98px) {
    .stl-ref-toolbar__controls {
        flex-wrap: wrap !important;
        width: 100%;
    }
    .stl-ref-sort {
        width: 100%;
    }
}

/* Catalog pagination/result count for Bitrix catalog.section pages */
.stl-ref-catalog-resultbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: -4px 0 18px;
    color: #64748b;
    font-size: .9rem;
    font-weight: 750;
}
.stl-ref-catalog-resultbar strong {
    color: #0f172a;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
}
.stl-ref-catalog-resultbar__pages {
    padding: 7px 11px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: .78rem;
    font-weight: 900;
}
.stl-ref-pagination {
    margin-top: 28px;
    display: flex;
    justify-content: center;
}
.stl-ref-pagination .pagination,
.stl-ref-pagination .pagination-nav,
.stl-ref-pagination ul {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.stl-ref-pagination li { list-style: none; }
.stl-ref-pagination a,
.stl-ref-pagination span,
.stl-ref-pagination .page-link {
    min-width: 42px;
    min-height: 42px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border-radius: 13px !important;
    border: 1px solid #e2e8f0 !important;
    background: #fff !important;
    color: #334155 !important;
    text-decoration: none !important;
    font-size: .88rem;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(15,23,42,.045);
}
.stl-ref-pagination a:hover,
.stl-ref-pagination .page-link:hover {
    border-color: rgba(180,35,24,.35) !important;
    color: #b42318 !important;
}
.stl-ref-pagination .active a,
.stl-ref-pagination .active span,
.stl-ref-pagination .page-item.active .page-link,
.stl-ref-pagination .current,
.stl-ref-pagination span[aria-current="page"] {
    background: #b42318 !important;
    border-color: #b42318 !important;
    color: #fff !important;
}
@media (max-width: 575.98px) {
    .stl-ref-catalog-resultbar {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Make Bitrix round pager active page explicit in STL reference catalog */
.stl-ref-pagination .bx-pagination .bx-active span,
.stl-ref-pagination .bx-pagination .bx-active a,
.stl-ref-pagination .bx-pagination-container ul li.bx-active span,
.stl-ref-pagination .bx-pagination-container ul li.bx-active a,
.stl-ref-pagination li.bx-active span,
.stl-ref-pagination li.bx-active a {
    background: #b42318 !important;
    border-color: #b42318 !important;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(180,35,24,.22) !important;
}

/* Catalog reference card: fixed-size quantity stepper + header basket live sync affordance */
.stl-ref-product-card .b2b-card-purchase {
    position: relative;
    z-index: 3;
}
.stl-ref-product-card .b2b-qty-stepper.b2b-qty-stepper--inline.is-active {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) 44px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
}
.stl-ref-product-card .b2b-qty-stepper button {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    border-radius: 0 !important;
    flex: 0 0 44px !important;
    display: grid !important;
    place-items: center !important;
    font-size: 1rem !important;
    line-height: 1 !important;
}
.stl-ref-product-card .b2b-qty-stepper input {
    min-width: 0 !important;
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 4px !important;
    text-align: center !important;
    font-size: .95rem !important;
    font-weight: 950 !important;
    line-height: 44px !important;
}
.action-badge[data-cart-count] {
    transition: transform .18s ease, background .18s ease;
}
.action-badge[data-cart-count].is-updated {
    transform: scale(1.16);
    background: #b42318;
}

/* Global quantity stepper reset: one unified segmented control everywhere */
.b2b-qty-stepper,
.b2b-qty-stepper.b2b-qty-stepper--inline.is-active,
.b2b-detail-stepper.is-active,
.stl-pdp__stepper.is-active,
.b2b-cart-row__qty {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) 44px !important;
    align-items: stretch !important;
    width: 100% !important;
    min-width: 132px !important;
    max-width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    gap: 0 !important;
    overflow: hidden !important;
    border-radius: 14px !important;
    border: 1px solid #e5e7eb !important;
    background: #fff !important;
    box-shadow: 0 1px 0 rgba(15,23,42,.03) !important;
}
.b2b-qty-stepper--inline:not(.is-active) {
    display: none !important;
}
.b2b-qty-stepper button,
.b2b-qty-stepper.b2b-qty-stepper--inline.is-active button,
.b2b-detail-stepper.is-active button,
.stl-pdp__stepper.is-active button,
.b2b-cart-row__qty button {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: #b42318 !important;
    color: #fff !important;
    display: grid !important;
    place-items: center !important;
    line-height: 1 !important;
    font-size: 1rem !important;
    font-weight: 950 !important;
    flex: 0 0 44px !important;
    cursor: pointer !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
.b2b-qty-stepper button:first-child {
    border-radius: 13px 0 0 13px !important;
}
.b2b-qty-stepper button:last-child {
    border-radius: 0 13px 13px 0 !important;
}
.b2b-qty-stepper button:hover,
.b2b-qty-stepper button:focus-visible {
    background: #8f1c14 !important;
    color: #fff !important;
    box-shadow: inset 0 0 0 999px rgba(0,0,0,.04) !important;
}
.b2b-qty-stepper input,
.b2b-qty-stepper.b2b-qty-stepper--inline.is-active input,
.b2b-detail-stepper.is-active input,
.stl-pdp__stepper.is-active input,
.b2b-cart-row__qty input,
[data-basket-quantity],
[data-cart-quantity] {
    min-width: 0 !important;
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    margin: 0 !important;
    padding: 0 4px !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    color: #0f172a !important;
    border-radius: 0 !important;
    text-align: center !important;
    line-height: 44px !important;
    font-size: .95rem !important;
    font-weight: 950 !important;
    font-variant-numeric: tabular-nums !important;
    -webkit-appearance: none !important;
    appearance: textfield !important;
}
.b2b-qty-stepper input:focus,
[data-basket-quantity]:focus,
[data-cart-quantity]:focus {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
}
.b2b-qty-stepper input::-webkit-outer-spin-button,
.b2b-qty-stepper input::-webkit-inner-spin-button,
[data-basket-quantity]::-webkit-outer-spin-button,
[data-basket-quantity]::-webkit-inner-spin-button,
[data-cart-quantity]::-webkit-outer-spin-button,
[data-cart-quantity]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}
/* Product card after user screenshots: no secondary arrow near price, price stands alone. */
.stl-ref-product-card__media {
    display: flex !important;
    text-decoration: none !important;
    color: inherit !important;
}
.stl-ref-product-card__title a {
    color: inherit !important;
    text-decoration: none !important;
}
.stl-ref-product-card__title a:hover,
.stl-ref-product-card__title a:focus-visible {
    color: #b42318 !important;
    text-decoration: none !important;
}
.stl-ref-product-card__price-row {
    justify-content: flex-start !important;
    min-height: 40px !important;
}
.stl-ref-product-card__arrow {
    display: none !important;
}

/* Ensure the unified stepper keeps outer rounded ends across catalog, cart and detail despite old button rules. */
.b2b-qty-stepper > button:first-of-type,
.b2b-qty-stepper.b2b-qty-stepper--inline.is-active > button:first-of-type,
.b2b-detail-stepper.is-active > button:first-of-type,
.stl-pdp__stepper.is-active > button:first-of-type,
.b2b-cart-row__qty > button:first-of-type {
    border-radius: 13px 0 0 13px !important;
}
.b2b-qty-stepper > button:last-of-type,
.b2b-qty-stepper.b2b-qty-stepper--inline.is-active > button:last-of-type,
.b2b-detail-stepper.is-active > button:last-of-type,
.stl-pdp__stepper.is-active > button:last-of-type,
.b2b-cart-row__qty > button:last-of-type {
    border-radius: 0 13px 13px 0 !important;
}

/* Catalog batch polish: right-aligned prices, independent sidebar scroll, clean Bitrix pager. */
.stl-ref-product-card__price-row {
    justify-content: flex-end !important;
    text-align: right !important;
}
.stl-ref-product-card .product-price {
    display: block !important;
    width: 100% !important;
    text-align: right !important;
}
@media (min-width: 992px) {
    .stl-ref-catalog {
        align-items: start !important;
    }
    .stl-ref-catalog__sidebar {
        position: sticky !important;
        top: 118px !important;
        max-height: calc(100dvh - 138px) !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
        padding-right: 4px !important;
        scrollbar-width: thin;
        scrollbar-color: rgba(180,35,24,.35) rgba(226,232,240,.65);
    }
    .stl-ref-catalog__sidebar::-webkit-scrollbar { width: 8px; }
    .stl-ref-catalog__sidebar::-webkit-scrollbar-track { background: rgba(226,232,240,.65); border-radius: 999px; }
    .stl-ref-catalog__sidebar::-webkit-scrollbar-thumb { background: rgba(180,35,24,.35); border-radius: 999px; }
}
.stl-ref-pagination .bx-pagination,
.stl-ref-pagination .bx-pagination-container,
.stl-ref-pagination .bx-pagination-container ul,
.stl-ref-pagination .bx-pagination-container ul li,
.stl-ref-pagination .pagination,
.stl-ref-pagination .page-item {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
}
.stl-ref-pagination .bx-pagination-container ul li::before,
.stl-ref-pagination .bx-pagination-container ul li::after,
.stl-ref-pagination .page-item::before,
.stl-ref-pagination .page-item::after {
    content: none !important;
    display: none !important;
}
.stl-ref-pagination .bx-pagination-container ul li,
.stl-ref-pagination .page-item {
    margin: 0 !important;
    padding: 0 !important;
}
.stl-ref-pagination a,
.stl-ref-pagination span,
.stl-ref-pagination .page-link,
.stl-ref-pagination .bx-pagination-container ul li a,
.stl-ref-pagination .bx-pagination-container ul li span {
    position: static !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    transform: none !important;
    outline: 0 !important;
    box-shadow: 0 8px 18px rgba(15,23,42,.045) !important;
}
.stl-ref-pagination a::before,
.stl-ref-pagination a::after,
.stl-ref-pagination span::before,
.stl-ref-pagination span::after,
.stl-ref-pagination .page-link::before,
.stl-ref-pagination .page-link::after {
    content: none !important;
    display: none !important;
}
.stl-ref-pagination .bx-pagination-container ul li.bx-active span,
.stl-ref-pagination li.bx-active span,
.stl-ref-pagination .page-item.active .page-link,
.stl-ref-pagination span[aria-current="page"] {
    box-shadow: 0 10px 22px rgba(180,35,24,.22) !important;
}

/* Final Bitrix round pager fix: only the innermost pager control is styled, wrappers stay invisible. */
.stl-ref-pagination .bx-pagination-container ul > li,
.stl-ref-pagination .bx-pagination-container ul > li > span,
.stl-ref-pagination .bx-pagination-container ul > li > a,
.stl-ref-pagination .pagination > li,
.stl-ref-pagination .pagination > li > span,
.stl-ref-pagination .pagination > li > a {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    width: auto !important;
    height: auto !important;
}
.stl-ref-pagination .bx-pagination-container ul > li > span > a,
.stl-ref-pagination .bx-pagination-container ul > li > span > span,
.stl-ref-pagination .bx-pagination-container ul > li > a > span,
.stl-ref-pagination .pagination > li > span > a,
.stl-ref-pagination .pagination > li > span > span,
.stl-ref-pagination .pagination > li > a > span {
    min-width: 42px !important;
    min-height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 13px !important;
    border-radius: 13px !important;
    border: 1px solid #e2e8f0 !important;
    background: #fff !important;
    color: #334155 !important;
    text-decoration: none !important;
    font-size: .88rem !important;
    font-weight: 900 !important;
    box-shadow: 0 8px 18px rgba(15,23,42,.045) !important;
}
.stl-ref-pagination .bx-pagination-container ul > li.bx-active > span > span,
.stl-ref-pagination .bx-pagination-container ul > li.bx-active > span,
.stl-ref-pagination .pagination > li.active > span > span,
.stl-ref-pagination .pagination > li.active > span {
    min-width: 42px !important;
    min-height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 13px !important;
    border-radius: 13px !important;
    border: 1px solid #b42318 !important;
    background: #b42318 !important;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(180,35,24,.22) !important;
}


/* B2B checkout application flow: one clean application CTA and success state, no default payment clutter. */
.b2b-checkout-submit-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 26px rgba(15,23,42,.055);
}
.b2b-checkout-submit-panel p {
    margin: 0;
    color: #64748b;
    font-weight: 700;
    line-height: 1.45;
}
.b2b-checkout-submit {
    min-width: 220px;
    min-height: 48px;
    border-radius: 14px !important;
    font-weight: 950 !important;
    text-transform: uppercase;
    letter-spacing: .035em;
}
.b2b-order-application-success {
    border-color: rgba(34,197,94,.25) !important;
    box-shadow: 0 18px 46px rgba(22,163,74,.08) !important;
}
.b2b-checkout-next-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
@media (max-width: 575.98px) {
    .b2b-checkout-submit-panel {
        align-items: stretch;
        flex-direction: column;
    }
    .b2b-checkout-submit {
        width: 100%;
        min-width: 0;
    }
}

/* Contacts/delivery content refresh: cards, useful section buttons, feedback alignment, map slot. */
.b2b-contact-grid--stl {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.b2b-contact-card__label {
    margin-bottom: .7rem;
    color: var(--color-accent);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.b2b-contact-card__hint {
    margin: .55rem 0 0;
    color: var(--color-muted);
    font-size: .88rem;
    line-height: 1.45;
}

.b2b-yandex-map-slot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    border: 1px dashed rgba(185, 28, 28, .28) !important;
    background:
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,250,252,.92)),
        radial-gradient(circle at 12% 18%, rgba(185,28,28,.08), transparent 26%);
}

.b2b-yandex-map-slot h2 {
    margin: .55rem 0 .35rem;
}

.b2b-yandex-map-slot p {
    max-width: 52rem;
    margin: 0;
}

.b2b-feedback-frame {
    max-width: 760px;
}

.b2b-feedback-frame form,
.b2b-feedback-frame .mfeedback,
.b2b-feedback-frame .mf-name,
.b2b-feedback-frame .mf-email,
.b2b-feedback-frame .mf-message,
.b2b-feedback-frame .mf-captcha,
.b2b-feedback-frame .mf-submit {
    max-width: 100%;
}

.b2b-feedback-frame input[type="text"],
.b2b-feedback-frame input[type="email"],
.b2b-feedback-frame textarea,
.b2b-feedback-frame .form-control {
    width: 100% !important;
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(148,163,184,.35);
    background: #fff;
    box-shadow: none;
}

.b2b-feedback-frame textarea {
    min-height: 148px;
    resize: vertical;
}

.b2b-feedback-frame input[type="submit"],
.b2b-feedback-frame button[type="submit"] {
    min-width: 168px;
    min-height: 46px;
}

.b2b-useful-buttons {
    display: grid;
    gap: .65rem;
}

.b2b-useful-buttons a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    min-height: 46px;
    padding: .8rem .95rem;
    border: 1px solid rgba(185, 28, 28, .16);
    border-radius: 14px;
    background: linear-gradient(135deg, #fff, rgba(254,242,242,.66));
    color: #991b1b;
    text-decoration: none;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(15,23,42,.045);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.b2b-useful-buttons a::after {
    content: "→";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    background: rgba(185, 28, 28, .1);
    color: var(--color-accent);
}

.b2b-useful-buttons a:hover {
    transform: translateY(-1px);
    border-color: rgba(185, 28, 28, .32);
    color: var(--color-accent);
    box-shadow: 0 14px 28px rgba(15,23,42,.08);
}

.footer-support-phone--secondary {
    margin-top: .2rem;
    font-size: .98rem;
    opacity: .92;
}

@media (max-width: 1199.98px) {
    .b2b-contact-grid--stl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .b2b-contact-grid--stl {
        grid-template-columns: 1fr;
    }

    .b2b-yandex-map-slot {
        align-items: stretch;
        flex-direction: column;
    }

    .b2b-yandex-map-slot .btn {
        width: 100%;
    }
}

/* Mobile catalog polish: match compact two-column reference cards and reduce header height. */
@media (max-width: 575.98px) {
    body:not(.homepage) .header-wrapper {
        top: 6px !important;
        padding: 0 8px !important;
    }

    body:not(.homepage) .header-shell {
        border-radius: 16px !important;
    }

    body:not(.homepage) .top-row .container-fluid {
        padding: 6px 10px 4px !important;
    }

    body:not(.homepage) .top-row .row {
        --bs-gutter-y: .35rem !important;
    }

    body:not(.homepage) .header-top-meta {
        width: 100%;
        justify-content: space-between !important;
        gap: 6px 10px !important;
        font-size: 11px !important;
        line-height: 1.15 !important;
    }

    body:not(.homepage) .b2b-catalog-toggle .bi,
    body:not(.homepage) .b2b-catalog-toggle i {
        font-size: 1.35rem !important;
        line-height: 1 !important;
    }

    body:not(.homepage) .top-link,
    body:not(.homepage) .city-link {
        font-size: 11px !important;
        line-height: 1.15 !important;
    }

    body:not(.homepage) .header-top-contact {
        width: 100%;
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        align-items: center !important;
        gap: 4px 8px !important;
    }

    body:not(.homepage) .header-top-contact .phone-link {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-height: 24px;
        padding: 3px 6px;
        border-radius: 999px;
        background: #f8fafc;
        color: #0f172a !important;
        font-size: 10.5px !important;
        line-height: 1.05 !important;
        font-weight: 850 !important;
        white-space: nowrap;
        letter-spacing: -.02em;
    }

    body:not(.homepage) .header-top-contact .call-btn {
        grid-column: 1 / -1;
        justify-self: center;
        min-height: 28px;
        padding: 4px 14px !important;
        font-size: 11px !important;
        line-height: 1.1 !important;
        border-width: 1px !important;
    }

    body:not(.homepage) .header-shell > .container-fluid {
        padding: 7px 10px 10px !important;
    }

    body:not(.homepage) .header-shell > .container-fluid .row {
        --bs-gutter-y: .45rem !important;
    }

    body:not(.homepage) .logo-wrap img {
        height: 46px !important;
        width: auto !important;
    }

    body:not(.homepage) .action-icon {
        width: 42px !important;
        height: 42px !important;
    }

    body:not(.homepage) .search-wrap .form-control {
        min-height: 42px !important;
        height: 42px !important;
        padding: 0 44px 0 38px !important;
        border-radius: 16px !important;
        font-size: 13px !important;
    }

    body:not(.homepage) .search-icon {
        left: 14px !important;
        font-size: 14px !important;
    }

    body:not(.homepage) .search-submit {
        width: 32px !important;
        height: 32px !important;
        right: 5px !important;
    }

    body:not(.homepage) .b2b-workarea--catalog-minimal {
        padding-top: .75rem !important;
    }

    body:not(.homepage) .page-shell-hero--catalog-minimal {
        padding: 14px 14px 12px !important;
        margin-bottom: 12px !important;
        border-radius: 18px !important;
    }

    body:not(.homepage) .page-shell-title--catalog,
    body:not(.homepage) .page-shell-title--catalog-minimal {
        font-size: 24px !important;
        line-height: 1.05 !important;
        margin-bottom: 4px !important;
        letter-spacing: -.04em !important;
    }

    body:not(.homepage) .page-shell-subtitle--catalog,
    body:not(.homepage) .page-shell-subtitle--catalog-minimal {
        font-size: 12px !important;
        line-height: 1.3 !important;
        margin-bottom: 0 !important;
    }

    body:not(.homepage) .stl-ref-toolbar,
    body:not(.homepage) .stl-ref-catalog-resultbar {
        margin-bottom: 10px !important;
        gap: 8px !important;
    }

    body:not(.homepage) .stl-ref-catalog-resultbar {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        font-size: 11px !important;
    }

    body:not(.homepage) .stl-ref-catalog-resultbar__pages {
        padding: 5px 8px !important;
        font-size: 10.5px !important;
        white-space: nowrap;
    }

    body:not(.homepage) .stl-ref-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    body:not(.homepage) .stl-ref-product-card {
        border-radius: 16px !important;
        box-shadow: 0 6px 16px rgba(15,23,42,.055) !important;
    }

    body:not(.homepage) .stl-ref-product-card__media {
        aspect-ratio: 1 / .78 !important;
        padding: 12px !important;
        background: #f8fafc !important;
    }

    body:not(.homepage) .stl-ref-product-card__media img {
        max-height: 112px !important;
    }

    body:not(.homepage) .product-image-box__placeholder {
        font-size: 10px !important;
        line-height: 1.2 !important;
        padding: 0 6px !important;
        text-align: center;
    }

    body:not(.homepage) .stl-ref-product-card__meta-row,
    body:not(.homepage) .stl-ref-product-card__price-row,
    body:not(.homepage) .stl-ref-product-card__stock,
    body:not(.homepage) .stl-ref-product-card .b2b-card-purchase,
    body:not(.homepage) .stl-ref-product-card__title {
        margin-left: 10px !important;
        margin-right: 10px !important;
    }

    body:not(.homepage) .stl-ref-product-card__meta-row {
        margin-top: 9px !important;
        margin-bottom: 5px !important;
        gap: 5px !important;
    }

    body:not(.homepage) .stl-ref-product-card .product-meta {
        font-size: 9px !important;
        letter-spacing: .055em !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    body:not(.homepage) .stl-ref-product-card__badge {
        display: none !important;
    }

    body:not(.homepage) .stl-ref-product-card__title {
        min-height: 3.85em !important;
        margin-bottom: 8px !important;
        font-size: 11.5px !important;
        line-height: 1.28 !important;
        letter-spacing: -.025em !important;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    body:not(.homepage) .stl-ref-product-card__price-row {
        min-height: 20px !important;
        margin-top: auto !important;
        justify-content: flex-end !important;
    }

    body:not(.homepage) .stl-ref-product-card .product-price {
        font-size: 14px !important;
        line-height: 1 !important;
        text-align: right !important;
    }

    body:not(.homepage) .stl-ref-product-card__stock {
        margin-top: 6px !important;
        margin-bottom: 8px !important;
        gap: 4px !important;
        font-size: 9.5px !important;
    }

    body:not(.homepage) .stl-ref-product-card .b2b-card-purchase {
        margin-bottom: 10px !important;
    }

    body:not(.homepage) .stl-ref-product-card .btn-cart {
        min-height: 34px !important;
        height: 34px !important;
        border-radius: 10px !important;
        font-size: 10.5px !important;
        letter-spacing: .03em !important;
        padding: 0 8px !important;
    }

    body:not(.homepage) .stl-ref-product-card .b2b-qty-stepper,
    body:not(.homepage) .stl-ref-product-card .b2b-qty-stepper.b2b-qty-stepper--inline.is-active {
        min-width: 0 !important;
        height: 34px !important;
        min-height: 34px !important;
        grid-template-columns: 34px minmax(0, 1fr) 34px !important;
        border-radius: 10px !important;
    }

    body:not(.homepage) .stl-ref-product-card .b2b-qty-stepper button,
    body:not(.homepage) .stl-ref-product-card .b2b-qty-stepper input {
        height: 34px !important;
        min-height: 34px !important;
        max-height: 34px !important;
        line-height: 34px !important;
        font-size: 12px !important;
    }

    body:not(.homepage) .stl-ref-product-card .b2b-qty-stepper button {
        width: 34px !important;
        min-width: 34px !important;
        max-width: 34px !important;
        flex-basis: 34px !important;
    }
}

/* Mobile catalog second pass: show products before desktop sidebar, tighter cards/header. */
@media (max-width: 575.98px) {
    body:not(.homepage) .header-top-contact .call-btn {
        display: none !important;
    }

    body:not(.homepage) .header-top-contact {
        grid-template-columns: 1fr 1fr !important;
        margin-top: -2px !important;
    }

    body:not(.homepage) .header-shell > .container-fluid {
        padding-top: 5px !important;
        padding-bottom: 8px !important;
    }

    body:not(.homepage) .logo-wrap img {
        height: 42px !important;
    }

    body:not(.homepage) .search-wrap .form-control {
        min-height: 38px !important;
        height: 38px !important;
        border-radius: 14px !important;
    }

    body:not(.homepage) .search-submit {
        width: 30px !important;
        height: 30px !important;
        top: 4px !important;
    }

    body:not(.homepage) .stl-ref-catalog {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    body:not(.homepage) .stl-ref-catalog__main {
        order: 1 !important;
    }

    body:not(.homepage) .stl-ref-catalog__sidebar {
        order: 2 !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin-top: 6px !important;
    }

    body:not(.homepage) .stl-ref-side-card,
    body:not(.homepage) .stl-ref-b2b-panel {
        border-radius: 16px !important;
        box-shadow: 0 6px 16px rgba(15,23,42,.045) !important;
    }

    body:not(.homepage) .stl-ref-side-card__head {
        min-height: 38px !important;
        padding: 10px 12px !important;
    }

    body:not(.homepage) .stl-ref-side-card__head h3 {
        font-size: 13px !important;
    }

    body:not(.homepage) .stl-ref-category-list {
        display: flex !important;
        overflow-x: auto !important;
        gap: 6px !important;
        padding: 0 10px 10px !important;
        scrollbar-width: none;
    }

    body:not(.homepage) .stl-ref-category-list::-webkit-scrollbar {
        display: none;
    }

    body:not(.homepage) .stl-ref-category-link {
        flex: 0 0 auto !important;
        min-height: 34px !important;
        padding: 0 10px !important;
        border-radius: 999px !important;
        font-size: 11px !important;
        white-space: nowrap !important;
    }

    body:not(.homepage) .stl-ref-category-link i {
        display: none !important;
    }

    body:not(.homepage) .stl-ref-filter-form {
        padding: 10px !important;
    }

    body:not(.homepage) .stl-ref-b2b-panel {
        padding: 12px !important;
    }

    body:not(.homepage) .stl-ref-b2b-panel p {
        margin-bottom: 10px !important;
        font-size: 11.5px !important;
    }

    body:not(.homepage) .stl-ref-b2b-panel__actions {
        grid-template-columns: 1fr 1fr !important;
    }

    body:not(.homepage) .stl-ref-panel-link {
        min-height: 34px !important;
        font-size: 11px !important;
    }

    body:not(.homepage) .stl-ref-toolbar {
        padding: 0 !important;
        margin-bottom: 8px !important;
    }

    body:not(.homepage) .stl-ref-toolbar h2 {
        font-size: 20px !important;
        line-height: 1.1 !important;
        margin-bottom: 3px !important;
    }

    body:not(.homepage) .stl-ref-toolbar p {
        font-size: 11.5px !important;
        line-height: 1.25 !important;
    }

    body:not(.homepage) .stl-ref-toolbar__controls {
        gap: 7px !important;
    }

    body:not(.homepage) .stl-ref-sort {
        min-height: 38px !important;
    }

    body:not(.homepage) .stl-ref-product-card {
        min-height: 0 !important;
        height: auto !important;
    }

    body:not(.homepage) .stl-ref-product-card__media {
        aspect-ratio: 1 / .68 !important;
        padding: 8px !important;
    }

    body:not(.homepage) .stl-ref-product-card__media img {
        max-height: 96px !important;
    }

    body:not(.homepage) .stl-ref-product-card__title {
        min-height: 3.7em !important;
        font-size: 11px !important;
        margin-bottom: 6px !important;
    }

    body:not(.homepage) .stl-ref-product-card__stock {
        margin-top: 4px !important;
        margin-bottom: 6px !important;
    }

    body:not(.homepage) .stl-ref-product-card .b2b-card-purchase {
        margin-bottom: 8px !important;
    }
}

/* Mobile catalog final tighten: override legacy 190px image-box height inside catalog cards. */
@media (max-width: 575.98px) {
    body:not(.homepage) .stl-ref-product-card.b2b-product-card--pro .product-image-box,
    body:not(.homepage) .stl-ref-product-card.b2b-product-card--pro .stl-ref-product-card__media,
    body:not(.homepage) .stl-ref-product-card .product-image-box,
    body:not(.homepage) .stl-ref-product-card .stl-ref-product-card__media {
        height: 128px !important;
        min-height: 128px !important;
        max-height: 128px !important;
        aspect-ratio: auto !important;
        padding: 8px !important;
    }

    body:not(.homepage) .stl-ref-product-card.b2b-product-card--pro .product-image-box img,
    body:not(.homepage) .stl-ref-product-card .product-image-box img {
        max-width: 96% !important;
        max-height: 108px !important;
        object-fit: contain !important;
    }

    body:not(.homepage) .stl-ref-product-card:active,
    body:not(.homepage) .stl-ref-product-card:focus,
    body:not(.homepage) .stl-ref-product-card:focus-within {
        border-color: #e2e8f0 !important;
        box-shadow: 0 6px 16px rgba(15,23,42,.055) !important;
    }

    body:not(.homepage) .stl-ref-product-card .b2b-product-card__click:focus,
    body:not(.homepage) .stl-ref-product-card .b2b-product-card__click:focus-visible {
        outline: none !important;
    }

    body:not(.homepage) .stl-ref-product-card__title {
        min-height: 3.55em !important;
    }
}

/* Product card full adaptation from user example.html: desktop + mobile. */
:root {
    --stl-card-page-bg: #f6f7f9;
    --stl-card-bg: #ffffff;
    --stl-card-image-bg: #f7f8fa;
    --stl-card-text-main: #171b24;
    --stl-card-text-secondary: #687180;
    --stl-card-text-muted: #929aa7;
    --stl-card-border: #e6e9ee;
    --stl-card-divider: #eceef2;
    --stl-card-accent: #bf1f17;
    --stl-card-accent-hover: #a91812;
    --stl-card-accent-active: #8f130e;
    --stl-card-status-bg: #eef1f5;
    --stl-card-status-text: #4f5967;
    --stl-card-radius: 16px;
    --stl-card-image-radius: 12px;
    --stl-card-button-radius: 10px;
    --stl-card-shadow: 0 2px 4px rgba(21,27,38,.03), 0 10px 28px rgba(21,27,38,.06);
}

body:not(.homepage) .stl-ref-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

body:not(.homepage) .stl-ref-product-cell {
    min-width: 0 !important;
}

body:not(.homepage) .stl-ref-product-card.product-card {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    min-height: 100% !important;
    overflow: hidden !important;
    padding: 12px !important;
    background: var(--stl-card-bg) !important;
    border: 1px solid var(--stl-card-border) !important;
    border-radius: var(--stl-card-radius) !important;
    box-shadow: var(--stl-card-shadow) !important;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease !important;
}

body:not(.homepage) .stl-ref-product-card.product-card:hover {
    transform: translateY(-2px) !important;
    border-color: #dadde4 !important;
    box-shadow: 0 4px 8px rgba(21,27,38,.04), 0 14px 34px rgba(21,27,38,.09) !important;
}

body:not(.homepage) .stl-ref-product-card .b2b-product-card__click {
    pointer-events: none !important;
}

body:not(.homepage) .stl-ref-product-card__media.product-image-box,
body:not(.homepage) .stl-ref-product-card.b2b-product-card--pro .product-image-box {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 1.65 / 1 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    background: var(--stl-card-image-bg) !important;
    border: 0 !important;
    border-radius: var(--stl-card-image-radius) !important;
    text-decoration: none !important;
    color: inherit !important;
}

body:not(.homepage) .stl-ref-product-card__image,
body:not(.homepage) .stl-ref-product-card__media img,
body:not(.homepage) .stl-ref-product-card.b2b-product-card--pro .product-image-box img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    padding: 18px !important;
    object-fit: contain !important;
    object-position: center !important;
    mix-blend-mode: multiply !important;
    transition: transform 220ms ease !important;
}

body:not(.homepage) .stl-ref-product-card:hover .stl-ref-product-card__image,
body:not(.homepage) .stl-ref-product-card:hover .stl-ref-product-card__media img {
    transform: scale(1.035) !important;
}

body:not(.homepage) .stl-ref-product-card__placeholder,
body:not(.homepage) .product-image-box__placeholder.stl-ref-product-card__placeholder {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    height: 100% !important;
    padding: 12px !important;
    color: var(--stl-card-text-muted) !important;
    font-size: 12px !important;
    font-weight: 650 !important;
    line-height: 1.25 !important;
    text-align: center !important;
}

body:not(.homepage) .stl-ref-product-card__placeholder svg {
    width: 46px !important;
    height: 46px !important;
    opacity: .38 !important;
}

body:not(.homepage) .stl-ref-product-card__content {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-height: 0 !important;
    padding: 13px 2px 0 !important;
}

body:not(.homepage) .stl-ref-product-card__meta-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    min-height: 0 !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    color: var(--stl-card-text-secondary) !important;
    font-size: 11px !important;
    font-weight: 750 !important;
    line-height: 1.3 !important;
    letter-spacing: .045em !important;
    text-transform: uppercase !important;
}

body:not(.homepage) .stl-ref-product-card__meta-separator {
    color: #bcc2cb !important;
}

body:not(.homepage) .stl-ref-product-card__badge {
    margin-left: auto !important;
    padding: 3px 7px !important;
    border-radius: 999px !important;
    background: #eff6ff !important;
    color: #0369a1 !important;
    font-size: 10px !important;
    font-weight: 850 !important;
    letter-spacing: .03em !important;
}

body:not(.homepage) .stl-ref-product-card__title {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    overflow: hidden !important;
    min-height: 4.05em !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--stl-card-text-main) !important;
    font-size: 15px !important;
    font-weight: 750 !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
}

body:not(.homepage) .stl-ref-product-card__title a {
    color: inherit !important;
    text-decoration: none !important;
}

body:not(.homepage) .stl-ref-product-card__title a:hover,
body:not(.homepage) .stl-ref-product-card__title a:focus-visible {
    color: var(--stl-card-accent) !important;
}

body:not(.homepage) .stl-ref-product-card__properties {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    min-height: 34px !important;
    margin: 7px 0 0 !important;
    padding: 0 !important;
    color: var(--stl-card-text-secondary) !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
}

body:not(.homepage) .stl-ref-product-card__divider {
    width: 100% !important;
    height: 1px !important;
    margin: 13px 0 11px !important;
    background: repeating-linear-gradient(to right, var(--stl-card-divider) 0, var(--stl-card-divider) 4px, transparent 4px, transparent 8px) !important;
}

body:not(.homepage) .stl-ref-product-card__bottom {
    display: flex !important;
    flex-direction: column !important;
    margin-top: auto !important;
}

body:not(.homepage) .stl-ref-product-card__stock {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    width: fit-content !important;
    margin: 0 0 10px !important;
    padding: 5px 9px !important;
    background: var(--stl-card-status-bg) !important;
    color: var(--stl-card-status-text) !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-transform: none !important;
}

body:not(.homepage) .stl-ref-product-card__stock::before {
    width: 6px !important;
    height: 6px !important;
    flex: 0 0 6px !important;
    background: #8c96a4 !important;
    border-radius: 50% !important;
    content: "" !important;
}

body:not(.homepage) .stl-ref-product-card__stock strong {
    color: inherit !important;
    font: inherit !important;
}

body:not(.homepage) .stl-ref-product-card__price-row {
    display: flex !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    gap: 3px !important;
    min-height: 0 !important;
    margin: 0 0 11px !important;
    padding: 0 !important;
    text-align: left !important;
}

body:not(.homepage) .stl-ref-product-card .product-price {
    display: inline-block !important;
    width: auto !important;
    color: var(--stl-card-accent) !important;
    font-size: clamp(20px, 1.5vw, 25px) !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    letter-spacing: -.02em !important;
    white-space: nowrap !important;
    text-align: left !important;
    font-variant-numeric: tabular-nums !important;
}

body:not(.homepage) .stl-ref-product-card__price-unit {
    color: var(--stl-card-text-secondary) !important;
    font-size: 11px !important;
    font-weight: 550 !important;
    line-height: 1.1 !important;
}

body:not(.homepage) .stl-ref-product-card .b2b-card-purchase {
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 3 !important;
}

body:not(.homepage) .stl-ref-product-card .btn-cart {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-height: 43px !important;
    height: auto !important;
    padding: 10px 14px !important;
    appearance: none !important;
    background: var(--stl-card-accent) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: var(--stl-card-button-radius) !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    letter-spacing: .035em !important;
    text-transform: uppercase !important;
    box-shadow: none !important;
    transition: background-color 150ms ease, transform 100ms ease, box-shadow 150ms ease !important;
}

body:not(.homepage) .stl-ref-product-card .btn-cart:hover {
    background: var(--stl-card-accent-hover) !important;
    box-shadow: 0 7px 16px rgba(191,31,23,.19) !important;
}

body:not(.homepage) .stl-ref-product-card .btn-cart:active {
    transform: translateY(1px) !important;
    background: var(--stl-card-accent-active) !important;
    box-shadow: none !important;
}

body:not(.homepage) .stl-ref-product-card .btn-cart:focus-visible {
    outline: 3px solid rgba(191,31,23,.24) !important;
    outline-offset: 3px !important;
}

body:not(.homepage) .stl-ref-product-card__cart-icon,
body:not(.homepage) .stl-ref-product-card .btn-cart svg {
    flex: 0 0 auto !important;
    width: 17px !important;
    height: 17px !important;
}

body:not(.homepage) .stl-ref-product-card .b2b-qty-stepper,
body:not(.homepage) .stl-ref-product-card .b2b-qty-stepper.b2b-qty-stepper--inline.is-active {
    min-width: 0 !important;
    height: 43px !important;
    min-height: 43px !important;
    grid-template-columns: 43px minmax(0, 1fr) 43px !important;
    border-radius: var(--stl-card-button-radius) !important;
}

body:not(.homepage) .stl-ref-product-card .b2b-qty-stepper button,
body:not(.homepage) .stl-ref-product-card .b2b-qty-stepper input {
    height: 43px !important;
    min-height: 43px !important;
    max-height: 43px !important;
    line-height: 43px !important;
}

body:not(.homepage) .stl-ref-product-card .b2b-qty-stepper button {
    width: 43px !important;
    min-width: 43px !important;
    max-width: 43px !important;
    flex-basis: 43px !important;
}

@media (max-width: 1199.98px) {
    body:not(.homepage) .stl-ref-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

@media (max-width: 991.98px) {
    body:not(.homepage) .stl-ref-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 520px) {
    body:not(.homepage) .stl-ref-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    body:not(.homepage) .stl-ref-product-card.product-card {
        padding: 9px !important;
        border-radius: 14px !important;
    }

    body:not(.homepage) .stl-ref-product-card__media.product-image-box,
    body:not(.homepage) .stl-ref-product-card.b2b-product-card--pro .product-image-box {
        aspect-ratio: 1.35 / 1 !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        border-radius: 10px !important;
    }

    body:not(.homepage) .stl-ref-product-card__image,
    body:not(.homepage) .stl-ref-product-card__media img,
    body:not(.homepage) .stl-ref-product-card.b2b-product-card--pro .product-image-box img {
        padding: 12px !important;
    }

    body:not(.homepage) .stl-ref-product-card__content {
        padding-top: 10px !important;
    }

    body:not(.homepage) .stl-ref-product-card__meta-row {
        margin-bottom: 6px !important;
        font-size: 9px !important;
        line-height: 1.2 !important;
        letter-spacing: .04em !important;
    }

    body:not(.homepage) .stl-ref-product-card__badge {
        display: none !important;
    }

    body:not(.homepage) .stl-ref-product-card__title {
        min-height: 4.05em !important;
        font-size: 12px !important;
        line-height: 1.35 !important;
    }

    body:not(.homepage) .stl-ref-product-card__properties {
        min-height: 30px !important;
        margin-top: 7px !important;
        font-size: 10px !important;
        line-height: 1.4 !important;
    }

    body:not(.homepage) .stl-ref-product-card__divider {
        margin: 10px 0 9px !important;
    }

    body:not(.homepage) .stl-ref-product-card__stock {
        margin-bottom: 9px !important;
        padding: 5px 7px !important;
        font-size: 9px !important;
    }

    body:not(.homepage) .stl-ref-product-card .product-price {
        font-size: 17px !important;
    }

    body:not(.homepage) .stl-ref-product-card__price-unit {
        display: none !important;
    }

    body:not(.homepage) .stl-ref-product-card .btn-cart {
        min-height: 39px !important;
        padding: 9px 7px !important;
        font-size: 10px !important;
        border-radius: 9px !important;
    }

    body:not(.homepage) .stl-ref-product-card__cart-icon,
    body:not(.homepage) .stl-ref-product-card .btn-cart svg {
        width: 15px !important;
        height: 15px !important;
    }

    body:not(.homepage) .stl-ref-product-card .b2b-qty-stepper,
    body:not(.homepage) .stl-ref-product-card .b2b-qty-stepper.b2b-qty-stepper--inline.is-active {
        height: 39px !important;
        min-height: 39px !important;
        grid-template-columns: 39px minmax(0, 1fr) 39px !important;
        border-radius: 9px !important;
    }

    body:not(.homepage) .stl-ref-product-card .b2b-qty-stepper button,
    body:not(.homepage) .stl-ref-product-card .b2b-qty-stepper input {
        height: 39px !important;
        min-height: 39px !important;
        max-height: 39px !important;
        line-height: 39px !important;
    }

    body:not(.homepage) .stl-ref-product-card .b2b-qty-stepper button {
        width: 39px !important;
        min-width: 39px !important;
        max-width: 39px !important;
        flex-basis: 39px !important;
    }
}

@media (max-width: 350px) {
    body:not(.homepage) .stl-ref-product-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Product detail cleanup: remove fake order-format/tools UI and make characteristics a real tab. */
.stl-pdp__tools,
.stl-pdp__option {
    display: none !important;
}
.stl-pdp__tabs {
    display: flex;
    gap: 22px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 18px;
}
.stl-pdp__tabs button {
    appearance: none;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    padding: 0 0 12px;
    color: #64748b;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}
.stl-pdp__tabs button:hover,
.stl-pdp__tabs button:focus-visible {
    color: #0f172a;
}
.stl-pdp__tabs button:focus-visible {
    outline: 3px solid rgba(180,35,24,.18);
    outline-offset: 4px;
    border-radius: 8px;
}
.stl-pdp__tabs button.is-active {
    color: #0f172a;
    border-bottom-color: #b42318;
}
.stl-pdp__tab-panel[hidden] {
    display: none !important;
}
.stl-pdp__specs {
    display: grid;
    margin-top: 0;
    border-top: 1px solid #eef2f7;
}
.stl-pdp__empty-specs {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

/* Product detail tab state: inactive gray, active red underline only. */
body:not(.homepage) .stl-pdp__tabs [data-pdp-tab] {
    background: transparent !important;
    color: #64748b !important;
    border: 0 !important;
    border-bottom: 3px solid transparent !important;
    box-shadow: none !important;
}
body:not(.homepage) .stl-pdp__tabs [data-pdp-tab].is-active,
body:not(.homepage) .stl-pdp__tabs [data-pdp-tab][aria-selected="true"] {
    background: transparent !important;
    color: #b42318 !important;
    border-bottom-color: #b42318 !important;
    box-shadow: none !important;
}
body:not(.homepage) .stl-pdp__tabs [data-pdp-tab]:not(.is-active):hover,
body:not(.homepage) .stl-pdp__tabs [data-pdp-tab]:not(.is-active):focus-visible {
    color: #0f172a !important;
}

/* Stock-aware availability badges from Bitrix/1C catalog quantity. */
body:not(.homepage) .stl-ref-product-card__stock--available {
    background: #ecfdf3 !important;
    color: #157f3b !important;
}
body:not(.homepage) .stl-ref-product-card__stock--available::before {
    background: #22c55e !important;
}
body:not(.homepage) .stl-ref-product-card__stock--order {
    background: #eef1f5 !important;
    color: #4f5967 !important;
}
body:not(.homepage) .stl-ref-product-card__stock--order::before {
    background: #8c96a4 !important;
}
.stl-pdp__availability--available {
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
}
.stl-pdp__availability--available strong {
    color: #15803d !important;
}
.stl-pdp__availability--order {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}
.stl-pdp__availability--order strong {
    color: #64748b !important;
}
