/* General styles */
body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #333;
    line-height: 1.7;
    background-color: #f8fbfd;
}

a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: #0056b3;
    margin-bottom: 20px;
    text-align: center;
}

h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.8em; }

/* Buttons */
.btn-primary, .btn-submit {
    display: inline-block;
    background-color: #28a745;
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 30px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
}

.btn-primary:hover, .btn-submit:hover {
    background-color: #218838;
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-submit .fas {
    margin-right: 8px;
}

/* Header */
.header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 5%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap; /* Allow wrapping on smaller screens for contact info */
}

.logo {
    flex-shrink: 0;
    margin-right: 40px;
}

.logo img {
    max-height: 120px; /* Zwiększony rozmiar logo */
    width: auto;
    display: block;
}

.contact-info-top {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    flex-grow: 1;
    justify-content: flex-start;
}

.header .phone, .header .email-top {
    font-size: 1.1em;
    font-weight: bold;
    color: #007bff;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.header .phone .fas, .header .email-top .fas {
    margin-right: 8px;
    color: #28a745;
}

/* Hamburger menu button (hidden on desktop) */
.hamburger {
    display: none; /* Domyślnie ukryty na desktopie */
    background: none;
    border: none;
    font-size: 1.8em;
    color: #333;
    cursor: pointer;
    padding: 10px;
    margin-left: auto; /* Wyrównaj do prawej */
    order: 1; /* Ustaw kolejność wyświetlania na mobile */
}

/* Desktop Menu Styles */
.header .menu {
    flex-grow: 2;
    text-align: right;
    /* Dodatkowe miejsce dla menu */
    flex-basis: auto; /* Pozwól menu dostosować swoją bazową szerokość */
}

.header .menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end; /* Wyrównanie elementów menu do prawej */
    flex-wrap: nowrap; /* Zapobiega zawijaniu się linków na desktopie */
}

.header .menu ul li {
    margin-left: 25px; /* Zwiększony odstęp dla menu */
}

.header .menu ul li a {
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
    padding: 5px 0;
    position: relative;
    display: flex;
    align-items: center;
    white-space: nowrap; /* Zapobiega łamaniu się linii w linkach menu */
}

.header .menu ul li a .fas {
    margin-right: 7px;
    color: #007bff;
}

.header .menu ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: #007bff;
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

.header .menu ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 86, 179, 0.8), rgba(0, 86, 179, 0.8)), url('https://via.placeholder.com/1600x600/0056b3/FFFFFF?text=Profesjonalne+usługi+DDD+w+Krakowie') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 120px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    color: #fff;
    font-size: 3.5em;
    margin-bottom: 25px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    line-height: 1.2;
}

.hero p {
    font-size: 1.5em;
    color: #e0e0e0;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
    font-weight: 300;
}

/* Section Common Styling for Centering and Max-width */
section {
    padding: 60px 5%;
    max-width: 1200px;
    margin: 40px auto;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
}

/* Override background for specific sections */
.services-main {
    background-color: #e9f7ff;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    align-items: stretch;
}
.guarantee-section {
    background-color: #e6f7ff;
}
.contact-info {
    background-color: #2c3e50;
    color: #fff;
}
.gallery-section {
    background-color: #f0f8ff;
}
.contact-form-section {
    background-color: #f0f8ff;
}

/* About Us Section */
.about-us h2 {
    margin-bottom: 30px;
    color: #0056b3;
}

.about-us p {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    line-height: 1.8;
}

.about-us img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Services Sections */
.services-main h2 {
    width: 100%;
    margin-bottom: 40px;
    color: #0056b3;
}

.service-column {
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-column:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.service-column .service-icon {
    font-size: 3.5em;
    color: #28a745;
    margin-bottom: 20px;
}

.service-column h3 {
    color: #007bff;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.service-column p {
    font-size: 1.05em;
    margin-bottom: 20px;
    text-align: justify;
}

.service-column ul {
    list-style: none;
    padding: 0;
    text-align: left;
    width: 100%;
}

.service-column ul li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    align-items: center;
}

.service-column ul li:last-child {
    border-bottom: none;
}

.service-column ul li::before {
    content: '✔️';
    margin-right: 10px;
    color: #28a745;
}

/* Guarantee Section */
.guarantee-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.guarantee-section h2 {
    margin-bottom: 30px;
    color: #0056b3;
}

.guarantee-text {
    font-size: 1.2em;
    max-width: 800px;
    margin-bottom: 40px;
    line-height: 1.8;
    color: #555;
    position: relative;
    padding-top: 15px;
    text-align: justify;
}

.guarantee-text p {
    margin-bottom: 15px;
}

.guarantee-icon {
    font-size: 3em;
    color: #28a745;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #e6f7ff;
    padding: 5px 10px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stats-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-top: 20px;
}

