/* ========================== PODSTAWY I NAVBAR ========================== */
/* BLOKADA ZAZNACZANIA DLA CAŁEJ STRONY */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    -webkit-user-select: none;  
    -moz-user-select: none;     
    -ms-user-select: none;      
    user-select: none;          
    -webkit-touch-callout: none; 
}

/* BLOKADA PRZECIĄGANIA OBRAZKÓW */
img {
    -webkit-user-drag: none;
    pointer-events: none;
}

/* Pozwolenie na klikanie w przyciski i linki (mimo blokady zaznaczania tekstu) */
a, button, .promo-btn, .btn-kontakt, .hero-btn {
    -webkit-user-select: auto;
    user-select: auto;
    pointer-events: auto;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity; /* To musi być tutaj, by działało na całej stronie */
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    background: #fff;
    line-height: 1.6;
}

body { background: #fff; line-height: 1.6; }

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: black;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    z-index: 1000;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    
}

.navbar nav a {
    color: white;
    text-decoration: none;
    margin-left: 35px;
    font-size: 18px;

}
.navbar nav a:hover { color: #2f69ff; }


/* ========================== HERO DLA PODSTRON ========================== */
.subpage-hero {
    height: 50vh;
    background: #000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding-top: 80px;
}

.subpage-hero h1 {
    font-size: 48px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* --- STYLE DLA OBRACANEGO KAFELKA --- */
.flip-card {
    background-color: transparent;
    perspective: 1000px;
    height: 440px; /* Dopasuj wysokość do pozostałych kafelków */
    cursor: pointer;
    border: none !important;
    padding: 0 !important;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

/* Klasa dodawana przez kliknięcie */
.flip-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    background: #fff;
    overflow: hidden;
}

.card-front {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

/* IKONA STRZAŁKI W ROGU */
.flip-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 18px;
    color: #2f69ff;
    opacity: 0.5;
    transition: 0.3s;
}

.flip-card:hover .flip-icon {
    opacity: 1;
    transform: rotate(45deg);
}

/* TYŁ KARTY (ZDJĘCIE) */
.card-back {
    transform: rotateY(180deg);
    background: #000;
}

.card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-card-icon {
    font-size: 45px;
    color: #2f69ff;
    margin-bottom: 20px;
}

.why-image img {
    width: 80%;
    max-width: 350px;
    display: block;
    margin: 0 auto;
}

/* ========================== SEKCJA SZCZEGÓŁÓW OFERTY ========================== */
.offer-details {
    padding: 70px 5%;
    background: #f2f2f2;
    scroll-snap-align: start;
}

.offer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.details-card {
    background: #fff;
    margin-top: 30px;
    padding: 40px;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.details-card:hover { transform: translateY(-10px); }

.details-card i {
    font-size: 45px;
    color: #2f5be7;
    margin-bottom: 20px;
}

.details-card h2 { margin-bottom: 15px; font-weight: 600; }

.details-card ul {
    text-align: left;
    list-style: none;
    margin-top: 20px;
}

.details-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}


.details-card ul li::before {
    content: "✓";
    color: #2f5be7;
    margin-right: 10px;
    font-weight: bold;
}

/* --- SEKCJA PROCESU --- */
.work-process {
    padding: 100px 5%;
    color: white;
    background: rgb(0, 0, 0);
}

.process-title {
    text-align: center;
    margin-bottom: 60px;
}

.process-title h2 {
    font-size: 36px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.process-title .bar {
    width: 60px;
    height: 4px;
    background: #2f69ff;
    margin: 15px auto;
}

.process-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.step {
    flex: 1;
    min-width: 250px;
    padding: 20px;
    position: relative;
}

.step-number {
    font-size: 60px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.201);
    position: absolute;
    top: -10px;
    left: 10px;
    z-index: 0;
}

.step h3 {
    position: relative;
    z-index: 1;
    margin-bottom: 15px;
    color: #ffffff;
}

.step p {
    font-size: 14px;
    color: #b1aeae;
}

/* --- SEKCJA DLACZEGO MY --- */
.why-us {
    margin-top: 20px;
    padding: 60px 5%;
    background: #ffffff;
    color: #000000;
}

.why-us-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 80px;
    flex-wrap: wrap;
}

.why-text {
    flex: 1;
    min-width: 300px;
}

.why-text h2 {
    font-size: 32px;
    margin-bottom: 25px;
}

.why-text p {
    color: #000000;
    margin-bottom: 30px;
    line-height: 1.8;
}


.badges {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.badge {
    background: #ffffff;
    padding: 0px 20px;
    border-radius: 50px;
    font-size: 14px;
    border: 1px solid #2f69ff;
}

.badge i {
    color: #2f69ff;
    margin-right: 8px;
}

.why-image {
    flex: 1;
    min-width: 280px;
    display: flex;
    justify-content: center; /* Centruje obrazek w swojej połowie */
    align-items: center;
}

.why-image img {
    width: 75%; /* Zmniejszyłem z 100% na 80% */
    max-width: 360px; /* Maksymalna szerokość, żeby nie urósł za bardzo na dużych ekranach */
    max-height: 360px;
    border-radius: 10px;
    box-shadow: 15px 15px 0px #2f69ff; /* Nieco mniejszy cień dla mniejszego zdjęcia */
    transition: 0.3s ease;
}

/* Responsywność dla nowych sekcji */
@media (max-width: 768px) {
    .why-us-content {
        flex-direction: column;
        text-align: center;
    }
    .why-image {
        order: -1;
    }
    .badge {
        justify-content: center;
        width: 100%;
    }
    .offer-details {
        scroll-snap-align: none !important;
    }
    
    /* Opcjonalnie: Jeśli chcesz wyłączyć przyciąganie na CAŁEJ stronie mobilnej, 
       bo często utrudnia to czytanie na telefonie, dodaj też to: */
    html {
        scroll-snap-type: none !important;
    }
}

/* Kontener kafelka */
.badge.has-tooltip {
    position: relative;
    cursor: pointer;
}

/* Dymek POD kafelkiem, rozszerzony w PRAWO */
.tooltip-box {
    position: absolute;
    top: calc(100% + 10px); /* Dokładnie pod kafelkiem */
    left: 0;                /* Wyrównanie do lewej krawędzi kafelka */
    width: 320px;           /* Możesz tu dostosować szerokość */
    padding: 15px;
    
    /* Gradient: Półprzezroczysty grafit/czerń */
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.9), rgba(0, 0, 0, 0.95));
    color: #fff;
    font-size: 13px;
    font-weight: normal;
    line-height: 1.5;
    border-radius: 12px;
    border: 1px solid rgba(47, 105, 255, 0.3); /* Subtelna niebieska ramka */
    
    /* Ukrycie i animacja */
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px); 
    transition: all 0.4s ease;
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Dzióbek (strzałka dymka) - teraz przy lewej krawędzi */
.tooltip-box::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 25px; /* Dzióbek idealnie pod ikonką certyfikatu */
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent rgba(20, 20, 20, 0.9) transparent;
}

