/* ==========================================================================
   Section: experience-grid (strona „O mnie" — Moje doświadczenie / oferta)
   Round-photo cards, optionally linked, grid 3 → 2 → 1.
   ========================================================================== */

.sec-experience-grid {
    padding: 80px 0;
    background: var(--c-white);
}

.eg__inner {
    max-width: var(--content-max);
    margin-inline: auto;
    padding-inline: var(--pad-x);
}

.eg__head {
    max-width: 720px;
    margin: 0 auto 60px;
    text-align: center;
}

.eg__title {
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: clamp(32px, 3.4vw, 48px);
    line-height: 1.2;
    color: var(--c-black);
}

.eg__intro {
    margin: 16px 0 0;
    font-size: 18px;
    line-height: 1.5;
    color: var(--c-text);
}

.eg__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.eg__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px 28px;
    background: #fbf7f8;
    border-radius: 16px;
    text-align: center;
    color: inherit;
    text-decoration: none;
}

.eg__card--link {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.eg__card--link:hover,
.eg__card--link:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.eg__media {
    flex: none;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
}

.eg__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eg__card-title {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 20px;
    line-height: 1.3;
    color: var(--c-heading);
}

.eg__card-text {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--c-text);
}

.eg__card-text p {
    margin: 0 0 10px;
}

.eg__card-text p:last-child {
    margin-bottom: 0;
}

/* CTA pushed to the bottom so it lines up across cards of differing height */
.eg__more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Roboto', var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    color: var(--c-primary);
}

.eg__more .udi-icon {
    transition: transform 0.2s ease;
}

.eg__card--link:hover .eg__more .udi-icon,
.eg__card--link:focus-visible .eg__more .udi-icon {
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
    .eg__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 639px) {
    .sec-experience-grid {
        padding: 48px 0;
    }

    .eg__head {
        margin-bottom: 32px;
    }

    .eg__grid {
        grid-template-columns: 1fr;
    }
}
