/* ==========================================================================
   1. SEKCJA FONTÓW (Definicje czcionek z Twojego serwera)
   ========================================================================== */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Montserrat/static/Montserrat-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Montserrat/static/Montserrat-Medium.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Montserrat/static/Montserrat-Bold.woff2') format('woff2');
}

/* ==========================================================================
   2. ZMIENNE PROJEKTU
   ========================================================================== */
:root {
    --bg-main: #F8FAFC;
    --navy-main: #0F172A;
    --accent-blue: #0284C7;
    --accent-blue-hover: #0270a9;
    --accent-orange: #FF4500;
    --text-muted: #475569;
    --font-primary: 'Montserrat', sans-serif;
}

/* ==========================================================================
   3. RESET I PODSTAWY
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { 
    scroll-behavior: smooth; 
}

body {
    background-color: var(--bg-main);
    color: var(--navy-main);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

a { 
    text-decoration: none; 
    color: inherit; 
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ==========================================================================
   3A. KLASY ANIMACJI (Wymagane dla Twojego pliku script.js)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  section.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  }
  
  section.show {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   4. NAGŁÓWEK (HEADER) I NAWIGACJA
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    background: rgb(200, 222, 255);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgb(185, 202, 255);
    box-shadow: 0 4px 20px rgba(158, 187, 255, 0.726);
}

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

.logo-link { display: block; cursor: pointer; }
.logo-link:hover { opacity: 0.8; transition: opacity 0.3s ease; }

.logo-img { 
    width: 200px; 
    height: 200px; 
    display: block; 
    object-fit: contain;
    transition: transform 0.3s ease; 
}
.logo-img:hover { transform: scale(1.02); }

.nav-menu { display: flex; gap: 30px; align-items: center; }
.nav-link { font-size: 19px; font-weight: 500; color: var(--navy-main); transition: color 0.3s ease; }
.nav-link:hover { color: var(--accent-blue); }

.btn-call {
    background-color: var(--accent-orange);
    color: #FFFFFF !important;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    animation: pulseGlow 2s infinite;
    transition: transform 0.2s ease;
}
.btn-call:hover { transform: scale(1.05); }
.phone-svg { width: 18px; height: 18px; fill: #3fff3f; margin-left: 8px; }

.hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    padding: 0;
    z-index: 1002;
}

.hamburger .bar {
    width: 100%;
    height: 3px;
    background-color: var(--navy-main);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* ==========================================================================
   5. SEKCJA HERO (Z FORMULARZEM)
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding-top: 80px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #FFFFFF;
}

.hero-collage-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
    background-image: url('collage.webp'); background-size: cover; background-position: center; background-repeat: no-repeat;
    background-color: #0f172a;
}

.collage-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.9)); z-index: 2;
}

.hero-container {
    position: relative; z-index: 3; max-width: 1200px; margin: 0 auto; padding: 60px 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 50px; flex-wrap: wrap;
}

.hero-text { flex: 1; }
.hero-text h1 { font-size: 42px; font-weight: 800; line-height: 1.2; margin-bottom: 30px; }
.hero-description { margin-bottom: 60px; }

.benefits-list { list-style: none; }
.benefits-list li { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; font-size: 16px; }
.check-svg { width: 24px; height: 24px; fill: #22c55e; flex-shrink: 0; }

.hero-form-box {
    width: 450px; padding: 40px; border-radius: 24px;
    background: rgba(255, 255, 255, 0.08); 
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px); 
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.contact-form { display: flex; flex-direction: column; gap: 15px; transition: opacity 0.5s ease-in-out; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 14px 20px; background: rgba(255, 255, 255, 0.9);
    border: 1px solid #CBD5E1; border-radius: 12px; color: var(--navy-main); font-size: 14px;
}
.contact-form textarea { resize: none; }

.rodo-box { display: flex; gap: 10px; align-items: flex-start; text-align: left; margin: 5px 0; }
.rodo-box input[type="checkbox"] { width: auto; margin-top: 4px; cursor: pointer; }
.rodo-box label { font-size: 11px; color: rgba(255, 255, 255, 0.8); line-height: 1.4; cursor: pointer; }
.rodo-box label a { color: #38BDF8; text-decoration: underline; }

.btn-submit {
    width: 100%; padding: 16px; background-color: var(--accent-blue);
    color: #FFFFFF; border: none; border-radius: 12px; font-weight: 700; cursor: pointer; transition: 0.3s;
}
.btn-submit:hover { background-color: var(--accent-blue-hover); }

/* ==========================================================================
   6. SEKCJE TREŚCI (USŁUGI, NOWE USŁUGI, OBSZAR) + FIX PRZEWIJANIA DESKTOP
   ========================================================================== */
