/* =======================================================
   MAGER – SZOLGÁLTATÁSAINK OLDAL
   A fejléc és a telefonos CTA stílusa megtartva.
======================================================= */

@font-face {
    font-family: "Magerfont";
    src: url("../fonts/Figtree/Figtree-VariableFont_wght.ttf") format("truetype");
}

:root {
    --zold: rgb(0, 128, 0);
    --zold-sotet: rgb(0, 107, 0);
    --zold-hover: rgb(0, 165, 20);
    --szoveg: rgb(18, 18, 18);
    --szoveg-szurke: rgb(78, 78, 78);
    --vilagos-zold: rgb(243, 252, 241);
    --font: "Magerfont", sans-serif;
    --fejlec-magassag: 8vh;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body,
.torzs {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: white;
    color: var(--szoveg);
    font-family: var(--font);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: url("../kepek/rolunk-hatter.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.35;
}

a {
    color: inherit;
    text-decoration: none;
}

.szolg-main {
    padding-top: var(--fejlec-magassag);
}

/* =======================================================
   FEJLÉC – MEGTARTVA
======================================================= */

.fejlec {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    width: 100%;
    height: var(--fejlec-magassag);
    padding: 0 3% 0 8%;
    background-color: white;
    box-shadow: 0 -1rem 2rem rgba(0, 0, 0, 0.521);
}

.balfentlogo {
    height: 100%;
    width: auto;
    margin-right: 0.65rem;
    flex-shrink: 0;
}

.marka-blokk {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-right: auto;
    line-height: 1;
    flex-shrink: 0;
}

.mager-felirat {
    display: block;
    margin: 0;
    color: black;
    font-weight: 750;
    font-size: 2.5rem;
    line-height: 0.9;
    white-space: nowrap;
}

.mager-alcim {
    display: block;
    margin-top: 0;
    color: rgb(0, 107, 0);
    font-size: 0.82rem;
    font-weight: 650;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
}

.gombokfejlec {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-left: 2rem;
    white-space: nowrap;
}

.gombokfejlec a {
    font-size: 1.2rem;
    font-weight: 550;
}

.gombokfejlec a:hover {
    color: rgb(57, 146, 61);
    text-decoration-line: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
    transition-duration: 0.15s;
}

/* =======================================================
   HERO
======================================================= */

.hero {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 17rem;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-image: url("/kepek/herokep.webp");
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    box-shadow: 0 0.9rem 2.2rem rgba(0, 0, 0, 0.2);
}

.gradient {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0.99) 25%,
        rgba(255, 255, 255, 0.94) 38%,
        rgba(255, 255, 255, 0.75) 50%,
        rgba(255, 255, 255, 0.28) 66%,
        rgba(255, 255, 255, 0) 80%
    );
}

.heroszoveg {
    position: relative;
    z-index: 1;
    width: min(46rem, 50%);
    padding: 1.6rem 0 1.6rem 7.5%;
}

.motto {
    width: 100%;
    margin: 0 0 1.1rem 0;
    color: black;
    font-family: var(--font);
    font-size: clamp(4rem, 4.4vw, 5.2rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.zoldsor {
    color: var(--zold);
    font: inherit;
    font-size: 0.76em;
}

.ajanlatgomb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 4rem;
    color: white;
    background-color: var(--zold);
    border-radius: 0.3rem;
    font-family: var(--font);
    font-size: 1.2rem;
    font-weight: 750;
}

.ajanlatgomb:hover {
    color: white;
    background-color: var(--zold-hover);
    transform: translateY(-2px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 125, 20, 0.25);
}

/* =======================================================
   SZOLGÁLTATÁSKÁRTYÁK ÉS ELŐNYÖK
======================================================= */

.szolg-tartalom {
    width: min(92%, 92rem);
    margin: 3rem auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 23rem);
    align-items: start;
    gap: 2.8rem;
}

.szolg-bal {
    min-width: 0;
}

