/* =========================================================
   STRONA GŁÓWNA — PORADY LYNXO MARINE
   Kompaktowe kafelki 3 w rzędzie
   ========================================================= */

.home-porady {
    background: #f7f9fc;
    padding-top: 72px;
    padding-bottom: 72px;
}

.home-porady .container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.home-porady-heading {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: end;
    margin-bottom: 30px;
}

.home-porady-heading > div {
    max-width: 760px;
}

.home-porady-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: #1149d6;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.home-porady-heading h2 {
    margin: 0;
    color: #0a1e3f;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1;
}

.home-porady-heading > p {
    max-width: 420px;
    margin: 0 0 2px;
    color: #667085;
    font-size: 15px;
    line-height: 1.55;
}

.home-porady-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.home-porada-card {
    width: 100%;
    max-width: none;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(10, 30, 63, .06);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.home-porada-card:hover {
    transform: translateY(-4px);
    border-color: rgba(17, 73, 214, .28);
    box-shadow: 0 16px 34px rgba(10, 30, 63, .11);
}

.home-porada-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 8.6;
    overflow: hidden;
    background: #0a1e3f;
}

.home-porada-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.home-porada-card:hover .home-porada-card__image img {
    transform: scale(1.035);
}

.home-porada-card__placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-content: center;
    text-align: center;
    color: #ffffff;
    background: radial-gradient(circle at 75% 25%, rgba(17,73,214,.48), transparent 38%), #0a1e3f;
}

.home-porada-card__placeholder span {
    font-family: "Bebas Neue", sans-serif;
    font-size: 34px;
    line-height: 1;
    letter-spacing: .05em;
}

.home-porada-card__placeholder small {
    margin-top: 4px;
    color: #83aaff;
    font-size: 10px;
    letter-spacing: .35em;
}

.home-porada-card__body {
    display: flex;
    min-height: 220px;
    flex-direction: column;
    padding: 18px 20px 20px;
}

.home-porada-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 9px;
    color: #1149d6;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.home-porada-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.08;
}

.home-porada-card h3 a {
    color: #0a1e3f;
    text-decoration: none;
}

.home-porada-card p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 16px;
    color: #667085;
    font-size: 14px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.home-porada-card__link {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    margin-top: auto;
    color: #1149d6;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-decoration: none;
    text-transform: uppercase;
}

.home-porada-card__link span {
    transition: transform .2s ease;
}

.home-porada-card__link:hover span {
    transform: translateX(4px);
}

.home-porady-more {
    display: flex;
    justify-content: flex-end;
    margin-top: 26px;
}

.home-porady-more .btn {
    min-height: 44px;
    padding-left: 20px;
    padding-right: 20px;
    font-size: 13px;
}

.home-porady-grid:has(.home-porada-card:only-child) {
    grid-template-columns: minmax(0, 360px);
}

.home-porady-grid:has(.home-porada-card:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 360px));
}

@media (max-width: 900px) {
    .home-porady {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .home-porady-heading {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .home-porady-heading > p {
        max-width: 620px;
    }

    .home-porady-grid,
    .home-porady-grid:has(.home-porada-card:only-child),
    .home-porady-grid:has(.home-porada-card:nth-child(2):last-child) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .home-porady {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .home-porady .container {
        width: min(100% - 28px, 1180px);
    }

    .home-porady-grid,
    .home-porady-grid:has(.home-porada-card:only-child),
    .home-porady-grid:has(.home-porada-card:nth-child(2):last-child) {
        grid-template-columns: 1fr;
    }

    .home-porada-card__body {
        min-height: 0;
        padding: 18px;
    }

    .home-porady-more {
        justify-content: stretch;
    }

    .home-porady-more .btn {
        width: 100%;
        justify-content: center;
    }
}
