.chart-block.thick .chart-title {
    background: #f2e8ff;
}
.chart-block.thick .chart-title {
    background: #e9edff;
}

.chart-block.thick .bar.purple {
    background-color: #7a0db8;
}
.chart-block.thick .bar.pink {
    background-color: #e29be7;
}
.chart-block.thick .bar.blue {
    background-color: #7caef5;
}

.chart {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 300px;
    border-bottom: 2px solid black;
    border-left: 2px solid black;
    margin-bottom: 75px;
}

.chart-title {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #feedee;
    font-weight: 700;
}

.bar {
    background-color: #d80d0d;
    width: 10%;
    position: relative;
    text-align: center;
}

.label-weight {
    width: 100%;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 5px;
}

.label-age {
    width: 150%;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
    line-height: 1.2;
}
.label-age span {
    display: block;
    font-weight: 700;
}

@media (max-width: 600px) {
    .chart {
    flex-direction: column;
    height: auto;
    align-items: flex-start;
    margin-bottom: 0;
    }

    .bar {
    width: 80%;
    margin-top: 20px; /* Отступ между барами */
    padding: 5px;
    }
    .bar:last-child {
    margin-bottom: 20px;
    }

    .label-weight, .label-age {
    position: static;
    transform: none;
    margin-top: 0;
    width: auto;
    color: white;
    }

    .label-weight {
    order: -1; /* Поместить вес над баром */
    margin-bottom: 0;
    }
}