.szolg-cim-sor {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.szolg-cim-sor h2 {
    margin: 0;
    color: rgb(15, 15, 15);
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
}

.szolg-cim-vonal {
    position: relative;
    width: clamp(3rem, 8vw, 6rem);
    height: 1px;
    background-color: rgba(0, 128, 0, 0.55);
}

.szolg-cim-vonal::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 0.55rem;
    height: 0.55rem;
    border: 1px solid rgba(0, 128, 0, 0.65);
    border-radius: 50%;
    background-color: white;
    transform: translate(50%, -50%);
}

.szolg-cim-vonal:last-child::after {
    right: auto;
    left: 0;
    transform: translate(-50%, -50%);
}

.szolg-szekcio-felirat {
    margin: 0 0 1.5rem;
    color: var(--zold-sotet);
    font-size: 1rem;
    font-weight: 750;
}

.szolg-kartyaracs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.szolg-kartya {
    min-height: 13rem;
    padding: 1.5rem 1.25rem;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 107, 0, 0.13);
    border-radius: 1rem;
    box-shadow: 0 0.55rem 1.5rem rgba(0, 0, 0, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.szolg-kartya:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 128, 0, 0.28);
    box-shadow: 0 0.8rem 1.8rem rgba(0, 0, 0, 0.1);
}

.szolg-kartya-ikon {
    display: block;
    width: 3.1rem;
    height: 3.1rem;
    margin-bottom: 1rem;
    object-fit: contain;
}

.szolg-kartya h3 {
    margin: 0 0 0.6rem;
    color: rgb(16, 16, 16);
    font-size: 1.25rem;
    font-weight: 800;
}

.szolg-kartya p {
    margin: 0;
    color: var(--szoveg-szurke);
    font-size: 0.98rem;
    font-weight: 400;
    line-height: 1.55;
}

.szolg-link-sor {
    display: inline-flex;
    margin-top: 1.4rem;
    color: var(--zold-sotet);
    font-size: 1rem;
    font-weight: 750;
}

.szolg-link-sor:hover {
    color: var(--zold-hover);
    text-decoration: underline;
    text-underline-offset: 0.25rem;
}

.szolg-jobb {
    position: sticky;
    top: calc(var(--fejlec-magassag) + 2rem);
}

.szolg-elonyok {
    padding: 1.6rem 1.5rem;
    background: linear-gradient(180deg, rgb(249, 255, 248), rgb(238, 250, 237));
    border: 1px solid rgba(0, 128, 0, 0.17);
    border-radius: 1rem;
    box-shadow: 0 0.7rem 1.8rem rgba(0, 0, 0, 0.07);
}

.szolg-elonyok h2 {
    margin: 0 0 1rem;
    color: var(--zold-sotet);
    font-size: 1.65rem;
    font-weight: 800;
}

.szolg-elony-lista {
    margin: 0;
    padding: 0;
    list-style: none;
}

.szolg-elony-lista li {
    position: relative;
    padding: 0 0 1rem 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 107, 0, 0.12);
}

.szolg-elony-lista li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.szolg-elony-lista li::before {
    content: "✓";
    position: absolute;
    top: 0.05rem;
    left: 0;
    width: 1.25rem;
    height: 1.25rem;
    display: grid;
    place-items: center;
    color: white;
    background-color: var(--zold);
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 900;
}

.szolg-elony-lista strong,
.szolg-elony-lista span {
    display: block;
}

.szolg-elony-lista strong {
    margin-bottom: 0.3rem;
    color: rgb(20, 20, 20);
    font-size: 1rem;
    font-weight: 800;
}

.szolg-elony-lista span {
    color: var(--szoveg-szurke);
    font-size: 0.92rem;
    line-height: 1.45;
}

/* =======================================================
   TELEFONOS CTA – MEGTARTVA
======================================================= */

.telefonos-cta {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem;
    width: min(100%, 82rem);
    margin: 3.2rem auto 0;
    padding: 1.3rem 2rem;
    background: linear-gradient(90deg, rgb(208, 255, 200), rgb(232, 255, 228), rgb(207, 255, 198));
    border-radius: 1.5rem;
    box-shadow: 0 0.5rem 1.2rem rgba(29, 29, 29, 0.459);
}

