/* ZMIENNE KOLORYSTYCZNE */
:root {
    --bg-dark: #0f0f0f;
    --bg-panel: #1a1a1a;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --accent-color: #ff0055;
    --accent-secondary: #00e5ff;
    --font-main: 'Montserrat', sans-serif;
    --font-tech: 'Roboto Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); background-color: var(--bg-dark); color: var(--text-main); line-height: 1.6; overflow-x: hidden; }

/* UTILS */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }
h1, h2, h3 { color: white; font-weight: 800; text-transform: uppercase; }
.highlight { color: var(--accent-color); }

/* BUTTONS & PRICE */
.btn {
    display: inline-block; padding: 12px 30px; font-weight: 600;
    text-transform: uppercase; text-decoration: none; border-radius: 2px;
    transition: all 0.3s ease; letter-spacing: 1px; cursor: pointer;
}
.btn-primary { background-color: var(--accent-color); color: white; border: 2px solid var(--accent-color); }
.btn-primary:hover { background-color: transparent; color: var(--accent-color); }
.btn-outline { border: 2px solid white; color: white; margin-left: 15px; }
.btn-outline:hover { background-color: white; color: black; }

.price-tag {
    margin-bottom: 30px; font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.1); display: inline-block;
    padding: 10px 20px; border-radius: 5px; border-left: 4px solid var(--accent-secondary);
}
.price-tag .amount { font-weight: 800; color: var(--accent-secondary); margin-left: 10px; }

/* NAVBAR */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 5%; background-color: rgba(15, 15, 15, 0.95);
    position: fixed; width: 100%; z-index: 1000; border-bottom: 1px solid #333;
}
.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -1px; }
.logo .accent { color: var(--accent-secondary); }

.nav-links { list-style: none; display: flex; gap: 30px; align-items: center; }
.nav-links a { text-decoration: none; color: white; font-size: 0.9rem; font-weight: 600; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent-color); }
.btn-nav { border: 1px solid var(--accent-secondary); padding: 8px 20px; border-radius: 20px; color: var(--accent-secondary) !important; }
.btn-nav:hover { background: var(--accent-secondary); color: black !important; }

/* HAMBURGER & MOBILE MENU */
.hamburger { display: none; cursor: pointer; }
.hamburger span { display: block; width: 25px; height: 3px; margin: 5px; background-color: white; transition: all 0.3s ease; }
.lang-switch-mobile { display: none; color: white; margin-top: 20px; }
.lang-switch-mobile button { background: none; border: none; color: white; font-size: 1rem; cursor: pointer; }

/* LANG SWITCHER DESKTOP */
.lang-switch-desktop button {
    background: none; border: 1px solid #444; color: #888;
    padding: 5px 10px; cursor: pointer; font-weight: bold; transition: 0.3s;
}
.lang-switch-desktop button.active-lang { color: white; border-color: var(--accent-secondary); }
.lang-switch-desktop button:hover { color: white; }

/* HERO */
.hero {
    height: 100vh; background-image: url('img/background.jpg'); 
    background-size: cover; background-position: center; display: flex; align-items: center; position: relative;
}
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, rgba(0,0,0,0.9), rgba(0,0,0,0.7)); }
.hero-content { position: relative; z-index: 2; max-width: 800px; padding-left: 5%; }
.hero .tag { background: var(--accent-secondary); color: black; padding: 5px 10px; font-size: 0.8rem; font-weight: bold; display: inline-block; margin-bottom: 15px; }
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; line-height: 1.1; }
.hero .subtitle { font-size: 1.2rem; color: var(--text-main); margin-bottom: 20px; max-width: 600px; }