/* Hover - Pokazanie dymka */
.badge.has-tooltip:hover .tooltip-box {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* Animacja strzałki w kafelku */
.badge.has-tooltip:hover .arrow-icon {
    transform: rotate(180deg);
    color: #2f69ff;
}

.arrow-icon {
    margin-left: 8px;
    font-size: 10px;
    transition: 0.3s ease;
    color: #888;
}

/* ========================== STOPKA (ZGODNIE Z TWOIM WYMOGIEM) ========================== */
.footer {
    background-color: #000;
    color: #fff;
    padding: 30px 0 20px 0; /* Zmień 60px na np. 30px, aby zmniejszyć odstęp */
    width: 100%;
}

.footer-container {
    /* Ustawiamy szerokość taką samą jak w slider-wrapper (1300px) */
    max-width: 1300px; 
    /* Margines auto wyśrodkuje ten kontener, więc jego krawędzie 
       pokryją się z krawędziami sliderów/cennika */
    margin: 0 auto;
    /* Padding boczny 70px - taki sam jak w .slider-wrapper, 
       żeby ikony nie dotykały krawędzi ekranu na mniejszych oknach */
    padding: 0 70px 20px 70px;
    
    display: flex;
    justify-content: space-between; /* Rozsuwa kontakt na lewo, a social na prawo */
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-left: 350px;
}
.footer-bottom a {
    color: #888;        /* ustawia kolor tekstu na biały */
    text-decoration: none; /* usuwa podkreślenie */
}
.footer-bottom {
    text-align: center;
    padding: 40px 0 20px;
    border-top: 1px solid #222;
    font-size: 12px;
    color: #888;
    scroll-snap-align: none;
}

/* Reszta stylów bez zmian */
.footer-contact { display: flex; flex-wrap: wrap; gap: 30px; }
.footer-contact i{ padding-right: 3px; }
.contact-item a { color: #fff; text-decoration: none; transition: 0.3s; }
.contact-item a:hover, .footer-social a:hover { color: #2f69ff; }
.footer-social { display: flex; gap: 20px; font-size: 24px; }
.footer-social a { color: #fff; transition: 0.3s; }
.footer-social a:hover {
    color: #1a51e6; /* Ciemniejszy przy najechaniu */
    transform: translateY(-3px); /* Delikatne uniesienie */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.footer-bottom strong { color: #fff; }

/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
    /* Naprawa stopki */
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        margin-left: 0;        /* KLUCZOWE: usuwamy ten boczny margines */
        padding: 0 20px;       /* Dajemy bezpieczny odstęp od krawędzi */
        width: 100%;           /* Pozwalamy jej zająć całą szerokość */
    }
    
    .footer-contact {
        flex-direction: column;
        gap: 15px;
        align-items: center;    /* Centrujemy ikony i tekst */
    }

    .footer-social {
        justify-content: center; /* Centrujemy ikony IG/TikTok */
        width: 100%;
    }

    /* Opcjonalnie: poprawa nawigacji, jeśli też się rozjeżdża */
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }

    .navbar nav {
        margin-top: 10px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .navbar nav a {
        margin: 0 10px;
        font-size: 14px;
    }

    .subpage-hero h1 {
        font-size: 32px;
    }
}