.telefonos-cta-ikon {
    width: 5rem;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgb(79, 205, 59), rgb(0, 125, 20));
    border-radius: 50%;
    box-shadow: 0 0.5rem 1.2rem rgba(0, 125, 20, 0.2);
    flex-shrink: 0;
}

.telefonos-cta-ikon svg {
    width: 2.7rem;
    height: 2.7rem;
    fill: white;
}

.telefonos-cta-szoveg {
    text-align: left;
}

.telefonos-cta-szoveg h3 {
    margin: 0 0 0.45rem;
    color: rgb(15, 15, 15);
    font-size: clamp(1.25rem, 1.7vw, 1.65rem);
    font-weight: 800;
    line-height: 1.2;
}

.telefonos-cta-szoveg p {
    max-width: 36rem;
    margin: 0;
    color: rgb(45, 45, 45);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.45;
}

.telefonos-cta-akcio {
    min-width: 16rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
}

.telefonos-cta-szam {
    color: rgb(0, 125, 20);
    font-size: clamp(1.45rem, 2vw, 1.9rem);
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.telefonos-cta-szam:hover {
    color: rgb(0, 170, 0);
}

.telefonos-cta-gomb {
    min-width: 14rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    color: white;
    background-color: rgb(0, 125, 20);
    border-radius: 0.45rem;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 0.35rem 0.9rem rgba(0, 125, 20, 0.18);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.telefonos-cta-gomb:hover {
    color: white;
    background-color: rgb(0, 165, 20);
    transform: translateY(-2px);
}

.telefonos-cta.hatterszin {
    background: linear-gradient(90deg, rgb(226, 248, 215) 0%, rgb(235, 254, 204) 50%, rgba(215, 239, 174, 0.989) 100%);
    box-shadow: 0.3rem 0.4rem 1rem 0.3rem rgba(0, 0, 0, 0.29);
}

/* =======================================================
   RESZPONZÍV NÉZETEK
======================================================= */

@media (min-width: 1051px) and (max-width: 1475px) {
    .fejlec {
        height: 4.6rem;
        min-height: 4.6rem;
        padding-left: 4%;
        padding-right: 2%;
    }

    .balfentlogo {
        height: 3.4rem;
    }

    .mager-felirat {
        font-size: 2.05rem;
    }

    .mager-alcim {
        font-size: 0.68rem;
    }

    .gombokfejlec {
        gap: clamp(0.55rem, 1vw, 1.2rem);
        margin-left: 1.2rem;
    }

    .gombokfejlec a {
        font-size: clamp(0.78rem, 0.95vw, 0.98rem);
        font-weight: 650;
    }
}

@media (max-width: 1100px) {
    .szolg-tartalom {
        grid-template-columns: 1fr;
    }

    .szolg-jobb {
        position: static;
    }

    .szolg-elonyok {
        width: min(100%, 48rem);
        margin: 0 auto;
    }
}

@media (max-width: 900px) {
    .szolg-kartyaracs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero {
        min-height: 24rem;
        background-position: 64% center;
    }

    .heroszoveg {
        width: 58%;
        padding-left: 5%;
    }

    .motto {
        font-size: clamp(2.7rem, 5vw, 3.7rem);
    }
}

@media (max-width: 850px) {
    .telefonos-cta {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 1.2rem;
        padding: 1.4rem;
    }

    .telefonos-cta-akcio {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 700px) {
    :root {
        --fejlec-magassag: 0px;
    }

    .szolg-main {
        padding-top: 0;
    }

    .fejlec {
        position: sticky;
        top: 0;
        height: auto;
        min-height: auto;
        flex-wrap: wrap;
        padding: 0.75rem 0 0.55rem;
        box-shadow: 0 0.35rem 1.1rem rgba(0, 0, 0, 0.18);
    }

    .balfentlogo {
        height: 3rem;
        margin-left: 1rem;
        margin-right: 0.5rem;
    }

    .marka-blokk {
        flex: 1 1 auto;
        min-width: 0;
        margin-right: 1rem;
    }

    .mager-felirat {
        font-size: 1.9rem;
    }

    .mager-alcim {
        margin-top: 0.18rem;
        font-size: 0.58rem;
        letter-spacing: 0.08em;
    }

    .gombokfejlec {
        width: 100%;
        justify-content: center;
        gap: 0.36rem;
        margin: 0.55rem 0 0;
        padding: 0.1rem 0.55rem 0.25rem;
    }

    .gombokfejlec a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.38rem 0.52rem;
        background-color: rgb(245, 245, 245);
        border-radius: 999px;
        font-size: 3.8vw;
        font-weight: 650;
        line-height: 1;
    }

    .gombokfejlec a:hover {
        background-color: rgb(235, 247, 235);
        text-decoration: none;
    }

    .hero {
        min-height: 24rem;
        align-items: flex-end;
        padding: 1rem;
        background-position: center;
        box-shadow: 0 0.6rem 1.4rem rgba(0, 0, 0, 0.16);
    }

    .gradient {
        background: linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.28) 28%,
            rgba(255, 255, 255, 0.88) 66%,
            rgba(255, 255, 255, 0.98) 100%
        );
    }

    .heroszoveg {
        width: 100%;
        padding: 1.4rem 1.1rem 1rem;
        text-align: center;
    }

    .motto {
        margin-bottom: 1.25rem;
        font-size: clamp(2.05rem, 9.5vw, 2.8rem);
        line-height: 0.98;
    }

    .zoldsor {
        margin-top: 0.35rem;
    }

    .ajanlatgomb {
        width: 100%;
        min-width: 0;
        min-height: 3.7rem;
        font-size: 1rem;
        border-radius: 0.7rem;
    }

    .szolg-tartalom {
        width: calc(100% - 2rem);
        margin-top: 2.2rem;
        gap: 2rem;
    }

    .szolg-cim-vonal {
        display: none;
    }

    .szolg-szekcio-felirat {
        text-align: center;
    }

    .szolg-kartyaracs {
        grid-template-columns: 1fr;
    }

    .szolg-kartya {
        min-height: auto;
    }

    .szolg-link-sor {
        display: block;
        text-align: center;
        line-height: 1.4;
    }

}

