/* ============================================================
   NOVAROOT KFT. — Főoldal stíluslap
   ============================================================ */

/* ── 1. RESET & ALAP ──────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    display: block;
    height: auto;
    overflow-y: auto;
    font-family: sans-serif;
    margin: 0;
    padding: 0;
}

img {
    display: block;
    max-width: 100%;
}

.s4-layout-wrapper .swipe-hint {
    display: none;
}

#szallitunk .tall-card {
    justify-content: flex-start;   /* felülírja a space-between-t */
    padding-top: 0;                /* felesleges felső padding eltávolítása */
}

#szallitunk .tall-card-text {
    flex: 1;                       /* kitölti a rendelkezésre álló helyet (a kép felett) */
    display: flex;
    align-items: center;           /* függőleges középre */
    justify-content: center;       /* vízszintes középre */
    text-align: center;
    padding: 0rem 0rem;               /* kis belső margó a szövegnek */
}

#szallitunk .tall-card img {
    height: auto;                  /* felülírja a fix 80%-os magasságot */
    max-height: 80%;               /* max 60% hogy a szövegnek maradjon hely */
    width: 100%;
    flex-shrink: 0;                /* ne zsugorodjon */
}

/* ── 2. CSS VÁLTOZÓK ──────────────────────────────────── */
:root {
    --color-red:        #a35358;
    --color-red-light:  #db6e72;
    --color-red-pale:   #e1c7c9;
    --color-white:      #ffffff;
    --color-black:      #000000;
    --color-gray:       #333333;

    --wave-red:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'%3E%3Cpath fill='%23a35358' d='M0,40 C360,80 1080,0 1440,40 L1440,80 L0,80 Z'/%3E%3C/svg%3E");
    --wave-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'%3E%3Cpath fill='%23ffffff' d='M0,40 C360,80 1080,0 1440,40 L1440,80 L0,80 Z'/%3E%3C/svg%3E");

    --nav-height: 70px;
    --wave-height: 80px;
    --radius-lg:  3rem;
    --radius-md:  2rem;
    --radius-sm:  1.25rem;
}

/* ── 3. NAVIGÁCIÓ ─────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    height: var(--nav-height);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.navbar a {
    text-decoration: none;
    color: var(--color-black);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: opacity 0.2s, background-color 0.2s;
    padding: 0.35rem 0.7rem;
    border-radius: 0.5rem;
}

.navbar a:hover {
    opacity: 0.6;
}

@media (min-width: 1501px) {
    .navbar a:hover {
        opacity: 1;
        background-color: rgba(163, 83, 88, 0.13);
    }
}

.nav-flags {
    margin-left: auto;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.flag-btn {
    background: none;
    border: 2px solid transparent;
    border-radius: 6px;
    padding: 2px;
    cursor: pointer;
    transition: border-color 0.2s, opacity 0.2s;
    display: flex;
    align-items: center;
}

.flag-btn:hover  { opacity: 0.75; }
.flag-btn.active { border-color: var(--color-red); }

.flag-btn img {
    width: 28px;
    height: 20px;
    border-radius: 3px;
    object-fit: cover;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 1rem;
}

.hamburger img {
    width: 32px;
    height: 32px;
    display: block;
}

/* ── 4. HERO SZEKCIÓ ──────────────────────────────────── */
#rolunk, #szallitunk, #jovokep, #dolgozunk, #elerhetosegek, #partnereink {
    scroll-margin-top: var(--nav-height);
}

.hero {
    display: flex;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: var(--wave-height);
    background: var(--wave-red) no-repeat bottom / cover;
    z-index: 10;
}

.hero-frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 85%;
    margin-bottom: calc(var(--wave-height) + 2rem);
    border: 4px solid var(--color-red);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding-bottom: 3rem;
}

.hero .left {
    width: 60%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 0;
}

.hero .right {
    flex: 1;
    position: relative;
    z-index: 1;
}

.hero .right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand {
    margin-top: 7.5rem;
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    text-align: center;
    padding: 0 1rem;
}

