body {
    font-family: var(--font), sans-serif;
}

html.hero-video-locked {
    overscroll-behavior: none;
}

main {
    width: var(--container-width-small);
    margin: 180px auto auto;
    display: flex;
    flex-direction: column;
    gap: 180px;
}
[data-lang] {
    white-space: pre-line;
}
.hero-wrapper {
    position: relative;
}

.hero-scroll {
    position: relative;
}

.hero-scene {
    position: relative;
    display: flow-root;
}

.intro {
    position: relative;
    width: var(--container-width-small);
    margin: -425px auto 0;
    z-index: 2;
}
h1 {
    font-size: 44px;
    line-height: 48px;
    font-weight: 700;
}

h2 {
    font-size: 36px;
    line-height: 36px;
    font-weight: 700;
}

h4 {
    font-size: 20px;
    line-height: 28px;
    font-weight: 700;
}

h3 {
    font-size: 26px;
    line-height: 29px;
    font-weight: 700;
}

h5 {
    font-size: 14px;
    line-height: 16px;
    font-weight: 400;
}

h6 {
    font-size: 12px;
    font-weight: 600;
}

p {
    font-size: 16px;
    line-height: 22px;
    font-weight: 400;
}

.blue {
    color: var(--blue);
}

.green {
    color: var(--green);
}

.white {
    color: #fff;
}

.plus-green-text {
    display: flex;
    align-items: center;
    gap: 9px;
}

/*BUTTONS */

.btn-blue, .btn-green {
    border-radius: var(--radius-large);
    padding: 9px 18px;
    width: max-content;
    font-weight: 600;
    font-size: 12px;
    display: flex !important;
    gap: 10px;
    align-items: center;
}

.btn-blue {
    color: #fff;
    background-color: var(--blue);
}

.btn-green {
    margin-top: 13px;
    color: var(--blue);
    background-color: var(--green);
}
.circle {
    display: inline-block;
    font-size: 10px;
    transform: scale(1);
    transform-origin: center;
    transition: transform 0.2s cubic-bezier(0.65, 0, 0.35, 1);
}

.swap-btn {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 999px;
    text-decoration: none;
}

.swap-btn__inner {
    display: block;
    position: relative;
}

.swap-btn__text {
    display: block;
    font-size: 15px;
    font-weight: 500;
    transition: transform 0.2s cubic-bezier(0.65, 0, 0.35, 1);
}

.swap-btn__text--bottom {
    position: absolute;
    top: 180%;
    left: 0;
}

.swap-btn:hover .swap-btn__text--top,
.swap-btn:hover .swap-btn__text--bottom {
    transform: translateY(-180%);
}

.swap-btn:hover .circle {
    transform: scale(1.4);
}

/* + SIGN ANIMATION*/

.icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--green);
    text-decoration: none;
    color: #fff;
}

.icon-btn__icon {
    position: relative;
    width: 20px;
    height: 20px;
    display: block;
}

.line {
    position: absolute;
    background: currentColor;
    border-radius: 1px;
}

.line--h {
    left: 3px;
    top: 9px;
    width: 14px;
    height: 2px;
}

.line--v-top {
    left: 9px;
    top: 3px;
    width: 2px;
    height: 7px;
    transform-origin: 100% 100%;
    transition: transform 0.2s cubic-bezier(0.65, 0, 0.35, 1);
}

.line--v-bottom {
    left: 9px;
    top: 10px;
    width: 2px;
    height: 7px;
    transform-origin: 50% 0%;
    transition: transform 0.2s cubic-bezier(0.65, 0, 0.35, 1);
}

.plus-green-text:hover .line--v-top {
    transform: translate(7px, 0) rotate(-45deg);
}

.plus-green-text:hover .line--v-bottom {
    transform: translate(7px, 0) rotate(45deg);
}

.plus-green-text a {
    cursor: default;
}

/*NAVIGATION*/

nav {
    color: var(--blue);
    background-color: #fff;
    position: fixed;
    z-index: 99;
    top: 0;
    left: 0;
    font-weight: 700;
    font-size: 14px;
    width: 100%;
    padding: 16px 16px 15px 16px;

}

