.jm-smallcards {
    width: 100%;
    box-sizing: border-box;
}

.jm-smallcards__grid {
    display: grid;
    grid-template-columns: repeat(var(--jm-smallcards-columns, 4), minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.jm-smallcards__card {
    min-width: 0;
    min-height: var(--jm-smallcards-min-height, 260px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 18px 22px;
    border: 1px solid #d9d4ca;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 18px rgba(62, 52, 36, 0.06);
    box-sizing: border-box;
}

.jm-smallcards__icon-wrap {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.jm-smallcards__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.jm-smallcards__icon--badge {
    width: 48px;
    height: 48px;
    padding: 12px;
    border-radius: 999px;
    background: #6f9f34;
    color: #ffffff;
    box-sizing: border-box;
}

.jm-smallcards__icon--image {
    width: 52px;
    height: 52px;
}

.jm-smallcards__icon-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.jm-smallcards__icon--badge .jm-smallcards__icon-image {
    filter: brightness(0) invert(1);
}

.jm-smallcards__icon-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.jm-smallcards__title {
    margin: 0 0 10px;
    color: #245d78;
    font-size: clamp(1.1rem, 0.65vw + 0.9rem, 1.55rem);
    font-weight: 400;
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.jm-smallcards__text {
    width: 100%;
    color: #17364a;
    font-size: 15px;
    line-height: 1.55;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.jm-smallcards__text p {
    margin: 0;
}

@media (max-width: 1100px) {
    .jm-smallcards__grid {
        grid-template-columns: repeat(var(--jm-smallcards-tablet-columns, 2), minmax(0, 1fr));
    }
}

@media (max-width: 782px) {
    .jm-smallcards__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .jm-smallcards__card {
        min-height: 0;
        padding: 18px 16px 20px;
    }

    .jm-smallcards__icon-wrap {
        margin-bottom: 12px;
    }
}