.stat-item {
    background-color: #007bff;
    color: #fff;
    padding: 30px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-align: center;
    min-width: 200px;
    flex: 1;
}

.stat-item .stat-counter {
    font-size: 3.5em;
    font-weight: bold;
    display: block;
    line-height: 1;
}

.stat-item .percent, .stat-item .plus, .stat-item .years {
    font-size: 0.6em;
    vertical-align: super;
    margin-left: 5px;
}

.stat-item p {
    font-size: 1.2em;
    margin-top: 10px;
    color: #fff;
    line-height: 1.3;
}

/* Pricing Section */
.pricing-intro {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #555;
}

.pricing-table {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.pricing-item {
    background-color: #f0f8ff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.pricing-item h3 {
    color: #007bff;
    font-size: 1.6em;
    margin-bottom: 20px;
}

.pricing-item .price {
    font-size: 2.2em;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 25px;
    display: flex; /* Użyj flexbox dla napisu "od" i kwoty */
    align-items: baseline; /* Wyrównaj tekst "od" do linii bazowej kwoty */
    justify-content: center; /* Wyśrodkuj razem */
    white-space: nowrap; /* Zapobiega zawijaniu */
}

.pricing-item .price .price-prefix {
    font-size: 0.7em; /* Zmniejsz rozmiar "od" */
    font-weight: normal; /* Normalna waga dla "od" */
    margin-right: 5px; /* Odstęp między "od" a kwotą */
    color: #555; /* Kolor dla "od" */
}

.pricing-item .price span {
    font-size: 1em; /* Upewnij się, że rozmiar kwoty jest stały */
    vertical-align: baseline; /* Wyrównaj do linii bazowej */
}

.pricing-item ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-top: 20px;
}

.pricing-item ul li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    align-items: center;
}

.pricing-item ul li:last-child {
    border-bottom: none;
}

.pricing-item ul li .fas {
    margin-right: 10px;
    color: #28a745;
}

.pricing-section .note {
    margin-top: 40px;
    font-size: 0.95em;
    color: #777;
}

