.apex-popular-services {
    padding: 70px 20px;
    background: #f7f7f5;
}

.apex-popular-services__container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
}

.apex-popular-services__heading {
    margin-bottom: 36px;
    text-align: center;
}

.apex-popular-services__heading h2 {
    margin: 0 0 12px;
    font-size: 38px;
    line-height: 1.2;
    font-weight: 600;
    color: #252525;
}

.apex-popular-services__heading p {
    max-width: 650px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.6;
    color: #6d6d6d;
}

.apex-popular-services__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.apex-service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 165px;
    padding: 22px;
    overflow: hidden;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.apex-service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.10);
    text-decoration: none;
}

.apex-service-card:focus {
    text-decoration: none;
    outline: none;
}

.apex-service-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin-bottom: 14px;
    flex-shrink: 0;
    background: #f2f0eb;
    border-radius: 18px;
}

.apex-service-card__icon img {
    display: block;
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.apex-service-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.apex-service-card__title {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;
    color: #252525;
}

.apex-service-card__more {
    margin-top: auto;
    font-size: 15px;
    line-height: 1.4;
    color: #777064;
    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.apex-service-card:hover .apex-service-card__more {
    color: #252525;
    transform: translateX(4px);
}

@media (max-width: 991px) {
    .apex-popular-services {
        padding: 55px 20px;
    }

    .apex-popular-services__heading {
        margin-bottom: 32px;
    }

    .apex-popular-services__heading h2 {
        font-size: 32px;
    }

    .apex-popular-services__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .apex-service-card {
        min-height: 160px;
        padding: 20px;
    }

    .apex-service-card__icon {
        width: 64px;
        height: 64px;
        margin-bottom: 13px;
    }

    .apex-service-card__icon img {
        width: 38px;
        height: 38px;
    }

    .apex-service-card__title {
        font-size: 19px;
    }
}

@media (max-width: 640px) {
    .apex-popular-services {
        padding: 45px 15px;
    }

    .apex-popular-services__heading {
        margin-bottom: 28px;
        text-align: left;
    }

    .apex-popular-services__heading h2 {
        margin-bottom: 10px;
        font-size: 28px;
    }

    .apex-popular-services__heading p {
        font-size: 15px;
        line-height: 1.5;
    }

    .apex-popular-services__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .apex-service-card {
        min-height: 150px;
        padding: 18px;
        border-radius: 19px;
    }

    .apex-service-card__icon {
        width: 58px;
        height: 58px;
        margin-bottom: 12px;
        border-radius: 16px;
    }

    .apex-service-card__icon img {
        width: 34px;
        height: 34px;
    }

    .apex-service-card__title {
        margin-bottom: 8px;
        font-size: 18px;
    }

    .apex-service-card__more {
        font-size: 14px;
    }
}
.apex-popular-services__grid > .apex-service-card {
    grid-column: auto !important;
    grid-row: auto !important;
    justify-self: stretch !important;
    width: auto !important;
    max-width: none !important;
}