#services {
    background: #F4F9FE;
    font-family: 'Montserrat', system-ui, sans-serif;
    color: #0B2545;
}

#services *,
#services *::before,
#services *::after {
    box-sizing: border-box;
}

#services .wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 36px 20px 40px;
}

/* header */
#services .head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px 28px;
}

#services h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3.4vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.1;
}

#services h2 em {
    font-style: normal;
    color: #1B74D8;
}

#services .intro {
    margin: 0;
    max-width: 40ch;
    font-size: .82rem;
    line-height: 1.6;
    color: #5F7387;
}

/* grid */
#services .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 22px;
}

/* card: photo left, content right */
#services .card {
    display: grid;
    grid-template-columns: 38% 1fr;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #E1ECF7;
    box-shadow: 0 1px 2px rgba(11, 37, 69, .04);
    transition: box-shadow .2s ease, transform .2s ease;
}

#services .card:hover {
    box-shadow: 0 12px 28px -14px rgba(11, 37, 69, .28);
    transform: translateY(-2px);
}

#services .media {
    position: relative;
    min-height: 100%;
    background: var(--g, #9cc3ea);
}

#services .media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#services .chip {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 1;
    background: #fff;
    color: #0B2545;
    font-size: .64rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 999px;
    box-shadow: 0 4px 10px -4px rgba(11, 37, 69, .35);
}

#services .body {
    padding: 16px 18px 14px;
    display: flex;
    flex-direction: column;
}

#services h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -.01em;
}

#services .desc {
    margin: 6px 0 0;
    font-size: .76rem;
    line-height: 1.55;
    color: #5F7387;
}

#services ul {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: grid;
    gap: 5px;
}

#services li {
    position: relative;
    padding-left: 20px;
    font-size: .74rem;
    line-height: 1.4;
    color: #0B2545;
    font-weight: 500;
}

#services li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #1B74D8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/9px no-repeat;
}

#services .foot {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

#services .time {
    font-size: .68rem;
    font-weight: 600;
    color: #5F7387;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

#services .time svg {
    width: 13px;
    height: 13px;
    color: #1B74D8;
}

#services .link {
    font-size: .72rem;
    font-weight: 700;
    color: #fff;
    background: #1B74D8;
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 999px;
    white-space: nowrap;
    transition: background .15s ease;
}

#services .link:hover {
    background: #0B2545;
}

#services .link:focus-visible {
    outline: 3px solid #8cc4f5;
    outline-offset: 2px;
}

/* responsive */
@media (max-width:900px) {
    #services .grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width:520px) {
    #services .wrap {
        padding: 26px 16px 30px;
    }

    #services .card {
        grid-template-columns: 1fr;
    }

    #services .media {
        height: 150px;
        min-height: 0;
    }

    #services .body {
        padding: 14px 16px;
    }
}

@media (prefers-reduced-motion:reduce) {

    #services .card,
    #services .link {
        transition: none;
    }

    #services .card:hover {
        transform: none;
    }
}