.navbar__container, .mobile-menu-top {
    margin: 0 auto;
    max-width: var(--container-width-small);
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.navbar__center {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 560px;
    max-width: 50%;
}

.navbar__right {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

/*HERO SECTION*/

.hero {
    position: relative;
    /*background-color: #1c2058;*/
    background-color: #191e51;
    border-radius: var(--radius-medium);
    height: 757px;
    width: var(--container-width-medium);
    margin: 75px auto 0;
    overflow: hidden;

}
.hero-video {
    display: block;
    width: calc(100% + 6px);
    height: auto;
    background-color: #1c2058;
    opacity: 0;
    visibility: hidden;
}

.hero-video--forward {
    position: relative;
}

.hero-video--reverse {
    position: absolute;
    inset: 0 auto auto 0;
    pointer-events: none;
}

.hero-video--active {
    opacity: 1;
    visibility: visible;
}

.hero-video--forward,
.hero-video--reverse {
    top: -7px;
}

.intro {
    display: flex;
    flex-direction: column;
    gap: 45px;
}

.intro__texts {
    max-width: 502px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.intro__texts h5 {
    color: #fff;
    font-size: 20px;
    line-height: 22px;
    font-weight: 400;
}

.intro__boxes {
    background-color: var(--green);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 30px;
    border-radius: var(--radius-small);
}

.intro__boxes__box {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    padding-right: 30px;
    border-right: 2px solid var(--blue);
}
.intro__boxes__box > div {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.intro__boxes__box:last-child {
    border-right: none;
}

.intro__boxes__box img {
    max-height: 64px;
    width: auto;
}

/*ABOUT*/

.about {
    display: flex;
    gap: 20px;
}

.about__left, .about__right {
    width: 50%;
}

.about__left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
/* =====================================================
   SERVICES
   ===================================================== */

/*
 * Ez a külső scroll-terület.
 * A pontos magasságát a JavaScript állítja be.
 */
.services {
    position: relative;

    min-height: calc(
            100svh - var(--services-nav-height, 80px)
    );
}


/*
 * Ez marad a képernyőn az animáció alatt.
 *
 * Nem GSAP pin, hanem natív CSS sticky.
 */
.services__sticky {
    position: sticky;

    top: var(--services-nav-height, 80px);

    width: 100%;
    height: calc(
            100svh - var(--services-nav-height, 80px)
    );

    display: flex;
    align-items: flex-start;
    gap: 24px;

    padding-top: 40px;

    overflow: hidden;
}


/* BAL OLDALI CÍMSOR */

.services__left {
    width: 352px;
    max-width: 32%;
    flex: 0 0 auto;

    display: flex;
    flex-direction: column;
    gap: 12px;
}


/* JOBB OLDALI KÁRTYATERÜLET */

.services__right {
    position: relative;

    flex: 1 1 auto;
    min-width: 0;

    overflow: visible;
    isolation: isolate;

    border-radius: var(--radius-small);
}


/* KÁRTYÁK */

.services__right__box {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;

    display: flex;
    flex-direction: column;

    padding: 0 27px;

    background-color: var(--blue);
    border-radius: var(--radius-small);

    overflow: hidden;

    /*
     * Betöltés közben csak az első kártya látszik.
     * Így nem villan fel egyszerre a négy kártya.
     */
    visibility: hidden;

    will-change: transform;
    backface-visibility: hidden;
}


/*
 * JavaScript betöltése előtt ez tartja meg
 * a kártyaterület természetes magasságát.
 */
.services__right__box:first-child {
    position: relative;
    visibility: visible;
}


/*
 * Amikor a JavaScript elkészült a méréssel,
 * megjelenhet az összes kártya.
 */
.services.services--ready
.services__right__box {
    visibility: visible;
}


/* KÁRTYA FELSŐ ÉS ALSÓ RÉSZE */

.services__right__box-top,
.services__right__box-bottom {
    display: flex;
    align-items: center;
    gap: 24px;
}


.services__right__box-top {
    position: relative;
    z-index: 2;

    padding-top: 30px;

    background-color: var(--blue);

    border-radius:
            var(--radius-small)
            var(--radius-small)
            0
            0;
}


.services__right__box-top h1 {
    min-width: 65px;
}


.services__right__box-top h3 {
    padding-bottom: 5px;
}


.services__right__box-bottom p {
    padding: 28px 0 30px;

    border-top: 2px solid var(--green);
}


.services__right__box-bottom > div {
    min-width: 65px;
    height: 10px;
}


/* HÁTSÓ KÁRTYÁK HALVÁNYÍTÁSA */

.services__right__box-overlay {
    position: absolute;
    z-index: 3;
    inset: 0;

    background-color: rgba(255, 255, 255, 0.25);

    opacity: 0;

    border-radius: inherit;

    pointer-events: none;
    will-change: opacity;
}


/*OPERATION*/

.operation {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.operation__top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.operation__top h2 {
    text-align: center;
}

.operation__bottom__box {
    border-bottom: 2px solid var(--blue);
    padding: 30px 0;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.operation__bottom__box:last-child {
    border-bottom: none;
}

.operation__bottom__box-left, .operation__bottom__box-right {
    min-width: 50%;
}

.operation__bottom__box-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.operation__bottom__box-left h3 {
    max-width: 388px;
}

.operation__bottom__box-left-nr {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--green);
    border-radius: var(--radius-large);
    min-width: 43px;
    min-height: 43px;
}
.operation__bottom__box-right {
    display: flex;
    gap: 20px;
}
.operation__space-div {
    display: none;
    min-width: 43px;
    min-height: 43px;
}

/*QUALITY*/
.quality {
    max-width: var(--container-width-medium);
    margin: 180px auto;
}

.quality__top {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.parent {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.parent .div1 {
    grid-row: span 3 / span 3;
    background-color: var(--blue);
    border-radius: var(--radius-small);
    background-image: url("/assets/images/quality.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    min-height: 484px;
}

.parent .div3 {
    grid-column-start: 2;
    grid-row-start: 2;
}

.parent .div4 {
    grid-column-start: 3;
    grid-row-start: 2;
    display: flex;
    gap: 16px;
    flex-direction: column;
}

.parent .div4 p {
    font-weight: 700;
}

.parent .div4__bottom {
    display: flex;
    gap: 24px;
}

.parent .div4__bottom-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.parent .div4__bottom-box h5 {
    text-align: center;
}

.parent .div4__bottom-box h5 span {
    font-weight: 700;
}

.parent .div5 {
    grid-column-start: 3;
    grid-row-start: 3;
}

/* FOOTER */

footer {
    background-color: var(--blue);
}

footer a {
    color: #fff;
}

footer h4 {
    font-weight: 400;
}


/* TELJES FOOTER GRID */

.footer__container {
    max-width: var(--container-width-medium);
    margin: 0 auto;
    padding: 75px 0;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto auto;

    column-gap: 80px;
    row-gap: 130px;
}


/* 1. KAPCSOLATI BLOKK */

.footer__contact {
    grid-column: span 2 / span 2;
    grid-row-start: 1;

    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer__contact-main {
    display: flex;
    flex-direction: column;
}

.footer__contact-finance {
    display: flex;
    flex-direction: column;
    gap: 4px;
}


/* 2. LOGÓ */

.footer__logo {
    grid-column-start: 3;
    grid-row-start: 1;

    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.footer__logo img {
    width: 294px;
    max-width: 100%;
    height: auto;
}


/* 3. IRODA */

.footer__address {
    grid-column-start: 1;
    grid-row-start: 2;
}


/* 4. TELEPHELY */

.footer__facility {
    grid-column-start: 2;
    grid-row-start: 2;
}


/* 5. OLDALTÉRKÉP */

.footer__sitemap {
    grid-column-start: 3;
    grid-row-start: 2;
}


/* ALSÓ BLOKKOK KÖZÖS FORMÁZÁSA */

.footer-flex {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-flex h4 {
    color: #fff;
}

.footer__sitemap a {
    font-weight: 700;
}
.footer__logo__mobile {
    display: none;
}

/* EGYÉB MEGLÉVŐ FORMÁZÁS */

.right-box-last {
    background-color: transparent;
}
/*MOBILE MENU*/

.navbar__mobile {
    display: none;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--blue);
    transform: translateY(-100%);
    display: flex;
    flex-direction: column;
    gap: 36px;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu.displayNone {
    display: none;
}

.mobile-menu-bottom {
    display: flex;
    flex-direction: column;
    gap: 36px;
}
.mobile-menu-bottom a {
    color: #fff;
}
.mobile-menu-bottom h2, .mobile-menu-contact h3 {
    text-align: center;
}
.mobile-menu-contact {
    padding-bottom: 47px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.close {
    width: 32px;
}
#about, #services, #operation, #quality {
    scroll-margin-top: 100px;
}
.btn-lang-mobile {
    color: var(--green);
    font-size: 24px;
}
/*MEDIA QUERIES*/

@media (max-width: 1248px) {
    .hero {
        width: 96vw;
        margin: 76px auto;
    }
    .quality, .footer__container {
        width: 96vw;
    }
    main {
        width: 90vw;
    }
    .intro {
        width: 90vw;
    }

}
@media (max-width: 1025px) {
    nav {
        padding: 16px 25px;
    }
}
@media (max-width: 1000px) {
    .parent {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .parent > div:not(:first-child) {
        width: 90vw;
        margin: auto;
    }

    .parent .div4__bottom {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 24px;
    }

    .parent .div4__bottom-box {
        flex: 1 1 120px;
        max-width: max-content;
    }
    .navbar__center, .navbar__right {
        display: none;
    }

    .navbar__mobile {
        display: block;
    }

    .intro__boxes {
        grid-template-columns: repeat(2, 1fr);
    }

    .intro__boxes__box {
        border-right: none;
        padding-right: 0;
        padding-bottom: 30px;
        border-bottom: 2px solid var(--blue);

    }

    .intro__boxes__box:nth-child(3),
    .intro__boxes__box:nth-child(4) {
        border-bottom: none;
        padding-bottom: 0;
    }

    .operation__bottom__box {
        flex-direction: column;
    }
    .operation__space-div {
        display: block;
    }
    .operation__bottom__box {
        gap: 50px;
    }
    .operation__bottom__box-left {
        align-items: flex-start;
    }
}
@media (max-width: 900px) {
    .hero {
        height: 657px;
    }
}
/*@media (min-width: 751px) {*/
/*    .services__left {*/
/*        position: sticky;*/
/*        align-self: flex-start;*/
/*        top: 96px; !* placeholder, a JS felülírja a nav tényleges magasságával *!*/
/*    }*/
/*}*/
@media (max-width: 853px) {
    .services__sticky {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;

        gap: 36px;
        padding-top: 20px;
        overflow: visible;
    }


    .services__left {
        width: 100%;
        max-width: none;
        flex: none;
    }


    .services__right {
        width: 100%;
        flex: none;

        overflow: visible;
    }


    /*
     * Mobilon a szám külön sorba kerül.
     * A következő kártya 50 pixeles réteget
     * hagy láthatóan az előző kártyából.
     */
    .services__right__box-top {
        flex-direction: column;
        align-items: flex-start;

        gap: 20px;
    }


    .services__right__box-top h1 {
        min-width: 0;
    }


    .services__right__box-top h3 {
        padding-bottom: 17px;
    }


    .services__right__box-bottom > div {
        display: none;
    }
}

/*@media (prefers-reduced-motion: reduce) {*/
/*    .services__right__box {*/
/*        will-change: auto;*/
/*    }*/
/*}*/

@media (max-width: 734px) {
    .footer__container {
        padding: 60px 24px;

        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 60px;
    }

    .footer__contact,
    .footer__address,
    .footer__facility,
    .footer__sitemap {
        width: 100%;
    }

    .footer__logo {
        justify-content: flex-start;
        display: none;
    }
    .footer__logo__mobile {
        display: block;
    }
}

@media (max-width: 700px) {
    .operation__top h2 {
        text-align: start;
    }
    .operation__top {
        align-items: flex-start;
    }
    .operation__bottom__box:first-child {
        padding-top: 0;
    }
    .intro__boxes {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 20px;
    }

    .intro__boxes__box {
        border-bottom: 2px solid var(--blue);
        padding-bottom: 25px;
        flex-direction: row;
        gap: 20px;
    }
    .intro__boxes__box img {
        min-width: 67px;
    }
    .intro__boxes__box:nth-child(3) {
        border-bottom: 2px solid var(--blue);
        padding-bottom: 25px;
    }

    .about {
        flex-direction: column;
        gap: 36px;
    }
    .about__left, .about__right {
        width: 100%;
    }

}
@media (max-width: 600px) {
    .hero {
        height: 600px;
    }
}
@media (max-width: 537px) {
    .hero {
        height: 670px;

    }
    .intro {
        margin-top: -520px;
    }
    .footer__top-left-center h2 {
        font-size: 26px;
        line-height: 29px;
    }
    .intro__texts {
        padding: 10px;
    }

}
@media (max-width: 486px) {
    footer h2 {
        font-size: 22px;
    }
}

@media (max-width: 438px) {
    .hero {
        height: 630px;

    }
}

@media (max-width: 338px) {
    .intro h1 {
        font-size: 40px;
        line-height: 44px;
    }
    main h2 {
        font-size: 32px;
        line-height: 32px;
    }
    .footer__top-left-center h2 {
        font-size: 24px;
        line-height: 29px;
    }

}