.brand-name {
    font-family: "Oswald", sans-serif;
    font-optical-sizing: auto;
    font-size: clamp(1.4rem, 3vw, 3rem);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.brand-line {
    border-left: 1px solid var(--color-black);
    height: 100px;
}

.brand-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.big-font-red {
    color: var(--color-red);
    font-size: clamp(1.6rem, 3.5vw, 4rem);
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    padding: 0 1rem;
}

.tagline-top {
    font-size: clamp(1rem, 2vw, 2.4rem);
    margin-bottom: 0.5rem;
}

.tagline-bottom {
    font-size: clamp(2.2rem, 5vw, 6rem);
}

/* ── VÁLTOZÁS 2: angol tagline-bottom kisebb betűméret ── */
html[lang="en"] .tagline-bottom {
    font-size: clamp(1.6rem, 3.5vw, 4.2rem);
}

.big-font-white {
    color: var(--color-white);
    font-size: clamp(1.6rem, 3.5vw, 4rem);
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    padding: 0 2rem;
}

.features-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    width: 100%;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.features-row span {
    font-size: clamp(1rem, 1.5vw, 1.7rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--color-gray);
    background: rgba(255, 255, 255, 0.8);
    padding: 0 0.75rem;
    border-radius: 2rem;
}

/* ── VÁLTOZÁS 1: nagyobb kártya asztali nézetben ── */
.card-container {
    position: relative;
    width: clamp(14rem, 28vw, 28rem);
    height: clamp(14rem, 28vw, 28rem);
    margin-top: 2rem;
}

.card {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(11rem, 23vw, 23rem);
    aspect-ratio: 1;
    background: var(--color-red);
    border-radius: var(--radius-md);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card img {
    width: 50%;
    padding: 0.5rem 0;
    border-radius: 1rem;
}

.card-top {
    font-family: "Playwrite IE", cursive;
    font-optical-sizing: auto;
    color: var(--color-white);
    font-size: clamp(1.25rem, 1vw, 0.9rem);
    font-weight: 700;
    padding-right: 2rem;
    letter-spacing: 0.08em;
}

.card-bottom {
    font-family: "Playwrite IE", cursive;
    font-optical-sizing: auto;
    color: var(--color-white);
    font-size: clamp(1.25rem, 1vw, 0.9rem);
    font-weight: 700;
    padding-left: 2rem;
    letter-spacing: 0.08em;
}

/* ── 5. SZEKCIÓ KETTŐ — Rólunk ────────────────────────── */
.section-two {
    display: flex;
    width: 100%;
    background: var(--color-red);
    position: relative;
    overflow: hidden;
    padding-bottom: 5rem;
}

.section-two::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: var(--wave-height);
    background: var(--wave-white) no-repeat bottom / cover;
    z-index: 10;
}

.section-two .left {
    width: 50%;
    padding-top: 4rem;
}

.section-two .right {
    flex: 1;
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    padding-bottom: 10rem;
    padding-right: 2rem;
}

.section-two .right img {
    width: 40%;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.section-two .right img:first-child { transform: translateY(1.5rem); }
.section-two .right img:last-child  { transform: translateY(7.5rem); }

.desc {
    color: var(--color-white);
    font-size: clamp(0.95rem, 1.5vw, 1.6rem);
    font-weight: 700;
    text-align: center;
    padding: 1rem 2rem 0;
}

.info-box {
    width: clamp(18rem, 45vw, 50rem);
    height: auto;
    margin-top: 3rem;
    padding: 0 2rem;
    margin-left: auto;
    margin-right: auto;
}

.info-box-inner {
    width: 100%;
    background: var(--color-black);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    font-weight: 700;
    padding: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.info-box-inner h1 {
    font-size: clamp(1.4rem, 3vw, 2.5rem);
}

.info-box-inner p {
    font-size: clamp(0.85rem, 1.2vw, 1.2rem);
    line-height: 1.6;
    letter-spacing: 0.05em;
    margin-top: 0.75rem;
}

/* ── 6. SZEKCIÓ HÁROM — Amit szállítunk ──────────────── */
.section-three {
    background: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 0 5rem;
    width: 100%;
    position: relative;
    overflow-x: clip;
    overflow-y: visible;
}

.section-three-inner {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 2rem;
}

.section-three::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: var(--wave-height);
    background: var(--wave-red) no-repeat bottom / cover;
    z-index: 2;
}

.section-three-title {
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-red);
    margin-bottom: 1.5rem;
}

.section-three-desc {
    font-size: clamp(1rem, 2vw, 2rem);
    font-weight: 500;
    line-height: 1.25;
    color: var(--color-gray);
}

.cards-scroll-wrapper {
    position: relative;
    width: 100%;
    overflow: visible;
}

.swipe-hint {
    display: none;
}

.cards-row {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 6rem;
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    position: relative;
    z-index: 4;
}

.cards-row::before {
    content: '';
    position: absolute;
    bottom: -5rem;
    left: -5rem;
    right: -5rem;
    height: 70%;
    background: var(--color-red);
    border-radius: 5rem;
    z-index: -1;
}

.tall-card {
    width: 20rem;
    height: clamp(18rem, 28vw, 26rem);
    background: var(--color-red);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    padding-top: 2rem;
    z-index: 4;
    border-radius: var(--radius-md);
}

.tall-card-text {
    color: var(--color-white);
    font-weight: 700;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    text-align: center;
    padding: 0.25rem 0.5rem;
    flex-shrink: 0;
}

.tall-card img {
    margin-top: 0;
    width: 100%;
    height: 80%;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 0rem 0rem var(--radius-md) var(--radius-md);
}

.cards-row--wide .tall-card {
    width: 28rem;
    height: clamp(22rem, 36vw, 34rem);
    border-radius: var(--radius-md);
}

.cards-row--wide::before {
    left: -5rem;
    right: -5rem;
    border-radius: var(--radius-lg);
    bottom: 0rem;
    height: 60%;
}

/* ── 7. SZEKCIÓ NÉGY — Hogyan dolgozunk ──────────────── */

.s4-layout-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem 8rem;
    width: 100%;
    max-width: 1400px;
    padding: 0 2rem;
}

