.journey-services {
    width: 100%;
    margin: clamp(28px, 5vw, 70px) auto clamp(56px, 7vw, 86px);
    position: relative;
    z-index: 1;
    text-align: center;
}

.journey-services .journey-section-title {
    max-width: 100%;
    margin-inline: auto;
    font-size: clamp(34px, 3.45vw, 50px);
    font-weight: 700;
    line-height: 1.18;
}

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

.journey-services__count {
    margin: 0 0 20px;
    color: var(--journey-text);
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 700;
    line-height: 1.24;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

.journey-services__tabs {
    width: fit-content;
    min-width: min(100%, 520px);
    max-width: 100%;
    margin: 0 auto;
    padding: 14px 30px;
    display: grid;
    grid-template-columns: repeat(var(--journey-services-count, 3), minmax(180px, 1fr));
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow:
        0 16px 42px rgba(244, 34, 122, 0.12),
        0 10px 26px rgba(72, 80, 135, 0.07);
}

.journey-services__tabs span {
    min-height: 34px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--journey-text);
    font-size: clamp(20px, 2.2vw, 28px);
    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: clamp(24px, 7.2vw, 30px);
        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;
    }
}
