.services {
    padding: 80px 0;
    padding-bottom: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

.service-card--large {
    grid-row: span 2;
}

.service-image {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 282px;
}

.service-card--large .service-image {
    min-height: 588px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.service-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.service-description {
    max-width: 326px;
    text-align: center;
}

/* .service-card:nth-child(2) .service-content,
.service-card:nth-child(3) .service-content {
  padding: 16px 12px;
  margin: 16px;
} */

.service-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.33;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #F0E9DF;
    margin-bottom: 16px;
}

.service-card:nth-child(2) .service-title {
    text-align: left;
}

.service-description {
    font-family: 'Poiret One', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.17;
    color: #F0E9DF;
}

@media (max-width: 1024px) {
    .services {
        padding: 60px 0;
        padding-bottom: 0;
    }

    .services-grid {
        gap: 20px;
    }

    .service-content {
        padding: 20px 40px;
    }

    .service-card:nth-child(2) .service-content,
    .service-card:nth-child(3) .service-content {
        padding: 12px 8px;
    }
}

@media (max-width: 1040px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .services {
        padding: 40px 0;
        padding-bottom: 0;
    }

    .service-card--large {
        grid-row: span 1;
    }

    .service-image,
    .service-card--large .service-image {
        min-height: 250px;
    }

    .service-content {
        padding: 16px 24px;
    }

    .service-card:nth-child(2) .service-content,
    .service-card:nth-child(3) .service-content {
        padding: 16px 24px;
    }

    .service-title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .service-description {
        font-size: 16px;
    }
}
