:root {
    --bg: #060606; 
    --surface: #0f0f0f;
    --border: #1f1f1f;
    --accent: #F1C40F;
    --text-main: #ffffff; 
    --text-muted: #e4e4e7;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { 
    scroll-snap-type: y mandatory; 
    scroll-behavior: smooth; 
    background-color: var(--bg); 
}

body {
    background-color: var(--bg); color: var(--text-main);
    font-family: 'Inter', -apple-system, sans-serif;
    overflow-x: hidden;
}

/* Inteligente skalowanie patrzące też na wysokość (min(vw, vh)) */
h2 { font-size: clamp(1.8rem, min(3.5vw, 6vh), 4rem); font-weight: 800; letter-spacing: -1px; margin-bottom: 20px; line-height: 1.1; color: var(--text-main); text-transform: uppercase; }
h3 { font-size: clamp(1.1rem, min(1.3rem, 2.5vh), 1.3rem); font-weight: 700; color: var(--text-main); margin-bottom: 10px; text-transform: uppercase;}
p, li { line-height: 1.6; font-size: clamp(0.95rem, min(1.4vw, 2.2vh), 1.35rem); color: var(--text-muted); margin-bottom: 15px; font-weight: 500; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
strong { color: var(--text-main); font-weight: 700; }
.highlight { color: var(--accent); }
.text-center { text-align: center; }

.mono-tag { 
    font-family: 'Courier New', Courier, monospace; 
    font-size: clamp(0.75rem, min(1vw, 1.8vh), 1rem); color: var(--accent); 
    letter-spacing: 2px; text-transform: uppercase; 
    display: block; margin-bottom: 15px; font-weight: bold;
}

.styled-list ul { text-align: left; margin: 15px 0; padding-left: 20px; }

.navbar { position: fixed; top: 0; width: 100%; z-index: 1000; display: flex; justify-content: space-between; align-items: center; padding: 20px 40px; transition: 0.4s; }
.navbar.scrolled { background: rgba(0,0,0,0.95); border-bottom: 1px solid var(--border); padding: 10px 40px; backdrop-filter: blur(10px); }
.nav-logo img { height: 24px; cursor: pointer; }
.nav-links { display: flex; align-items: center; gap: 20px; }

.social-icons { display: flex; gap: 15px; align-items: center; margin-right: 10px; padding-right: 20px; border-right: 1px solid var(--border); }
.nav-icon { color: var(--text-muted); transition: 0.3s; display: flex; align-items: center; justify-content: center; text-decoration: none;}
.nav-icon svg { width: 20px; height: 20px; }
.nav-icon:hover { color: var(--accent); transform: scale(1.1); }

.lang-switch { font-size: 0.85rem; color: #555; font-weight: bold;}
.lang-switch span { cursor: pointer; transition: 0.3s; margin: 0 4px;}
.lang-switch span.active { color: var(--accent); }
.lang-switch span:hover { color: #fff; }

.btn-nav-discord { 
    background: #5865F2; color: #fff; padding: 8px 18px; text-decoration: none; font-weight: bold; font-size: 0.8rem; text-transform: uppercase;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: all 0.3s;
}
.btn-nav-discord:hover { background: #4752C4; transform: scale(1.05); }

.snap-section { 
    width: 100%; 
    min-height: 100vh;
    height: auto;
    position: relative; 
    scroll-snap-align: start; 
    scroll-snap-stop: always; 
    display: flex;
    flex-direction: column;
}

.hero { 
    display: flex; flex-direction: column; justify-content: center; align-items: center; 
    background-image: linear-gradient(rgba(6, 6, 6, 0.75), rgba(6, 6, 6, 0.9)), url('bg1.png'); 
    background-size: cover; background-position: center;
}
.hero-pattern { position: absolute; top:0; left:0; width:100%; height:100%; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02) 2px, transparent 2px, transparent 10px); z-index: 2; pointer-events: none; }
.hero-content { text-align: center; display: flex; flex-direction: column; align-items: center; z-index: 5;}
.hero-content img { width: 90%; max-width: 600px; margin-bottom: 20px; filter: drop-shadow(0 0 30px rgba(0,0,0,1)); }
.hero-subtitle { font-size: clamp(1rem, min(1.5vw, 3vh), 1.5rem); color: var(--text-muted); letter-spacing: 5px; text-transform: uppercase; font-weight: 500; text-align: center; padding: 0 20px;}

.scroll-down-btn { 
    position: absolute; bottom: 3vh; left: 0; width: 100%; 
    display: flex; flex-direction: column; align-items: center; justify-content: center; 
    cursor: pointer; z-index: 20; opacity: 0.8; transition: opacity 0.3s; padding: 15px 0; 
}
.scroll-down-btn:hover { opacity: 1; }
.scroll-down-text { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 3px; margin-right: -3px; color: var(--accent); font-weight: bold; margin-bottom: 8px; }
.chevron { width: 16px; height: 16px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); animation: bounce 2s infinite; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); } 40% { transform: translateY(-5px) rotate(45deg); } }

