.history-wrapper ul {
    --col-gap: 2rem;
    --row-gap: 2rem;
    --line-w: 0.25rem;
    display: grid;
    grid-template-columns: var(--line-w) 1fr;
    grid-auto-columns: max-content;
    column-gap: var(--col-gap);
    list-style: none;
    width: min(80rem, 100%);
    margin-inline: auto;
}

    .history-wrapper ul::before {
        content: "";
        grid-column: 1;
        grid-row: 1 / span 20;
        background: rgb(225, 225, 225);
        border-radius: calc(var(--line-w) / 2);
    }

    .history-wrapper ul li:not(:last-child) {
        margin-bottom: var(--row-gap);
    }

    .history-wrapper ul li {
        grid-column: 2;
        --inlineP: 1.5rem;
        margin-inline: var(--inlineP);
        grid-row: span 2;
        display: grid;
        grid-template-rows: min-content min-content min-content;
    }

        .history-wrapper ul li .date {
            --dateH: 3rem;
            height: var(--dateH);
            margin-inline: calc(var(--inlineP) * -1);
            text-align: center;
            background-color: #1a4273;
            color: white;
            font-size: 1.25rem;
            font-weight: 700;
            display: grid;
            place-content: center;
            position: relative;
            border-radius: calc(var(--dateH) / 2) 0 0 calc(var(--dateH) / 2);
            margin-bottom: 20px;
        }

            /* date flap */
            .history-wrapper ul li .date::before {
                content: "";
                width: var(--inlineP);
                aspect-ratio: 1;
                background: #1a4273;
                background-image: linear-gradient(rgba(0, 0, 0, 0.2) 100%, transparent);
                position: absolute;
                top: 100%;
                clip-path: polygon(0 0, 100% 0, 0 100%);
                right: 0;
            }

            /* circle */
            .history-wrapper ul li .date::after {
                content: "";
                position: absolute;
                width: 2rem;
                aspect-ratio: 1;
                background: var(--bgColor);
                border: 0.3rem solid #1a4273;
                border-radius: 50%;
                top: 50%;
                transform: translate(50%, -50%);
                right: calc(100% + var(--col-gap) + var(--line-w) / 2);
            }

        .history-wrapper ul li .descr {
            background: var(--bgColor);
            position: relative;
            padding-inline: 1.5rem;
        }


        .history-wrapper ul li .descr {
            padding-block-end: 1.5rem;
        }

            /*.history-wrapper ul li .descr::before {
                        content: "";
                        position: absolute;
                        width: 90%;
                        height: 0.5rem;
                        background: rgba(0, 0, 0, 0.5);
                        left: 50%;
                        border-radius: 50%;
                        filter: blur(4px);
                        transform: translate(-50%, 50%);
                    }*/


            .history-wrapper ul li .descr::before {
                z-index: -1;
                bottom: 0.25rem;
            }

@media (min-width: 40rem) {
    .history-wrapper ul {
        grid-template-columns: 1fr var(--line-w) 1fr;
    }

        .history-wrapper ul::before {
            grid-column: 2;
        }

        .history-wrapper ul li:nth-child(odd) {
            grid-column: 1;
        }

        .history-wrapper ul li:nth-child(even) {
            grid-column: 3;
        }

        /* start second card */
        .history-wrapper ul li:nth-child(2) {
            grid-row: 2/4;
        }

        .history-wrapper ul li:nth-child(odd) .date::before {
            clip-path: polygon(0 0, 100% 0, 100% 100%);
            left: 0;
        }

        .history-wrapper ul li:nth-child(odd) .date::after {
            transform: translate(-50%, -50%);
            left: calc(100% + var(--col-gap) + var(--line-w) / 2);
        }

        .history-wrapper ul li:nth-child(odd) .date {
            border-radius: 0 calc(var(--dateH) / 2) calc(var(--dateH) / 2) 0;
        }
}
