/* Статистика - дополнительные стили */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.stats-card {
    background: white;
    border-radius: 16px;
    padding: 25px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(52, 152, 219, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.15);
}

.stats-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.stats-label {
    font-size: 14px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.stats-value {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
}

.stats-card:nth-child(1) .stats-value { color: #27ae60; }
.stats-card:nth-child(2) .stats-value { color: #3498db; }
.stats-card:nth-child(3) .stats-value { color: #f39c12; }
.stats-card:nth-child(4) .stats-value { color: #e74c3c; }

.stats-secondary {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(52, 152, 219, 0.1);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #eef2f6;
}

.stats-row:last-child {
    border-bottom: none;
}

.stats-row-label {
    font-size: 15px;
    color: #7f8c8d;
}

.stats-row-value {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.stats-percent {
    font-size: 14px;
    color: #95a5a6;
    margin-left: 10px;
}

.stats-section {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(52, 152, 219, 0.1);
}

.stats-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eef2f6;
}

.stats-distribution {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.stats-distribution-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1 1 auto;
    min-width: 200px;
    border: 1px solid #eef2f6;
}

.stats-distribution-label {
    font-size: 15px;
    color: #2c3e50;
    font-weight: 500;
    min-width: 60px;
}

.stats-distribution-bar {
    flex: 1;
    height: 8px;
    background: #eef2f6;
    border-radius: 4px;
    overflow: hidden;
}

.stats-distribution-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 4px;
    transition: width 0.3s;
}

.stats-distribution-count {
    font-size: 14px;
    color: #7f8c8d;
    min-width: 45px;
    text-align: right;
}

/* Адаптивность */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-secondary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-distribution-item {
        flex-wrap: wrap;
    }
    
    .stats-distribution-label {
        width: 100%;
    }
}