.services {
    background-color: var(--color-background);
    border-top: 1px solid var(--color-border);
}

.services__layout {
    display: grid;
    grid-template-columns:
        minmax(18rem, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: clamp(4rem, 9vw, 8rem);
}

.services__intro {
    max-width: 31rem;
}

.services__title {
    position: relative;
    max-width: 11ch;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    font-size: clamp(2.7rem, 4.5vw, 4.3rem);
    line-height: 1.08;
}

.services__title::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 4.5rem;
    height: 0.2rem;
    background-color: var(--color-accent);
    content: "";
}

.services__description {
    max-width: 28rem;
    margin-bottom: 0;
    font-size: 1.05rem;
    line-height: 1.8;
}

.services__list {
    display: grid;
    gap: var(--space-3);
}

.services__item {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    align-items: stretch;
    gap: var(--space-5);
    padding: var(--space-4) var(--space-5) var(--space-4) var(--space-3);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 0.45rem;
    box-shadow: 0 0.55rem 1.6rem rgb(11 31 51 / 5%);
    transition:
        transform var(--transition-default),
        border-color var(--transition-default),
        box-shadow var(--transition-default);
}

.services__item:hover {
    border-color: var(--color-border-strong);
    box-shadow: 0 0.9rem 2rem rgb(11 31 51 / 8%);
    transform: translateY(-2px);
}

.services__number {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: var(--space-3);
    color: var(--color-accent);
    border-right: 1px solid var(--color-border);
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.04em;
}

.services__item-content {
    align-self: center;
    max-width: 40rem;
}

.services__item h3 {
    margin-bottom: var(--space-1);
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    line-height: 1.3;
}

.services__item p {
    max-width: 38rem;
    margin-bottom: 0;
    font-size: 0.96rem;
    line-height: 1.7;
}

@media (max-width: 850px) {
    .services__layout {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .services__intro {
        max-width: 43rem;
    }

    .services__title {
        max-width: 13ch;
    }

    .services__description {
        max-width: 38rem;
    }
}

@media (max-width: 600px) {
    .services__layout {
        gap: var(--space-5);
    }

    .services__title {
        font-size: clamp(2.3rem, 11vw, 3.3rem);
    }

    .services__item {
        grid-template-columns: 3.25rem minmax(0, 1fr);
        gap: var(--space-3);
        padding: var(--space-4) var(--space-3);
    }

    .services__number {
        justify-content: flex-start;
        padding-right: var(--space-2);
        font-size: 1.1rem;
    }

    .services__item h3 {
        font-size: 1.2rem;
    }

    .services__item p {
        font-size: 0.92rem;
    }

    .services__item:hover {
        box-shadow: 0 0.55rem 1.6rem rgb(11 31 51 / 5%);
        transform: none;
    }
}