/*
Theme Name: Flotowy
Author: Damian Rowicki
Description: Motyw indywidualny dla firmy Flotowy.
Version: 2.0 (Cleaned & Pinned)
*/

/* 1. IMPORT FONTÓW */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- RESET & GLOBALNE --- */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html { 
    scroll-behavior: smooth; 
}

body { 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; 
    color: #1d1d1f; 
    line-height: 1.5; 
    background: #fbfbfd; 
}

input, textarea, select, button {
    font-family: 'Inter', -apple-system, sans-serif;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
img { max-width: 100%; height: auto; display: block; }

/* --- HEADER (STICKY + BLUR) --- */
.site-header {
    width: 100%;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10005;
    border-bottom: 1px solid #f0f0f0;
    height: 70px;
}

/* Korekta dla paska admina WordPressa */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* 3 sekcje headera */
.header-left { flex: 1; display: flex; justify-content: flex-start; }
.header-center { flex: 2; display: flex; justify-content: center; }
.header-right { flex: 1; display: flex; justify-content: flex-end; }

/* Logo */
.logo a {
    font-weight: 800;
    font-size: 20px;
    text-transform: uppercase;
    color: #000;
    letter-spacing: -0.5px;
}

/* Menu */
.header-center nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}
.header-center nav a {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    opacity: 0.8;
}
.header-center nav a:hover { opacity: 1; color: #000; }

/* Przycisk w Headerze */
.btn-header {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.btn-header:hover { background: #333; transform: scale(1.02); }


/* --- HERO SECTION (ABSOLUTE POSITIONING FIX) --- */

/* 1. Tor animacji (długi scroll) */
.hero-track {
    height: 350vh;
    position: relative;
}

/* 2. Scena (Ekran) */
.hero-sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: #fbfbfd;
    /* Ważne: Rodzic dla elementów absolute */
    position: sticky; 
}

/* 3. TEKST HERO (Startuje w górnej części ekranu) */
.hero-section {
    position: absolute;
    top: 22%; /* Ustawiamy go w 1/3 wysokości ekranu */
    left: 50%;
    transform: translate(-50%, -50%);
    
    z-index: 10; /* Nad obrazkiem */
    width: 100%;
    max-width: 900px;
    padding: 0 20px;
    text-align: center;
    will-change: opacity, transform;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.05;
    color: #1d1d1f;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}
.hero-subtitle {
    font-size: 21px;
    color: #86868b;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

/* 4. OBRAZEK (Startuje w dolnej części ekranu) */
#zoom-hero-container {
    position: absolute;
    top: 60%; /* Startuje niżej, pod tekstem */
    left: 50%;
    transform: translate(-50%, -50%); /* Centrowanie punktu zaczepienia */
    
    width: 50vw;   /* Startowa szerokość */
    height: 35vh;  /* Startowa wysokość */
    border-radius: 24px;
    
    overflow: hidden;
    z-index: 5;
    box-shadow: 0 40px 80px rgba(0,0,0,0.15);
    
    will-change: width, height, top, border-radius;
}

.hero-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsywność */
@media (max-width: 768px) {
    .hero-section { top: 25%; }
    .hero-title { font-size: 32px; }
    #zoom-hero-container {
        width: 80vw;
        height: 30vh;
        top: 75%;
    }
}

/* --- PRZYCISKI GLOBALNE (CAPSULES) --- */
.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.btn-primary-capsule {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 14px 32px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    border: 0;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}
.btn-primary-capsule:hover {
    background: #333;
    transform: scale(1.03);
}

.link-secondary {
    display: inline-block;
    color: #0066cc;
    font-size: 15px;
    font-weight: 500;
}
.link-secondary:hover { text-decoration: underline; }


/* --- UKŁAD GŁÓWNY & SIATKA OFERT --- */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

/* Karta Samochodu */
.car-card { 
    background: #fff; 
    border: 1px solid #eee; 
    transition: 0.3s; 
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.car-card:hover { 
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); 
    transform: translateY(-5px); 
    border-color: transparent;
}

.img-wrapper {
    height: 220px;
    overflow: hidden;
    background: #f0f0f0;
}
.car-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: 0.4s ease;
}
.car-card:hover .car-img { transform: scale(1.05); }

.car-info { padding: 25px; }
.car-title { font-size: 18px; margin-bottom: 8px; font-weight: 700; color: #111; }
.car-meta { font-size: 13px; color: #888; display: flex; gap: 10px; margin-bottom: 15px; font-weight: 500; }
.car-price { font-weight: 700; color: #000; font-size: 17px; }

/* --- SEKCJA OFERTY (PREMIUM TYPOGRAPHY) --- */

/* 1. Odstępy kontenera */
#oferta {
    padding-top: 140px !important; /* Dużo więcej powietrza od góry */
    padding-bottom: 60px;
}

/* 2. Nagłówek Sekcji (Styl Apple) */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 70px auto; /* Centrowanie i odstęp od kafelków */
}

.section-title {
    font-size: 42px;      /* Duży, czytelny rozmiar */
    font-weight: 600;     /* Semi-bold wygląda bardziej nowocześnie niż Bold */
    color: #1d1d1f;       /* Apple Black */
    letter-spacing: -0.02em; /* Lekkie ściśnięcie liter - klucz do "drogiego" wyglądu */
    line-height: 1.1;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 20px;      /* Większy tekst opisu */
    line-height: 1.5;
    color: #86868b;       /* Apple Grey */
    font-weight: 400;
}

/* Responsywność dla nagłówków */
@media (max-width: 768px) {
    #oferta { padding-top: 80px !important; }
    .section-title { font-size: 32px; }
    .section-subtitle { font-size: 17px; }
}

/* --- POJEDYNCZY SAMOCHÓD (SINGLE) --- */
.car-layout {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}
.car-details-col { flex: 1; }
.car-gallery-col { flex: 1; position: sticky; top: 100px; }

/* Kafelki danych */
.car-tile {
    background: #fff;
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    margin-bottom: 25px;
}
.car-tile h3 {
    font-size: 14px;
    text-transform: uppercase;
    color: #888;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 12px;
    margin-bottom: 20px;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Lista specyfikacji */
.spec-list { list-style: none; padding: 0; }
.spec-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f9f9f9;
    font-size: 15px;
}
.spec-list li:last-child { border-bottom: 0; }
.spec-list span { color: #888; }
.spec-list strong { color: #111; }

/* Przycisk Wniosku (Sticky w Single) */
.btn-wniosek-sticky {
    display: block;
    background: #000;
    color: white;
    text-align: center;
    padding: 18px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    margin-top: 10px;
    transition: 0.3s;
}
.btn-wniosek-sticky:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}


/* --- GALERIA --- */
.main-car-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    cursor: zoom-in;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.thumb-box {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3; 
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #eee;
    cursor: pointer;
}
.thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.thumb-box:hover .thumb-img {
    transform: scale(1.05);
    opacity: 0.9;
}


/* --- FORMULARZE (CONTACT FORM 7 & SPLIT) --- */
.flota-split-container {
    display: flex;
    gap: 40px;
    justify-content: space-between;
    align-items: stretch;
}

.form-tile {
    flex: 1;
    background: #fff;
    padding: 40px;
    border: 1px solid #eee;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.form-tile h3 {
    margin-top: 0;
    font-size: 20px;
    border-left: 4px solid #000;
    padding-left: 15px;
    margin-bottom: 5px;
}
.section-desc { color: #999; font-size: 13px; margin-bottom: 30px; margin-left: 19px; }

.form-row { display: flex; gap: 20px; margin-bottom: 25px; }
.form-col { flex: 1; display: flex; flex-direction: column; }

/* Inputy */
.flota-split-container label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #bbb;
    margin-bottom: 6px;
}
.flota-split-container input[type="text"],
.flota-split-container input[type="email"],
.flota-split-container input[type="tel"],
.flota-split-container input[type="url"],
.flota-split-container select,
.flota-split-container textarea {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #e1e1e1;
    padding: 10px 0;
    font-size: 15px;
    color: #000;
    background: transparent;
    transition: 0.3s;
    border-radius: 0;
}
.flota-split-container input:focus,
.flota-split-container select:focus,
.flota-split-container textarea:focus {
    outline: none;
    border-bottom: 2px solid #000;
}
.flota-split-container textarea { min-height: 100px; resize: vertical; }

.flota-split-container input[type="submit"] {
    background: #000;
    color: #fff;
    border: 0;
    padding: 18px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    width: 100%;
    cursor: pointer;
    border-radius: 8px;
    margin-top: auto;
}
.flota-split-container input[type="submit"]:hover { background: #333; }

/* Komunikaty CF7 */
.wpcf7 form .wpcf7-response-output {
    margin: 20px 0 0 0 !important;
    padding: 15px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    text-align: center;
    border: 0 !important;
}
.wpcf7 form.sent .wpcf7-response-output {
    background-color: #1d1d1f !important;
    color: #fff !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}
.wpcf7 form.invalid .wpcf7-response-output {
    background-color: #fff5f5 !important;
    color: #d63031 !important;
}
span.wpcf7-not-valid-tip { font-size: 11px; color: #d63031; margin-top: 5px; }


/* --- FOOTER --- */
footer { 
    background: #111; 
    color: #fff; 
    padding: 60px 20px; 
    margin-top: 80px; 
    font-size: 14px; 
}
.footer-flex { 
    display: flex; 
    justify-content: space-between; 
    max-width: 1200px; 
    margin: 0 auto; 
    gap: 40px;
}


/* --- RESPONSYWNOŚĆ (MOBILE & TABLET) --- */
@media (max-width: 900px) {
    .car-grid { grid-template-columns: repeat(2, 1fr); }
    .flota-split-container { flex-direction: column; }
    .car-layout { flex-direction: column-reverse; }
    .car-gallery-col { position: static; width: 100%; }
}

@media (max-width: 768px) {
    /* Header */
    .header-center { display: none; }
    .header-inner { padding: 0 15px; }
    
    /* Hero */
    .hero-track { height: 200vh; }
    .hero-title { font-size: 36px; }
    .hero-subtitle { font-size: 18px; }
    .hero-actions { flex-direction: column; width: 100%; }
    .btn-primary-capsule { width: 100%; text-align: center; }
    
    /* Zoom Image Mobile */
    #zoom-hero-container { width: 90%; height: 40vh; margin-top: 30px; }

    /* Grid */
    .car-grid { grid-template-columns: 1fr; }
    
    /* Footer */
    .footer-flex { flex-direction: column; gap: 30px; }
}

/* --- MOBILE MENU & HAMBURGER (IPHONE & Z-INDEX FIX) --- */

/* Domyślnie ukryte na desktopie */
.header-mobile-trigger, 
#mobile-menu-overlay {
    display: none;
}

@media (max-width: 768px) {
    
    /* Ukrywamy elementy desktopowe */
    .desktop-only { display: none !important; }
    
    /* --- 1. NAPRAWA ZNIKAJĄCEGO LOGO I X --- */
    
    /* Header musi być najwyżej w hierarchii */
    .site-header {
        z-index: 10005 !important; /* Bardzo wysoko */
        position: sticky;
        top: 0;
        /* Jeśli menu otwarte, tło headera staje się przezroczyste, żeby nie zasłaniało białego menu */
        transition: background 0.3s;
    }
    
    body.menu-open .site-header {
        background: transparent !important; /* Kluczowe: tło znika, zostaje tylko logo i X */
        backdrop-filter: none !important;
        border-bottom: 0 !important;
    }

    /* Logo i Trigger muszą być "klikalne" i widoczne */
    .header-left, 
    .header-mobile-trigger {
        position: relative;
        z-index: 10006 !important; /* Wyżej niż samo menu */
    }
    
    .logo a {
        position: relative;
        z-index: 10006 !important;
    }

    /* --- 2. HAMBURGER (X) --- */
    .header-mobile-trigger {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex: 1;
    }

    #hamburger-btn {
        background: none;
        border: none;
        padding: 10px 0 10px 10px;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        gap: 6px;
        width: 40px;
        align-items: flex-end;
        position: relative;
        z-index: 10007; /* Najwyższy element na stronie */
    }

    .line {
        display: block;
        width: 24px;
        height: 2px;
        background-color: #000;
        transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1), opacity 0.3s;
        border-radius: 2px;
    }

    /* Animacja w X */
    body.menu-open #hamburger-btn .line-1 { transform: translateY(4px) rotate(45deg); }
    body.menu-open #hamburger-btn .line-2 { transform: translateY(-4px) rotate(-45deg); }


/* --- 3. FULLSCREEN MENU (IPHONE NUCLEAR FIX) --- */
    #mobile-menu-overlay {
        display: block;
        position: fixed;
        
        top: 0;
        left: 0;
        width: 100%;
        
        /* NUCLEAR FIX: Robimy tło większe niż ekran, żeby zalało dolną belkę */
        height: 120vh; 
        
        background-color: #ffffff !important; /* Pełna biel */
        z-index: 10000;
        
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0.3s;
        
        /* Reset paddingu, bo teraz sterujemy flexboxem */
        padding: 0; 
        overflow: hidden; /* Żeby nie dało się scrollować nadmiaru tła */
    }

    /* Stan otwarty */
    body.menu-open #mobile-menu-overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Wnętrze menu - to trzyma treść w ryzach */
    .mobile-menu-inner {
        /* Treść ma zajmować dokładnie tyle co widoczny ekran (nie 120vh, tylko 100dvh) */
        height: 100vh; /* Fallback */
        height: 100dvh; /* Dynamiczna wysokość dla iPhone */
        
        display: flex;
        flex-direction: column;
        padding: 80px 30px 40px 30px; /* Padding: Góra (na header) | Boki | Dół */
        justify-content: center;
        box-sizing: border-box;
    }

    /* Linki nawigacyjne */
    .mobile-nav {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .mobile-nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        gap: 30px;
        width: 100%;
    }

    .mobile-nav a {
        font-size: 28px;
        font-weight: 600;
        color: #1d1d1f;
        display: block;
        opacity: 0;
        transform: translateY(20px);
        transition: 0.3s;
    }

    body.menu-open .mobile-nav a {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.1s;
    }
    
    /* CTA Button */
    .mobile-cta {
        margin-top: auto;
        width: 100%;
        opacity: 0;
        transform: translateY(20px);
        transition: 0.3s;
        /* Dodatkowy margines od dołu dla bezpieczeństwa na iPhone X+ */
        padding-bottom: env(safe-area-inset-bottom); 
    }
    
    body.menu-open .mobile-cta {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.2s;
    }

    .mobile-btn-full {
        width: 100%;
        display: block;
        text-align: center;
        padding: 18px;
        font-size: 16px;
    }
}

/* --- DYNAMICZNE LOGO (SIZE FIX & SMOOTH FADE) --- */

.logo-link {
    position: relative;
    display: flex;
    align-items: center; /* Centruje mniejszy napis w pionie */
    height: 100%;
    text-decoration: none;
    /* Rezerwujemy 40px wysokości, żeby header nie skakał, gdy sygnet jest większy od napisu */
    min-height: 40px; 
}

.logo-img {
    width: auto;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- KONFIGURACJA ROZMIARÓW --- */

/* 1. TYPOGRAFIA (Mniejsza) */
.logo-type {
    height: 23px; /* TU ZMIEŃ: Jeśli nadal za duża, daj 26px. Jeśli za mała - 30px. */
    
    opacity: 1;
    transform: scale(1);
    position: relative;
    z-index: 2;
}

/* 2. SYGNET (Większy - 40px) */
.logo-signet {
    height: 40px; /* To zostaje tak jak chciałeś */
    
    opacity: 0;
    transform: scale(0.8);
    position: absolute;
    left: 0;
    z-index: 1;
}

/* --- ZACHOWANIE PRZY SCROLLU --- */

/* Ukrywanie Typografii */
.site-header.is-scrolled .logo-type {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

/* Pokazywanie Sygnetu */
.site-header.is-scrolled .logo-signet {
    opacity: 1;
    transform: scale(1);
}

/* --- FOOTER (CLEAN & MINIMAL) --- */

.site-footer {
    background-color: #111111; /* Głęboka czerń/grafit */
    color: #fff;
    padding: 80px 20px 40px 20px;
    margin-top: 120px; /* Duży odstęp od treści strony */
    border-top: 1px solid #222;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between; /* Rozrzuca: Logo na lewo, Dane na prawo */
    align-items: center; /* Wyrównanie do góry */
}

/* LEWA STRONA (Logo) */
.footer-logo {
    height: 130px; /* Dopasuj wysokość logotypu */
    width: auto;
    opacity: 0.9; /* Lekko zgaszone, żeby nie raziło */
    transition: opacity 0.2s;
}
.footer-logo:hover { opacity: 1; }

/* PRAWA STRONA (Dane) */
.footer-right {
    text-align: right; /* Tekst wyrównany do prawej */
    display: flex;
    flex-direction: column;
    gap: 15px; /* Odstępy między blokami tekstu */
}

.footer-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: #555; /* Ciemniejszy nagłówek "DANE KONTAKTOWE" */
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.footer-address {
    font-size: 15px;
    line-height: 1.6;
    color: #86868b; /* Apple Grey */
    font-style: normal;
}

.footer-email, 
.footer-phone {
    font-size: 15px;
    color: #fff; /* Ważne dane na biało */
    text-decoration: none;
    transition: color 0.2s;
}

.footer-email:hover, 
.footer-phone:hover {
    color: #ccc;
}

/* PASEK DOLNY (Copyright) */
.footer-bottom {
    max-width: 1200px;
    margin: 60px auto 0 auto;
    padding-top: 20px;
    border-top: 1px solid #222;
    text-align: center; /* Lub 'left' jeśli wolisz */
    font-size: 12px;
    color: #444;
}

/* RESPONSYWNOŚĆ (Mobile) */
@media (max-width: 768px) {
    .site-footer {
        padding: 60px 20px 30px 20px;
        margin-top: 80px;
    }

    .footer-inner {
        flex-direction: column; /* Jeden pod drugim */
        align-items: center;    /* Centrowanie */
        text-align: center;
        gap: 50px;
    }

    .footer-right {
        text-align: center; /* Na telefonie tekst na środku */
        align-items: center;
    }
    
    .footer-logo {
        height: 50px; /* Nieco większe logo na mobile */
    }
}

/* --- LAPTOP / MACBOOK FIX (ZAPOBIEGANIE KOLIZJI) --- */

/* Jeśli ekran jest szerszy niż tablet (desktop), ale NISKI (laptop) */
@media screen and (min-width: 769px) and (max-height: 850px) {
    
    /* Podnosimy tekst wyżej */
    .hero-section {
        top: 18% !important; /* Było 22% */
    }

    /* Obniżamy zdjęcie niżej */
    #zoom-hero-container {
        top: 65% !important; /* Było 60% */
        height: 35vh; /* Trochę mniejsze zdjęcie na start, żeby się zmieściło */
    }
}

/* --- STRONA KONTAKT (NOWY LAYOUT) --- */

.contact-page-wrapper {
    padding-top: 140px; /* Duży odstęp od nagłówka, bo wywaliliśmy H1 */
    padding-bottom: 80px;
    background-color: #fbfbfd; /* Tło strony jak Apple */
    min-height: 80vh; /* Żeby footer nie uciekał za wysoko przy małej treści */
}

/* KAFELKI LUDZI (Górny rząd) */
.contact-people-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dwie równe kolumny */
    gap: 30px;
    margin-bottom: 30px;
}

/* WSPÓLNY STYL KAFELKA */
.contact-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    padding: 40px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.contact-card:hover {
    border-color: #d2d2d7;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

/* STYL OSOBY */
.contact-role {
    font-size: 12px;
    text-transform: uppercase;
    color: #86868b;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.contact-name {
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 25px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-link {
    font-size: 16px;
    color: #1d1d1f;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
}

.contact-link:hover {
    color: #0066cc; /* Apple Blue na hover */
    text-decoration: underline;
}

.email-link {
    color: #0066cc;
}

/* KAFELEK FIRMOWY (Dolny rząd) */
.contact-company-row {
    width: 100%;
}

.company-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.company-grid-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 kolumny informacji */
    gap: 20px;
}

.company-info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 12px;
    color: #86868b;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 600;
}

.info-value {
    font-size: 16px;
    color: #1d1d1f;
    font-weight: 500;
    line-height: 1.4;
}

/* RESPONSYWNOŚĆ (Mobile) */
@media (max-width: 768px) {
    .contact-page-wrapper {
        padding-top: 100px;
    }

    .contact-people-grid {
        grid-template-columns: 1fr; /* Jeden pod drugim */
        gap: 20px;
    }

    .company-grid-info {
        grid-template-columns: 1fr; /* Dane firmy też w pionie na telefonie */
        gap: 25px;
    }
    
    .contact-card {
        padding: 30px;
    }
}