.tsl-route {
    padding-block: 26px 22px;
    overflow: hidden;
}

.tsl-route__heading {
    margin-bottom: 54px;
}

.tsl-route__steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    min-height: 420px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tsl-route__steps::before {
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--tsl-accent) 0 92%, rgba(104, 179, 209, .15));
    content: "";
}

.tsl-route__step {
    position: relative;
    min-width: 0;
}

.tsl-route__dot {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 0;
    width: 18px;
    height: 18px;
    border: 5px solid #fff;
    border-radius: 50%;
    background: var(--tsl-accent);
    box-shadow: 0 0 0 2px var(--tsl-accent);
    transform: translateY(-50%);
}

.tsl-route__step::before {
    position: absolute;
    left: 9px;
    width: 1px;
    height: 58px;
    background: #cdd9de;
    content: "";
}

.tsl-route__step--top::before {
    top: calc(50% - 58px);
}

.tsl-route__step--bottom::before {
    top: 50%;
}

.tsl-route__content {
    position: absolute;
    left: 0;
    width: calc(100% - 34px);
    max-width: 300px;
}

.tsl-route__step--top .tsl-route__content {
    bottom: calc(50% + 76px);
}

.tsl-route__step--bottom .tsl-route__content {
    top: calc(50% + 76px);
}

.tsl-route__number {
    display: block;
    margin-bottom: 10px;
    color: var(--tsl-accent);
    font-size: 13px;
    font-weight: 800;
}

.tsl-route__content h3 {
    margin: 0;
    font-size: 22px;
    line-height: 1.22;
}

.tsl-route__content p {
    margin: 10px 0 0;
    color: var(--tsl-text);
    font-size: 12px;
    line-height: 1.65;
}

.tsl-route__finish {
    display: flex;
    z-index: 3;
    align-items: center;
    align-self: center;
    gap: 12px;
    width: max-content;
    padding: 13px 18px;
    border-radius: 12px;
    background: var(--tsl-dark);
    color: #fff;
}

.tsl-route__finish-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--tsl-accent);
}

.tsl-route__finish div {
    display: flex;
    flex-direction: column;
}

.tsl-route__finish div span {
    color: rgba(255, 255, 255, .55);
    font-size: 10px;
    text-transform: uppercase;
}

.tsl-route__finish strong {
    margin-top: 2px;
    font-size: 14px;
}

@media (min-width: 1051px) {
    .tsl-route__steps {
        width: calc(100% - 3px);
        margin-left: 3px;
    }
}

.tsl-route__calculator-bridge {
    display: none;
}

@media (max-width: 1050px) {
.tsl-route__steps {
        grid-template-columns: 1fr;
        min-height: 0;
        padding-left: 34px;
    }

.tsl-route__steps::before {
        top: 0;
        bottom: 0;
        left: 8px;
        width: 2px;
        height: auto;
    }

.tsl-route__step {
        padding-bottom: 32px;
    }

.tsl-route__step::before {
        display: none;
    }

.tsl-route__dot {
        top: 5px;
        left: -34px;
        transform: none;
    }

.tsl-route__content,
    .tsl-route__step--top .tsl-route__content,
    .tsl-route__step--bottom .tsl-route__content {
        position: static;
        width: 100%;
    }

.tsl-route__finish {
        justify-self: start;
    }
}

@media (min-width: 768px) and (max-width: 1050px) {
    .tsl-route__steps::before {
        left: 14px;
    }

    .tsl-route__dot {
        left: -28px;
    }
}

@media (max-width: 767px) {
.tsl-collateral-types,
    .tsl-route,
    .tsl-calculation-example,
    .tsl-home-info-pair,
    .tsl-company-about,
    .tsl-faq {
        padding-top: 24px;
        padding-bottom: 20px;
    }

.tsl-route__heading {
        margin-bottom: 34px;
    }

    .tsl-route__steps {
        grid-template-columns: 1fr;
        padding-left: 0;
    }

    .tsl-route__steps::before {
        top: 5px;
        bottom: 82px;
        left: 50%;
    }

    .tsl-route__step {
        width: 50%;
        min-height: 155px;
        padding-bottom: 28px;
    }

    .tsl-route__step:nth-child(odd) {
        padding-right: 28px;
        text-align: right;
    }

    .tsl-route__step:nth-child(even) {
        margin-left: 50%;
        padding-left: 28px;
    }

    .tsl-route__step:nth-child(odd) .tsl-route__dot {
        right: -9px;
        left: auto;
    }

    .tsl-route__step:nth-child(even) .tsl-route__dot {
        left: -9px;
    }

    .tsl-route__content {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .tsl-route__finish {
        width: 100%;
        min-height: 68px;
        justify-content: center;
        justify-self: stretch;
        margin: 4px 0 0;
        padding: 12px 18px;
        border: 1px solid rgba(104, 179, 209, .45);
        background: var(--tsl-accent-soft);
        color: var(--tsl-ink);
    }

    .tsl-route__finish div span {
        color: var(--tsl-text);
    }

    .tsl-route__finish-icon {
        background: var(--tsl-accent);
        color: #fff;
    }

    .tsl-route__calculator-bridge {
        display: block;
        margin-top: 16px;
        padding: 14px 18px 0;
        border-top: 1px solid var(--tsl-line);
        text-align: center;
    }

    .tsl-route__calculator-bridge p {
        max-width: 410px;
        margin: 0 auto;
        color: var(--tsl-text);
        font-size: 13px;
        line-height: 1.65;
    }
}
