        .wizard-ui {
            --primary: #c62828; --primary-hover: #b71c1c;
            --bg: #ffffff; --surface: #f8fafc;
            --text: #1e293b; --text-light: #64748b;
            --border: #e2e8f0; --success: #2e7d32;
            max-width: 1250px; margin: 40px auto; font-family: 'Arial', sans-serif; color: var(--text);
            position: relative;
        }

        .help-icon {
            display: inline-flex; align-items: center; justify-content: center;
            width: 16px; height: 16px; border-radius: 50%; background: #cbd5e1; color: #fff;
            font-size: 11px; font-weight: bold; cursor: help; margin-left: 6px; position: relative;
        }
        .help-icon:hover::after {
            content: attr(data-tip); position: absolute; bottom: 120%; left: 50%; transform: translateX(-50%);
            background: #1e293b; color: #fff; padding: 6px 10px; border-radius: 6px; font-size: 12px;
            white-space: normal; width: 200px; text-align: center; z-index: 100; pointer-events: none;
            font-weight: normal; box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }

        .wizard-progress { display: flex; justify-content: space-between; margin-bottom: 30px; position: relative; }
        .wizard-progress::before { content: ""; position: absolute; top: 15px; left: 0; width: 100%; height: 2px; background: var(--border); z-index: 1; pointer-events: none; }
        .progress-step {
            width: 32px; height: 32px; background: var(--bg); border: 2px solid var(--border); border-radius: 50%;
            display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: bold; z-index: 2; transition: 0.3s; color: var(--text-light);
            position: relative; cursor: pointer;
        }
        .progress-step.active { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.1); }
        .progress-step.completed { background: var(--primary); border-color: var(--primary); color: #fff; }

        /* Шаги */
        .wizard-step { display: none; animation: fadeIn 0.4s ease; }
        .wizard-step.active { display: block; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

        .step-title { font-size: 22px; font-weight: bold; margin-bottom: 5px; color: #000; }
        .step-desc { font-size: 14px; color: var(--text-light); margin-bottom: 25px; }

        /* Поля ввода */
        .fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
        .input-group { display: flex; flex-direction: column; opacity: 1 !important; }
        .label { font-size: 11px !important; font-weight: 800 !important; margin-bottom: 8px !important; color: #475569 !important; text-transform: uppercase !important; letter-spacing: 0.5px !important; display: flex; align-items: center;}
        
        /* Панели для группировки опций на 3 шаге */
        .options-panel { border: 1px solid #cbd5e1; border-radius: 8px; padding: 25px; margin-bottom: 25px; box-shadow: 0 4px 15px -3px rgba(0,0,0,0.05); }
        
        /* Цветовое разделение панелей */
        .options-panel.mech-panel { background: #ffffff; border-top: 4px solid #64748b; } /* Белая с серой полосой */
        .options-panel.motor-panel { background: #f8fafc; border-top: 4px solid #f59e0b; } /* Легкий сине-серый с желтой полосой */
        
        .options-panel-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #e2e8f0; padding-bottom: 15px; margin-bottom: 20px; }
        .options-panel-title { font-size: 15px; font-weight: 800; color: #0f172a; text-transform: uppercase; letter-spacing: 0.5px; margin: 0; display: flex; align-items: center; gap: 8px; }
        .modern-input { width: 100%; padding: 10px 14px !important; border: 1px solid var(--border) !important; border-radius: 8px !important; font-size: 14px !important; background: #fff !important; box-sizing: border-box !important; height: 42px !important; box-shadow: none !important; color: #0f172a !important; }
        .modern-input:focus { border-color: var(--primary) !important; outline: none !important; }

        .tol-wrapper { display: flex; align-items: center; gap: 10px; margin-top: 6px; background: var(--surface) !important; padding: 8px 12px; border-radius: 6px; border: 1px solid var(--border) !important; }
        .tol-wrapper span { font-size: 11px !important; font-weight: bold !important; color: #475569 !important; white-space: nowrap; }
        .tol-wrapper input[type=range] { flex: 1; accent-color: var(--primary) !important; margin: 0; }
        .tol-wrapper input[type=number] { width: 40px; padding: 2px; text-align: center; border: 1px solid #cbd5e1 !important; border-radius: 4px; font-size: 12px; color: #1e293b !important; background: #fff !important; }

        .wizard-layout { display: flex; gap: 30px; align-items: flex-start; }
        .wizard-main { flex: 1; min-width: 0; }
        .wizard-sidebar { width: 300px; background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; padding: 20px; position: sticky; top: 20px; display: flex; flex-direction: column; gap: 15px; box-shadow: 0 4px 6px rgba(0,0,0,0.02); transition: 0.3s; }
        .sidebar-title { font-size: 16px; font-weight: bold; color: #0f172a; margin: 0 0 10px 0; border-bottom: 2px solid var(--border); padding-bottom: 10px; }
        .sidebar-item { display: flex; flex-direction: column; font-size: 13px; color: #475569; }
        .sidebar-item strong { color: #0f172a; font-size: 14px; }
        .sidebar-img-placeholder { width: 100%; height: 130px; background: #fff; border: 1px dashed #cbd5e1; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
        .sidebar-img-placeholder img { max-width: 90%; max-height: 110px; object-fit: contain; }
        @media (max-width: 900px) { .wizard-layout { flex-direction: column; } .wizard-sidebar { width: 100%; position: static; } }

        .type-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; gap: 15px; }
        .type-card {
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            padding: 5px 10px; border: 2px solid var(--border); border-radius: 10px; cursor: pointer; text-align: center;
            font-weight: bold; font-size: 14px; transition: all 0.3s ease; box-sizing: border-box;
            background: #fff; gap: 5px; color: #1e293b;
        }
        .type-card img { max-width: 90%; max-height: 150px; height: auto; object-fit: contain; }
        .type-card svg { width: 80px; height: 80px; fill: #94a3b8; transition: 0.3s ease; margin: 5px 0;}
        .type-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
        .type-card:hover svg { fill: var(--primary); transform: scale(1.1); }
        .type-card.selected { border-color: var(--primary); background: rgba(198, 40, 40, 0.04); color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
        .type-card.selected svg { fill: var(--primary); }

        .nav-buttons { display: flex; justify-content: space-between; gap: 15px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); }
        .btn-next { background-color: var(--primary) !important; color: #fff !important; padding: 14px 40px !important; border-radius: 8px !important; border: none !important; font-weight: bold !important; font-size: 15px !important; cursor: pointer !important; text-align: center !important; margin-left: auto; }
        .btn-next:hover { background-color: var(--primary-hover) !important; }
        .btn-prev { background-color: #f1f5f9 !important; color: #333 !important; padding: 14px 40px !important; border-radius: 8px !important; border: 1px solid #cbd5e1 !important; font-weight: bold !important; font-size: 15px !important; cursor: pointer !important; text-align: center !important;}
        
       /* Таблицы и Сортировка */
        .table-scroll { max-height: 400px; overflow-y: auto; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff !important; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
        .results-table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: center; background: #fff !important; border: 1px solid #e2e8f0 !important; }
        .results-table th:nth-child(1), .results-table td:nth-child(1) { text-align: left; padding-left: 20px; }
        .results-table th, .results-table td { padding: 14px 12px; cursor: pointer; vertical-align: middle; border: 1px solid #e2e8f0 !important; }
        
        .results-table th { 
            background: #f1f5f9 !important; 
            color: #475569 !important; 
            font-weight: 800 !important; 
            font-size: 11px !important; 
            text-transform: uppercase !important; 
            letter-spacing: 0.5px !important; 
            position: sticky; top: 0; user-select: none; 
            border-bottom: 2px solid #cbd5e1 !important; 
            z-index: 5;
        }
        .results-table th:hover { color: #0f172a !important; background: #e2e8f0 !important; }
        
        .results-table td { color: #334155 !important; }
        .results-table td:nth-child(2) { font-weight: 700 !important; color: #0f172a !important; } 
        
        .results-table tr:hover td { background: #f8fafc !important; }
        .results-table tr.selected td { background: #fff1f2 !important; color: #0f172a !important; font-weight: 500 !important; }
        .results-table tr.selected td:first-child { box-shadow: inset 4px 0 0 var(--primary) !important; } 
        
        .results-table tr.warning td { background: #fef2f2 !important; color: #b91c1c !important; }
         /* Анимация загрузки*/
        .loader-wrapper { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; gap: 15px; color: #64748b; }
        .loader-gear { width: 40px; height: 40px; fill: var(--primary); animation: spin 2s linear infinite; }
        @keyframes spin { 100% { transform: rotate(360deg); } }
        .loader-text { font-size: 14px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; color: #0f172a; }

        .badge-optimal { background: #f59e0b; color: #fff; padding: 2px 6px; border-radius: 4px; font-size: 10px; font-weight: bold; margin-left: 6px; text-transform: uppercase; letter-spacing: 0.5px;}

        .btn-debug-stock { background: #f1f5f9; border: 1px solid #cbd5e1; border-radius: 4px; cursor: pointer; font-size: 10px; padding: 2px 6px; margin-left: 8px; color: #475569; transition: 0.2s; vertical-align: middle; }
        .btn-debug-stock:hover { background: #e2e8f0; color: #0f172a; border-color: #94a3b8; }

        .summary-red-val, .final-red-val { display: inline-flex; align-items: center; gap: 12px; vertical-align: middle; }
        
        .summary-red-val img { 
            height: 120px; 
            width: auto; 
            max-width: 180px; 
            object-fit: contain; 
            background: transparent; 
            margin: 0; 
            border: none; 
            box-shadow: none; 
            padding: 0; 
        }
        
        .final-red-val img { 
            height: 40px; 
            width: auto; 
            max-width: 60px; 
            object-fit: contain; 
            border-radius: 4px; 
            border: 1px solid var(--border); 
            background: #fff; 
            padding: 2px; 
            margin: 0; 
        }
        
        #w-motors-body td { font-size: 14px; color: #1e293b; }
        #w-motors-body tr.selected td { font-weight: bold; }
        .motor-mat-badge { background: #e2e8f0; color: #475569; padding: 3px 8px; border-radius: 4px; font-size: 12px; font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px; border: 1px solid #cbd5e1; }

       /*B2B Спецификация */
        .spec-container { border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; margin-bottom: 25px; box-shadow: 0 4px 15px -3px rgba(0,0,0,0.05); overflow: hidden; width: 100% !important; max-width: 100% !important; display: block !important; box-sizing: border-box !important;}
        .spec-top-wrapper { display: flex !important; flex-direction: row; padding: 15px 25px 15px 25px; gap: 20px; width: 100% !important; box-sizing: border-box !important;}
        @media (max-width: 768px) { .spec-top-wrapper { flex-direction: column-reverse; } }
        .spec-top-left { flex: 1 1 auto !important; min-width: 0 !important; width: 100% !important; }
        .spec-top-right { width: 260px !important; display: flex !important; flex-direction: column !important; align-items: center; justify-content: flex-start; flex-shrink: 0 !important; }
        .spec-top-right img { max-width: 100% !important; max-height: 200px !important; object-fit: contain !important; }
        
        .spec-main-title { font-size: 22px; font-weight: 900; color: #0f172a; margin: 0 0 8px 0; line-height: 1.2; letter-spacing: -0.5px; }
        .spec-sub-title { font-size: 13px; color: #64748b; margin: 0 0 20px 0; line-height: 1.4; }
        
        .spec-section-header { padding: 12px 25px; font-size: 14px; font-weight: bold; color: #c62828; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; background: #fcfcfc; text-transform: uppercase; width: 100% !important; box-sizing: border-box !important;}
        
        .spec-grid { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; background: #fff; width: 100% !important; box-sizing: border-box !important;}
        @media (max-width: 900px) { .spec-grid { grid-template-columns: 1fr 1fr !important; } }
        @media (max-width: 600px) { .spec-grid { grid-template-columns: 1fr !important; } }
        
        /* Умная сетка: фон контейнера серый, ячейки белые, отступ в 1px создает идеальные границы */
        .spec-grid.top-stats { 
            background: #e2e8f0 !important; 
            gap: 1px !important; 
            border: 1px solid #e2e8f0; 
            border-radius: 6px; 
            overflow: hidden; 
        }
        
        .spec-item { 
            background: #ffffff !important;
            padding: 12px 20px; 
            display: flex !important; 
            flex-direction: column; 
            gap: 4px; 
            border: none !important; /* Удалили ручные границы */
            min-width: 0 !important; 
            overflow: hidden !important; 
            word-wrap: break-word !important; 
            white-space: normal !important; 
            box-sizing: border-box !important;
        }
        
        .spec-label { font-size: 10px; text-transform: uppercase; color: #94a3b8; font-weight: 800; letter-spacing: 0.5px; }
        .spec-val { font-size: 14px; color: #0f172a; font-weight: 600; }

        .final-price-panel { display: flex !important; justify-content: space-between; align-items: center; background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; padding: 20px 25px; margin-bottom: 25px; border-left: 6px solid var(--primary); box-shadow: 0 4px 15px -3px rgba(0,0,0,0.05); width: 100% !important; box-sizing: border-box !important;}
        .final-price-label { font-size: 13px; color: #64748b; text-transform: uppercase; font-weight: 800; letter-spacing: 0.5px; }
        .final-price-value { font-size: 26px; color: #0f172a; font-weight: 900; letter-spacing: -0.5px; }
        @media (max-width: 600px) { .final-price-panel { flex-direction: column !important; align-items: flex-start !important; gap: 10px; } }

        .b2b-actions-wrapper { display: flex; gap: 24px; margin-top: 30px; align-items: stretch; }
        @media (max-width: 900px) { .b2b-actions-wrapper { flex-direction: column; } }
        
        .b2b-checkout-section { flex: 2; background: #ffffff; border: 1px solid #cbd5e1; border-top: 4px solid var(--primary); border-radius: 8px; padding: 30px; box-shadow: 0 4px 15px -3px rgba(0,0,0,0.05); width: 100% !important; box-sizing: border-box !important;}
        .b2b-checkout-section .fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 20px; width: 100% !important;}
        @media (max-width: 600px) { .b2b-checkout-section .fields-grid { grid-template-columns: 1fr; } }
        
        .b2b-checkout-title { font-size: 16px; font-weight: 800; color: #0f172a; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.5px; display: flex; align-items: center; gap: 8px;}
        .b2b-checkout-title::before { content: ""; display: block; width: 18px; height: 18px; background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="%23c62828" xmlns="http://www.w3.org/2000/svg"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>') no-repeat center center; }
        
        .b2b-tools-section { flex: 1; display: flex; flex-direction: column; gap: 12px; width: 100%; min-width: 280px; box-sizing: border-box; background: #f8fafc; padding: 25px; border-radius: 8px; border: 1px solid #e2e8f0;}
        .b2b-tools-title { font-size: 12px; font-weight: 800; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px; border-bottom: 2px solid #e2e8f0; padding-bottom: 10px;}

        .btn-b2b-tool { background: #ffffff !important; color: #0f172a !important; border: 1px solid #cbd5e1 !important; height: 48px !important; font-weight: 800 !important; font-size: 11px !important; transition: all 0.2s ease !important; box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important; border-radius: 6px !important; text-transform: uppercase !important; letter-spacing: 0.5px !important; display: flex !important; align-items: center !important; justify-content: center !important; width: 100% !important; cursor: pointer !important;}
        .btn-b2b-tool:hover { background: #f1f5f9 !important; border-color: #94a3b8 !important; transform: translateY(-1px) !important; box-shadow: 0 3px 8px rgba(0,0,0,0.08) !important; }
        
        .btn-b2b-tool.pdf-primary { background: linear-gradient(135deg, #c62828 0%, #b71c1c 100%) !important; color: #ffffff !important; border: none !important; height: 54px !important; font-size: 13px !important; box-shadow: 0 4px 12px rgba(198,40,40,0.25) !important; }
        .btn-b2b-tool.pdf-primary:hover { background: linear-gradient(135deg, #b71c1c 0%, #a31515 100%) !important; transform: translateY(-2px) !important; box-shadow: 0 6px 15px rgba(198,40,40,0.35) !important; color: #fff !important;}

        .btn-submit { background: linear-gradient(135deg, #c62828 0%, #b71c1c 100%) !important; color: #fff !important; border: none !important; height: 54px !important; border-radius: 6px !important; font-weight: 800 !important; font-size: 14px !important; letter-spacing: 0.5px !important; text-transform: uppercase !important; cursor: pointer !important; display: flex !important; align-items: center !important; justify-content: center !important; gap: 10px !important; transition: all 0.2s ease !important; width: 100% !important; box-shadow: 0 4px 12px rgba(198,40,40,0.25) !important; }
        .btn-submit:hover { background: linear-gradient(135deg, #b71c1c 0%, #a31515 100%) !important; transform: translateY(-2px) !important; box-shadow: 0 6px 15px rgba(198,40,40,0.35) !important; }
        #step4 { width: 100% !important; }

        .btn-clear-step { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: bold; cursor: pointer; transition: 0.2s; display: inline-flex; align-items: center; gap: 5px; }
        .btn-clear-step:hover { background: #e2e8f0; color: #1e293b; border-color: #94a3b8; }
        
        .floating-fav-btn { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); background: #1e293b; color: #fff; padding: 14px 24px; border-radius: 30px; font-weight: bold; cursor: pointer; box-shadow: 0 10px 25px rgba(0,0,0,0.2); z-index: 900; display: flex; gap: 10px; align-items: center; transition: 0.3s; }
        .floating-fav-btn:hover { transform: translateX(-50%) translateY(-3px); background: #0f172a; }
        #fav-badge { background: #f59e0b; color: #fff; padding: 2px 8px; border-radius: 12px; font-size: 12px; }
        
        .sb-bottom-actions {
            margin-top: 15px;
            background: #fff;
            border: 1px solid #cbd5e1;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
            display: flex;
            flex-direction: column;
        }
        .sb-price-block {
            background: #f8fafc;
            padding: 16px 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            border-bottom: 1px solid #cbd5e1;
        }
        .sb-price-label {
            font-size: 10px;
            font-weight: 800;
            color: #64748b;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            text-align: center;
            margin-bottom: 6px;
            width: 100%;
        }
        .sb-price-value {
            font-size: 24px;
            font-weight: 900;
            color: #c62828;
            letter-spacing: -0.5px;
            text-align: center;
            line-height: 1;
        }
        .btn-open-fav {
            background-color: #ffffff !important;
            color: #0f172a !important;
            border: none !important;
            padding: 14px 20px !important;
            height: auto !important;
            border-radius: 0 !important;
            font-weight: 800 !important;
            font-size: 12px !important;
            text-transform: uppercase !important;
            letter-spacing: 0.5px !important;
            cursor: pointer !important;
            transition: all 0.2s ease !important;
            width: 100% !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important; /* Центрируем всё содержимое */
            gap: 12px !important; /* Аккуратный отступ между текстом и цифрой */
            margin-top: 0 !important;
        }
        .btn-open-fav:hover {
            background-color: #f1f5f9 !important;
            color: #c62828 !important;
        }
        .btn-open-fav:hover svg {
            color: #c62828 !important;
        }
        .btn-open-fav svg {
            color: #64748b;
            transition: color 0.2s ease;
        }
        .sb-fav-badge {
            background: #c62828; /* Наш фирменный красный цвет */
            color: #fff;
            padding: 3px 10px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 800;
            display: inline-block;
            box-shadow: 0 2px 4px rgba(198, 40, 40, 0.3); /* Тень в тон красного */
        }

        .fav-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px); z-index: 1000; display: none; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; }
        .fav-modal-overlay.active { display: flex; opacity: 1; }
        .fav-modal { background: #fff; padding: 35px; border-radius: 0; max-width: 1000px; width: 95%; max-height: 85vh; overflow-y: auto; position: relative; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); transform: translateY(10px); transition: transform 0.3s ease; border: 1px solid #cbd5e1; }
        .fav-modal-overlay.active .fav-modal { transform: translateY(0); }
        .close-modal { position: absolute; top: 15px; right: 20px; font-size: 24px; cursor: pointer; color: #94a3b8; border: none; background: transparent; transition: 0.2s; padding: 0; line-height: 1; }
        .close-modal:hover { color: var(--primary); }
        
        .fav-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 13px; text-align: left; border: 1px solid #e2e8f0; }
        .fav-table th, .fav-table td { padding: 14px 15px; border: 1px solid #e2e8f0; color: #334155; vertical-align: middle; }
        .fav-table th { 
            background: #f1f5f9 !important; 
            color: #475569 !important; 
            font-weight: 800 !important; 
            font-size: 11px !important; 
            text-transform: uppercase !important; 
            letter-spacing: 0.5px !important; 
            border-bottom: 2px solid #cbd5e1 !important; 
        }
        .fav-table tr:hover td { background: #f8fafc; }
        
        .fav-char-badge { 
            display: inline-block; 
            background: #f8fafc; 
            color: #475569; 
            padding: 4px 8px; 
            border-radius: 2px; 
            font-size: 11px; 
            font-weight: 700; 
            margin: 2px; 
            border: 1px solid #e2e8f0; 
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }
        
        .fav-action-btn { 
            background: #ffffff !important; 
            color: #334155 !important; 
            border: 1px solid #cbd5e1 !important; 
            padding: 8px 14px !important; 
            border-radius: 0 !important; 
            cursor: pointer !important; 
            font-size: 11px !important; 
            font-weight: 800 !important; 
            text-transform: uppercase;
            letter-spacing: 0.5px;
            transition: 0.15s !important;
        }
        .fav-action-btn:hover { background: #fef2f2 !important; color: #ef4444 !important; border-color: #fca5a5 !important; }
        .fav-action-btn.load { margin-right: 6px !important; border-left: 3px solid #10b981 !important; }
        .fav-action-btn.load:hover { background: #ecfdf5 !important; color: #10b981 !important; border-color: #6ee7b7 !important; }

        .w-filters-actions {
            display: flex;
            align-items: center;
            gap: 24px;
            margin-top: 10px;
        }

        .w-toggle-stock {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            user-select: none;
        }

        .w-toggle-stock input {
            display: none;
        }

        .w-toggle-slider {
            position: relative;
            width: 38px;
            height: 20px;
            background-color: #cbd5e1;
            border-radius: 20px;
            transition: background-color 0.25s ease;
        }

        .w-toggle-slider::after {
            content: '';
            position: absolute;
            top: 2px;
            left: 2px;
            width: 16px;
            height: 16px;
            background-color: white;
            border-radius: 50%;
            transition: transform 0.25s cubic-bezier(0.4, 0.0, 0.2, 1);
            box-shadow: 0 1px 3px rgba(0,0,0,0.15);
        }

        .w-toggle-label {
            font-size: 13px;
            font-weight: 600;
            color: #475569;
            transition: color 0.2s ease;
        }

        .w-toggle-stock input:checked + .w-toggle-slider {
            background-color: #10b981;
        }

        .w-toggle-stock input:checked + .w-toggle-slider::after {
            transform: translateX(18px);
        }

        .w-toggle-stock input:checked ~ .w-toggle-label {
            color: #0f172a;
        }

        .w-btn-reset {
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 6px !important;
            background: transparent !important;
            border: 1px solid #cbd5e1 !important;
            color: #64748b !important;
            font-size: 13px !important;
            font-weight: 600 !important;
            padding: 6px 14px !important;
            border-radius: 6px !important;
            cursor: pointer !important;
            transition: all 0.2s ease !important;
            font-family: inherit !important;
            line-height: 1.5 !important;
            box-shadow: none !important;
            text-transform: none !important;
            margin: 0 !important;
            height: auto !important;
            text-decoration: none !important;
        }

        .w-btn-reset:hover {
            background: #f8fafc !important;
            border-color: #94a3b8 !important;
            color: #0f172a !important;
        }

        .w-btn-reset:active {
            background: #f1f5f9 !important;
            transform: translateY(1px) !important;
        }

        .w-btn-reset svg {
            width: 14px !important;
            height: 14px !important;
            transition: transform 0.3s ease !important;
            fill: none !important;
            stroke: currentColor !important;
            margin: 0 !important;
        }

        .w-btn-reset:hover svg {
            transform: rotate(-45deg) !important;
        }

/* Шаг 3: блока выбора мотора */

        .motor-selection-wrapper {
            margin-top: 35px;
            margin-bottom: 30px;
            background: #fff;
            border: 1px solid #cbd5e1;
            border-top: 4px solid var(--primary); /* Фирменная красная полоса */
            border-radius: 12px;
            box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
            overflow: hidden; 
        }

        .motor-section-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: #f8fafc;
            padding: 16px 20px;
            border-bottom: 1px solid #e2e8f0;
        }

        .motor-header-text h4 {
            margin: 0 0 4px 0;
            font-size: 16px;
            color: #0f172a;
            font-weight: bold;
        }

        .motor-header-text p {
            margin: 0;
            font-size: 13px;
            color: #64748b;
        }

        .motor-header-reducer.summary-red-val {
            background: #fff;
            border: 1px solid #e2e8f0;
            padding: 6px 14px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            color: #0f172a;
            box-shadow: 0 1px 2px rgba(0,0,0,0.02);
            /* Жестко переопределяем старые стили для этого места */
            display: inline-flex !important;
            gap: 10px !important;
        }

        .motor-header-reducer.summary-red-val img {
            height: 32px !important;
            max-width: 50px !important;
        }

        .motor-table-scroll {
            max-height: 350px;
            overflow-y: auto;
        }

        .motor-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 13px;
            text-align: left;
            background: #fff;
        }

        .motor-table th {
            background: #ffffff;
            color: #64748b;
            font-weight: bold;
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            padding: 14px 20px;
            border-bottom: 1px solid #e2e8f0;
            position: sticky;
            top: 0;
            z-index: 5;
        }

        .motor-table td {
            padding: 14px 20px !important;
            border-bottom: 1px solid #f1f5f9;
            color: #334155;
            vertical-align: middle;
            transition: background-color 0.2s ease;
        }

        .motor-table tbody tr {
            cursor: pointer;
        }

        .motor-table tbody tr:hover td {
            background: #f8fafc;
        }

        .motor-table tbody tr.selected td {
            background: rgba(198, 40, 40, 0.04);
            font-weight: 500;
        }

        .motor-table tbody tr.selected td:first-child {
            box-shadow: inset 4px 0 0 var(--primary);
        }
        .motor-header-reducer.summary-red-val img {
            display: none !important;
        }

        .motor-header-reducer.summary-red-val {
            text-transform: uppercase !important;
            background: #1e293b !important;
            color: #ffffff !important;
            border: none !important;
            padding: 8px 16px !important;
            letter-spacing: 0.5px;
            font-size: 14px !important;
            border-radius: 6px !important;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
        }

        .motor-selection-wrapper {
            border-color: #cbd5e1;
            box-shadow: 0 4px 15px -3px rgba(0,0,0,0.08);
        }
        
        .motor-table th {
            background: #f8fafc !important;
            color: #334155 !important;
            border-bottom: 2px solid #cbd5e1 !important;
            font-size: 12px !important;
        }

        .motor-table tbody tr.selected td {
            background: #fff1f2 !important;
            color: #0f172a !important;
        }
        .motor-table tbody tr.selected td:first-child {
            box-shadow: inset 4px 0 0 var(--primary) !important; 
        }

        /* Сайдбар - B2B*/
        .wizard-sidebar { 
            width: 320px; 
            background: #ffffff; 
            border: 1px solid #e2e8f0; 
            border-radius: 12px; 
            padding: 24px; 
            position: sticky; 
            top: 20px; 
            display: flex; 
            flex-direction: column; 
            gap: 16px; 
            box-shadow: 0 10px 30px -10px rgba(0,0,0,0.08); 
            transition: 0.3s; 
        }
        
        @media (max-width: 900px) { 
            .wizard-layout { flex-direction: column; } 
            .wizard-sidebar { width: 100%; position: static; } 
        }

        .sb-header { 
            display: flex; 
            align-items: center; 
            gap: 8px; 
            font-size: 15px; 
            font-weight: 800; 
            color: #0f172a; 
            text-transform: uppercase; 
            letter-spacing: 0.5px;
            border-bottom: 2px solid #f1f5f9;
            padding-bottom: 12px;
            margin-bottom: 4px;
        }
        
        .sb-live-dot {
            width: 8px; height: 8px; background: #10b981; border-radius: 50%;
            box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
            70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
            100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
        }
        
        .sb-img-box { 
            width: 100%; 
            height: 150px; 
            background: #f8fafc; 
            border: 1px solid #e2e8f0; 
            border-radius: 8px; 
            display: flex; 
            align-items: center; 
            justify-content: center; 
            padding: 10px;
            box-sizing: border-box;
        }
        .sb-img-box img { 
            max-width: 100%; 
            max-height: 100%; 
            object-fit: contain; 
            mix-blend-mode: multiply; /* Убирает белый фон у картинок, если он есть */
        }
        
        .sb-section {
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding-bottom: 16px;
            border-bottom: 1px solid #f1f5f9;
        }
        
        .sb-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
        
        .sb-label { 
            font-size: 10px; 
            font-weight: 700; 
            color: #64748b; 
            text-transform: uppercase; 
            letter-spacing: 0.5px; 
        }
        
        .sb-val { 
            font-size: 13px; 
            font-weight: 700; 
            color: #0f172a; 
            text-align: right;
        }
        .sb-val.highlight { color: var(--primary); font-size: 15px; }
        
        .sb-b2b-block {
            border: 1px solid #cbd5e1;
            border-left: 4px solid var(--primary);
            background: #ffffff;
            margin-bottom: 12px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.02);
            border-radius: 2px;
        }
        .sb-b2b-header {
            background: #f1f5f9;
            color: #334155;
            font-size: 10px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            padding: 6px 10px;
            border-bottom: 1px solid #cbd5e1;
        }
        .sb-b2b-value {
            padding: 8px 10px;
            font-size: 13px;
            font-weight: bold;
            color: #0f172a;
            line-height: 1.4;
        }
        
        .sb-b2b-table-wrap {
            border: 1px solid #cbd5e1;
            border-left: 4px solid #1e293b;
            background: #ffffff;
            margin-bottom: 15px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.02);
            border-radius: 2px;
        }
        .sb-b2b-table {
            width: 100%;
            border-collapse: collapse;
        }
        .sb-b2b-table tr {
            border-bottom: 1px solid #e2e8f0;
        }
        .sb-b2b-table tr:last-child {
            border-bottom: none;
        }
        .sb-b2b-table td {
            padding: 8px 10px;
            font-size: 12px;
            vertical-align: middle;
        }
        .sb-b2b-table td.sb-lbl {
            color: #475569;
            font-weight: 600;
            width: 50%;
            border-right: 1px solid #e2e8f0;
            background: #f8fafc;
        }
        .sb-b2b-table td.sb-v {
            color: #0f172a;
            font-weight: 700;
            text-align: right;
        }

        .wizard-ui * { box-sizing: border-box !important; }
        #step4 { width: 100% !important; }
        .spec-container, .final-price-panel, .b2b-actions-wrapper {
            width: 100% !important;
            max-width: 100% !important;
        }
        .final-price-panel { display: flex !important; }
        .b2b-tools-grid { display: grid !important; width: 100% !important; }
        .spec-grid { width: 100% !important; display: grid !important; }
        .spec-top-wrapper { width: 100% !important; display: flex !important; }
        .spec-top-left { flex: 1 1 auto !important; min-width: 0 !important; width: 100% !important;}
        .spec-top-right { width: 260px !important; flex-shrink: 0 !important; }
        .spec-item { min-width: 0 !important; overflow: hidden !important; word-wrap: break-word !important; white-space: normal !important; }
        .fields-grid { width: 100% !important; display: grid !important; }
/* --- PRO INDUSTRIAL ACCORDION DESIGN --- */
.sub-step-badge {
    background: #1e293b; color: #fff; width: 24px; height: 24px; display: inline-flex;
    align-items: center; justify-content: center; border-radius: 50%; font-size: 13px; margin-right: 8px;
}

/* State: Collapsed (Механика свернута, когда открыт мотор) */
.panel-collapsed .fields-grid, 
.panel-collapsed .input-group, 
.panel-collapsed .w-toggle-stock { display: none !important; }

.panel-collapsed { 
    cursor: pointer; background: #ffffff !important; border: 1px solid #e2e8f0 !important;
    padding: 15px 25px !important; margin-bottom: 20px; border-radius: 6px;
    transition: all 0.2s ease; position: relative; opacity: 0.7; border-left: 4px solid #94a3b8 !important;
}
.panel-collapsed .options-panel-header { border-bottom: none; padding-bottom: 0; margin-bottom: 0; pointer-events: none;}
.panel-collapsed:hover { opacity: 1; background: #f8fafc !important; border-color: #cbd5e1 !important; }
.panel-collapsed::after { 
    content: 'Изменить ✎'; position: absolute; right: 25px; top: 18px; font-size: 12px; color: #64748b; font-weight: bold;
}

/* State: Locked (Мотор заблокирован, ожидая механику) */
.panel-locked #motor-options-grid,
.panel-locked #motor-selection-block,
.panel-locked .motor-accordion-body,
.panel-locked .inner-step-divider { display: none !important; }
.panel-locked { 
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; 
    margin-bottom: 25px; overflow: hidden; border-left: 4px solid #cbd5e1;
}
.panel-locked .options-panel {
    padding: 0 !important; /* Убираем лишний "жир" у заблокированного блока */
}
.motor-header-interactive { 
    padding: 15px 25px; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    background: transparent; margin: 0; border-bottom: none; transition: 0.2s;
}
.panel-locked .motor-header-interactive:hover { background: #e2e8f0; }
.panel-locked .sub-step-badge { background: #94a3b8; }
.panel-locked .options-panel-title { color: #64748b; }
.panel-status-hint { font-size: 12px; color: #94a3b8; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.panel-status-hint::before { content: '🔒'; font-size: 10px; }

/* State: Active (Секция полностью открыта) */
.panel-active.combined-motor-block {
    background: #fff; border: 1px solid #cbd5e1; border-top: 4px solid #c62828; 
    border-radius: 8px; box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1); margin-bottom: 30px;
}
.panel-active .motor-header-interactive { 
    border-bottom: 1px solid #e2e8f0; padding-top: 20px; padding-bottom: 20px; background: #f8fafc; cursor: default;
}
.panel-active .panel-status-hint { display: none; }

.btn-step3-next { 
    background: #c62828 !important; color: #fff !important; border: none !important; 
    padding: 18px 25px !important; border-radius: 6px !important; cursor: pointer !important; 
    font-weight: 800 !important; margin-top: 5px !important; margin-bottom: 25px !important;
    width: 100% !important; transition: all 0.2s ease !important; text-transform: uppercase !important; 
    letter-spacing: 0.5px !important; font-size: 14px !important; box-shadow: 0 4px 12px rgba(198,40,40,0.2) !important;
}
.btn-step3-next:hover { background: #b71c1c !important; transform: translateY(-2px) !important; box-shadow: 0 6px 15px rgba(198,40,40,0.3) !important; }

/* PRO TABLE STYLES (Siemens/SEW Style) */
.b2b-pro-table { border-collapse: separate; border-spacing: 0; width: 100%; border: none !important;}
.b2b-pro-table th { 
    background: #f1f5f9 !important; color: #475569 !important; padding: 12px 10px !important; 
    font-size: 10px !important; font-weight: 800 !important; border-bottom: 2px solid #cbd5e1 !important; border-top: 1px solid #e2e8f0 !important; border-left: none !important; border-right: none !important;
}
.b2b-pro-table td { 
    padding: 14px 10px !important; border-bottom: 1px solid #e2e8f0 !important; 
    border-left: none !important; border-right: none !important; background: #fff; transition: 0.15s;
}
.b2b-pro-table tbody tr:hover td { background: #f8fafc; }
.b2b-pro-table tbody tr.selected td { background: #eff6ff !important; border-bottom: 1px solid #bfdbfe !important; }
.b2b-pro-table tbody tr.selected td:first-child { box-shadow: inset 4px 0 0 #3b82f6 !important; }

.pro-radio {
    width: 18px; height: 18px; border: 2px solid #cbd5e1; border-radius: 50%; 
    display: inline-block; position: relative; transition: 0.2s; background: #fff;
}
.pro-radio.active { border-color: #3b82f6; background: #3b82f6; }
.pro-radio.active::after {
    content: ''; position: absolute; width: 6px; height: 6px; background: #fff; 
    border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%);
}

.combined-motor-block .options-panel { border: none; box-shadow: none; margin-bottom: 0; padding-bottom: 25px; }

/* Дизайн внутренних шагов 2.1 и 2.2 */
.inner-step-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 30px 0 15px 0;
}
.inner-step-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px dashed #cbd5e1;
}
.inner-step-num {
    background: #1e293b;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
}
.inner-step-text {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Возвращаем таблице вид отдельной карточки с акцентом */
.combined-motor-block .motor-selection-wrapper { 
    border: 1px solid #cbd5e1; 
    box-shadow: 0 4px 15px -3px rgba(0,0,0,0.05); 
    border-top: 3px solid #3b82f6; 
    margin-top: 0; 
    margin-bottom: 0; 
    border-radius: 8px; 
    background: #fff;
    overflow: hidden;
}
#mech-panel { transition: 0.3s ease; }
/* --- COMPACT Motor Options Redesign --- */
.pro-motor-options-compact {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.01);
}
.compact-options-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}
.compact-options-row .input-group {
    margin-bottom: 0 !important;
    width: 100%;
}
.compact-select {
    height: 40px !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
    width: 100% !important;
}
.compact-checkbox-group {
    width: 100%;
}
.compact-checkbox-group .label {
    margin-bottom: 12px !important;
    color: #475569 !important;
}
.compact-checkbox-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.pro-compact-chk {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    transition: 0.2s;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 10px 16px;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.pro-compact-chk:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}
.pro-compact-chk input { display: none; }
.pro-compact-chk .chk-box {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    position: relative;
    background: #fff;
    transition: 0.2s;
    flex-shrink: 0;
}
.pro-compact-chk input:checked + .chk-box {
    background: #c62828;
    border-color: #c62828;
}
.pro-compact-chk input:checked + .chk-box::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.pro-compact-chk input:checked ~ span:last-child {
    color: #c62828;
}
@media (max-width: 768px) {
    .compact-options-row { grid-template-columns: 1fr; gap: 15px;}
}
/* --- СТИЛЬ ДЛЯ ЦЕНЫ ПОД КАРТИНКОЙ --- */
.side-price-block {
    background: #fff;
    border: 2px solid #c62828;
    border-radius: 8px;
    padding: 18px 15px;
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(198, 40, 40, 0.1);
    box-sizing: border-box;
}
.side-price-label {
    font-size: 11px;
    font-weight: 800;
    color: #c62828;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.side-price-value {
    font-size: 24px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.5px;
}