/* PAGES: Style specyficzne dla sekcji głównej, kontaktowej i ofertowej */


/* KONTAKT */
main {
    padding: 20px;
}

.kontakt-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: stretch;
    margin: 48px auto;
    max-width: 1100px;
}

.kontakt-box, .map-box {
    background: #fefefe;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    padding: 30px;
    flex: 1;
    min-width: 350px;
}

.kontakt-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

section.kontakt-box h1 {
    font-size: 2.8em;
    font-weight: 800;
    color: #023e8a;
    margin-bottom: 0;
    text-align: left;
    letter-spacing: 0;
}

section.kontakt-box h2 {
    font-size: 1.5em;
    color: #0077b6;
    margin-top: 5px;
    margin-bottom: 25px;
    text-align: left;
    font-weight: 600;
}

section.kontakt-box p {
    font-size: 1.05em;
    margin-bottom: 12px;
    color: #333;
    text-align: left !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    line-height: 1.6;
}

.kontakt-box strong {
    font-weight: 700;
    color: #222;
}

.kontakt-box a {
    color: #023e8a;
    text-decoration: none;
    transition: color 0.2s;
}

.kontakt-box a:hover {
    color: #0077b6;
    text-decoration: underline;
}

.kontakt-box span {
    display: block;
    margin-top: 2px;
    font-size: 0.9em;
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
}

/* MAPA */
.map-box {
    padding: 10px;
    overflow: hidden;
}

.map-box iframe {
    width: 100%;
    height: 100%;
    display: block;
    min-height: 350px;
}


/* GŁÓWNA */
.main-banner {
    width: 100vw;
    min-height: 25vh;
    height: 28vw;
    max-height: 340px;
    position: relative;
    background: url('../img/baner.jpg') center center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    margin-bottom: 32px;
    overflow: hidden;
}

.main-banner::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(20, 20, 20, 0.55);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    width: 100%;
    padding: 0;
}

.banner-content h1 {
    font-size: 2.6em;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 16px;
    letter-spacing: 2px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.banner-content p {
    font-size: 1.25em;
    font-weight: 400;
    color: #FFFFFF;
    margin-bottom: 0;
    text-shadow: 0 1px 8px rgba(0,0,0,0.25);
}

.social-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    background: #202020;
    padding: 18px 0;
    margin: 40px auto 0 auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    max-width: 600px;
}

.social-banner span {
    font-size: 1.1em;
    color: #B5CCFF;
    font-weight: 600;
    margin-right: 8px;
}

.social-banner a img {
    height: 36px;
    object-fit: contain;
    transition: transform 0.2s;
    vertical-align: middle;
}

.social-banner a:hover img {
    transform: scale(1.15);
}

.serwis-section {
    max-width: 900px;
    margin: 48px auto 0 auto;
    text-align: center;
}

.serwis-section h2 {
    font-size: 2em;
    font-weight: 700;
    color: #B5CCFF;
    margin-bottom: 18px;
    letter-spacing: 1px;
}

.serwis-section p {
    font-size: 1.15em;
    color: #F6F6F6;
    margin-bottom: 36px;
    line-height: 1.6;
}

.serwis-boxes {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.serwis-box {
    background: #202020;
    border: 2px solid #0077b6;
    border-radius: 12px;
    width: 160px;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    font-size: 1.08em;
    font-weight: 500;
    color: #FFFFFF;
    cursor: default;
    padding: 18px 10px;
}

.serwis-box:hover {
    border-color: #023e8a;
    box-shadow: 0 4px 16px rgba(0,119,182,0.10);
    transform: translateY(-4px) scale(1.04);
}

.serwis-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 1px;
    object-fit: contain;
    opacity: 0.85;
}

.serwis-more {
    background: #0077b6;
    color: #fff;
    border-color: #0077b6;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    text-decoration: none;
}

.serwis-more:hover {
    background: #023e8a;
    border-color: #023e8a;
    color: #ffd700;
    transform: translateY(-4px) scale(1.04);
}

.oferta-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    background: #202020;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 18px 32px;
    max-width: 600px;
    margin: 32px auto 0 auto;
    font-size: 1.12em;
    color:#FFFFFF;
}

.oferta-icon {
    font-size: 2.5em;
    color: #0077b6;
}

.oferta-btn {
    display: inline-block;
    margin-top: 8px;
    background: #0077b6;
    color: #fff;
    padding: 8px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}

.oferta-btn:hover {
    background: #023e8a;
    color: #ffd700;
}


/* OFERTA */
.oferta-section {
    max-width: 1000px;
    margin: 24px auto 0 auto;
    background: rgba(35, 35, 35, 0.65);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 40px 32px;
    text-align: center;
}

.oferta-section h1 {
    color: #023e8a;
    font-size: 2.3em;
    margin-bottom: 18px;
    font-weight: 800;
}

.oferta-section p {
    font-size: 1.15em;
    color: #222;
    margin-bottom: 32px;
    line-height: 1.6;
}

.oferta-kategorie {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    margin-bottom: 32px;
}

