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

.journey-services .journey-section-title {
    max-width: 100%;
    margin-inline: auto;
    font-size: 32px;
    font-weight: 900;
    line-height: 1.12;
}

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

.journey-services__count {
    margin: 8px 0 18px;
    color: var(--journey-text);
    font-size: clamp(16px, 1.35vw, 20px);
    font-weight: 800;
    line-height: 1.24;
}

.journey-services__tabs {
    width: fit-content;
    min-width: min(100%, 430px);
    max-width: 100%;
    margin: 0 auto;
    padding: 8px 14px;
    display: grid;
    grid-template-columns: repeat(var(--journey-services-count, 3), minmax(92px, 1fr));
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 28px rgba(42, 157, 236, 0.16);
}

.journey-services__tabs span {
    min-height: 28px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--journey-text);
    font-size: clamp(14px, 1.25vw, 18px);
    font-weight: 800;
    line-height: 1.2;
}

.journey-services__tabs span + span {
    border-left: 1px solid rgba(46, 59, 104, 0.58);
}

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

@media (max-width: 767px) {
    .journey-services {
        width: 100%;
        max-width: none;
        margin: 26px auto;
    }

    .journey-services .journey-section-title {
        max-width: 310px;
        margin-inline: auto;
        font-size: 20px;
        white-space: normal;
    }

    .journey-services__count {
        margin-bottom: 16px;
        font-size: clamp(16px, 4vw, 20px);
    }

    .journey-services__tabs {
        width: 100%;
        min-width: 0;
        padding: 10px 6px;
        grid-template-columns: repeat(var(--journey-services-count, 3), minmax(0, 1fr));
        border-radius: 14px;
    }

    .journey-services__tabs span {
        min-height: 32px;
        padding: 0 6px;
        font-size: clamp(11px, 3vw, 14px);
        overflow-wrap: anywhere;
    }
}
