/* =========================================
   DronTech - STYLE SHEET
   =========================================
   SPIS TREŚCI:
   1.  VARIABLES (Zmienne kolorów)
   2.  RESET & BASE (Podstawy i typografia)
   3.  LAYOUT & UTILITIES (Kontenery, tagi, spacing)
   4.  COMPONENTS (Przyciski)
   5.  HEADER & NAVBAR (Nawigacja)
   6.  HERO SECTIONS (Nagłówki stron)
   7.  FOOTER (Stopka)
   
   --- PODSTRONY ---
   8.  PAGE: HOME (Sekcje zaufania, statystyki)
   9.  PAGE: ANGEBOT (Karty Fancy Cards)
   10. PAGE: 3D MODELLE (Ciemny motyw, galeria)
   11. PAGE: ÜBER UNS (Grid informacyjny, zespół)
   12. PAGE: KONTAKT (Formularze)
   
   13. RESPONSIVE (Media Queries)
   ========================================= */

/* =========================================
   0. MOBILE MENU STYLES
   ========================================= */

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 2000; /* Musi być nad menu */
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--light); /* Białe kreski na starcie */
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

header.scrolled .mobile-menu-btn span {
    background-color: var(--dark);
}
body.dark-mode header.scrolled .mobile-menu-btn span {
    background-color: var(--light);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--light); /* X zawsze biały na ciemnym menu */
}
.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--light);
}

body.no-scroll {
    overflow: hidden;
}


/* =========================================
   1. VARIABLES
   ========================================= */
:root {
    --primary: #f59e0b; 
    --primary-hover: #d97706;
    --dark: #0f172a;
    --darker: #020617;
    --light: #ffffff;
    --gray-light: #f1f5f9;
    --text-muted: #64748b;
    --border: rgba(0,0,0,0.08);
}

/* =========================================
   2. RESET & BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Klasa dla ciemnych podstron (np. 3D Modelle) */
body.dark-mode {
    background-color: var(--darker);
    color: var(--light);
}

img {
    max-width: 100%;
    display: block;
}

h1, h2, h3, h4 {
    line-height: 1.1;
    font-weight: 800;
}

p {
    line-height: 1.6;
}

/* =========================================
   3. LAYOUT & UTILITIES
   ========================================= */
.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding { padding: 100px 0; }
.text-center { text-align: center; }

/* Tag nad nagłówkiem (np. "SHOWROOM") */
.section-tag {
    display: inline-block;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 15px;
    background: rgba(245, 158, 11, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
}

h2 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    margin-bottom: 20px;
}

/* =========================================
   4. COMPONENTS (Buttons)
   ========================================= */
.btn-group { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

.btn { 
    padding: 18px 36px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 700; 
    display: inline-block; 
    transition: 0.3s; 
    cursor: pointer; 
    border: none; 
    font-size: 1rem; 
}

.btn-primary { 
    background-color: var(--primary); 
    color: white; 
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3); 
}
.btn-primary:hover { 
    transform: translateY(-3px); 
    background-color: var(--primary-hover); 
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.4); 
}

.btn-secondary { 
    background: rgba(255,255,255,0.1); 
    color: white; 
    border: 1px solid rgba(255,255,255,0.2); 
    backdrop-filter: blur(10px); 
}
.btn-secondary:hover { 
    background: white; 
    color: var(--dark); 
}

/* Lista z "ptaszkami" (używana w Info) */
.check-list { list-style: none; margin: 30px 0 40px 0; padding: 0; }
.check-list li { position: relative; padding-left: 40px; margin-bottom: 15px; color: var(--dark); font-weight: 600; line-height: 1.4; font-size: 1.05rem; }
.check-list li::before {
    content: "✓";
    position: absolute; left: 0; top: 0;
    width: 28px; height: 28px;
    background: rgba(245, 158, 11, 0.15);
    color: var(--primary);
    border-radius: 50%;
    text-align: center; line-height: 28px;
    font-weight: 800; font-size: 14px;
}

/* =========================================
   5. HEADER & NAVBAR
   ========================================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 5%;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 30px rgba(0,0,0,0.03);
}

/* Specjalny styl nagłówka dla trybu ciemnego */
body.dark-mode header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--light);
    transition: color 0.3s;
    text-decoration: none;
}