.s4-cards-scroll {
    display: contents;
}

.section-four {
    background: var(--color-red);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 5rem 2rem 10rem;
    position: relative;
    overflow: visible;
}

.section-four-title {
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-white);
    width: 100%;
    margin: 0;
    order: 4;
}

.s4-card:nth-child(1) { order: 1; }
.s4-card:nth-child(2) { order: 2; }
.s4-card:nth-child(3) { order: 3; }
.s4-card:nth-child(4) { order: 5; }
.s4-card:nth-child(5) { order: 6; }

.s4-card {
    z-index: 4;
    flex: 0 0 22rem;
    max-width: 22rem;
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 15rem;
}

.s4-card img {
    width: 55%;
    aspect-ratio: 1;
    object-fit: contain;
    padding: 1rem;
    margin: 0 auto;
}

.s4-card p {
    padding: 1.25rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-black);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.section-four::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: var(--wave-height);
    background: var(--wave-white) no-repeat bottom / cover;
    z-index: 2;
}

/* ── 8. KAPCSOLAT SZEKCIÓ ─────────────────────────────── */
.section-contact {
    display: flex;
    min-height: 80vh;
    background: var(--color-red);
    overflow-x: clip;
}

.section-contact .left {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 4rem 3rem 4rem 4rem;
    gap: 1.5rem;
}

.section-contact .right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem 3rem 0;
}