.hero-section,
.services-section, 
.location-section, 
.contact-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding: 40px 20px;
    scroll-margin-top: 80px; /* Poprawka przewijania dla komputerów stacjonarnych */
}

.section-title {
    text-align: center; 
    font-size: 2.5rem; 
    color: var(--navy-main);
    margin-bottom: 50px; 
    position: relative; 
    padding-bottom: 15px; 
    font-weight: 700;
}
.section-title::after {
    content: ""; 
    display: block; 
    width: 60px; 
    height: 4px; 
    background-color: var(--accent-blue);
    margin: 15px auto 0 auto; 
    border-radius: 2px;
}

.services-section { 
    background-color: var(--bg-main); 
}

.section-gray { 
    background-color: #F8FAFC; 
    padding: 120px 0 35px 0; 
}

.services-grid { 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
    max-width: 1100px;
    margin: 40px auto 0 auto;
    padding: 0 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    text-align: left;
}

.service-card { 
    display: flex;
    flex-direction: column;
    align-items: center; 
    background: white; 
    padding: 40px 30px; 
    border-radius: 16px; 
    text-align: center; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03); 
    border: 1px solid #E2E8F0;
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.service-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.service-icon {
    display: block;
    margin-bottom: 20px;
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.service-card h3 {
    font-family: var(--font-primary);
    color: var(--navy-main);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    margin-top: 0;
    min-height: 44px; 
}

.service-card p { 
    margin: 0; 
    color: var(--text-muted); 
    font-size: 14px; 
    line-height: 1.6; 
}

.services-small-grid { 
    display: grid;
    gap: 20px; 
    margin-top: 20px; 
    margin-bottom: 20px; 
}

.services-row-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr); 
}

.services-row-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 80%; 
    margin-left: auto;
    margin-right: auto;
}

.service-card-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #FFFFFF; 
    padding: 30px 20px; 
    border-radius: 20px; 
    text-align: center; 
    box-shadow: 0 6px 10px -2px rgba(0, 0, 0, 0.08); 
    border: 1px solid #E2E8F0;
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.service-card-small:hover {
    transform: translateY(-8px); 
    box-shadow: 0 15px 20px -5px rgba(0, 0, 0, 0.15); 
}

.service-card-small img { width: 60px; height: 60px; }
.service-card-small h3 { margin-top: 15px; color: var(--navy-main); font-size: 17px; font-weight: 700; }
.service-card-small p { margin-top: 10px; color: var(--text-muted); font-size: 14px; line-height: 1.5; }

.location-section { 
    background-color: #FFFFFF; 
}

.location-container { display: flex; flex-wrap: wrap; gap: 30px; align-items: center; }

@media (min-width: 992px) {
    .location-container { padding-left: 80px; }
}

.location-text { flex: 1; min-width: 300px; }
.location-text h2 { color: var(--navy-main); font-size: 26px; margin-bottom: 15px; font-weight: 700; }
.location-text p { color: var(--text-muted); font-size: 15px; line-height: 1.6; margin-bottom: 25px; }

.location-columns { display: flex; gap: 20px; }
.loc-col { flex: 1; }
.loc-col h4 { color: var(--navy-main); font-size: 16px; margin-bottom: 10px; border-bottom: 2px solid var(--accent-blue); padding-bottom: 5px; font-weight: 700; }
.loc-col ul { list-style: none; padding: 0; margin: 0; color: var(--text-muted); font-size: 14px; line-height: 2; }