@media (max-width: 560px) {
    .telefonos-cta {
        grid-template-columns: 1fr;
        width: calc(100% - 2rem);
        margin-top: 2rem;
        padding: 1.5rem 1rem;
        text-align: center;
        border-radius: 1.2rem;
    }

    .telefonos-cta-ikon {
        width: 4.5rem;
        height: 4.5rem;
        margin: 0 auto;
    }

    .telefonos-cta-ikon svg {
        width: 2.4rem;
        height: 2.4rem;
    }

    .telefonos-cta-szoveg {
        text-align: center;
    }

    .telefonos-cta-szoveg p {
        margin-left: auto;
        margin-right: auto;
    }

    .telefonos-cta-akcio {
        grid-column: auto;
        flex-direction: column;
    }

    .telefonos-cta-szam {
        font-size: 1.5rem;
    }

    .telefonos-cta-gomb {
        width: 100%;
        min-width: 0;
        padding: 0.95rem 1rem;
    }
}

@media (max-width: 390px) {
    .balfentlogo {
        height: 2.55rem;
        margin-left: 0.85rem;
    }

    .mager-felirat {
        font-size: 1.55rem;
    }

    .mager-alcim {
        font-size: 0.49rem;
    }

    .gombokfejlec {
        gap: 0.24rem;
        padding-left: 0.32rem;
        padding-right: 0.32rem;
    }

    .gombokfejlec a {
        padding: 0.32rem 0.38rem;
        font-size: 3.8vw;
    }

    .hero {
        min-height: 22rem;
    }

    .motto {
        font-size: clamp(2.05rem, 9.5vw, 2.8rem);
    }

    .szolg-cim-sor h2 {
        font-size: 1.8rem;
    }
}