.section-7 {
    width: 100%;
    position: relative;
    padding: 60px 16px 10px;
    overflow: hidden;
}
.section-footer-head {
    width: 70%;
    text-align: center;
    padding: 85px 10px;
    z-index: 1;
    font-family: "Plus Jakarta Sans";
    font-size: 32px;
    font-style: normal;
    font-weight: 500;
    line-height: 163.271%;
    color: #2f2f2f;
    margin: 0 auto;
}
/* --- KÁRTYÁK RÁCS DESKTOPON --- */

.reasons-cards {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* egy kártya – Figma alapján, kicsit reszponzívra húzva */
.reason-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;

    padding: 40px 20px 24px;
    border-radius: 30px;
    background: #c7e8b8;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);

    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    color: #2f2f2f;
}

/* ikon */
.reason-card svg {
    flex-shrink: 0;
    width: 72px;
    height: auto;
}

/* cím */
.reason-card h3 {
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
    font-size: clamp(1.2rem, 1.7vw, 1.5rem);
}

/* szöveg */
.reason-card p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.6;
}

.tagsagi {
    color: #2f2f2f;
    font-family: "Plus Jakarta Sans";
    font-size: 18px;
    font-style: normal;
    font-weight: 600;

    display: flex;
    padding: 15px;
    justify-content: center;
    align-items: center;
    border-radius: 40px;
    background: #c7e8b8;
    margin: 15px;
}

/* --- TABLET BREAKPOINT: 2 oszlop --- */
@media (max-width: 1024px) {
    .reasons-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

/* --- MOBIL: HORIZONTÁLIS SLIDER / SCROLL-SNAP --- */
@media (max-width: 768px) {
    /* .section-7 {
        padding: 0;
    } */

    .section-footer-head {
        width: 100%;
        font-size: 18px;
        padding: 10px 16px;
    }
    .reasons-cards {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;

        gap: 16px;
        padding: 0 16px 8px;
        max-width: 100vw;
    }

    .reasons-cards::-webkit-scrollbar {
        display: none; /* mobilon ne látszódjon a scrollbar */
    }

    .reason-card {
        scroll-snap-align: center;
        min-width: 80%;
        max-width: 420px;
        padding: 32px 20px 24px;
    }
}

/* --- CTA + csomagkártya (grid) --- */
.knowledge-cta {
    max-width: 1200px;
    margin: 56px auto 0;
    display: grid;
    grid-template-columns: 1fr 560px;
    gap: 32px;
    align-items: center;
}

.knowledge-col1 .knowledge-subtitle8 {
    color: var(--primary);
    font-size: 32px;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 16px;
}
.knowledge-btn-primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 48px;
    padding: 0 24px;
    border-radius: 44px;
    color: #fff;
    background: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.99px;
    font-size: 18px;
}

/* csomag kártya */
.knowledge-package {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.knowledge-btn-alap-csomag {
    width: 100%;
    max-width: 384px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 24px;
    color: var(--white);
    background: var(--secondary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3.33px;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}
.knowledge-col2 {
    width: 100%;
}

.card-top {
    background: var(--primary);
    color: var(--white);
    padding: 40px;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    border-bottom: 1px solid var(--white);
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}
.card-top-title {
    font-size: 67px;
    line-height: 1.075;
    font-weight: 600;
}
.card-top-text {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.card-text {
    background: var(--primary);
    color: var(--white);
    padding: 40px;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.card-text-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--white);
}
.row {
    display: flex;
    align-items: center;
    gap: 15px;
}
.row-graphic {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    display: block;
}
.row-text {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
}
.card-text-line {
    height: 0;
    border-top: 1px solid var(--white);
}
.card-text-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 56px;
    padding: 0 40px;
    border-radius: 100px;
    background: var(--white);
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 20px;
}

/* --- hover util --- */
.hover-bright:hover {
    filter: brightness(1.1);
}
.hover-dark:hover {
    filter: brightness(0.9);
}
/* --- reszponzív --- */
@media (max-width: 1024px) {
    .bold-primary,
    .bold-secondary {
        font-size: 48px;
    }
    .knowledge-cta {
        grid-template-columns: 1fr;
    }
}
/* --- CTA + csomag mobil finomhangolás --- */
@media (max-width: 768px) {
    .section-footer-head {
        padding: 80px 10px;
    }
    .knowledge-cta {
        /* 1 oszlop, legyen belső margó is, hogy ne fusson ki a szélére */
        grid-template-columns: 1fr;
        padding: 0 16px;
        margin-top: 40px;
        gap: 24px;
    }

    .knowledge-col1 {
        text-align: left;
    }

    .knowledge-col1 .knowledge-subtitle8 {
        font-size: 24px;
        text-align: center;
        margin-bottom: 12px;
    }

    .knowledge-col1 p {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 8px;
    }

    .tagsagi {
        margin: 8px 0;
        font-size: 15px;
        padding: 12px 16px;
        border-radius: 24px;
    }

    .knowledge-package {
        width: 100%;
        align-items: stretch;
    }

    .knowledge-btn-alap-csomag {
        max-width: 100%;
        font-size: 16px;
        letter-spacing: 2px;
        text-align: center;
    }

    .knowledge-col2 {
        width: 100%;
    }

    .card-top,
    .card-text {
        padding: 24px 20px;
        border-top-left-radius: 0px;
        border-top-right-radius: 0px;
    }

    .card-top-title {
        font-size: clamp(2rem, 9vw, 2.8rem);
    }

    .card-top-text {
        font-size: 16px;
    }

    .row-text {
        font-size: 16px;
        line-height: 1.5;
        word-break: break-word;
    }

    .card-text-btn {
        width: 100%;
        font-size: 16px;
        height: 48px;
        padding: 0 24px;
    }
}
