.services__grid {
    display: grid;
    grid-template-columns:repeat(4, 1fr);
    grid-auto-rows: 155px;
    gap: 18px;
    margin-top: 40px
}

.services__card {
    position: relative;
    display: flex;
    align-items: flex-end;
    background: #fff;
    border-radius: 20px;
    text-decoration: none;
    padding: 25px 65px 25px 25px;
    overflow: hidden;
    transition: box-shadow .2s
}

.services__card:hover {
    box-shadow: 0 0 0 1px var(--orange)
}

.services__card h3 {
    font: 500 20px/1.2 Gotham, Arial, sans-serif;
    position: relative;
    z-index: 1
}

.services__card--wide {
    grid-column: span 2
}

.services__card--featured {
    grid-column: span 2;
    grid-row: span 2;
    color: white;
    background: var(--green);
    isolation: isolate;
    padding: 35px
}

.services__card--featured > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2
}

.services__card--featured::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, #0c5b4bef, transparent)
}

.services__card--featured h3 {
    font-family: Gotham, Arial, sans-serif;
    font-size: 24px
}

.services__arrow {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 36px;
    height: 36px;
    padding: 7px;
    border-radius: 50%;
    background: var(--orange);
    border: 0
}

.services__arrow img {
    width: 15px;
    height: 15px;
    object-fit: contain;
     transform: rotate(-45deg) translate(10%, 30%);
}

.services__card--new {
    border: 1px solid var(--orange)
}

.services__badge {
    position: absolute;
    left: 20px;
    top: 20px;
    background: var(--orange);
    border-radius: 30px;
    padding: 6px 14px;
    color: white;
    font-size: 16px
}

.services__card--new h3 {
    font-size: 19px
}

.services__card--featured .services__arrow {
    bottom: 35px;
    right: 35px
}

@media (max-width: 1235px) {
    .services__card h3 {
        font-size: 14px;
    }

    .services__card--featured h3 {
        font-size: 20px;
    }
}

@media (max-width: 1000px) {
    .services__grid {
        grid-template-columns:1fr 1fr;
        grid-auto-rows: 150px
    }

    .services__card h3 {
        font-size: 19px
    }
}

@media (max-width: 600px) {
    .services__grid {
        gap: 12px;
        grid-auto-rows: minmax(65px, auto);
        margin-top: 26px
    }

    .services__card {
        border-radius: 13px
    }

    .services__card h3 {
        line-height: 1.25
    }

    .services__arrow {
        width: 25px;
        height: 25px;
        right: 16px;
        bottom: 14px;
        padding: 4px
    }

    .services__badge {
        left: 18px;
        top: 15px;
        font-size: 12px;
        padding: 4px 10px
    }
}

/* Правки по комментариям Figma, 28.09.2026. */

.services__arrow img {
    filter: brightness(0) invert(1)
}

.services__card--featured {
    padding-right: 90px
}

.services__card--new {
    padding-top: 65px
}

@media (max-width: 600px) {
    .services h2 {
        font-size: 20px;
    }

    .services__card {
        padding: 13px 11px;
        align-items: flex-start;
        min-width: 0
    }

    .services__card h3 {
        overflow-wrap: break-word;
        font-size: 12px;
        width: calc(100% - 28px);
    }

    .services__arrow img {
        transform: rotate(-45deg) translate(0%, 9%);
    }

    .services__card--featured {
        padding: 25px;
        align-items: flex-end;
        min-height: 170px
    }

    .services__card--new {
        padding-top: 56px
    }
}

.services__card h3 {
    min-width: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 360px) {
    .services__grid {
        grid-template-columns:1fr;
    }

    .services__card--wide, .services__card--featured {
        grid-column: 1
    }
}
