/* =========================================
   1. ZMIENNE I REZETOWANIE STYLÓW (BAZA)
   ========================================= */
:root {
    --primary-black: #000000;      
    --accent-gold: #c5a059;       
    --accent-gold-hover: #e2c275; 
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --font-main: 'Inter', sans-serif;
}

html, body {
    margin: 0 !important; padding: 0 !important; font-family: var(--font-main);
    color: var(--white); line-height: 1.6; background-color: var(--primary-black); overflow-x: hidden;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-blue { color: var(--accent-gold) !important; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.relative { position: relative; }
.z-10 { z-index: 10; }
.text-white { color: #ffffff !important; }
.mt-20 { margin-top: 20px; display: inline-block; }

/* =========================================
   2. LOADER (LOGO FIRMY)
   ========================================= */
.page-loader {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000 !important; /* Tło loadera - pasuje do ciemnego motywu */
    z-index: 10001 !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s !important;
}

.page-loader.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Nowe, pancerne style dla logo w loaderze */
.loader-logo {
    width: 180px; /* Sztywny, bezpieczny rozmiar */
    max-width: 80vw; /* Zabezpieczenie, by nie wylało się na najmniejszych smartfonach */
    height: auto;
    /* Lekko przyspieszona animacja, żeby logo płynniej reagowało */
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out !important;
}

.page-loader.hidden .loader-logo {
    transform: scale(0.85); /* Zmniejszyłem skalę, żeby "skurcz" nie był tak agresywny */
    opacity: 0;
}
/* =========================================
   3. NAGŁÓWEK I NAWIGACJA (BAZA)
   ========================================= */
.main-header { position: fixed !important; top: 0 !important; left: 0 !important; width: 100% !important; z-index: 9999 !important; background-color: transparent !important; transition: height 0.3s ease-in-out, background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out !important; display: flex !important; align-items: center !important; height: 110px !important; border: none !important; outline: none !important; }
.main-header.scrolled { background-color: rgba(0, 0, 0, 0.95) !important; backdrop-filter: blur(12px) !important; -webkit-backdrop-filter: blur(12px) !important; height: 85px !important; box-shadow: 0 4px 20px rgba(0,0,0,0.5) !important; border: none !important; outline: none !important; }
.header-container { width: 100% !important; display: flex !important; justify-content: space-between !important; align-items: center !important; }
.logo { color: var(--white) !important; font-size: 1.5rem; font-weight: 800; letter-spacing: 1px; }
.logo .text-blue { color: var(--accent-gold) !important; }
.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a { color: var(--white) !important; text-decoration: none !important; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.5px; transition: color 0.3s; }
.nav-links a.active, .nav-links a:hover { color: var(--accent-gold) !important; font-weight: 800 !important; background: none !important; }
.header-socials { display: flex; gap: 20px; align-items: center; }
.header-socials .social-icon { display: flex; align-items: center; justify-content: center; transition: transform 0.3s ease; }
.header-socials .social-icon svg { color: var(--accent-gold) !important; fill: var(--accent-gold) !important; }
.header-socials .social-icon:hover { transform: translateY(-2px); }
.hamburger { display: none; cursor: pointer; border: none; background: transparent; padding: 10px; z-index: 1001; }
.hamburger-box { width: 30px; height: 24px; display: inline-block; position: relative; }
.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after { width: 30px; height: 3px; background-color: var(--white); position: absolute; border-radius: 3px; transition: transform 0.3s ease, background-color 0.3s ease; }
.hamburger-inner { top: 50%; transform: translateY(-50%); }
.hamburger-inner::before { content: ''; top: -10px; left: 0; }
.hamburger-inner::after { content: ''; top: 10px; left: 0; }
.hamburger.is-active .hamburger-inner { background-color: transparent; }
.hamburger.is-active .hamburger-inner::before { transform: translateY(10px) rotate(45deg); }
.hamburger.is-active .hamburger-inner::after { transform: translateY(-10px) rotate(-45deg); }

/* Style dla obrazkowego logo w nagłówku */
.logo a {
    display: flex;
    align-items: center;
}

.header-logo-img { 
    max-height: 75px; /* Znacznie powiększone logo (wcześniej 45px) */
    width: auto; 
    transition: all 0.3s ease-in-out; 
}

.main-header.scrolled .header-logo-img { 
    max-height: 55px; /* Większe logo po zjechaniu w dół (wcześniej 35px) */
}

/* Przyciski (BAZA) */
.btn { padding: 16px 35px; border-radius: 4px; font-weight: 700; letter-spacing: 1px; font-size: 0.9rem; text-decoration: none; transition: all 0.3s; text-transform: uppercase; display: inline-block; text-align: center; cursor: pointer; border: none; }
.btn-primary { background-color: var(--accent-gold) !important; border: 1px solid var(--accent-gold) !important; color: var(--primary-black) !important; }
.btn-primary:hover { background-color: var(--accent-gold-hover) !important; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2); }

/* =========================================
   4. HERO PODSTRONY "KONTAKT"
   ========================================= */
.subpage-hero { position: relative; height: 350px; display: flex; align-items: center; justify-content: center; text-align: center; padding-top: 80px; background-color: var(--primary-black); background-size: cover !important; background-position: center !important; border-top: none !important; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9)); z-index: 1; }
.subpage-hero-content { position: relative; z-index: 10; }
.subpage-hero h1 { color: var(--white); font-size: 3.5rem; font-weight: 800; margin: 10px 0 20px 0; }
.gold-label { display: block; color: var(--accent-gold) !important; text-transform: uppercase; font-weight: 700; letter-spacing: 2px; }

