

.header-stat {
    text-align: center;
    margin-bottom: 25px;
    color: #880e4f;
    padding: 0 10px;
}

.header-stat h1 {
    font-size: clamp(18px, 5vw, 28px);
    margin-bottom: 8px;
}

.header-stat p {
    font-size: clamp(12px, 3vw, 16px);
}

.chart-row {
    margin-bottom: 15px;
    padding: 15px;
}

.chart-title {
    margin-bottom: 12px;
    font-weight: bold;
    color: #880e4f;
    font-size: clamp(14px, 4vw, 16px);
    text-align: center;
}

.chart-content {
    position: relative;
    display: flex;
    align-items: flex-end;
    height: 100px;
    width: 100%;
    border-bottom: 2px solid #f8bbd0;
    border-left: 2px solid #f8bbd0;
    padding: 5px 0;
}

.bars-container {
    display: flex;
    align-items: flex-end;
    width: 100%;
    height: 100%;
    margin-left: 0.3%;
}

.bar-wrapper {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: flex-end;
    min-width: 0;
}

.bar {
    width: 100%;
    min-height: 1px;
    background: linear-gradient(to top, #f48fb1, #ec407a);
    border-radius: 1px 1px 0 0;
    transition: opacity 0.2s ease;
}

.time-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 10px;
    color: #ad1457;
    font-weight: 500;
}

.stats {
    margin-top: 12px;
    font-size: 12px;
    color: #ad1457;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 8px;
    background: #fce4ec;
    padding: 8px;
    border-radius: 6px;
}

.stats div {
    white-space: nowrap;
}

.stats span {
    font-weight: bold;
    color: #880e4f;
}

.threshold-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: repeating-linear-gradient(
        to right,
        #ec407a,
        #ec407a 2px,
        transparent 2px,
        transparent 4px
    );
    z-index: 1;
}

.threshold-label {
    position: absolute;
    left: 10%;
    font-size: 9px;
    color: #ec407a;
    /*background: rgba(255, 255, 255, 0.95);*/
    padding: 2px 4px;
    border-radius: 3px;
    z-index: 2;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .chart-content {
        height: 80px;
    }
    
    .time-labels span {
        font-size: 9px;
    }
    
    .stats {
        font-size: 11px;
        padding: 6px;
    }
}

@media (max-width: 480px) {
    .chart-row {
        padding: 10px;
    }
    
    .chart-content {
        height: 70px;
    }
    
    .time-labels span {
        font-size: 8px;
    }
    
    .stats {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .stats div {
        width: 100%;
    }
}

@media (max-width: 345px) {
    .header-stat h1 {
        font-size: 16px;
    }
    
    .header-stat p {
        font-size: 11px;
    }
    
    .chart-title {
        font-size: 13px;
    }
    
    .chart-content {
        height: 60px;
    }
    
    .stats {
        font-size: 10px;
    }
    
    .threshold-label {
        font-size: 8px;
        right: 2px;
    }
}