.oferta-kategoria {
    background: #232323;
    border: 2px solid #4DA0E2;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 119, 182, 0.07);
    width: 220px;
    min-width: 180px;
    padding: 24px 16px;
    text-align: left;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.oferta-kategoria:hover {
    border-color: #023e8a;
    box-shadow: 0 4px 16px rgba(0,119,182,0.12);
    transform: translateY(-4px) scale(1.04);
}

.oferta-kategoria h2 {
    font-size: 1.15em;
    color: #0077b6;
    margin-bottom: 12px;
    font-weight: 700;
    text-align: center;
}

.oferta-kategoria ul {
    padding-left: 18px;
    margin: 0;
    color: #222;
    font-size: 1em;
}

.oferta-info {
    margin-top: 24px;
    font-size: 1.08em;
}

.oferta-btn {
    display: inline-block;
    margin-top: 12px;
    background: #0077b6;
    color: #fff;
    padding: 10px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}

.oferta-btn:hover {
    background: #023e8a;
    color: #ffd700;
}


/* OPINIE KLIENTÓW - NOWY STYL DYNAMICZNY */
.opinie-section {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

/* Styl dla sekcji zachęcającej do dodawania opinii */
.opinia-form-wrapper {
    background: #1C2830;
    border: 1px solid #0077b6;
    border-radius: 12px;
    padding: 30px;
    margin: 30px auto;
    max-width: 700px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.opinia-form-wrapper h2 {
    color: #023e8a;
    font-size: 2em;
    margin-top: 0;
}

.opinia-form-wrapper p {
    color: #333;
    font-size: 1.1em;
    margin-bottom: 25px;
}

/* Styl dla przycisku/linku do wystawiania opinii w Google */
.opinia-button {
    display: inline-block;
    background: #4CAF50;
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.opinia-button:hover {
    background: #45a049;
    transform: translateY(-2px);
}

/* Styl dla miejsca osadzenia widżetu */
.google-opinie-box {
    margin: 30px 0;
    min-height: 500px;
    
    border-radius: 8px;
    overflow: hidden;
}

/* Styl dla poziomej linii oddzielającej sekcje */
.opinia-divider {
    border: 0;
    height: 1px;
    background: #ccc;
    margin: 40px auto;
    max-width: 500px;
}


/* GALERIA - UKŁAD SIATKI (3 KOLUMNY) */
.gallery-grid {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s;
}

/* LIGHTBOX / MODAL DLA POWIĘKSZANIA ZDJĘĆ */
.lightbox {
    display: none;
    position: fixed;
    z-index: 100;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    transition: opacity 0.3s;
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 55px;
    right: 135px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* ========================================= */
/* MEDIA QUERY: OPTYMALIZACJA MOBILNA (max-width: 768px) */
/* ========================================= */
@media (max-width: 768px) {
    
    main {
        padding: 10px;
    }

    /* KONTAKT */
    .kontakt-flex {
        flex-direction: column;
        gap: 20px;
        margin: 20px auto;
    }

    .kontakt-box, .map-box {
        min-width: unset;
        width: 80%;
        padding: 5px;
    }

    /* GŁÓWNA */
    .main-banner {
        height: 150px;
        max-height: 150px;
    }
    
    .banner-content h1 {
        font-size: 1.8em;
        letter-spacing: 1px;
    }
    
    .banner-content p {
        font-size: 1em;
        padding: 0 10px;
    }

    .social-banner {
        flex-direction: column;
        gap: 12px;
        padding: 15px 0;
        max-width: 90%;
        margin: 20px auto 0 auto;
    }

    .social-banner span {
        margin-right: 0;
    }

    .serwis-section {
        margin: 30px auto 0 auto;
        /* KLUCZOWA ZMIANA: Dodanie marginesów bocznych dla sekcji głównej */
        padding: 0 15px; 
    }

    .serwis-section p {
        /* KLUCZOWA ZMIANA: Zmniejszenie czcionki i marginesów dla tekstu pod nagłówkiem */
        font-size: 1em; /* Zmniejszenie z 1.15em */
        margin-bottom: 25px;
    }

    .serwis-boxes {
        gap: 15px;
    }

    .serwis-box {
        width: 130px;
        min-height: 130px;
        font-size: 1em;
        padding: 15px 5px;
    }

    .serwis-icon {
        width: 70px;
        height: 70px;
    }

    .oferta-banner {
        flex-direction: column;
        gap: 15px;
        padding: 20px 15px;
        max-width: 90%;
    }

    /* OFERTA */
    .oferta-section {
        padding: 20px 15px;
    }

    .oferta-kategorie {
        gap: 20px;
    }

    .oferta-kategoria {
        width: 100%;
        min-width: unset;
        max-width: 350px;
        padding: 20px;
    }
    
    /* GALERIA */
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
        padding: 0 10px;
    }

    /* LIGHTBOX */
    .lightbox-close {
        top: 10px;
        right: 20px;
    }

    .lightbox-content {
        max-width: 95%;
        padding-top: 10px;
    }
}