.nd-services {
    padding-block: var(--nd-services-pt) var(--nd-services-pb);
    background: transparent;
    color: var(--nd-text);
}

.nd-services__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.nd-services__eyebrow {
    margin: 0 0 10px;
    color: var(--nd-accent);
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.nd-services__header h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.05;
}

.nd-services__link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--nd-accent);
    text-decoration: none;
    text-transform: uppercase;
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .06em;
}

.nd-services__viewport {
    overflow: hidden;
}

.nd-services__track {
    display: grid;
    grid-template-columns: repeat(var(--nd-services-cols-desktop), minmax(0, 1fr));
    gap: 14px;
    transition: transform .4s ease;
    will-change: transform;
}

.nd-service-card {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 16px;
    min-height: 300px;
    padding: clamp(22px, 2vw, 30px);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(17,24,32,.86), rgba(10,14,18,.72));
    color: inherit;
    text-align: center;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 18px 54px rgba(0,0,0,.22);
}

.nd-service-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    width: 64px;
    height: 64px;
    line-height: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 25%, rgba(212,162,62,.16), rgba(255,255,255,.03));
    color: var(--nd-accent);
}

.nd-service-card__icon svg {
    display: block;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    transform: none;
    fill: currentColor;
}

.nd-service-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.nd-service-card strong {
    font-size: 1.12rem;
    line-height: 1.3;
}

.nd-service-card span:not(.nd-service-card__icon) {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    color: var(--nd-muted);
    font-size: .92rem;
    line-height: 1.55;
}

.nd-services--slider .nd-services__track {
    display: flex;
    gap: 14px;
}

.nd-services--slider .nd-service-card {
    flex: 0 0 100%;
}

.nd-services__controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.nd-services__controls button {
    width: 44px;
    height: 44px;
    border: 1px solid var(--nd-accent);
    border-radius: 50%;
    background: transparent;
    color: var(--nd-text);
    cursor: pointer;
}

@media (max-width: 1100px) {
    .nd-services__track {
        grid-template-columns: repeat(var(--nd-services-cols-tablet), minmax(0, 1fr));
    }

    .nd-service-card {
        min-height: 270px;
    }
}

@media (max-width: 640px) {
    .nd-services__header {
        align-items: start;
        flex-direction: column;
        margin-bottom: 22px;
    }

    .nd-services__header h2 {
        font-size: clamp(2rem, 10vw, 2.55rem);
    }

    .nd-services__viewport {
        overflow: hidden;
    }

    .nd-services__track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .nd-services--slider .nd-services__track {
        display: flex;
        gap: 10px;
    }

    .nd-service-card,
    .nd-services--slider .nd-service-card {
        min-width: 0;
        min-height: 205px;
        padding: 16px 10px;
        gap: 12px;
    }

    .nd-service-card__icon {
        width: 46px;
        height: 46px;
    }

    .nd-service-card__icon svg {
        width: 20px;
        height: 20px;
    }

    .nd-service-card strong {
        font-size: .92rem;
        line-height: 1.2;
    }

    .nd-service-card span:not(.nd-service-card__icon) {
        -webkit-line-clamp: 3;
        font-size: .76rem;
        line-height: 1.4;
    }

    .nd-services__controls {
        display: flex;
        margin-top: 16px;
    }
}