.split-row { display: flex; min-height: 100vh; height: auto; width: 100%; flex-direction: row; align-items: stretch; overflow: hidden; }
.content-cell { 
    width: 50%; display: flex; flex-direction: column; justify-content: center; 
    padding: clamp(60px, 10vh, 120px) 5vw clamp(40px, 6vh, 80px); 
    background-color: var(--bg);
    background-image: linear-gradient(rgba(6, 6, 6, 0.92), rgba(6, 6, 6, 0.97)), url('bg3.jpg'); 
    background-size: cover; background-position: center;
}
.content-cell h2 { font-size: clamp(2rem, min(4vw, 7vh), 5rem); margin-bottom: clamp(10px, 2vh, 20px); }
.content-cell p { font-size: clamp(1rem, min(1.4vw, 2.5vh), 1.8rem); line-height: 1.5; margin-bottom: clamp(10px, 2vh, 15px); }

.image-cell { width: 50%; position: relative; display: flex; overflow: hidden; background: #000; border-left: 1px solid var(--border); }
.split-row.reverse { flex-direction: row-reverse; }
.split-row.reverse .image-cell { border-left: none; border-right: 1px solid var(--border); }

.image-cell img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: 0.6s ease; filter: grayscale(20%); display: block; }
.image-cell:hover img { opacity: 1; transform: scale(1.02); filter: grayscale(0%); }

.inner-content { max-width: 850px; margin: 0 auto; z-index: 2; position: relative;}

.gallery-section { 
    height: 70vh !important; 
    min-height: 500px;
    display: flex; flex-direction: column; justify-content: center; align-items: center; 
    background-image: linear-gradient(rgba(6, 6, 6, 0.95), rgba(6, 6, 6, 0.98)), url('bg5.jpg'); 
    background-size: cover; background-position: center;
    position: relative;
}
.gallery-header { text-align: center; margin-bottom: 30px; z-index: 2;}

.carousel-wrapper { position: relative; width: 100%; display: flex; align-items: center; overflow: hidden; }
.carousel-container { 
    display: flex; width: 100%; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-behavior: smooth; gap: 30px; padding: 20px calc(50vw - 315px);
    scrollbar-width: none;
}
.carousel-container::-webkit-scrollbar { display: none; }
.carousel-slide { 
    flex: 0 0 600px; height: 35vh; min-height: 250px; object-fit: cover; border-radius: 8px; 
    scroll-snap-align: center; opacity: 0.4; filter: grayscale(100%); transform: scale(0.85); 
    transition: 0.4s ease; border: 2px solid transparent; 
}
.carousel-slide.active { opacity: 1; filter: grayscale(0%); transform: scale(1); border-color: var(--accent); box-shadow: 0 10px 30px rgba(0,0,0,0.8); }

