.ruh-history h3, .ruh-history h4, .ruh-history h5 {
    padding: 0;
    margin: 0;
    font-family: 'eUkraineHead', sans-serif;;
}

.ruh-history {
    margin-top: 0px;
    margin-bottom: 60px !important;
}

.history-item {
    display: flex;
    flex-direction: column;
    position: relative;
}

.history-item-dot {
    z-index: 1;
}

.history-item:first-child:after {
    content: '';
    height: 80px;
    width: 1px;
    background: #fff;
    position: absolute;
    left: 15px;
    z-index: 0;
}


.history-item:before {
    content: '';
    height: 100%;
    width: 1px;
    background: url(/dashed-line.svg);
    position: absolute;
    left: 15px;
    z-index: 0;
}

.history-item-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-item-head-content {
    width: calc(100% / 8 * 7);
    display: flex;
    align-items: center;
    border-top: 1px solid #828282;
    border-bottom: 1px solid #828282;
    padding: 60px 0;
    justify-content: space-between;
}

.history-item-head-content {
    width: calc(100% / 8 * 7);
    display: flex;
    align-items: center;
    border-top: 1px solid #828282;
    border-bottom: 1px solid #828282;
    padding: 60px 0;
    justify-content: space-between;
}

.history-item:not(:first-child) .history-item-head-content {
    border-top: none !important;
}

.history-year {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.history-year {
    width: 50%;
}

.year-summ {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 50%;
}

.year-progress {
    display: flex;
    gap: 4px;
    align-items: center;
}

.year-title {
    font-size: 56px;
    line-height: 1.2;
}

.year-summ-number {
    font-size: 40px;
    line-height: 1.2;
    color: #C53940;
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.year-summ-number span {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.7;
}

.year-progress span {
    width: 40px;
    height: 6px;
    border-radius: 4px;
    background: #E0E0E0;
}

.history-icons {
    display: flex;
    width: 50%;
    align-items: center;
    justify-content: flex-end;
}

.history-napr-icons {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.history-icon-arrow {
    padding-right: 35px;
    width: 25%;
    display: flex;
    justify-content: flex-end;
}

.history-icon-arrow img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.history-period {
    padding: 40px 0;
    border-bottom: 1px solid #828282;
    float: right;
    width: calc(100% / 8 * 7);
}

.history-period-head {
    display: flex;
    justify-content: space-between;
}

.period-numbers {
    display: flex;
    justify-content: space-between;
    width: 50%;
    align-items: center;
}

/* .period-numbers .year-summ {
    padding-right: 40px;
} */

.range-summ-number {
    font-size: 24px;
    font-weight: 600;
    color: #C53940;
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.range-summ-number span {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.75;
}

.days-range {
    font-size: 24px;
    line-height: 1.2;
    font-weight: 600;
}

.period-icons {
    width: 50%;
    display: flex;
    justify-content: flex-end;
}

.period-icons-area {
    display: flex;
    gap: 20px;
}

.history-right-space {
    padding-right: 35px;
    width: 25%;
    display: flex;
    justify-content: flex-end;
}

.period-desc {
    padding: 20px 0;
    width: 60%;
    font-size: 16px;
    color: #4F4F4F;
    line-height: 1.3;
}

.history-period-cards {
    display: flex;
    gap: 20px;
    flex-direction: column;
}

.history-period-cards-area {
    display: flex;
    gap: 20px;
    width: calc(100% / 7 * 6 + 10px);
    flex-wrap: wrap;
}

.period-card {
    padding: 20px;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 4px 15px 0px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: calc(100% / 4 - 60px)
}

.period-card-dots {
    display: flex;
    gap: 4px;
}

.period-card-dots img {
    width: 20px;
    height: 20px;
}

.period-card-title {
    padding-top: 4px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}


.period-card-info {
    padding-top: 44px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.period-card-info h5 {
    font-weight: 600;
    color: #C53940;
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.period-card-info h5 span {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.75;
}

.history-item-info {
    overflow-y: hidden;
    transition: height 0.2s ease-in-out;
    height: 0;
}

@media (max-width: 1600px) {
    .year-summ {
        width: 60%;
    }

    .year-summ-number {
        font-size: 36px;
    }
}

@media (max-width: 1500px) {
    .year-summ {
        width: 65%;
    }

    .history-year, .period-numbers {
        width: 60%;
    }

    .history-icons, .period-icons {
        width: 40%;
    }

    .history-icon-arrow, .history-right-space {
        padding-right: 15px;
        width: 15%;
    }

    .history-napr-icons, .period-icons-area {
        gap: 10px;
    }

    .year-summ-number span {
        font-size: 16px;
    }

    .history-period-cards-area {
        width: 95%;
    }

}


@media (max-width: 1024px) {
    .history-item-dot, .history-item:before, .history-item:first-child:after, .history-napr-icons, .period-icons, .period-card-info img {
        display: none;
    }

    .history-item-head-content {
        width: 100%;
    }

    .history-year {
        width: auto;
        gap: 30px;
    }

    .year-title {
        line-height: 0;
    }

    .year-summ {
        flex-direction: column-reverse;
        align-items: flex-start;
        justify-content: center;
        gap: 8px;
        width: auto;
    }

    .year-progress span {
        width: 20px;
    }

    .year-summ-number  {
        font-size: 20px;
        font-weight: 600;
        gap: 4px;
    }

    .year-summ-number span {
        font-size: 14px;
        line-height: 1.3;
        text-transform: lowercase;
    }

    .history-icons, .history-icon-arrow {
        width: auto;
    }

    .history-icon-arrow {
        padding-right: 12px;
    }

    .history-period {
        width: 100%;
    }

    .period-numbers {
        flex-direction: column;
        width: 100%;
        gap: 8px;
        align-items: flex-start;
    }

    .history-period .year-summ {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 20px;
    }

    .history-period .year-progress span {
        width: 40px;
    }

    .range-summ-number {
        font-size: 20px;
        gap: 4px;
    }

    .range-summ-number span {
        font-size: 14px;
        font-weight: 600;
        text-transform: lowercase;
        line-height: 1.55;
    }

    .period-desc {
        font-size: 14px;
        width: 100%;
    }

    .history-period-cards-area {
        width: 100%;
        gap: 10px;
        
    }

    .period-card {
        width: calc(100% / 2 - 5px);
        box-sizing: border-box;
        padding: 16px;
    }
}