.section-contact .right img {
    width: 80%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.contact-brand {
    background: var(--color-red-pale);
    border-radius: var(--radius-md);
    padding: 1.5rem 2.5rem;
    margin: -1rem auto 0;
    width: 100%;
    max-width: 1000px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-brand .brand-name {
    color: var(--color-black);
    font-size: clamp(1.4rem, 2.5vw, 2.2rem);
}

.contact-brand .brand-line {
    border-color: var(--color-black);
}

.contact-brand .brand-image {
    width: 120x;
    height: 120px;
}

.contact-title {
    margin: 0 auto;
    color: var(--color-white);
    font-size: clamp(1.8rem, 3.5vw, 3.5rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-desc {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0rem;
    margin-bottom: -1rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(1.2rem, 2vw, 2rem);
    font-weight: 500;
    line-height: 1.6;
    max-width: 480px;
}

.contact-emails {
    background: var(--color-red-light);
    border-radius: var(--radius-sm);
    padding: 1.25rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 2rem auto 0;
    width: 100%;
    max-width: 600px;
}

.contact-emails a {
    color: var(--color-white);
    font-size: clamp(1rem, 2vw, 2rem);
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: opacity 0.2s;
    word-break: break-all;
}

.contact-emails a:hover { opacity: 0.7; }

/* ── 9. PARTNEREINK SZEKCIÓ ───────────────────────────── */
.section-partners {
    background: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 4rem 2rem 5rem;
}

.section-partners .section-three-title {
    margin-bottom: 2.5rem;
}

.partner-logo {
    width: clamp(10rem, 20vw, 16rem);
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

/* ── 10. RESZPONZÍV TÖRÉSPONTOK ───────────────────────── */

/* ── Hamburger menü 1500px alatt ── */
@media (max-width: 1500px) {
    :root {
        --nav-height: 60px;
    }

    .hamburger {
        display: block;
    }

    .navbar {
        height: var(--nav-height);
        padding: 0.8rem 1rem;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(8px);
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1.5rem 1rem;
        transform: translateY(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }

    .nav-links.active {
        transform: translateY(var(--nav-height));
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 0.5rem;
        width: 100%;
        text-align: center;
        color: var(--color-black);
    }

    .nav-flags { margin-left: 0; }
}

@media (max-width: 1024px) {

    .section-four {
        padding-top: 2rem;
        padding-bottom: 6rem;
    }

    .section-four-title {
        margin: 0 0 1.5rem;
    }

    .contact-title {
        text-align: center;
        width: 100%;
    }

    .section-contact .left {
        padding-top: 0rem;
    }

    .card-top, .card-bottom {
        font-size: 0.6rem; 
        padding: 0;
        text-align: center;
    }

    .nav-flags { margin-left: 0; }

    .navbar a { font-size: 0.7rem; }
    .brand { margin-top: 5rem; margin-bottom: 1.5rem; gap: 0.6rem; }
    .brand-line { height: 60px; }
    .brand-image { width: 60px; height: 60px; }
    .card-container { width: clamp(11rem, 60vw, 16rem); height: clamp(11rem, 60vw, 16rem); padding-bottom: 7rem; }
    .card-bg { width: 200%; top: 5rem; }
    .features-row { gap: 0.5rem; margin-top: 0; justify-content: center; }
    .features-row span {
        font-size: clamp(0.7rem, 3.5vw, 1rem);
        padding: 0 0.4rem;
        margin-top: 1rem;
    }
    .hero .right { display: none; }
    .hero .left { width: 100%; padding-bottom: calc(var(--wave-height) + 2rem); }
    .hero { min-height: auto; }
    .section-two { margin-top: -2px; }

    .section-two .right { display: none; }

    .tall-card {
        min-width: 75vw;
        height: clamp(30rem, 120vw, 35rem);
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .cards-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        gap: 1rem;
        padding-bottom: 1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        touch-action: pan-x pan-y;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-snap-type: x mandatory;
        margin-bottom: 3rem;
    }
    .cards-row::-webkit-scrollbar { display: none; }

    .tall-card {
        scroll-snap-align: center;
    }

    .cards-row::before { display: none; }

    .cards-scroll-wrapper::after { content: ''; position: absolute; right: 0; top: 0; height: 100%; width: 70px; pointer-events: none; z-index: 6; }
    .swipe-hint { display: flex; align-items: center; justify-content: center; gap: 0.5rem; position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%); color: var(--color-red); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; pointer-events: none; z-index: 7; }
    .swipe-hint::before { content: '←'; display: inline-block; animation: swipe-left 1.6s ease-in-out infinite; }
    .swipe-hint::after { content: '→'; display: inline-block; animation: swipe-right 1.6s ease-in-out infinite; }
    @keyframes swipe-left { 0%, 100% { transform: translateX(0); opacity: 1; } 50% { transform: translateX(-5px); opacity: 0.5; } }
    @keyframes swipe-right { 0%, 100% { transform: translateX(0); opacity: 1; } 50% { transform: translateX(5px); opacity: 0.5; } }

    .s4-cards-grid::-webkit-scrollbar { display: none; }

    .s4-cards-grid .s4-card {
        flex: 0 0 72vw;
        width: 72vw;
        max-width: 72vw;
        min-height: 18rem;
        scroll-snap-align: center;
    }

    .s4-bottom-row .s4-card {
        flex: 0 0 72vw;
        width: 72vw;
        max-width: 72vw;
        min-height: 18rem;
        scroll-snap-align: center;
    }

    .s4-cards-grid .s4-card p { font-size: 1.1rem; padding: 0.75rem; }

    #jovokep .cards-scroll-wrapper { display: none; }
    #jovokep .cards-row { display: flex; }

    .contact-brand { flex-wrap: nowrap; gap: 0.6rem; padding: 1rem 1.25rem; align-items: center; }
    .contact-brand .brand-name { font-size: clamp(0.85rem, 3.5vw, 1.2rem); white-space: nowrap; }
    .contact-brand .brand-image { width: 60px; height: 60px; flex-shrink: 0; }
    .contact-brand .brand-line { height: 38px; flex-shrink: 0; }
    .info-box { width: 95%; padding: 0 0.5rem; }
    .contact-emails { padding: 1rem; }

    .section-partners {
        padding: 3rem 1.5rem 4rem;
    }

    .partner-logo {
        width: clamp(8rem, 45vw, 12rem);
    }

    .s4-layout-wrapper {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .section-four-title {
        order: 1;
        width: auto;
        margin: 0 0 1.5rem;
    }

    .s4-cards-scroll {
        display: flex;
        order: 2;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        gap: 2rem;
        padding: 0.5rem 1.5rem 1.5rem; 
        scroll-snap-type: x mandatory;
        touch-action: pan-x pan-y;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        width: 100%;
    }

    .s4-cards-scroll::-webkit-scrollbar {
        display: none;
    }

    .s4-card {
        flex: 0 0 calc(90vw - 3rem); 
        width: calc(90vw - 3rem);
        max-width: none;
        min-height: 18rem;
        scroll-snap-align: center;
    }

    .s4-card:nth-child(1),
    .s4-card:nth-child(2),
    .s4-card:nth-child(3),
    .s4-card:nth-child(4),
    .s4-card:nth-child(5) {
        order: unset;
    }

    .s4-layout-wrapper .swipe-hint {
        display: flex;
        order: 3;
        color: var(--color-white);
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }

    .hero-frame {
        margin-bottom: -1.5rem;
        padding-bottom: 0rem;
    }

    /* ── Rólunk: teljes szélesség a szövegnek, most hogy a képek rejtve vannak ── */
    .section-two {
        flex-direction: column;
    }
    .section-two .left {
        width: 100%;
        padding-left: 2rem;
        padding-right: 2rem;
    }

    /* ── Kártyák: csak egy látszik egyszerre ── */
    .cards-scroll-wrapper {
        overflow-x: clip;
    }
    .tall-card {
        min-width: calc(100vw - 5rem);
        flex: 0 0 calc(100vw - 5rem);
    }
    .section-four {
        overflow-x: clip;
    }
    .s4-card {
        flex: 0 0 calc(100vw - 5rem);
        width: calc(100vw - 5rem);
    }

    /* ── Kapcsolat: felesleges üres hely eltávolítása ── */
    .section-contact {
        min-height: auto;
        padding: 3rem 0;
    }
    .section-contact .left {
        padding: 2rem;
        gap: 1rem;
    }
    .section-contact .right {
        display: none;
    }

    .section-contact .left {
        width: 100%;
        align-items: center;
        text-align: center;
        padding: 2rem;
    }

    .contact-brand {
        justify-content: center;
        flex-wrap: wrap; /* ha a szöveg nem férne el, törje sort */
    }

    .tall-card {
        justify-content: flex-start;   /* felülírja a space-between-t */
        padding-top: 0;                /* felesleges felső padding eltávolítása */
    }

    .tall-card-text {
        flex: 1;                       /* kitölti a rendelkezésre álló helyet (a kép felett) */
        display: flex;
        align-items: center;           /* függőleges középre */
        justify-content: center;       /* vízszintes középre */
        text-align: center;
        padding: 0rem 0rem;               /* kis belső margó a szövegnek */
    }

    .tall-card img {
        height: auto;                  /* felülírja a fix 80%-os magasságot */
        max-height: 80%;               /* max 60% hogy a szövegnek maradjon hely */
        width: 100%;
        flex-shrink: 0;                /* ne zsugorodjon */
    }

    /* 1) Gyors / Megbízható / Országszerte – egy sorban marad */
    @media (max-width: 430px) {
       .features-row {
            flex-wrap: nowrap;
            gap: 0.15rem; /* volt: 0.2rem */
        }
        .features-row span {
            font-size: clamp(0.72rem, 2.6vw, 0.85rem); /* volt: 0.55rem */
            padding: 0 0.2rem; /* volt: 0.25rem */
            white-space: nowrap;
        }
    }

    /* 2) Novaroot Kft. | logó – egy sorban marad */
    @media (max-width: 500px) {
        .brand {
            flex-wrap: nowrap;
            gap: 0.5rem;
        }
        .brand-name {
            font-size: clamp(0.9rem, 4vw, 1.4rem);
            white-space: nowrap;
        }
        .brand-image {
            width: 40px;
            height: 40px;
            flex-shrink: 0;
        }
        .brand-line {
            height: 40px;
            flex-shrink: 0;
        }
    }

    /* 3) Kapcsolat email – nem törik szét */
    @media (max-width: 600px) {
        .contact-emails a {
            font-size: clamp(0.65rem, 3.4vw, 1rem);
            word-break: break-all;
            overflow-wrap: anywhere;
        }
    }
}

@media (min-width: 1025px) and (max-width: 1500px) {
    .section-contact .left {
        align-items: center;
        text-align: center;
    }

    .contact-title {
        text-align: center;
        width: 100%;
    }

    .contact-desc {
        text-align: center;
    }
}

@media (max-width: 1200px) and (min-width: 900px){
    .card-top,
    .card-bottom{
        padding: 0;
        font-size: 1rem; 
    }
}