.location-note { margin-top: 25px; font-size: 13px; color: #64748B; font-style: italic; }
.location-footer-text { margin-top: 25px; font-size: 14px; color: var(--text-muted); text-align: center; width: 100%; }

.location-map { flex: 1; min-width: 300px; height: 350px; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05); border: 1px solid #E2E8F0; }
.location-map iframe { width: 100% !important; height: 100% !important; display: block; }

.contact-section { background-color: #F8FAFC; }
.contact-container { display: flex; flex-wrap: wrap; gap: 40px; }
.contact-info { flex: 1; min-width: 300px; }
.contact-info h2 { color: var(--navy-main); font-size: 26px; margin-bottom: 15px; font-weight: 700; }
.contact-info p { color: var(--text-muted); font-size: 15px; line-height: 1.6; margin-bottom: 30px; }

.info-tile { display: flex; align-items: center; gap: 15px; background: #FFFFFF; padding: 15px; border-radius: 6px; box-shadow: 0 2px 4px rgb(0 0 0 / 0.02); margin-bottom: 15px; }
.info-icon { background: var(--accent-blue); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #FFFFFF; font-weight: bold; }
.info-tile span { display: block; font-size: 12px; color: #64748B; text-transform: uppercase; }
.info-tile a { color: var(--navy-main); font-size: 18px; font-weight: 700; }
.tile-green .info-icon { background: #10B981; }
.tile-green strong { color: var(--navy-main); font-size: 15px; font-weight: 700; }

.contact-form-container { flex: 1.2; min-width: 300px; background: #FFFFFF; padding: 30px; border-radius: 8px; box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05); border: 1px solid #E2E8F0; }
.contact-form-container label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 5px; font-weight: 500; }
.contact-form-container input, .contact-form-container textarea { border: 1px solid #CBD5E1; border-radius: 4px; background: #FFFFFF; }

.rodo-dark label { color: var(--text-muted); }
.rodo-dark label a { color: var(--accent-blue); }

.thank-you-message { 
    text-align: center; 
    padding: 25px; 
    background-color: #f0fdf4; 
    border: 1px solid #bbf7d0; 
    border-radius: 12px; 
    
    /* --- NOWOŚĆ: Wypełnienie całego kontenera i zabezpieczenie przed skakaniem strony --- */
    width: 100%;
    min-height: 450px; /* Dopasuj tę wartość (np. między 400px a 480px) do realnej wysokości Twojego formularza */
    box-sizing: border-box;

    /* --- NOWOŚĆ: Ukrycie startowe i przygotowanie pod idealne wyśrodkowanie przez JS --- */
    display: none; 
    flex-direction: column;
    justify-content: center;
    align-items: center;

    opacity: 0; 
    transition: opacity 0.5s ease-in-out; 
}

/* Twoje oryginalne, świetnie dobrane style tekstów zostają bez zmian */
.thank-you-message h3 { 
    color: #166534; 
    font-size: 20px; 
    font-weight: 700; 
    margin-bottom: 8px; 
}

.thank-you-message p { 
    color: #1e40af; 
    font-size: 15px; 
    font-weight: 500; 
}

/* ==========================================================================
   7. STOPKA I KOMUNIKATY
   ========================================================================== */
.main-footer { background-color: #0F172A; color: #94A3B8; padding: 40px 0; border-top: 1px solid #1E293B; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; gap: 15px; align-items: center; justify-content: space-between; }
.footer-copyright { text-align: center; font-size: 14px; }
.footer-copyright strong { font-weight: 700; }
.footer-legal-text { font-size: 11px; color: #64748B; margin-top: 5px; }
.footer-links { display: flex; gap: 20px; font-size: 13px; margin-top: 5px; }
.footer-links a { color: #38BDF8; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-blue); }
.footer-links span { color: #334155; }

footer { min-height: auto; }

/* ==========================================================================
   8. ANIMACJE I RESPONSIVNOŚĆ MOBILNA (RWD - NAPRAWIONA WERSJA)
   ========================================================================== */
@keyframes pulseGreen {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@keyframes pulseGlow {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 69, 0, 0.5); }
    70% { transform: scale(1.02); box-shadow: 0 0 0 12px rgba(255, 69, 0, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 69, 0, 0); }
}

.mobile-sticky-call {
    display: none; 
    position: fixed; 
    bottom: 25px; 
    right: 25px; 
    width: 60px; 
    height: 60px; 
    background-color: #22c55e; 
    border-radius: 50%; 
    z-index: 999; 
    align-items: center;
    justify-content: center;
    animation: pulseGreen 2s infinite !important; 
    transition: transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(34, 197, 94, 0.4);
    cursor: pointer;
}

.mobile-sticky-call:active {
    transform: scale(0.9);
}

/* Gwarancja braku rozciągania grafik poza ekran */
img {
    max-width: 100%;
    height: auto;
}

/* KLUCZOWE STYLE DLA SMARTFONÓW I TABLETÓW */
@media (max-width: 768px) {
    /* 1. Reset wysokości nagłówka na mobile */
    .main-header { 
        height: 75px !important; 
    }
    
    .nav-container {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Skalowanie logo - koniec z rozjeżdżaniem kontenera */
    .logo-img { 
        width: 140px !important; 
        height: auto !important; 
    }
    
    /* 2. Hamburger aktywacja */
    .hamburger {
        display: flex !important;
    }

    /* Animacja X dla przycisku hamburgera */
    .hamburger.active .bar:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

    /* 3. Menu Mobilne - stabilne chowanie i wysuwanie flexem */
    .nav-menu {
        display: none !important; 
        position: fixed;
        top: 75px; 
        left: 0;
        width: 100%;
        background: rgb(200, 222, 255);
        flex-direction: column;
        align-items: center;
        gap: 20px !important;
        padding: 30px 20px;
        z-index: 999;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex !important;
    }

    .nav-link {
        font-size: 18px !important;
        font-weight: 700;
        color: var(--navy-main);
        width: 100%;
        text-align: center;
        padding: 8px 0;
    }

    /* 4. LIKWIDACJA ROZJEŻDŻANIA STRONY (Koniec ze stałymi szerokościami px) */
    .hero-form-box { 
        width: 100% !important; 
        max-width: 100% !important; 
        padding: 20px !important; 
    }

    .hero-container {
        flex-direction: column;
        gap: 30px;
        padding: 40px 10px !important;
        width: 100% !important;
    }

    .hero-text h1 { 
        font-size: 32px; 
        margin-bottom: 15px; 
    }
    
    .hero-description { 
        margin-bottom: 30px; 
    }

    /* Resetowanie siatek gridowych na 1 kolumnę */
    .features-grid,
    .services-grid,
    .services-row-5, 
    .services-row-4 {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        gap: 15px !important;
    }

    /* 5. Korekta ucinania sekcji na telefonach */
    .hero-section, 
    .services-section, 
    .location-section, 
    .contact-section {
        min-height: auto !important; 
        padding: 50px 15px !important;
        scroll-margin-top: 75px !important; /* Poprawka przewijania pod mniejszy nagłówek mobilny */
    }

    .service-card h3 {
        min-height: auto; 
    }

    h2 {
        font-size: 1.4rem !important;
    }
    
    p {
        font-size: 0.95rem !important;
    }

    /* Ukrywanie elementów i włączanie sticky-call */
    .btn-call { display: none !important; }
    .mobile-sticky-call { display: flex !important; }
    .footer-container { flex-direction: column; text-align: center; }
}
/* ==========================================================================
   INDYWIDUALNA KOREKTA PRZEWIJANIA DLA SEKCJI USŁUG
   ========================================================================== */

/* Dla komputerów - przewiń dalej */
@media (min-width: 769px) {
    .services-section {
        scroll-margin-top: 10px !important; /* Zmniejszyliśmy z 80px na 30px, żeby przewinęło się dalej */
    }
}

/* Dla telefonów - przewiń dalej */
@media (max-width: 768px) {
    .services-section {
        scroll-margin-top: 20px !important; /* Zmniejszyliśmy z 75px na 20px */
    }
}
/* ==========================================================================
   POWIĘKSZENIE CZCIONKI W HERO (TYLKO KOMPUTER)
   ========================================================================== */
@media (min-width: 769px) {
    /* Długi napis: "Podejmujemy się wszystkich zleceń..." */
    .hero-description {
        font-size: 19px !important; /* Zmień tę liczbę, jeśli chcesz jeszcze większy tekst */
    }

    /* Punkty: "Klienci indywidualni", "Wspólnoty...", "Obsługa 24/7" */
    .benefits-list li {
        font-size: 21px !important; /* Obecnie było 16px, teraz jest 19px */
    }
}
/* ==========================================================================
   PRZYCISK WHATSAPP
   ========================================================================== */
.whatsapp-floating-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0px 6px 14px rgba(0, 0, 0, 0.2);
}

.whatsapp-floating-btn svg {
  width: 35px;
  height: 35px;
}

/* Dostosowanie na telefony - przesunięcie na lewą stronę, aby nie zasłaniać Twojej ikony telefonu */
@media (max-width: 768px) {
  .whatsapp-floating-btn {
    right: auto;
    left: 20px; 
    bottom: 20px;
    width: 55px;
    height: 55px;
  }
  
  .whatsapp-floating-btn svg {
    width: 30px;
    height: 30px;
  }
}