/* ===== Аналитика состояния автомобилей (новый дизайн) ===== */
.rate-analytics-modern {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    margin: 30px 0;
}

.badge-count-custom {
    background-color: #6366f1;
    color: white;
    border-radius: 10px;
    padding: 8px 14px;
    font-weight: 500;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    min-width: 60px;
    line-height: 1.2;
    text-align: center;
}
.badge-count-custom .num { font-size: 20px; align-items: center; }
.badge-count-custom .num-small { font-size: 16px; }
.badge-count-custom .label { font-size: 12px; font-weight: 600; }

@media (max-width: 768px) {
    .badge-count-custom {
        width: 100%;
        flex-direction: row;
        align-items: center;
    }
    .badge-count-custom .num { margin-right: 10px; }
    .badge-count-custom .num-small { font-size: 1em; }
    .badge-count-custom .label { font-size: 1em; }
}

.progress-custom {
    height: 6px;
    background-color: #f0f0f0;
    border-radius: 4px;
}

.section-item {
    border-bottom: 1px solid #f0f0f0;
}
.section-toggle {
    cursor: pointer;
    padding: 12px 0;
    user-select: none;
}
.section-toggle:active {
    background-color: rgba(0,0,0,0.02);
    border-radius: 8px;
}
.chevron-icon {
    transition: transform 0.3s ease;
}
.section-toggle[aria-expanded="true"] .chevron-icon {
    transform: rotate(180deg);
}

.expanded-section {
    padding: 20px 0 0 0;
}

/* Карточки оценок */
.score-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    height: 100%;
}
.score-badge {
    font-size: 24px;
    font-weight: 700;
    display: inline-block;
    margin-right: 10px;
}
.score-count {
    font-size: 12px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Горизонтальный скролл карточек */
.score-cards-scroll-wrapper {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}
.score-cards-scroll-wrapper .card-wrapper {
    flex: 0 0 260px;
    scroll-snap-align: start;
}
@media (min-width: 768px) {
    .score-cards-scroll-wrapper {
        flex-wrap: wrap;
        overflow-x: visible;
        padding-bottom: 0;
    }
    .score-cards-scroll-wrapper .card-wrapper {
        flex: 1 1 0%;
    }
}

/* Таблица (список) */
.list-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}
.list-row:last-child { border-bottom: none; }
.list-col { flex: 1; }
.list-col-2 { flex: 2; }

/* Круговая диаграмма */
.donut-chart-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.donut-chart {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}
.donut-chart::after {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    background: #fff;
    border-radius: 50%;
}
.legend-item {
    font-size: 13px;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    width: 120px;
}
.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

/* WOW-эффекты для ссылок */
.link-wow {
    color: #1f2937;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}
.link-wow:hover {
    color: #2dbecd;
    transform: translateY(-1px);
    text-shadow: 0 2px 4px rgba(45, 190, 205, 0.15);
}
.link-wow::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #2dbecd;
    box-shadow: 0 2px 4px rgba(45, 190, 205, 0.4);
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.link-wow:hover::after {
    width: 100%;
}

.link-wow-badge {
    text-decoration: none;
    font-size: 12px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}
.link-wow-badge:hover {
    color: #ffffff !important;
    background-color: #2dbecd !important;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 8px rgba(45, 190, 205, 0.4);
}



/* ===== Стили для описаний оценок ===== */
.rate-description {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    line-height: 1.3;
    color: #6b7280;
    margin-bottom: 6px;
    width: 100%;
}
.rate-description span:first-child {
    font-weight: 600;
    color: #1f2937;
}
.rate-description span:last-child {
    font-size: 11px;
    color: #9ca3af;
}

.rate-info-icon {
    transition: color 0.2s;
    font-size: 16px;
    color: #6b7280;
}
.rate-info-icon:hover {
    color: #2dbecd !important;
}

/* Фиксированная ширина для прогресс-баров */
.section-toggle .me-3 {
    min-width: 140px !important;
}
.section-toggle .text-end {
    min-width: 130px !important;
}
.section-toggle .flex-grow-1 {
    flex: 1 !important;
}

/* Адаптация для маленьких экранов */
@media (max-width: 768px) {
    .score-card .rate-description {
        font-size: 11px;
    }
    .score-card .rate-description span:last-child {
        font-size: 10px;
    }
    .section-toggle .me-3 {
        min-width: 100px !important;
    }
    .section-toggle .text-end {
        min-width: 90px !important;
        font-size: 12px !important;
    }
}
