.dm-history {
    background: #ffffff;
    box-sizing: border-box;
    color: #202327;
    padding: clamp(32px, calc(9.4648px + 6.0094vw), 96px) 24px;
    width: 100%;
}

.dm-history__inner {
    margin: 0 auto;
    max-width: 1152px;
}

.dm-history__top {
    align-items: flex-end;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-block-end: 48px;
}

.dm-history__header {
    flex: 1 1 auto;
    margin: 0;
    max-width: 760px;
    min-width: 0;
}

.dm-history__description {
    margin: 0;
}

.dm-history__viewport {
    position: relative;
}

.dm-history__timeline {
    display: grid;
    gap: 0;
    grid-auto-columns: 25%;
    grid-auto-flow: column;
    grid-template-columns: none;
    list-style: none;
    margin: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 10px 0 0;
    scroll-behavior: smooth;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
}

.dm-history__timeline::-webkit-scrollbar {
    display: none;
}

.dm-history__timeline::before {
    display: none;
}

.dm-history__milestone {
    border-top: 1px solid #cfd2d5;
    margin: 0;
    min-width: 0;
    padding: 38px clamp(20px, 2.5vw, 36px) 0 0;
    position: relative;
    scroll-snap-align: start;
}

.dm-history__marker {
    background: var(--dm-brand);
    background-clip: content-box;
    border: 4px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--dm-brand);
    height: 18px;
    left: 2px;
    position: absolute;
    top: -9px;
    width: 18px;
}

.dm-history__year {
    color: var(--dm-brand);
    font-size: clamp(24px, 2.4vw, 34px);
    font-weight: 600;
    line-height: 1;
    margin: 0 0 18px;
}

.dm-history__milestone-title {
    color: inherit;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
    margin: 0px 0 8px;
}

.dm-history__milestone-description {
    color: #62666b;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.dm-history__controls {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
    justify-content: flex-end;
    margin: 0;
}

.dm-history__controls[hidden] {
    display: none;
}

.dm-history__control {
    align-items: center;
    background: transparent;
    border: 1px solid #555b62;
    border-radius: 50%;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    font-size: 0;
    height: 40px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: relative;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
    width: 40px;
}

.dm-history__control::before {
    background: currentColor;
    content: '';
    height: 1.5px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
}

.dm-history__control::after {
    border-block-start: 1.5px solid currentColor;
    border-inline-end: 1.5px solid currentColor;
    content: '';
    height: 6px;
    position: absolute;
    top: 50%;
    width: 6px;
}

.dm-history__control--previous::after {
    left: calc(50% - 5px);
    transform: translateY(-50%) rotate(-135deg);
}

.dm-history__control--next::after {
    right: calc(50% - 5px);
    transform: translateY(-50%) rotate(45deg);
}

.dm-history__control:hover,
.dm-history__control:focus-visible {
    background: var(--dm-brand);
    border-color: var(--dm-brand);
    color: #ffffff;
}

.dm-history__control:disabled {
    cursor: default;
    opacity: .3;
}

@media (prefers-reduced-motion: reduce) {
    .dm-history__timeline {
        scroll-behavior: auto;
    }

    .dm-history__control {
        transition: none;
    }
}

@media (max-width: 1023px) {
    .dm-history__timeline {
        grid-auto-columns: calc(100% / 3);
    }
}

@media (max-width: 767px) {
    .dm-history {
        padding-inline: 20px;
    }

    .dm-history__top {
        align-items: flex-start;
        display: block;
        margin-bottom: 30px;
    }

    .dm-history__controls {
        justify-content: flex-start;
        margin-top: 20px;
    }

    .dm-history__timeline {
        grid-auto-columns: 84%;
    }
}