/* FEATURES */
.section-header { text-align: center; margin-bottom: 60px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.feature-card { background: var(--bg-panel); padding: 40px 30px; border-top: 3px solid var(--accent-color); transition: transform 0.3s; }
.feature-card:hover { transform: translateY(-10px); }
.feature-card .icon { font-size: 3rem; margin-bottom: 20px; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* FLYPACK */
.flypack-section { background: #141414; border-top: 1px solid #333; border-bottom: 1px solid #333; }
.split-layout { display: flex; align-items: center; gap: 50px; }
.split-layout > div { flex: 1; }
.tag-small { color: var(--accent-color); font-weight: bold; letter-spacing: 2px; font-size: 0.8rem; display: block; margin-bottom: 10px; }
.check-list { list-style: none; margin-top: 30px; }
.check-list li { margin-bottom: 15px; padding-left: 30px; position: relative; color: var(--text-main); }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--accent-secondary); font-weight: bold; }
.flypack-img { width: 100%; height: 400px; background-color: #222; display: flex; align-items: center; justify-content: center; border: 1px solid #444; color: #666; }
.flypack-img img { width: 100%; height: 100%; object-fit: cover; }

/* SPECS */
.specs-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.spec-category { background: var(--bg-panel); padding: 30px; border-left: 4px solid var(--accent-secondary); }
.spec-category h3 { color: white; font-size: 1.1rem; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid #333; }
.spec-category ul { list-style: none; }
.spec-category li { margin-bottom: 10px; font-size: 0.9rem; color: var(--text-muted); font-family: var(--font-tech); }
.full-list-btn-container { text-align: center; margin-top: 40px; color: var(--text-muted); font-style: italic; }

/* GALLERY */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 15px; }
.gallery-item { overflow: hidden; height: 250px; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.lightbox { display: none; position: fixed; z-index: 2000; padding-top: 50px; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.95); }
.lightbox-content { margin: auto; display: block; width: 80%; max-width: 1200px; max-height: 85vh; object-fit: contain; }
.close { position: absolute; top: 20px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; cursor: pointer; }
#caption { margin: auto; display: block; width: 80%; text-align: center; color: #ccc; padding: 10px 0; }

/* CONTACT & FOOTER */
.footer { background: black; border-top: 1px solid #333; }
.contact-box { max-width: 700px; margin: 0 auto; text-align: center; }
.contact-details { display: flex; justify-content: center; gap: 40px; margin: 30px 0; flex-wrap: wrap; }
.contact-item { font-size: 1.2rem; }
.contact-item a { color: white; text-decoration: none; margin-left: 10px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 15px; margin-bottom: 15px; background: #222; border: 1px solid #444; color: white; font-family: var(--font-main); }
.contact-form button { width: 100%; border: none; }
.copyright { margin-top: 60px; text-align: center; font-size: 0.8rem; color: #555; }

/* RESPONSIVE DESIGN (MOBILE) */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero-content { padding-left: 20px; padding-right: 20px; }
    .hero-btns { display: flex; flex-direction: column; gap: 15px; }
    .btn-outline { margin-left: 0; }
    
    .hamburger { display: block; z-index: 1001; }
    
    .nav-links {
        position: fixed; right: -100%; top: 0;
        height: 100vh; width: 70%;
        background-color: #111;
        flex-direction: column; justify-content: center;
        transition: 0.4s ease; box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    }
    
    .nav-links.active { right: 0; }
    .lang-switch-desktop { display: none; }
    .lang-switch-mobile { display: block; text-align: center; }
    
    .split-layout { flex-direction: column; }
    .contact-details { flex-direction: column; gap: 20px; }
}

/* --- GALERIA --- */

.gallery-grid {
    display: grid;
    /* Zwiększyłem minimalną szerokość do 280px dla lepszego wyglądu */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px; /* Większy odstęp między zdjęciami */
    margin-top: 30px;
    padding: 10px; /* Margines wewnętrzny, żeby cienie nie były ucinane */
}

.gallery-item {
    display: block; /* KLUCZOWE: Sprawia, że link <a> jest pudełkiem, a nie tekstem */
    width: 100%;    /* Wypełnia komórkę siatki w 100% */
    aspect-ratio: 4/3; /* Wymusza proporcje 4:3 (prostokąt) */
    
    position: relative;
    overflow: hidden; /* To naprawia "nachodzenie" - ucina wszystko co wystaje */
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.5); /* Cień dla głębi */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 229, 255, 0.25); /* Poświata przy najechaniu */
    z-index: 2; /* Sprawia, że powiększony element jest nad innymi */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Skaluje zdjęcie, żeby wypełniło kafelkę bez deformacji */
    display: block;    /* Usuwa "pusty pasek" pod zdjęciem */
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1); /* Lekki zoom zdjęcia wewnątrz ramki */
}