/* Kolor linków w menu */
nav ul { display: flex; gap: 30px; list-style: none; }
nav ul li a { text-decoration: none; color: var(--light); font-weight: 600; transition: 0.3s; font-size: 15px; }
nav ul li a.active, nav ul li a:hover { color: var(--primary); }

/* Zmiana kolorów po przewinięciu (tylko na jasnych stronach) */
body:not(.dark-mode) header.scrolled .logo { color: var(--dark); }
body:not(.dark-mode) header.scrolled nav ul li a { color: var(--dark); }
body:not(.dark-mode) header.scrolled nav ul li a.active { color: var(--primary); }

/* =========================================
   6. HERO SECTIONS
   ========================================= */

.hero, .subpage-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    color: white;
    overflow: hidden;
}

/* Bazowy Subpage Hero */
.subpage-hero {
    height: 50vh;
    min-height: 400px;
    background-color: var(--dark);
    margin-bottom: 60px;
}

/* Home Hero */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.4)), url('/assets/hero/index.webp');
    background-size: cover;
    background-position: right;
}

#heroText {
    position: relative;
    z-index: 2;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

#shatterCanvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
}
/* ==================== HERO DLA POSZCZEGÓLNYCH PODSTRON ==================== */

.subpage-hero[data-hero="equipment"] {
    background-image: linear-gradient(rgba(15, 23, 42, 0.65), rgba(15, 23, 42, 0.65)),
                      url('/assets/hero/equipment.webp');
}

.subpage-hero[data-hero="uberuns"] {
    background-image: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)),
                      url('/assets/hero/uberuns.webp');
}

.subpage-hero[data-hero="kontakt"] {
    background-image: linear-gradient(rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.6)),
                      url('/assets/hero/kontakt.webp');
}

.subpage-hero[data-hero="leistungen"] {
    background-image: linear-gradient(rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.55)), url('/assets/hero/leistungen.webp');
    background-position: bottom;
}

.hero-content {
    text-align: center;
    max-width: 1000px;
    z-index: 5;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.divider { position: absolute; bottom: -1px; left: 0; width: 100vw; line-height: 0; z-index: 10; pointer-events: none; }
.divider img { width: 100vw; }

/* =========================================
   7. FOOTER
   ========================================= */
.footer-wrapper { background-color: transparent; position: relative; z-index: 10; margin-top: auto; }
.footer-separator-tech { width: 100%; height: 100px; background: transparent; pointer-events: none; display: block; }
.footer-separator-tech svg { width: 100%; height: 100%; display: block; fill: #050505; }
footer { background-color: #050505; color: #cbd5e1; padding: 0 0 40px 0; font-size: 0.95rem; }
.accent-line { stroke: var(--primary); stroke-width: 2px; vector-effect: non-scaling-stroke; }
.footer-container { max-width: 1400px; margin: 0 auto; padding: 40px 20px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1.5fr 1fr; gap: 60px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 50px; }
.footer-logo-text { font-size: 36px; font-weight: 800; color: white; letter-spacing: -1px; line-height: 1; }
.footer-logo-text span { color: var(--primary); }
.footer-col h4 { color: white; font-size: 1.2rem; margin-bottom: 30px; position: relative; display: inline-block; font-weight: 700; }
.footer-links li { display: flex; align-items: center; margin-bottom: 15px; }
.footer-links a { text-decoration: none; color: #94a3b8; transition: 0.3s; display: flex; align-items: center; gap: 10px; font-size: 1rem; }
.footer-links a:hover { color: var(--primary); transform: translateX(5px); }
.social-row { display: flex; gap: 15px; margin-top: 30px; }
.social-icon { width: 45px; height: 45px; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; border-radius: 10px; color: white; transition: 0.3s; border: 1px solid rgba(255,255,255,0.05); text-decoration: none; }
.social-icon svg { width: 22px; height: 22px; fill: white; transition: 0.3s; }
.social-icon:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-5px); }
.contact-icon-svg { width: 20px; height: 20px; fill: var(--primary); margin-right: 12px; flex-shrink: 0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 30px; font-size: 0.9rem; color: #64748b; }
.footer-bottom-links a { color: #64748b; text-decoration: none; margin-left: 30px; transition: 0.3s; }
.footer-bottom-links a:hover { color: white; }


/* =========================================
   8. PAGE: HOME (Index)
   ========================================= */
.trust-section { padding: 80px 0; background: var(--light); border-bottom: 1px solid var(--border); }
.trust-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; align-items: center; }
.experience-box h3 { font-size: 3.5rem; font-weight: 800; color: var(--primary); line-height: 1; margin: 0; }
.experience-box span { font-size: 1.5rem; font-weight: 700; color: var(--dark); text-transform: uppercase; display: block; }
.certs-box { display: flex; gap: 20px; flex-wrap: wrap; justify-content: flex-end; }
.cert-badge { background: var(--gray-light); padding: 15px 30px; border-radius: 12px; font-weight: 600; display: flex; align-items: center; gap: 12px; font-size: 1.1rem; }
.cert-badge svg { width: 24px; fill: var(--primary); }

/* Kontener sekcji */
.offer-section {
    background: #fff; /* Lekkie tło, aby karty się odcinały */
}

/* Siatka */
.offer-section .offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

/* Karta */
.offer-section .offer-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.05);
}

.offer-section .offer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}

