/* --- МОДУЛЬ: УМНЫЙ ПОДБОР --- */
.smart-sheet {
    background: #fff; width: 100%; max-width: 900px; border-radius: 24px 24px 0 0;
    transform: translateY(100%); transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1); 
    position: absolute; bottom: 0; height: 95vh; display: flex; flex-direction: column; overflow: hidden;
}
.modal-backdrop:not(.hidden) .smart-sheet { transform: translateY(0); }

.smart-header-gradient {
    background: linear-gradient(90deg, #14b8a6 0%, #0ea5e9 100%);
    padding: 15px 20px 20px; color: #fff; border-radius: 24px 24px 0 0; position: relative;
}
.smart-drag-line { width: 40px; height: 4px; background: rgba(255,255,255,0.4); border-radius: 2px; margin: 0 auto 15px; }
.s-head-content { display: flex; justify-content: space-between; align-items: center; }
.s-title { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.s-subtitle { font-size: 13px; opacity: 0.9; }
.s-close-btn { background: rgba(255,255,255,0.2); border: none; width: 32px; height: 32px; border-radius: 50%; color: #fff; font-weight: bold; cursor: pointer; transition: 0.2s; }
.s-close-btn:hover { background: rgba(255,255,255,0.3); }

.smart-body { flex: 1; overflow-y: auto; padding: 0; background: #fff; }
.s-accordion { padding: 15px 20px; font-size: 13px; color: #6b7280; border-bottom: 1px solid var(--border); cursor: pointer; }

.s-warning-box { background: #fef9c3; border-bottom: 1px solid #fef08a; padding: 15px 20px; }
.s-warning-box p { font-size: 13px; color: #854d0e; line-height: 1.4; margin-bottom: 10px; }
.s-warn-btns { display: flex; gap: 10px; }
.s-warn-btn { background: transparent; border: 1px solid #ca8a04; color: #854d0e; padding: 8px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; cursor: pointer; }
.s-warn-btn.active { background: #fef08a; }

.s-fuel-section { padding: 20px; border-bottom: 1px solid var(--border); }
.s-fuel-label { font-size: 14px; font-weight: 600; color: var(--text-main); margin-bottom: 15px; }
.s-fuel-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sm-chip { padding: 8px 16px; background: #fff; border: 1px solid var(--border); border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text-main); transition: 0.2s; }
.sm-chip.active { border-color: var(--green); color: var(--green); background: var(--green-light); }

.s-stats { padding: 15px 20px; font-size: 13px; color: #0ea5e9; font-weight: 600; }
.s-sort-label { background: #fdfbf7; padding: 10px 20px; font-size: 12px; color: var(--text-muted); font-weight: 600; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.s-alt-label { padding: 20px 20px 10px; font-size: 12px; font-weight: 700; color: #9ca3af; text-transform: uppercase; }

.best-match-wrapper { padding: 20px; }
.best-match-card { border: 2px solid var(--green); border-radius: 20px; padding: 20px; position: relative; box-shadow: 0 10px 30px rgba(16,185,129,0.1); }
.bm-badge { position: absolute; top: -12px; left: 20px; background: #166534; color: #fff; font-size: 10px; font-weight: 800; padding: 4px 10px; border-radius: 10px; text-transform: uppercase; }
.bm-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; }
.bm-brand-row { display: flex; align-items: center; gap: 12px; }
.bm-logo { width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 14px; }
.bm-brand-name { font-size: 18px; font-weight: 800; color: var(--text-main); margin-bottom: 4px; }
.bm-status { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.bm-dist { font-size: 18px; font-weight: 800; color: var(--text-main); }
.bm-details { font-size: 12px; color: var(--text-muted); line-height: 1.5; margin-bottom: 20px; }
.bm-btn { width: 100%; color: #fff; border: none; padding: 16px; border-radius: 12px; font-size: 16px; font-weight: 700; cursor: pointer; transition: 0.2s; }
.bm-btn:active { transform: scale(0.98); }

.alt-row { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--bg-main); cursor: pointer; transition: 0.2s; }
.alt-row:hover { background: #f9fafb; }
.alt-left { display: flex; align-items: center; gap: 15px; }
.alt-logo { width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: bold; }
.alt-brand { font-size: 14px; font-weight: 700; color: var(--text-main); margin-bottom: 2px; }
.alt-status { font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.alt-right { text-align: right; }
.alt-dist { font-size: 13px; font-weight: 700; color: var(--text-main); }
.alt-marks { font-size: 10px; color: var(--text-muted); margin-top: 2px; }

.smart-footer { padding: 15px 20px; border-top: 1px solid var(--border); background: #fff; text-align: center; }
.s-footer-close { background: none; border: none; font-size: 14px; font-weight: 600; color: var(--text-muted); cursor: pointer; width: 100%; padding: 10px; }
