/* ================================================================
 * Block: Card grid — card_grid
 * Design: Figma "Growston NEW" §4 Services grid (node 20:1337)
 * Tokens: assets/css/growston-tokens.css (--g-*)
 * ================================================================ */

.g-cards {
    background: var(--g-color-white);
    padding-block: var(--g-space-9); /* 100px */
}

.g-cards__inner {
    display: flex;
    flex-direction: column;
    gap: var(--g-space-7); /* 50px */
    padding-inline: var(--g-pad-x);
}

/* Nagłówek sekcji — wspólny .g-section-head (growston-section-head.css) */

/* ── Grid kart ── */
.g-cards__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--g-space-7); /* 50px */
}

.g-cards--compact .g-cards__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.g-cards__card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    background: #FAFAFA;
    border-radius: var(--g-radius-tile); /* 20px */
    padding: var(--g-space-7) var(--g-space-6) var(--g-space-6); /* 50px 30px 40px? */
    padding-bottom: 40px;
}

.g-cards__card-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--g-space-5); /* 20px */
    padding-bottom: var(--g-space-5); /* 20px */
    width: 100%;
}

.g-cards__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--g-icon-lg);
    height: var(--g-icon-lg);
    border-radius: var(--g-radius-pill);
    background-image: linear-gradient(135deg, #00E5FF 0.21%, #1A1F3A 29.59%, #1A1F3A 64.69%, #4A148C 99.79%);
    color: #FFFFFF;
    flex: none;
    overflow: hidden;
}

.g-cards__icon svg {
    width: 47%;
    height: 47%;
}

.g-cards__icon img {
    width: 47%;
    height: 47%;
    object-fit: contain;
}

.g-cards__title {
    font-family: var(--g-font-body);
    font-weight: var(--g-fw-medium);
    font-size: var(--g-fs-h3); /* 35px */
    line-height: 1.1;
    color: var(--g-color-heading);
    margin: 0;
}

.g-cards__text {
    font-family: var(--g-font-body);
    font-weight: var(--g-fw-regular);
    font-size: var(--g-fs-body);
    line-height: 1.5;
    color: var(--g-color-heading);
    margin: 0;
}

.g-cards__link {
    display: inline-flex;
    align-items: center;
    gap: var(--g-space-3); /* 10px */
    align-self: flex-end;
    font-family: var(--g-font-body);
    font-weight: var(--g-fw-regular);
    font-size: var(--g-fs-body);
    line-height: 1;
    color: var(--g-color-purple);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.g-cards__link:hover {
    color: var(--g-color-ink);
}

.g-cards__link svg {
    width: 24px;
    height: 24px;
}

/* ── Responsywność ── */
@media (max-width: 1280px) {
    .g-cards__grid,
    .g-cards--compact .g-cards__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .g-cards__grid,
    .g-cards--compact .g-cards__grid {
        grid-template-columns: 1fr;
    }
}
