        @media (max-width: 991px) {
            .kb-header-menu-btn {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                width: 48px;
                height: 44px;
                padding: 0;
                background: #fff;
                border: 1px solid #c8ced6;
                border-radius: 4px;
                box-shadow: 0 1px 2px rgba(15, 34, 58, 0.06);
                cursor: pointer;
            }
            .kb-header-menu-btn:hover,
            .kb-header-menu-btn:focus {
                border-color: #7a8699;
                background: #f8f9fb;
                outline: none;
            }
            .kb-header-menu-btn:focus-visible {
                outline: 2px solid #3462a8;
                outline-offset: 2px;
            }
            .kb-hamburger {
                display: inline-flex;
                flex-direction: column;
                justify-content: space-between;
                width: 20px;
                height: 14px;
            }
            .kb-hamburger span {
                display: block;
                height: 2px;
                background: #1a2332;
                border-radius: 1px;
            }
            .head-top.head-top-bar {
                display: grid;
                grid-template-columns: 1fr auto 1fr;
                align-items: center;
                gap: 8px;
                width: 100%;
            }
            .head-top.head-top-bar .header-slot-left {
                justify-self: start;
                display: flex;
                align-items: center;
                min-height: 44px;
            }
            .head-top.head-top-bar .header-slot-right {
                justify-self: end;
                display: flex;
                align-items: center;
                justify-content: flex-end;
                min-height: 44px;
            }
            .head-top.head-top-bar .logo {
                grid-column: 2;
                justify-self: center;
                float: none !important;
                width: auto !important;
                text-align: center;
            }
            .head-top.head-top-bar .logo img {
                margin: 0 auto;
                max-height: 52px;
                width: auto;
            }
            .head-top.head-top-bar .h_menu4 {
                grid-column: 1 / -1;
                width: 100%;
                clear: both;
            }
        }
        @media (min-width: 992px) {
            .head-top.head-top-bar .header-slot-left,
            .head-top.head-top-bar .header-slot-right {
                display: none !important;
            }
        }

        /* Search row + cart (desktop & mobile header-top) */
        .kb-header-search-block .kb-search-cart-row {
            display: flex;
            flex-wrap: nowrap;
            align-items: flex-start;
            gap: 8px;
        }
        .kb-header-search-block .kb-header-search-form {
            flex: 1;
            min-width: 0;
        }
        .kb-cart-cluster {
            display: flex;
            flex-direction: row;
            align-items: center;
            flex-shrink: 0;
        }
        .kb-cart-trigger__sum {
            font-size: 12px;
            font-weight: 700;
            color: #1a2332;
            line-height: 1.15;
            white-space: nowrap;
            min-width: 10ch;
            text-align: left;
        }
        .kb-cart-preview-total {
            margin-top: 6px;
            padding: 14px 0 6px;
            font-size: 16px;
            font-weight: 700;
            border-top: 1px solid #e9edf2;
            color: #1a2332;
        }
        .kb-cart-preview-total .kb-cart-preview-total__note {
            display: block;
            margin-top: 4px;
            font-size: 12px;
            font-weight: 400;
            color: #5a6778;
        }
        .kb-cart-trigger {
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: flex-start;
            gap: 6px;
            min-width: 118px;
            height: 40px;
            padding: 0 10px 0 8px;
            margin-top: 2px;
            background: #fff;
            border: 1px solid #c8ced6;
            border-radius: 4px;
            cursor: pointer;
            box-shadow: 0 1px 2px rgba(15, 34, 58, 0.06);
            box-sizing: border-box;
        }
        .kb-cart-trigger:hover,
        .kb-cart-trigger:focus {
            border-color: #7a8699;
            background: #f8f9fb;
            outline: none;
        }
        .kb-cart-trigger:focus-visible {
            outline: 2px solid #3462a8;
            outline-offset: 2px;
        }
        .kb-cart-trigger svg {
            display: block;
            flex-shrink: 0;
            width: 22px;
            height: 22px;
            color: #1a2332;
        }
        .kb-cart-badge {
            position: absolute;
            top: -6px;
            right: -6px;
            min-width: 18px;
            height: 18px;
            padding: 0 4px;
            font-size: 11px;
            font-weight: 700;
            line-height: 18px;
            text-align: center;
            color: #fff;
            background: #c1272d;
            border-radius: 9px;
        }
        .kb-cart-backdrop {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 10049;
            background: rgba(26, 35, 50, 0.45);
        }
        .kb-cart-backdrop.is-visible {
            display: block;
        }
        .kb-cart-modal {
            display: none;
            flex-direction: column;
            box-sizing: border-box;
            position: fixed;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            width: min(460px, calc(100vw - 28px));
            max-height: min(560px, calc(100vh - 40px));
            z-index: 10050;
            padding: 0;
            margin: 0;
            background: #fff;
            border-radius: 10px;
            box-shadow: 0 20px 60px rgba(15, 34, 58, 0.25);
            overflow: hidden;
            -webkit-overflow-scrolling: touch;
        }
        .kb-cart-modal.is-open {
            display: flex;
        }
        .kb-cart-modal__close {
            position: absolute;
            top: 10px;
            right: 10px;
            z-index: 2;
            width: 40px;
            height: 40px;
            padding: 0;
            line-height: 1;
            font-size: 26px;
            color: #5a6778;
            background: #fff;
            border: 1px solid #e9edf2;
            border-radius: 6px;
            cursor: pointer;
        }
        .kb-cart-modal__close:hover,
        .kb-cart-modal__close:focus {
            background: #f6f8fa;
            color: #1a2332;
            outline: none;
        }
        .kb-cart-modal__close:focus-visible {
            outline: 2px solid #3462a8;
            outline-offset: 2px;
        }
        .kb-cart-modal__heading {
            flex-shrink: 0;
            margin: 0;
            padding: 18px 48px 12px 20px;
            font-size: 20px;
            font-weight: 700;
            color: #1a2332;
            border-bottom: 1px solid #e9edf2;
        }
        .kb-cart-modal__body {
            flex: 1;
            min-height: 0;
            overflow-x: hidden;
            overflow-y: auto;
            padding: 8px 16px 20px;
            -webkit-overflow-scrolling: touch;
        }
        #kb-cart-panel .kb-cart-empty {
            margin-top: 20px;
            color: #5a6778;
            font-size: 14px;
        }
        .kb-cart-line {
            display: flex;
            gap: 10px;
            align-items: flex-start;
            padding: 12px 0;
            border-bottom: 1px solid #e9edf2;
            position: relative;
        }
        .kb-cart-line__img {
            width: 48px;
            height: 48px;
            object-fit: contain;
            background: #f6f7f9;
            border-radius: 4px;
            flex-shrink: 0;
        }
        .kb-cart-line__body {
            flex: 1;
            min-width: 0;
        }
        .kb-cart-line__name {
            font-size: 14px;
            font-weight: 600;
            color: #1a2332;
            text-decoration: none;
        }
        .kb-cart-line__name:hover {
            text-decoration: underline;
        }
        .kb-cart-line__meta {
            font-size: 12px;
            color: #5a6778;
            margin-top: 4px;
        }
        .kb-cart-line__actions {
            margin-top: 8px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .kb-cart-line__actions button {
            width: 28px;
            height: 28px;
            padding: 0;
            border: 1px solid #c8ced6;
            border-radius: 4px;
            background: #fff;
            cursor: pointer;
            font-size: 16px;
            line-height: 1;
        }
        .kb-cart-line__actions .kb-cart-q-val {
            min-width: 24px;
            text-align: center;
            font-size: 14px;
        }
        .kb-cart-remove {
            position: absolute;
            top: 8px;
            right: 0;
            border: none;
            background: none;
            font-size: 22px;
            line-height: 1;
            color: #7a8699;
            cursor: pointer;
            padding: 4px;
        }
        .kb-cart-remove:hover {
            color: #c1272d;
        }
        .kb-cart-modal-actions {
            margin-top: 18px;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .kb-cart-primary,
        .kb-cart-secondary {
            display: inline-block;
            text-align: center;
            padding: 12px 16px;
            border-radius: 4px;
            font-size: 15px;
            font-weight: 600;
            text-decoration: none;
            border: none;
            cursor: pointer;
            box-sizing: border-box;
            width: 100%;
        }
        .kb-cart-primary {
            background: #ef5f21;
            color: #fff !important;
        }
        .kb-cart-primary:hover {
            background: #fff;
            color: #ef5f21 !important;
        }
        .kb-cart-secondary {
            background: #fff;
            color: #1a2332 !important;
            border: 1px solid #c8ced6;
        }
        .kb-cart-flash.error,
        .kb-cart-flash.danger {
            color: #a61b1b;
            padding: 10px;
            background: #fdeaea;
            border-radius: 4px;
            margin-bottom: 12px;
        }
        .cart-checkout-page .kb-cart-checkout-line {
            display: flex;
            gap: 14px;
            align-items: flex-start;
            padding: 14px 0;
            border-bottom: 1px solid #e9edf2;
        }
        .cart-checkout-page .kb-cart-checkout-line__img {
            width: 64px;
            height: 64px;
            object-fit: contain;
            background: #f6f7f9;
            border-radius: 4px;
        }
        .cart-checkout-page .kb-cart-checkout-total {
            font-size: 18px;
            font-weight: 700;
            margin: 14px 0 8px;
            color: #1a2332;
        }
        .cart-checkout-page .kb-cart-checkout-form {
            max-width: 520px;
            margin-top: 24px;
        }
        .kb-cart-checkout-submit-wrap input[type="submit"] {
            margin-top: 8px;
        }
        .kb-cart-checkout-note {
            margin-top: 12px;
            font-size: 14px;
        }
        .kb-cart-toast-inline {
            display: inline-block;
            margin-left: 10px;
            font-size: 13px;
            color: #1e7f4a;
            vertical-align: middle;
        }
        /* Чат через Telegram (виджет вместо Jivo) */
        .kb-tg-widget-backdrop {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 10047;
            background: rgba(26, 35, 50, 0.42);
        }
        .kb-tg-widget-backdrop.is-visible {
            display: block;
        }
        .kb-tg-widget-panel {
            box-sizing: border-box;
            position: fixed;
            right: 18px;
            bottom: 88px;
            width: min(320px, calc(100vw - 36px));
            z-index: 10048;
            margin: 0;
            padding: 0;
            background: #fff;
            border-radius: 12px;
            border: 1px solid #e9edf2;
            box-shadow: 0 18px 56px rgba(15, 34, 58, 0.22);
            overflow: hidden;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transform: translateY(14px) scale(0.97);
            transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
        }
        .kb-tg-widget-panel.is-open {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
            transform: translateY(0) scale(1);
        }
        .kb-tg-widget-close {
            position: absolute;
            top: 10px;
            right: 10px;
            z-index: 2;
            width: 38px;
            height: 38px;
            padding: 0;
            line-height: 1;
            font-size: 24px;
            color: #5a6778;
            background: #fff;
            border: 1px solid #e9edf2;
            border-radius: 6px;
            cursor: pointer;
        }
        .kb-tg-widget-close:hover,
        .kb-tg-widget-close:focus {
            background: #f6f8fa;
            color: #1a2332;
            outline: none;
        }
        .kb-tg-widget-close:focus-visible {
            outline: 2px solid #3462a8;
            outline-offset: 2px;
        }
        .kb-tg-widget-head {
            padding: 20px 48px 14px 18px;
            background: linear-gradient(165deg, #e8f4fc 0%, #fff 55%);
            border-bottom: 1px solid #e9edf2;
        }
        .kb-tg-widget-head-row {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 8px;
        }
        .kb-tg-widget-logo {
            flex-shrink: 0;
            width: 42px;
            height: 42px;
            border-radius: 50%;
            background: linear-gradient(145deg, #2aabee 0%, #229ed9 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 14px rgba(34, 158, 217, 0.35);
        }
        .kb-tg-widget-logo svg {
            width: 22px;
            height: 22px;
            fill: #fff;
        }
        #kb-tg-widget-title {
            margin: 0;
            font-size: 17px;
            font-weight: 800;
            color: #1a2332;
            letter-spacing: -0.02em;
            line-height: 1.2;
        }
        .kb-tg-widget-sub {
            margin: 6px 0 0;
            font-size: 13px;
            line-height: 1.45;
            color: #5a6778;
        }
        .kb-tg-widget-body {
            padding: 16px 18px 18px;
        }
        .kb-tg-widget-cta {
            display: block;
            text-align: center;
            padding: 12px 16px;
            border-radius: 4px;
            font-size: 15px;
            font-weight: 600;
            text-decoration: none !important;
            box-sizing: border-box;
            background: #ef5f21;
            color: #fff !important;
            border: 2px solid transparent;
            transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
        }
        .kb-tg-widget-cta:hover {
            background: #fff;
            color: #ef5f21 !important;
            border-color: #ef5f21;
        }
        .kb-tg-widget-secondary {
            display: block;
            margin-top: 10px;
            text-align: center;
            font-size: 13px;
            font-weight: 600;
            color: #3462a8 !important;
            text-decoration: none !important;
        }
        .kb-tg-widget-secondary:hover {
            text-decoration: underline !important;
        }
        .kb-tg-widget-hint {
            margin: 12px 0 0;
            font-size: 12px;
            line-height: 1.4;
            color: #8b96a5;
        }
        .kb-tg-widget-fab {
            position: fixed;
            right: 18px;
            bottom: 18px;
            z-index: 10049;
            width: 56px;
            height: 56px;
            padding: 0;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            background: linear-gradient(145deg, #2aabee 0%, #229ed9 45%, #1d8bc4 100%);
            box-shadow: 0 10px 28px rgba(34, 158, 217, 0.45), 0 2px 8px rgba(15, 34, 58, 0.12);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.15s ease, box-shadow 0.15s ease;
        }
        .kb-tg-widget-fab:hover {
            transform: scale(1.05);
            box-shadow: 0 12px 32px rgba(34, 158, 217, 0.5), 0 2px 10px rgba(15, 34, 58, 0.14);
        }
        .kb-tg-widget-fab:focus-visible {
            outline: 3px solid #3462a8;
            outline-offset: 3px;
        }
        .kb-tg-widget-fab svg {
            width: 28px;
            height: 28px;
            fill: #fff;
        }
        @media (max-width: 480px) {
            .kb-tg-widget-panel {
                right: 12px;
                bottom: 82px;
                width: calc(100vw - 24px);
            }
            .kb-tg-widget-fab {
                right: 14px;
                bottom: 14px;
            }
        }
        @media (prefers-reduced-motion: reduce) {
            .kb-tg-widget-panel {
                transition: none;
            }
            .kb-tg-widget-fab {
                transition: none;
            }
            .kb-tg-widget-fab:hover {
                transform: none;
            }
        }