/* Kontener na wideo */
/* 1. Zmieniamy tło na przezroczyste lub białe, żeby nic nie przebijało */
.offer-section .offer-video-box {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: transparent; /* Zmienione z #000 */
    position: relative;
    /* Dodajemy to, żeby wymusić na przeglądarce lepsze renderowanie rogów */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

/* 2. Dodajemy display: block i lekkie przeskalowanie, żeby wideo "weszło" pod krawędź */
.offer-section .offer-video-box video {
    display: block; /* Usuwa domyślny odstęp inline-block */
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
    /* Lekki scale (1.02) sprawia, że wideo minimalnie nachodzi na krawędzie, 
       eliminując białe lub czarne kreski */
    transform: scale(1.02); 
}

.offer-section .offer-card:hover .offer-video-box video {
    opacity: 1;
    transform: scale(1.05); /* Efekt zoomu przy hoverze */
}

/* Treść pod wideo */
.offer-section .offer-content {
    padding: 35px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.offer-section .offer-content h3 {
    font-size: 1.5rem;
    color: #0f172a;
    margin-bottom: 15px;
    font-weight: 700;
}

.offer-section .offer-content p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    min-height: 80px; /* Zapewnia równą wysokość kart */
}

/* Przycisk w stylu "obraz.jpg" ale ładniejszy */
.offer-section .offer-btn {
    align-self: center; /* Wyśrodkowanie jak na szkicu */
    padding: 12px 35px;
    border: 2px solid #0f172a;
    color: #0f172a;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.offer-section .offer-btn:hover {
    background: #0f172a;
    color: #ffffff;
    transform: scale(1.05);
}

/* RWD dla mniejszych ekranów */
@media (max-width: 768px) {
    .offer-section .offer-grid {
        grid-template-columns: 1fr;
    }
}




/* Tło i układ główny sekcji */
.showroom-section {
    background: #070c18;
    color: white;
    position: relative;
    padding-bottom: 150px;
}

/* --- NOWE ZDJĘCIE UCIĘTE NA DOLE (JAK CZERWONA LINIA) --- */
.hero-polygonal-container {
    width: 100%;
    height: 750px; /* Możesz zwiększyć lub zmniejszyć zależnie od tego jak duże chcesz zdjęcie */
    clip-path: url(#bottom-arch-cut); /* To odwołanie do nożyczek SVG w HTML */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-polygonal-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Zdjęcie wypełni cały ekran, nie zniekształci się */
    object-position: center 30%;
}

/* Odstęp dla tekstu, żeby wszedł ładnie pod ucięte zdjęcie */
.showroom-content {
    position: relative;
    z-index: 2;
    padding-top: 750px; /* Równe wysokości zdjęcia, żeby treść zaczynała się zaraz pod łukiem */
}

/* Subtelna poświata w tle między zdjęciem a pierwszym modelem */
.showroom-section::before {
    content: ""; position: absolute; width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(245,158,11,0.08), transparent 60%);
    top: 600px; left: -200px; pointer-events: none; z-index: 0;
}

.wave-separator-bottom { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; z-index: 2; }
.wave-separator-bottom svg { display: block; width: 100%; height: 150px; }

/* Intro */
.showroom-intro { text-align: center; max-width: 1000px; margin: 0 auto 120px auto; }
.showroom-intro h2 { font-size: clamp(2rem, 4vw, 2.5rem); color: #ffffff; line-height: 1.2; }

/* Bloki zawartości */
.showroom-block { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-bottom: 160px; align-items: center; }
.showroom-block.reverse .showroom-media { order: 2; }
.showroom-block.reverse .showroom-text { order: 1; }

/* Okna na modele i zdjęcia */
.showroom-media {
    width: 100%; height: 500px; position: relative; border-radius: 20px;
    background: radial-gradient(circle at center, #1e293b 0%, #070c18 70%);
    box-shadow: inset 0 0 80px rgba(0,0,0,0.5); overflow: hidden;
}

/* Modele 3D i Poster */
model-viewer { width: 100%; height: 100%; --poster-color: transparent; }
/* Kontener postera - teraz na całą wysokość i szerokość */
/* Kontener na całe okno modelu */
.dark-poster-ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Żeby zdjęcie nie wystawało */
}

/* Zdjęcie jako tło - wypełnia 100% kwadratu */
.poster-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Wypełnia cały kwadrat */
    z-index: 1;
}

/* PRZYCISK - teraz ustawiony absolutnie na dole, na środku */
.load-model-btn {
    position: absolute;
    bottom: 30px;       /* Odstęp od dołu */
    left: 50%;          /* Przesuń do połowy szerokości */
    transform: translateX(-50%); /* Cofnij o połowę własnej szerokości (idealny środek) */
    
    z-index: 2;         /* Musi być nad zdjęciem */
    
    /* Wygląd przycisku */
    background-color: #ffffff;
    color: #070c18;
    border: none;
    padding: 15px 35px;
    font-size: 14px;
    font-weight: 800;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    white-space: nowrap; /* Żeby tekst się nie zawijał */
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}

.load-model-btn:hover {
    background-color: #f59e0b;
    color: #fff;
    bottom: 35px; /* Lekki ruch do góry przy najeździe */
}

/* Styl dla tekstów */
.showroom-text p { color: #94a3b8; font-size: 1.15rem; line-height: 1.7; margin-bottom: 30px; }
.showroom-text h2 { font-size: 2rem;}
.location-highlight {
    color: #4ade80; font-style: italic; font-size: 1.05rem; line-height: 1.5;
    border-left: 3px solid #4ade80; padding-left: 15px;
}

/* Wspólny styl dla kontenera statycznego zdjęcia */
.static-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative; /* Kluczowe dla pozycjonowania przycisku */
    overflow: hidden;
}

.static-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* PRZYCISK MEHR INFOS - Styl identyczny jak load-model-btn */
.more-info-btn, .load-model-btn {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    
    background-color: #ffffff;
    color: #070c18;
    text-decoration: none; /* Usuwa podkreślenie linku */
    
    padding: 15px 35px;
    font-size: 14px;
    font-weight: 800;
    border-radius: 8px;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    border: none;
}

/* Efekt najechania dla obu typów przycisków */
.more-info-btn:hover, .load-model-btn:hover {
    background-color: #f59e0b;
    color: #fff;
    bottom: 35px;
    transform: translateX(-50%) scale(1.05);
}

/* Loader 3D */
.custom-loader {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: rgba(197, 197, 197, 0.8); z-index: 10; transition: opacity 0.5s ease;
}
.spinner { width: 50px; height: 50px; border: 4px solid rgba(255, 255, 255, 0.1); border-top-color: #f59e0b; border-radius: 50%; animation: spin 1s linear infinite; }
.progress-text { margin-top: 15px; font-size: 1.1rem; font-weight: 600; color: #ffffff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================
   9. PAGE: ANGEBOT (Offer)
   ========================================= */
.fancy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-bottom: 100px; padding: 25px;}
.fancy-card {
    position: relative; background-color: var(--darker); border-radius: 30px;
    overflow: hidden; height: 550px; box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease; display: flex; flex-direction: column;
}
.fancy-card:hover { transform: translateY(-10px); box-shadow: 0 25px 60px rgba(245, 158, 11, 0.15); }
.fancy-image { height: 55%; width: 100%; background-size: cover; background-position: center; transition: transform 0.5s ease; }
.fancy-card:hover .fancy-image { transform: scale(1.05); }

.fancy-content {
    position: relative; height: 46%; background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 20px 40px 40px 40px; display: flex; flex-direction: column; justify-content: space-between; z-index: 2;
}
.fancy-wave-separator { position: absolute; top: -40px; left: 0; width: 100%; height: 41px; z-index: 3; pointer-events: none; }
.fancy-wave-separator path { fill: #1e293b; }
.fancy-floating-icon {
    position: absolute; top: -35px; left: 40px; width: 70px; height: 70px;
    background: linear-gradient(135deg, #2d3748, #0f172a); border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3); border: 2px solid var(--primary); z-index: 4;
}
.fancy-floating-icon svg { width: 32px; height: 32px; fill: var(--primary); }
.fancy-text-wrap { margin-top: 35px; }
.fancy-content h3 { font-size: 1.8rem; color: white; margin-bottom: 10px; font-weight: 800; }
.fancy-content p { font-size: 1rem; color: #94a3b8; }
.fancy-btn-wrap { text-align: right; }
.fancy-btn {
    display: inline-block; padding: 12px 30px; border: 1px solid var(--primary);
    color: var(--primary); text-decoration: none; font-weight: 600;
    border-radius: 8px; transition: 0.3s; font-size: 0.9rem; text-transform: uppercase;
}
.fancy-btn:hover { background: var(--primary); color: white; }

/* =========================================
   EQUIPMENT
   ========================================= */


.df-fleet {
    display: flex;
    flex-direction: column;
    gap: 64px;
    margin-top: 48px;
}

.df-category-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    color: #16a34a;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
}

.df-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.df-arrow {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #f59e0b;
    background: #ffffff;
    color: #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.df-arrow:hover {
    background: #f59e0b;
    color: #ffffff;
    transform: scale(1.06);
}

.df-arrow svg {
    width: 20px;
    height: 20px;
}

.df-slides {
    flex: 1;
    min-width: 0;
}
 
.df-slide {
    display: none;
    align-items: flex-start;
    gap: 32px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
 
.df-slide.is-active {
    display: flex;
}
 
.df-image {
    width: 320px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
    position: relative;
    /* Nowe ustawienia */
    min-height: 240px;
    max-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.df-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}
 
.df-image img.df-img-broken {
    display: none;
}
 
.df-image-fallback {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #9ca3af;
    font-size: 0.85rem;
    text-align: center;
    padding: 20px;
    background: #f8fafc;
}

.df-image img.df-img-broken + .df-image-fallback {
    display: flex;
}
 
.df-image-fallback svg {
    width: 32px;
    height: 32px;
    opacity: 0.6;
}

.df-info {
    flex: 1;
    min-width: 0;
}

.df-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

.df-desc {
    font-size: 1rem;
    line-height: 1.65;
    color: #4b5563;
}

.df-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.df-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: #d1d5db;
    cursor: pointer;
    padding: 0;
    transition: background .2s ease, transform .2s ease;
}

.df-dot.is-active {
    background: #f59e0b;
    transform: scale(1.25);
}

@media (max-width: 1050px) {
    .df-slide {
        flex-direction: column;
        gap: 24px;
    }

    .df-image {
        width: 100%;
        max-height: 420px;        /* trochę więcej na mobile */
        min-height: 260px;
    }

    .df-arrow {
        width: 40px;
        height: 40px;
    }
}
@media (max-width: 640px) {
    .df-image {
        max-height: 380px;
    }
}


/* =========================================
   10. PAGE: 3D MODELLE (Dark Mode Page)
   ========================================= */
/* Siatka galerii 3D */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-top: 50px; margin-bottom: 100px; }
.model-card {
    background: #0f172a; border: 1px solid rgba(255,255,255,0.1); border-radius: 40px;
    height: 550px; overflow: hidden; position: relative; transition: 0.3s;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.model-card model-viewer { width: 100%; height: 100%; --poster-color: transparent; background: radial-gradient(circle at center, #1e293b 0%, #0f172a 70%); }
.model-card:hover { border-color: var(--primary); transform: translateY(-5px); box-shadow: 0 30px 80px rgba(245, 158, 11, 0.1); }

.model-info-overlay {
    position: absolute; bottom: 25px; left: 25px; right: 25px;
    background: rgba(15, 23, 42, 0.9); padding: 25px; border-radius: 20px;
    backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.1);
}
.model-info-overlay h3 { color: white; font-size: 1.4rem; }
.model-info-overlay p { color: #a8a8a8;;}

/* =========================================
   11. PAGE: ÜBER UNS (Info & Team)
   ========================================= */
.info-section { background-color: var(--light); padding: 120px 0; position: relative; z-index: 5; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.info-sidebar img { width: 100%; border-radius: 30px; box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.info-content h2 { color: var(--dark); font-size: 2.5rem; margin-bottom: 20px; }
.info-content h3 { font-size: 1.5rem; margin: 30px 0 15px; color: var(--primary); }


/* =========================================
   12. PAGE: KONTAKT
   ========================================= */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-bottom: 100px; }
.form-box { background: white; padding: 50px; border-radius: 30px; box-shadow: 0 15px 50px rgba(0,0,0,0.05); border: 1px solid var(--border); }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 10px; font-weight: 700; color: var(--dark); }
.form-control { width: 100%; padding: 18px; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 1rem; transition: 0.3s; background: #fff; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1); }
textarea.form-control { resize: vertical; min-height: 150px; }

/* =========================================
   13. RESPONSIVE MEDIA QUERIES
   ========================================= */
@media (max-width: 1100px) {
    .hero-content h1 { font-size: 4rem; }
    .showroom-block { gap: 60px; }
    .gallery-grid { gap: 30px; }
    .model-card { height: 450px; }
}

@media (max-width: 900px) {
    nav { display: none; } /* Uproszczenie na potrzeby demo - w produkcji dodać burger menu */
    .hero-content h1 { font-size: 3rem; }
    .trust-grid { grid-template-columns: 1fr; text-align: center; }
    .certs-box { justify-content: center; margin-top: 20px; }
    /* Stack layouts to single column */
    .offer-grid, .fancy-grid, .gallery-grid, .showroom-block, .info-grid, .contact-wrapper, .footer-grid { grid-template-columns: 1fr; }
    
    .showroom-model { position: relative; top: unset; height: 400px; margin-bottom: 40px; order: -1 !important; }
    .showroom-block.reverse .showroom-text { order: unset; }
    .fancy-card { height: 450px; }
    .info-sidebar { order: 1; margin-bottom: 40px; }
    .footer-grid { gap: 40px; }
}
@media (max-width: 700px){
    .fancy-btn-wrap {display: none;}

}
@media (max-width: 600px) {
    .subpage-hero { height: 40vh; min-height: 300px; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
    .footer-bottom-links a { margin: 0 10px; }
}

/* --- MEDIA QUERY (Telefony i Tablety) --- */
@media (max-width: 900px) {
    /* Pokazujemy przycisk */
    .mobile-menu-btn {
        display: flex;
    }

    /* Stylujemy nawigację jako overlay na cały ekran */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%; /* Domyślnie schowane poza ekranem z prawej */
        width: 100%;
        height: 100vh;
        background-color: rgba(15, 23, 42, 0.98); /* Ciemne tło */
        backdrop-filter: blur(10px);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1500;
    }

    /* Klasa dodawana przez JS - wjazd menu */
    .nav-menu.active {
        right: 0;
    }

    /* Układ linków w pionie */
    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        text-align: center;
    }

    .nav-menu ul li a {
        font-size: 1.5rem; /* Większe litery na telefonie */
        font-weight: 700;
        color: var(--light);
    }
    
    /* Na białym navbarze linki też muszą być białe w trybie mobilnym (bo tło jest ciemne) */
    header.scrolled nav ul li a {
        color: var(--light); 
    }
}