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

.reflex-card,
.reflex-card * {
    box-sizing: border-box;
}

.reflex-card {
    position: relative;
    background: #071a3a;
    border: 1px solid rgba(92, 139, 255, 0.35);
    border-radius: 24px;
    padding: 24px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.reflex-card-inner {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    min-width: 0;
    max-width: 100%;
}

.reflex-icon-wrap {
    width: 78px;
    height: 78px;
    --reflex-icon-size: 78px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0864d8;
    border-radius: 10px;
    transition: background 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.reflex-icon-wrap img {
    display: block;
    width: 58%;
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: contain;
    transition: opacity 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}

.reflex-card:hover .reflex-icon-wrap img {
    transform: scale(1.05);
}

.reflex-card-content {
    min-width: 0;
    max-width: 100%;
    width: 100%;
}

.reflex-card-title {
    display: block;
    width: 100%;
    margin: 0 0 10px;
    color: #e7edf8;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.05;
    font-weight: 800;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    transition: color 0.25s ease;
}

.reflex-card-text {
    display: block;
    width: 100%;
    margin: 0;
    color: #a9bce5;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 600;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    transition: color 0.25s ease;
}

@media (max-width: 767px) {
    .reflex-cards-grid {
        grid-template-columns: 1fr;
    }

    .reflex-card {
        overflow: visible;
        margin-top: calc(var(--reflex-icon-size, 78px) / 2);
        padding-top: calc((var(--reflex-icon-size, 78px) / 2) + var(--reflex-mobile-icon-title-gap, 22px)) !important;
    }

    .reflex-card-inner {
        display: block !important;
        min-width: 0;
        max-width: 100%;
    }

    .reflex-card-content {
        display: block;
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }

    .reflex-icon-wrap {
        position: absolute;
        top: 0;
        left: 50%;
        z-index: 2;
        transform: translate(-50%, -50%);
        margin: 0;
    }

    .reflex-card-title {
        width: 100%;
        max-width: 100%;
        margin: 0 0 28px 0;
        min-width: 0;
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
    }

    .reflex-card-text {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
    }
}

/* Single-card widget: karta jako osobny obiekt, możliwy do ustawienia obok innych widgetów w kontenerze Elementor. */
.elementor-widget-reflex_card {
    width: 550px;
    max-width: 100%;
}

.elementor-widget-reflex_card .reflex-card {
    width: 100%;
}

@media (max-width: 767px) {
    .elementor-widget-reflex_card {
        width: 100%;
    }
}


/* Nie dzielimy polskich słów automatycznym myślnikiem na mobile. */
.reflex-card-title,
.reflex-card-text {
    -webkit-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
    word-break: normal !important;
    overflow-wrap: normal !important;
}
