.services-attached-section {
    background: #f2f5f8;
}

.services-attached-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #d9dee4;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(20, 30, 42, .13);
}

.services-attached-card__panel {
    min-width: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.services-attached-card__panel:nth-child(1),
.services-attached-card__panel:nth-child(3) {
    border-right: 1px solid #d9dee4;
}

.services-attached-card__panel:nth-child(-n+2) {
    border-bottom: 1px solid #d9dee4;
}

.services-attached-card__panel--text {
    display: flex;
    padding: clamp(1.5rem, 3.6vw, 3.5rem);
    align-items: center;
    background: #fff;
}

.services-attached-card__panel--image {
    display: flex;
    padding: clamp(1rem, 2.4vw, 2rem);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #071c36;
}

.services-attached-card__panel--image img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: min(72vh, 760px);
    margin: 0 auto;
    border-radius: 8px;
    object-fit: contain;
}

.services-attached-card__panel--image figcaption {
    padding: 1rem .5rem 0;
}

html.dark-mode .services-attached-section {
    background: #111 !important;
}

html.dark-mode .services-attached-card {
    border-color: #484848;
    background: #202020;
    box-shadow: 0 20px 48px rgba(0, 0, 0, .42);
}

html.dark-mode .services-attached-card__panel:nth-child(1),
html.dark-mode .services-attached-card__panel:nth-child(3),
html.dark-mode .services-attached-card__panel:nth-child(-n+2) {
    border-color: #484848;
}

html.dark-mode .services-attached-card__panel--text {
    background: #202020;
}

@media (max-width: 767.98px) {
    .services-attached-card {
        grid-template-columns: 1fr;
    }

    .services-attached-card__panel:nth-child(1),
    .services-attached-card__panel:nth-child(3) {
        border-right: 0;
    }

    .services-attached-card__panel:not(:last-child) {
        border-bottom: 1px solid #d9dee4;
    }

    .services-attached-card__panel--text {
        padding: 1.6rem 1.25rem;
    }

    .services-attached-card__panel--image {
        padding: 1rem;
    }

    .services-attached-card__panel--image img {
        max-height: 68vh;
    }

    html.dark-mode .services-attached-card__panel:not(:last-child) {
        border-bottom-color: #484848;
    }
}