/* =========================================
   5. SEKCJA KONTAKTOWA
   ========================================= */
.contact-page-section {
    background-color: var(--primary-black);
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

/* LEWA KOLUMNA - Dane */
.contact-info-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 50px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(197, 160, 89, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    flex-shrink: 0;
    border: 1px solid rgba(197, 160, 89, 0.2);
}

/* Nowy grid na zdjęcia i profile */
.team-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    background-color: #1a1a1a;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.team-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.team-role {
    font-size: 0.9rem;
    color: var(--accent-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.team-phone {
    color: #e2e8f0;
    font-size: 1.05rem;
}

.contact-icon svg { width: 28px; height: 28px; }

.contact-text h3 {
    font-size: 1.1rem;
    color: var(--accent-gold);
    margin-bottom: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-text p {
    color: #e2e8f0;
    font-size: 1.15rem;
    line-height: 1.6;
    margin: 0;
}

.response-time-box {
    background-color: #0b111a;
    padding: 20px 25px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-gold);
    color: #a0a0a0;
    font-size: 1.05rem;
}
.gold-check { color: var(--accent-gold); margin-right: 5px; }

/* Sekcja e-mail pod zdjęciami */
.contact-email-box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 0;
    margin-bottom: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.email-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(197, 160, 89, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    border: 1px solid rgba(197, 160, 89, 0.2);
}

.email-icon svg { width: 22px; height: 22px; }

.email-text {
    display: flex;
    flex-direction: column;
}

.email-label {
    font-size: 0.85rem;
    color: #a0a0a0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.email-text a {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s;
}

.email-text a:hover {
    color: var(--accent-gold);
}

.response-time-box {
    background-color: #0b111a;
    padding: 20px 25px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-gold);
    color: #a0a0a0;
    font-size: 1.05rem;
}

/* PRAWA KOLUMNA - Formularz */
.contact-form-col {
    display: flex;
    align-items: center;
}

.form-wrapper {
    background-color: #0b111a;
    padding: 50px;
    border-radius: 12px;
    border: 1px solid rgba(197, 160, 89, 0.15);
    width: 100%;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #cccccc;
    letter-spacing: 0.5px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background-color: #11151c; /* Bardzo ciemny wkład */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--white);
    transition: all 0.3s ease;
}

.form-group input::placeholder, 
.form-group textarea::placeholder {
    color: #555555;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

.submit-btn {
    width: 100%;
    margin-top: 10px;
}

/* =========================================
   6. PASEK SOCIAL MEDIA (BAZA)
   ========================================= */
.social-prompt-bar { background-color: var(--accent-gold); padding: 60px 0; color: var(--primary-black); }
.social-prompt-bar h3 { font-size: 2rem; font-weight: 800; margin-bottom: 15px; }
.social-prompt-bar p { font-size: 1.1rem; max-width: 700px; margin: 0 auto 30px auto; font-weight: 500; }
.social-prompt-links { display: flex; justify-content: center; gap: 20px; }
.social-btn { display: flex; align-items: center; gap: 10px; padding: 14px 28px; background-color: var(--primary-black); color: var(--white); border-radius: 4px; font-weight: 700; text-decoration: none; transition: transform 0.3s; }
.social-btn:hover { transform: translateY(-3px); }

/* =========================================
   7. STOPKA (BAZA)
   ========================================= */
.main-footer {
    background-color: #000000 !important; color: #9ca3af;
    padding: 80px 0 20px; font-size: 0.9rem;
    border-top: 2px solid var(--accent-gold);
}

.footer-grid {
    display: grid; 
    /* Zmienione proporcje na bardziej wyrównane dla idealnego centrowania */
    grid-template-columns: 1.5fr 1fr 1.2fr 1.5fr; 
    gap: 30px; 
    margin-bottom: 60px;
}

/* Wymuszone centrowanie każdej z 4 kolumn */
.footer-col {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centruje cały pionowy blok w kolumnie */
    text-align: center; /* Centruje sam tekst */
}

.footer-col h3 {
    color: var(--white); font-size: 1rem; font-weight: 800; margin-bottom: 25px;
    letter-spacing: 1px; text-transform: uppercase;
    text-align: center; 
    width: 100%;
}

.about-col p { 
    margin-bottom: 25px; line-height: 1.8; text-align: center; 
}

.footer-social-links {
    display: flex; flex-direction: column; align-items: center; gap: 15px; margin-top: 20px; text-align: center;
}

.footer-social-item {
    display: flex; align-items: center; gap: 12px;
    color: var(--accent-gold) !important; text-decoration: none; font-weight: 600;
    transition: all 0.3s ease;
}

.footer-social-item:hover { color: var(--white) !important; transform: translateY(-3px); }
.footer-social-item svg { flex-shrink: 0; }

/* Centrujemy układ linków w kolumnach 2 i 3 */
.footer-links { 
    list-style: none; padding: 0; margin: 0; 
    display: flex; flex-direction: column; align-items: center; /* Wyśrodkowuje napisy nawigacji */
}

.footer-links li { margin-bottom: 15px; text-align: center; }

.footer-links a {
    color: #9ca3af; text-decoration: none; transition: color 0.3s;
}

/* Usunęliśmy efekt paddingu na hover, aby tekst po najechaniu nie "skakał" z wyśrodkowania */
.footer-links a:hover { color: var(--white); }

/* W kolumnie Kontakt całą listę trzymamy równo, ale jako blok jest ona wyśrodkowana */
.footer-contact-info {
    list-style: none; padding: 0; margin: 0; display: flex;
    flex-direction: column; align-items: flex-start; /* Opcja flex-start wyrównuje ikony do lewej *wewnątrz* środkowego bloku */
}

.footer-contact-info li {
    display: flex; align-items: center; gap: 15px; margin-bottom: 20px;
    line-height: 1.6; text-align: left;
}

.footer-contact-info svg { color: var(--accent-gold); flex-shrink: 0; margin-top: 3px; }

.footer-bottom {
    display: flex; justify-content: center; align-items: center;
    padding-top: 25px; border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem; text-align: center;
}
/* Style dla obrazkowego logo w stopce */
.footer-logo-img {
    max-height: 55px; /* Logo w stopce może być nieco większe */
    width: auto;
}

/* =========================================
   POWIADOMIENIE FORMULARZA (TOAST)
   ========================================= */
.form-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #11151c; /* Ciemne tło pasujące do kart */
    border-left: 4px solid var(--accent-gold);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    padding: 20px 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10000;
    
    /* Ukrycie i animacja */
    transform: translateX(120%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 400px;
}

/* Klasa aktywująca wysunięcie */
.form-toast.show {
    transform: translateX(0);
}

/* Modyfikator dla błędu (czerwony pasek) */
.form-toast.error {
    border-left-color: #e53e3e;
}

.toast-icon svg {
    width: 28px;
    height: 28px;
    color: var(--accent-gold);
}

.form-toast.error .toast-icon svg {
    color: #e53e3e;
}

.toast-message {
    color: var(--white);
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 500;
}

.toast-close {
    background: transparent;
    border: none;
    color: #a0a0a0;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    transition: color 0.3s;
}

.toast-close:hover {
    color: var(--white);
}

/* Poprawka dla telefonów - wyśrodkowanie na dole */
@media (max-width: 768px) {
    .form-toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: 100%;
    }
}

/* =========================================
   8. MEDIA QUERIES (Responsywność)
   ========================================= */
@media (max-width: 1024px) {
    .contact-grid { gap: 40px; }
    .form-wrapper { padding: 40px 30px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 992px) {
    .contact-grid { grid-template-columns: 1fr; gap: 60px; }
}

@media (max-width: 768px) {
    .subpage-hero h1 { font-size: 2.5rem; }
    
    .form-row { flex-direction: column; gap: 0; }
    .form-wrapper { padding: 30px 20px; }

    .social-prompt-links { flex-direction: column; }
    .social-btn { justify-content: center; }

    .footer-grid { grid-template-columns: 1fr; gap: 50px; }
    .footer-col.contact-col h3 { text-align: center; }
    .footer-contact-info { align-items: center; }
    .footer-contact-info li { text-align: center; }

    /* Nagłówek mobilny i ukrycie sociali */
    .header-socials { display: none !important; }
    .hamburger { display: block; }
    
    /* Podstawowy, zamknięty stan menu */
    .nav-links { 
        display: flex !important; 
        position: absolute !important; 
        top: 100% !important; 
        left: 0 !important; 
        width: 100% !important; 
        background-color: rgba(11, 17, 26, 0.98) !important; 
        backdrop-filter: blur(12px) !important; 
        -webkit-backdrop-filter: blur(12px) !important; 
        flex-direction: column !important; 
        gap: 0 !important; 
        padding: 0 !important; 
        margin: 0 !important; 
        max-height: 0; 
        overflow: hidden; 
        transition: max-height 0.4s ease !important; 
    }

    /* KLUCZOWA ZMIANA: Otwarte menu */
    .nav-links.is-open { 
        /* Wymusza dokładne dopasowanie do treści lub ekranu, blokuje ucinanie */
        max-height: calc(100vh - 85px) !important; 
        overflow-y: auto !important; 
        padding-bottom: 0 !important; /* Usuwa czarną dziurę na dole! */
        border-bottom: 1px solid rgba(197, 160, 89, 0.4) !important; /* Eleganckie złote odcięcie */
        box-shadow: 0 15px 30px rgba(0,0,0,0.6);
    }

    /* Style pojedynczych zakładek */
    .nav-links li { 
        width: 100% !important; 
        height: 65px !important; 
        margin: 0 !important; 
        padding: 0 !important; 
        list-style: none !important; 
        flex-shrink: 0; 
    }
    
    .nav-links a { 
        display: flex !important; 
        justify-content: center !important; 
        align-items: center !important; 
        width: 100% !important; 
        height: 100% !important; 
        margin: 0 !important; 
        padding: 0 !important; 
        font-size: 0.95rem !important; 
        font-weight: 700 !important; 
        color: var(--white) !important; 
        line-height: 1 !important; 
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important; 
        text-decoration: none !important;
    }
    
    .nav-links li:last-child a { 
        border-bottom: none !important; 
    }
}
/* Blokada niebieskich numerów telefonów na iPhonach */
a[href^="tel"], 
.team-phone {
    color: #e2e8f0 !important; /* Twój jasnoszary kolor tekstu */
    text-decoration: none !important; /* Usuwa ewentualne podkreślenie */
}

/* Opcjonalnie: delikatna zmiana koloru po najechaniu na komputerze */
.team-phone:hover {
    color: var(--accent-gold) !important;
}