:root {
            --kekfesto-mely: #0f2557; 
            --kekfesto-alap: #1a3161;
            --kekfesto-vilagos: #eef2fb;
            --svab-korall: #ff6b6b;
            --feher: #ffffff;
            --kreta-logokek: #3c9ad2; 
            --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            --mely-arnyek: 0 30px 60px rgba(0,0,0,0.18);
        }

        * { box-sizing: border-box; margin: 0; padding: 0; }

        body {
            font-family: 'Quicksand', sans-serif;
            background-color: var(--kekfesto-vilagos);
            color: #333;
            overflow-x: hidden;
            line-height: 1.6;
            -webkit-tap-highlight-color: transparent;
        }

        /* --- FEJLÉC --- */
        .header-wrapper {
            background-color: var(--kekfesto-mely);
            position: sticky;
            top: -60px; 
            z-index: 1000;
            box-shadow: 0 10px 30px rgba(0,0,0,0.25);
        }

        .top-info-bar {
            background: linear-gradient(to bottom, #0a1a3d, var(--kekfesto-mely));
            padding: 15px 5%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: var(--feher);
            font-size: 0.75rem;
            font-weight: 700;
            flex-wrap: wrap;
            gap: 10px;
        }

        .top-info-bar a { color: inherit; text-decoration: none; white-space: nowrap; }

        .mid-wave { line-height: 0; background-color: var(--kekfesto-mely); }
        .mid-wave svg { width: 100%; height: 40px; fill: rgba(255,255,255,0.05); }

        header {
            background-color: var(--kekfesto-mely);
            padding: 5px 5% 45px 5%;
            display: flex;
            flex-direction: column; 
            align-items: center;
            gap: 15px;
            position: relative;
        }

        header::before {
            content: "";
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            opacity: 0.2;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M40 45c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-2c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z'/%3E%3Ccircle cx='40' cy='25' r='2'/%3E%3Ccircle cx='40' cy='55' r='2'/%3E%3Ccircle cx='25' cy='40' r='2'/%3E%3Ccircle cx='55' cy='40' r='2'/%3E%3Ccircle cx='30' cy='30' r='1.5'/%3E%3Ccircle cx='50' cy='30' r='1.5'/%3E%3Ccircle cx='30' cy='50' r='1.5'/%3E%3Ccircle cx='50' cy='50' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
            pointer-events: none;
        }

        .seal-container {
            position: absolute;
            left: 5%;
            bottom: 0;
            transform: translateY(45%) rotate(-5deg);
            z-index: 2000;
            transition: var(--transition);
        }

        .seal-logo {
            width: 200px; height: 200px;
            border-radius: 50%;
            border: 6px solid var(--feher);
            box-shadow: 0 15px 35px rgba(0,0,0,0.4);
            background-color: var(--kekfesto-mely);
            transition: var(--transition);
        }

        .seal-container:hover {
            transform: translateY(35%) rotate(0deg) scale(1.05);
        }
        
        .seal-container:hover .seal-logo {
            box-shadow: 0 20px 45px rgba(0,0,0,0.5);
        }

        .logo-text {
            font-family: 'Parisienne', cursive;
            font-size: 3.5rem;
            color: var(--feher);
            text-decoration: none;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
            margin-left: 180px;
            z-index: 2;
            transition: var(--transition);
        }

        .logo-text:hover {
            color: var(--svab-korall);
            transform: scale(1.02);
            text-shadow: 4px 4px 8px rgba(0,0,0,0.5);
        }

        /* --- NAVIGÁCIÓ --- */
        nav { width: 100%; z-index: 10; display: flex; justify-content: flex-end; }
        
        .menu-toggle {
            display: none;
            cursor: pointer;
            font-size: 1.8rem;
            color: var(--feher);
            padding: 10px;
            transition: var(--transition);
        }

        nav ul { 
            list-style: none; display: flex; justify-content: flex-end; 
            flex-wrap: wrap; gap: 12px; padding-left: 250px;
            align-items: center;
            transition: var(--transition);
        }

        nav ul li a {
            text-decoration: none; 
            color: var(--kekfesto-mely);
            font-weight: 700; 
            padding: 10px 20px;
            background: var(--feher); 
            border-radius: 50px;
            font-size: 0.85rem; 
            height: 40px;
            display: flex; 
            align-items: center; 
            justify-content: center;
            transition: var(--transition);
            box-shadow: 0 4px 0px var(--svab-korall);
        }

        nav ul li a:hover { transform: translateY(-3px); box-shadow: 0 6px 0px var(--svab-korall); }

        /* KRÉTA GOMB */
        nav ul li.kreta-btn-logo a {
            color: var(--kreta-logokek);
            font-family: 'Varela Round', sans-serif;
            font-weight: 800;
            text-transform: uppercase;
            font-size: 1.1rem;
            letter-spacing: -0.5px;
        }

        .kreta-logo-container { display: flex; align-items: center; position: relative; }
        .kreta-e-wrapper { position: relative; display: inline-flex; align-items: center; line-height: 1; padding: 0 1px; vertical-align: middle; }
        .kreta-e-wrapper::before, .kreta-e-wrapper::after {
            content: ''; position: absolute; left: 50%; transform: translateX(-50%);
            width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent;
        }
        .kreta-e-wrapper::before { border-top: 8px solid var(--kreta-logokek); top: -7px; }
        .kreta-e-wrapper::after { border-bottom: 8px solid var(--kreta-logokek); bottom: -7px; }

        /* --- BŐVÍTETT GALÉRIA / SLIDER --- */
        .hero-section {
            position: relative;
            background: var(--feher);
            padding: 80px 0 120px 0;
        }

        .slider-container {
            width: 92%; max-width: 1200px; height: 500px;
            margin: 0 auto; border-radius: 40px;
            overflow: hidden; box-shadow: var(--mely-arnyek);
            position: relative;
            background-color: #fafafa; 
        }

        .slide { width: 100%; height: 100%; display: none; position: relative; }
        .slide img { width: 100%; height: 100%; object-fit: cover; }
        .slide.active { display: block; }
        .slide.active img { animation: fade 1.2s; }

        .slide.contain-img {
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: white; 
        }

        .slide.contain-img img {
            width: auto;
            max-width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .slide-text {
            position: absolute; bottom: 40px; left: 40px;
            background: rgba(255, 255, 255, 0.96);
            padding: 30px; border-radius: 25px;
            max-width: 420px; border-left: 10px solid var(--kekfesto-mely);
            z-index: 5;
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }

        /* Nyilak */
        .slider-nav {
            position: absolute; top: 50%; width: 100%;
            display: flex; justify-content: space-between;
            transform: translateY(-50%); padding: 0 30px;
            z-index: 10; pointer-events: none;
        }
        .nav-btn {
            background: rgba(255,255,255,0.3); color: white;
            width: 50px; height: 50px; border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            cursor: pointer; pointer-events: auto; transition: var(--transition);
            border: 2px solid transparent; backdrop-filter: blur(5px);
        }
        .nav-btn:hover { background: var(--feher); color: var(--kekfesto-mely); }

        .slider-dots {
            position: absolute; bottom: 20px; width: 100%;
            display: flex; justify-content: center; gap: 10px; z-index: 10;
        }
        .dot {
            width: 12px; height: 12px; border-radius: 50%;
            background: rgba(255,255,255,0.5); cursor: pointer; transition: var(--transition);
        }
        .dot.active { background: var(--feher); transform: scale(1.3); }

        .bottom-wave {
            position: absolute; bottom: 0; left: 0; width: 100%; line-height: 0; z-index: 10;
        }
        .bottom-wave svg { width: 100%; height: 100px; fill: var(--kekfesto-vilagos); }

        /* --- TARTALOM --- */
        main {
            background: linear-gradient(to bottom, var(--kekfesto-vilagos) 70%, var(--kekfesto-mely) 100%);
            padding-bottom: 80px;
        }

        .main-content {
            display: grid; grid-template-columns: 3fr 1.2fr; gap: 40px;
            width: 90%; max-width: 1200px; margin: -60px auto 0 auto;
            position: relative; z-index: 20;
        }

        .card { background: var(--feher); padding: 60px; border-radius: 40px; box-shadow: var(--mely-arnyek); }
        .card h2 { color: var(--kekfesto-mely); margin-bottom: 20px; }

        .director-signature { margin-top: 40px; display: flex; align-items: center; gap: 25px; flex-wrap: wrap; }
        .director-photo { width: 110px; height: 110px; border-radius: 50%; border: 4px solid var(--feher); box-shadow: 0 10px 20px rgba(0,0,0,0.15); }
        .signature-name { font-family: 'Parisienne', cursive; font-size: 2.5rem; color: var(--kekfesto-mely); }

        .sidebar {
            background-color: var(--kekfesto-alap); padding: 40px; border-radius: 40px;
            color: white; box-shadow: 0 30px 60px rgba(0,0,0,0.25); height: fit-content;
        }

        .social-link {
            color: white; text-decoration: none; display: flex; align-items: center; gap: 15px; padding: 12px; transition: var(--transition);
        }
        .social-link:hover { background: rgba(255,255,255,0.1); transform: translateX(10px); }

        footer { background-color: var(--kekfesto-mely); color: var(--feher); text-align: center; padding: 40px 5% 60px 5%; font-size: 0.9rem; }

        @keyframes fade { from {opacity: 0.4} to {opacity: 1} }

        /* --- JAVÍTOTT MOBIL NÉZET - MINDEN LÁTSZÓDIK --- */
        @media (max-width: 1100px) {
            .header-wrapper { top: 0; }
            
            .top-info-bar { 
                padding: 8px 5%;
                font-size: 0.65rem;
                justify-content: center;
                gap: 8px;
            }

            header { 
                padding: 10px 5% 15px 5%; 
                gap: 5px; 
            }

            .seal-container { 
                position: relative; 
                left: 0; 
                transform: none; 
                margin-bottom: 5px;
            }
            .seal-container:hover { transform: scale(1.05); }
            .seal-logo { width: 90px; height: 90px; border-width: 3px; }
            
            .logo-text { 
                margin-left: 0; 
                font-size: 1.5rem; 
                text-align: center;
            }

            .menu-toggle { 
                display: block; 
                font-size: 1.5rem;
                padding: 5px;
            }
            
            nav ul { 
                display: none; 
                flex-direction: column; 
                position: absolute; 
                top: 100%; 
                left: 0; 
                width: 100%; 
                background: var(--kekfesto-mely); 
                padding: 15px 5%; 
                gap: 6px; /* Kisebb távolság a gombok között */
                box-shadow: 0 15px 30px rgba(0,0,0,0.4);
                z-index: 9999;
                max-height: 75vh; /* A képernyő magasságának 75%-a max */
                overflow-y: auto; /* Ha túl hosszú, görgethető legyen */
                -webkit-overflow-scrolling: touch;
            }

            nav ul.active { display: flex; }
            nav ul li { width: 100%; }
            nav ul li a { 
                width: 100%; 
                height: 42px; 
                font-size: 0.9rem;
                padding: 0 15px;
            }

            .hero-section { padding: 20px 0 50px 0; }
            .slider-container { height: 280px; width: 94%; }
            
            .slide-text { 
                left: 10px; right: 10px; bottom: 10px; 
                padding: 10px;
                border-left-width: 4px;
            }
            .slide-text h3 { font-size: 0.95rem; }
            .slide-text p { font-size: 0.75rem; }

            .main-content { margin-top: 10px; width: 94%; }
            .card { padding: 20px 15px; }
            .card h2 { font-size: 1.3rem; }
            .signature-name { font-size: 1.4rem; }
            .sidebar { padding: 20px 15px; }
            .bottom-wave svg { height: 35px; }
        }