.carousel-btn { 
    position: absolute; z-index: 10; background: rgba(0,0,0,0.6); border: 1px solid var(--border); 
    color: var(--accent); width: 50px; height: 50px; cursor: pointer; top: 50%; 
    transform: translateY(-50%); border-radius: 4px; transition: 0.3s;
    display: flex; align-items: center; justify-content: center; 
}
.carousel-btn svg { width: 24px; height: 24px; }
.carousel-btn:hover { background: var(--accent); color: #000; }
.carousel-btn.prev { left: 30px; }
.carousel-btn.next { right: 30px; }

.bento-section { 
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: clamp(60px, 10vh, 120px) 20px clamp(40px, 6vh, 80px); 
    min-height: 100vh;
    height: auto;
    background-color: var(--bg);
    background-image: linear-gradient(rgba(6, 6, 6, 1), rgba(6, 6, 6, 0.95)), url('bg7.jpg'); 
    background-size: cover; background-position: center;
}
.bento-container { width: 100%; max-height: none; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 2; position: relative; }
.bento-header { margin-bottom: clamp(10px, 2vh, 15px); }
.bento-header h2 { font-size: clamp(1.6rem, min(3vw, 5vh), 2.5rem); margin-bottom: 5px; }
.bento-header p { margin-bottom: 10px !important; }

.bento-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(15px, 2.5vh, 25px); width: 100%; max-width: 1300px; }
.bento-card { background: rgba(15, 15, 15, 0.9); backdrop-filter: blur(5px); border: 1px solid var(--border); padding: clamp(20px, 3.5vh, 35px) 40px; border-left: 3px solid var(--accent); transition: 0.3s; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%); }
.bento-card svg { width: 24px; height: 24px; margin-bottom: clamp(5px, 1vh, 10px); stroke: var(--accent); }
.bento-card h3 { font-size: clamp(1.1rem, min(1.25rem, 2.5vh), 1.25rem); margin-bottom: 8px; }
.bento-card p { font-size: clamp(0.9rem, min(1rem, 2vh), 1rem); line-height: 1.4; margin-bottom: 0; }
.bento-card:hover { transform: translateY(-3px); background: #151515; box-shadow: 0 10px 20px rgba(0,0,0,0.5); }

.bento-wide { grid-column: 1 / -1; }

.cta-section { 
    display: flex; justify-content: center; align-items: center; flex-direction: column; 
    padding: clamp(60px, 10vh, 120px) 20px clamp(60px, 10vh, 100px); 
    min-height: 100vh;
    height: auto;
    background-color: var(--bg);
    background-image: linear-gradient(rgba(6, 6, 6, 1), rgba(6, 6, 6, 0.95)), url('bg9.jpg'); 
    background-size: cover; background-position: center;
}
.cta-box { max-width: 800px; width: 100%; text-align: center; z-index: 2; position: relative;}

.legal-check { margin: clamp(20px, 4vh, 30px) 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--text-muted); font-size: clamp(0.85rem, min(0.95rem, 2vh), 0.95rem); flex-wrap: wrap;}
.legal-check input[type="checkbox"] { width: 22px; height: 22px; cursor: pointer; accent-color: var(--accent); }
.legal-check label { cursor: pointer; user-select: none; }
.legal-check a, .legal-check a:visited, .legal-check a:active { 
    color: var(--accent) !important; 
    text-decoration: none; 
    border-bottom: 1px dotted var(--accent); 
    font-weight: 800; 
    cursor: pointer;
}
.legal-check a:hover { color: #ffffff !important; border-bottom-color: #ffffff; }

.btn-tebex { display: inline-block; padding: clamp(15px, 2.5vh, 20px) clamp(30px, 5vw, 50px); font-size: clamp(1rem, min(1.2rem, 2.5vh), 1.2rem); font-weight: 900; text-transform: uppercase; letter-spacing: 2px; text-decoration: none; transition: 0.3s; clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px); }
.btn-tebex.disabled { background-color: var(--surface); color: #555; pointer-events: none; }
.btn-tebex:not(.disabled) { background: var(--accent); color: #000; }

footer { position: absolute; bottom: 15px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-size: clamp(0.7rem, 1.5vh, 0.8rem); color: #444; width: 100%; }
.footer-socials { display: none; gap: 15px; }
.footer-socials .nav-icon { color: #666; }
.footer-socials .nav-icon:hover { color: var(--accent); }

.reveal { opacity: 0; transform: translateY(30px); transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

@media (max-width: 1000px) {
    html { scroll-snap-type: none; }

    .navbar { padding: 15px 20px; }
    .navbar.scrolled { padding: 10px 20px; }
    .social-icons { display: none; }

    .snap-section { 
        height: auto !important; 
        min-height: 100vh;
        min-height: 100svh;
        overflow: visible; 
        padding: 60px 0px 40px; 
        display: block; 
    }

    .hero { 
        height: 100vh !important;
        height: 100svh !important;
        padding: 0 20px; 
        display: flex; 
        flex-direction: column; 
        justify-content: center;
    }
    
    .hero-content img { width: 100%; max-width: 320px; }

    .split-row, .split-row.reverse { flex-direction: column !important; height: auto !important; }
    .content-cell { width: 100% !important; padding: 40px 20px; order: 2; overflow-y: visible;}
    
    .image-cell { width: 100% !important; height: auto !important; min-height: auto; order: 1; border: none; border-bottom: 1px solid var(--border);}
    .image-cell img { height: auto !important; object-fit: contain; opacity: 1; filter: grayscale(0%); }

    h2 { font-size: 1.8rem !important; margin-bottom: 15px; }

    .gallery-section { min-height: auto !important; padding: 60px 0 20px !important; }
    .bento-section, .cta-section { padding: 60px 20px 40px !important; min-height: auto !important; }

    .bento-container { max-height: none !important; height: auto; }
    .bento-grid { grid-template-columns: 1fr; gap: 15px; }
    .bento-card { padding: 25px 20px; }
    
    .carousel-slide { flex: 0 0 320px; height: 25vh; min-height: 200px; }
    .carousel-container { padding: 10px calc(50vw - 160px); }
    .carousel-btn { display: flex; width: 36px; height: 36px; background: rgba(0,0,0,0.85); }
    .carousel-btn.prev { left: 5px; }
    .carousel-btn.next { right: 5px; }

    .legal-check { display: block; line-height: 1.8; text-align: center; margin: 30px 0; }
    .legal-check input[type="checkbox"] { vertical-align: middle; margin-right: 5px; margin-bottom: 3px; }

    .btn-tebex { width: 100%; max-width: 400px; padding: 18px 20px; font-size: 1.1rem; }

    .scroll-down-btn {
        display: flex !important;
        position: relative;
        bottom: 0;
        margin: 40px auto 0 auto;
        padding: 10px 0;
    }
    
    .hero .scroll-down-btn { 
        position: absolute; 
        bottom: 6vh; 
        bottom: 6svh; 
        margin: 0 auto; 
    }

    footer { position: relative; bottom: 0; padding: 20px 0; margin-top: 20px;}
    .footer-socials { display: flex; margin-bottom: 5px; }
}

@media (max-width: 480px) {
    .nav-logo img { height: 20px; }
    .btn-nav-discord { padding: 6px 12px; font-size: 0.7rem; }
}