.main-services-section.home-services {
    padding: clamp(58px, 7vw, 88px) 0;
    background: #252424;
    color: #fff;
}

.home-services__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 30px;
}

.home-services__heading h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 750;
    letter-spacing: -.035em;
}

.home-services__heading p {
    max-width: 650px;
    margin: 12px 0 0;
    color: rgba(255,255,255,.75);
    font-size: 1rem;
    line-height: 1.65;
}

.home-services__all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    padding: 12px 17px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 10px;
    color: #fff;
    font-weight: 650;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease;
}

.home-services__all:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
}

.home-services__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.home-service-card {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 15px;
    background: #302f2f;
    color: #fff;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.home-service-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--primary-color) 65%, transparent);
    box-shadow: 0 16px 34px rgba(0,0,0,.22);
    color: #fff;
}

.home-service-card__image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eee;
}

.home-service-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.home-service-card:hover .home-service-card__image img { transform: scale(1.035); }

.home-service-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 19px 20px;
}

.home-service-card__body h3 {
    margin: 0 0 9px;
    color: #fff;
    font-size: 1.06rem;
    font-weight: 700;
    line-height: 1.4;
}

.home-service-card__body p {
    margin: 0 0 18px;
    color: rgba(255,255,255,.72);
    font-size: .92rem;
    line-height: 1.55;
}

.home-service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--primary-color);
    font-size: .9rem;
    font-weight: 700;
}

@media (max-width: 1199px) {
    .home-services__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .home-services__heading { align-items: flex-start; flex-direction: column; }
    .home-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .home-service-card__body { padding: 15px; }
    .home-service-card__body h3 { font-size: .98rem; }
}

@media (max-width: 520px) {
    .home-services__grid { grid-template-columns: 1fr; }
    .home-service-card__image { aspect-ratio: 16 / 9; }
}