/* Contact Info (bottom) */
.contact-info h2 {
    color: #fff;
    margin-bottom: 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.contact-details p {
    margin: 15px 0;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.contact-details p .fas, .contact-details p .fab {
    margin-right: 15px;
    color: #66ccff;
    font-size: 1.4em;
}

.contact-details a {
    color: #66ccff;
    font-weight: bold;
}

.contact-details a:hover {
    color: #99e6ff;
}

.social-icons {
    margin-top: 30px;
    text-align: left;
}

.social-icons a {
    font-size: 2.2em;
    color: #66ccff;
    margin-right: 15px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-icons a:hover {
    color: #fff;
    transform: scale(1.1);
}

.contact-map iframe {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Contact Form Section */
.contact-form-section {
    background-color: #f0f8ff;
}

.contact-form-section h2 {
    margin-bottom: 30px;
    color: #0056b3;
}

.form-intro {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #555;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.form-group textarea {
    resize: vertical;
}

/* Gallery Section - Slideshow */
.gallery-section h2 {
    color: #333;
    margin-bottom: 40px;
}

.slideshow-container {
    max-width: 800px;
    position: relative;
    margin: auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    background-color: #fff;
}

.mySlides {
    display: none;
    position: relative;
}

.mySlides img {
    width: 100%;
    height: auto;
    display: block;
}

.text {
    color: #f2f2f2;
    font-size: 1.2em;
    padding: 18px 15px;
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7);
    box-sizing: border-box;
}

/* Next & previous buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 18px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 2.5em;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.6);
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little more opacity */
.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.9);
}

/* The dots/bullets/indicators */
.dot {
    cursor: pointer;
    height: 18px;
    width: 18px;
    margin: 0 6px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease, transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.active, .dot:hover {
    background-color: #717171;
    transform: scale(1.1);
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

/* Footer */
.footer {
    text-align: center;
    padding: 25px;
    background-color: #2c3e50;
    color: #fff;
    font-size: 0.9em;
    margin-top: 50px;
}

/* Floating Call Now Button */
.call-now-button {
    position: fixed;
    bottom: 20px;
    left: 20px; /* PRZENIESIONO Z PRAWEJ NA LEWĄ */
    background-color: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}

.call-now-button .fas {
    margin-right: 10px;
    font-size: 1.4em;
}

.call-now-button:hover {
    background-color: #218838;
    transform: translateY(-3px);
    text-decoration: none;
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: white;
    padding: 15px 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 1001; /* Higher than call button */
    display: none; /* Domyślnie ukryty, JS go pokazuje jeśli trzeba */
    flex-wrap: wrap; /* Użyte do zawijania na małych ekranach */
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.cookie-banner p {
    margin: 0;
    flex-grow: 1;
    font-size: 0.95em;
    line-height: 1.5;
    text-align: center;
}

.cookie-banner a {
    color: #87CEEB;
    text-decoration: underline;
}

.btn-cookie-accept {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.btn-cookie-accept:hover {
    background-color: #0056b3;
}


/* --- RESPONSIVE DESIGN --- */

/* Media query for smaller screens (e.g., tablets and phones) */
@media (max-width: 992px) {
    .header-content {
        flex-direction: row; /* Zmieniono na wiersz, aby logo i hamburger były obok siebie */
        justify-content: space-between; /* Rozrzuć elementy */
        align-items: center;
        flex-wrap: nowrap; /* Nie zawijaj głównego kontenera headera na tej szerokości */
    }

    .logo {
        margin-bottom: 0; /* Usuń margines dolny */
        margin-right: auto; /* Wyrównaj logo do lewej */
    }

    .logo img {
        max-height: 70px; /* Zmniejsz logo na mniejszych ekranach */
    }

    .contact-info-top {
        display: none; /* Ukryj numer telefonu i email z top headera na mobile */
    }

    /* Pokaż hamburger na mobile */
    .hamburger {
        display: block;
        position: static; /* Powrót do normalnego przepływu */
        order: 2; /* Ustaw kolejność po prawej */
        margin-left: auto; /* Wyrównaj do prawej, jeśli są inne elementy */
    }

    /* Ukryj standardowe menu na mobile */
    .header .menu {
        display: none; /* Domyślnie ukryte */
        width: 100%;
        background-color: #fff;
        position: absolute;
        top: 100%; /* Pod nagłówkiem */
        left: 0;
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        transition: transform 0.3s ease-out, opacity 0.3s ease-out;
        transform: translateY(-100%); /* Start poza ekranem */
        opacity: 0;
        pointer-events: none; /* Nie reaguje na kliknięcia, gdy ukryte */
    }

    /* Styl dla otwartego menu mobilnego */
    .header .menu.active {
        display: flex; /* Pokaż, gdy aktywne */
        transform: translateY(0); /* Wsuń na ekran */
        opacity: 1;
        pointer-events: auto; /* Reaguje na kliknięcia */
    }

    .header .menu ul {
        flex-direction: column; /* Elementy menu w kolumnie */
        width: 100%;
        align-items: center;
    }

    .header .menu ul li {
        margin: 10px 0;
        width: 90%;
        text-align: center;
    }

    .header .menu ul li a {
        padding: 10px 0;
        display: block;
        border-bottom: 1px solid #eee;
    }

    .header .menu ul li:last-child a {
        border-bottom: none;
    }

    .header .menu ul li a::after {
        display: none; /* Usuń podkreślenie na hover na mobile */
    }

    .hero h1 {
        font-size: 2.2em;
    }

    .hero p {
        font-size: 1.2em;
    }

    section {
        padding: 40px 3%;
        margin: 20px auto;
    }

    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.5em; }

    .service-column {
        min-width: unset;
        width: 100%;
        max-width: 450px;
    }

    .guarantee-text {
        font-size: 1.1em;
    }

    .stats-container {
        flex-direction: column;
        align-items: center;
    }

    .stat-item {
        width: 90%;
        max-width: 300px;
    }

    .pricing-table {
        flex-direction: column;
        align-items: center;
    }

    .pricing-item {
        width: 90%;
        max-width: 400px;
    }

    .contact-grid {
        flex-direction: column;
    }

    .contact-details, .contact-map {
        width: 100%;
        text-align: center;
    }

    .contact-details p {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }

    .btn-submit {
        width: 100%;
    }

    .call-now-button {
        bottom: 80px; /* Move up to avoid cookie banner */
        font-size: 1.1em;
        padding: 12px 18px;
    }
    .cookie-banner {
        flex-direction: column;
        gap: 10px;
        padding: 10px 15px;
        align-items: stretch;
    }
    .cookie-banner p {
        font-size: 0.85em;
    }
    .btn-cookie-accept {
        width: 100%;
        padding: 10px;
    }
}

/* Media query for very small screens (e.g. older phones, landscape mode) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8em;
    }

    .hero p {
        font-size: 1em;
    }

    .btn-primary {
        padding: 12px 20px;
        font-size: 1em;
    }

    h1 { font-size: 1.8em; }
    h2 { font-size: 1.5em; }
    h3 { font-size: 1.3em; }

    /* Ukryj info kontaktowe na bardzo małych ekranach w nagłówku */
    .contact-info-top {
        display: none;
    }
    
    .call-now-button {
        left: 10px;
        right: 10px;
        width: auto;
        border-radius: 10px; /* Less rounded on small screens */
        padding: 12px 15px;
    }
}