/* Service-page photo editorial: six services in three alternating pairs. */
.services-editorial {
    padding-block: 48px 64px;
    text-align: left;
}

.services-editorial__header {
    margin-bottom: 32px;
}

.services-editorial__header .care-we-provide__title {
    margin: 0;
}

.services-editorial__rows {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.services-editorial__row {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 28px;
}

.services-editorial__row:nth-child(even) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
}

.services-editorial__row:nth-child(2) {
    position: relative;
    isolation: isolate;
}

.services-editorial__row:nth-child(2)::before {
    content: "";
    position: absolute;
    inset: -16px -28px;
    z-index: -1;
    border-radius: 20px;
    background: #e6ece2;
    pointer-events: none;
}

.services-editorial__item {
    min-width: 0;
}

.services-editorial__photo {
    margin: 0;
    height: clamp(235px, 19vw, 280px);
    overflow: hidden;
    border-radius: var(--hemu-radius-media, 16px);
    background: #e2e9e2;
}

.services-editorial__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--service-photo-position, center);
}

.services-editorial__copy {
    padding: 18px 2px 24px;
    border-bottom: 1px solid #cbd7cc;
}

.services-editorial__number {
    display: block;
    margin-bottom: 6px;
    color: #657c70;
    font-size: 14px;
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
}

.services-editorial__copy h2 {
    margin: 0 0 12px;
    color: #006d8f;
    font-size: 25px;
    font-weight: 500;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.services-editorial__copy p {
    margin: 0;
    color: #505b5a;
    font-size: 16px;
    line-height: 1.85;
}

.services-editorial__contact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 36px;
    padding: 24px 28px;
    border-radius: var(--hemu-radius-media, 16px);
    background: #e5ece2;
}

.services-editorial__contact strong {
    color: #35534a;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
}

.services-editorial__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.services-editorial__actions .btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 11px 22px;
    font-size: 16px;
    line-height: 1.5;
    text-decoration: none;
}

.services-editorial__actions .services-editorial__fees {
    border: 1px solid #006d8f;
    background: transparent;
    color: #006d8f;
}

.services-editorial__actions .btn-primary {
    border: 1px solid #006d8f;
    background: #006d8f;
    color: #fff5eb;
}

.services-editorial__actions .btn-primary:hover {
    border-color: #00556f;
    background: #00556f;
    color: #fff5eb;
}

.services-editorial__actions .services-editorial__fees:hover {
    background: #fff5eb;
    color: #00556f;
}

.services-editorial__actions .btn:focus-visible {
    outline: 3px solid #006d8f;
    outline-offset: 4px;
}

@media (max-width: 1199px) {
    .services-editorial__row:nth-child(2)::before {
        inset-inline: -12px;
    }
}

@media (max-width: 991px) {
    .services-editorial__row,
    .services-editorial__row:nth-child(even) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .services-editorial__copy h2 {
        font-size: 23px;
    }
}

@media (max-width: 575px) {
    .services-editorial__row:nth-child(2)::before {
        inset: -12px -8px;
        border-radius: 16px;
    }

    .services-editorial {
        padding-block: 32px 44px;
    }

    .services-editorial__header {
        margin-bottom: 24px;
    }

    .services-editorial__rows {
        gap: 24px;
    }

    .services-editorial__row,
    .services-editorial__row:nth-child(even) {
        grid-template-columns: minmax(0, 1fr);
    }

    .services-editorial__photo {
        height: clamp(235px, 65vw, 280px);
    }

    .services-editorial__copy {
        padding-bottom: 20px;
    }

    .services-editorial__copy h2 {
        font-size: 22px;
    }

    .services-editorial__contact {
        margin-top: 28px;
        padding: 22px 20px;
    }

    .services-editorial__actions {
        width: 100%;
        gap: 12px;
    }

    .services-editorial__actions .btn {
        width: 100%;
    }
}
