.journey-services {
    width: 100%;
    margin: clamp(20px, 3.8vw, 48px) auto clamp(38px, 5vw, 62px);
    position: relative;
    z-index: 1;
    text-align: center;
}

.journey-services .journey-section-title {
    max-width: 100%;
    margin-inline: auto;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.18;
}

.journey-services .journey-section-title span {
    display: inline;
}

.journey-services__count {
    margin: 0 0 14px;
    color: var(--journey-text);
    font-size: clamp(15px, 1.45vw, 19px);
    font-weight: 700;
    line-height: 1.24;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

.journey-services__tabs {
    width: fit-content;
    min-width: min(100%, 440px);
    max-width: 100%;
    margin: 0 auto;
    padding: 10px 22px;
    display: grid;
    grid-template-columns: repeat(var(--journey-services-count, 3), minmax(150px, 1fr));
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow:
        0 16px 42px rgba(6, 74, 167, 0.12),
        0 10px 26px rgba(72, 80, 135, 0.07);
}

.journey-services__tabs span {
    min-height: 28px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--journey-text);
    font-size: clamp(16px, 1.55vw, 22px);
    font-weight: 600;
    line-height: 1.2;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

.journey-services__tabs span + span {
    border-left: 1px solid rgba(74, 85, 121, 0.48);
}

@media (min-width: 768px) {
    .journey-services .journey-section-title {
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .journey-services .journey-section-title {
        font-size: 25px;
        line-height: 1.12;
        white-space: normal;
    }

    .journey-services__tabs {
        width: 100%;
        min-width: 0;
        padding-inline: 8px;
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .journey-services__tabs::-webkit-scrollbar {
        display: none;
    }

    .journey-services__tabs span {
        min-width: 128px;
        padding-inline: 14px;
        flex: 0 0 43%;
        font-size: 18px;
        line-height: 1.16;
        white-space: normal;
        overflow-wrap: anywhere;
        scroll-snap-align: start;
    }
}
