*{
    margin: 0;
    padding: 0;
    font-family: 'Roboto Condensed', sans-serif;
    scroll-behavior: smooth;
}

.header {
    min-height: 100vh;
    width: 100%;
    /* Poprawiona literówka z '07' na '0.7' */
    background-image: linear-gradient(rgba(4, 9, 30, 0.7), rgba(4, 9, 30, 0.7)), url(baner1.jpg);
    background-position: center;
    background-size: cover;
    position: relative;
    height: auto;
}

.logo {
    position: absolute;
    margin: 20px;
}

/* Stare menu nawigacyjne na stronie głównej */
nav, nawigacja {
    display: flex;
    text-align: center;
    align-items: center;
    padding: 1%;
}

.opcje {
    flex: 1;
    text-align: center;
}

.opcje ul li {
    list-style: none;
    display: inline-block;
    padding: 0px 10px;
}

.opcje ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
}

.opcje ul li::after {
    content: '';
    width: 0%;
    height: 2px;
    background: #ff4466;
    display: block;
    margin: auto;
    transition: 0.5s;
}

.opcje ul li:hover::after {
    width: 100%;
}

.tekst-główny {
    width: 90%;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.tekst-główny h1 {
    font-size: 50px;
}

.tekst-główny p {
    margin: 10px 0 40px;
    font-size: 30px;
}

.oferta {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    border: 1px solid #ffffff;
    padding: 12px 34px;
    font-size: 16px;
    background: transparent;
    position: relative;
    cursor: pointer;
    transition: 0.5s ease;
}

.oferta:hover {
    border: 1px solid #ff4466;
    background: #ff4466;
}

/* Sekcje: O nas, Stara oferta, Kontakt */
.o-nas h1, .nasza-oferta h1, .kontakt h1 {
    margin-top: 30px;
    color: #000033;
    font-size: 40px;
    text-align: center;
}

.o-nas p {
    margin-top: 30px;
    padding-left: 30%;
    padding-right: 30%;
    color: #000033;
    font-size: 25px;
    text-align: left;
}

.przyciski-ofert {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.oferta-przyciski {
    margin: 50px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 90px;
    width: 90px;
    text-decoration: none;
    color: #000000;
    border: 1px solid #000000;
    padding: 20px;
    font-size: 16px;
    text-align: center;
    background: transparent;
    position: relative;
    cursor: pointer;
    transition: 0.5s ease;
}

.oferta-przyciski:hover {
    border: 1px solid #ff4466;
    background: #ff4466;
}

.mapa {
    display: flex;
    align-items: flex-start;
    padding: 50px;
    flex-wrap: wrap;
}

.mapa ul li {
    list-style: none;
    display: block;
    padding: 2px;
    margin-left: 70px;
}

.mapa ul li a {
    color: #000000;
    font-size: 20px;
}

.formField {
    border: 1px solid #000033;
    border-radius: 3px;
    margin: 2%;
    padding: 5px;
    font: inherit;
}

textarea.formField {
    width: 450px;
    height: 100px;
}

.sendBtn {
    border-radius: 10px;
    text-decoration: none;
    color: #000000;
    border: 1px solid #000000;
    padding: 5px 20px;
    font-size: 16px;
    text-align: center;
    background: transparent;
    cursor: pointer;
    transition: 0.5s ease;
}

.sendBtn:hover {
    border: 1px solid #ff4466;
    background: #ff4466;
}

.formularz { padding-left: 8%; }
.status_ok { color: #060; }
.status_err { color: #F00; }

.koniec {
    width: 100%;
    height: 100px;
    background: #000033;
    position: relative;
}

.koniec a {
    position: absolute;
    color: white;
    font-size: 15px;
    padding: 10px;
    margin-top: 55px;
}

/* Górny pasek podstron */
.oferta-glowna {
    width: 100%;
    background-color: #000033;
    background-position: center;
    background-size: cover;
    position: relative;
    height: 100px;
}

.logo1 {
    position: absolute;
    top: 5px;
    left: 20px;
}

/* =========================================
   2. NOWY PASEK NAWIGACJI (OFERTA)
========================================= */
.oferta-nawigacja {
    width: 100%;
    background-color: #00008B;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.nowa-lista-oferta {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    height: 50px;
}

.nowa-lista-oferta li {
    height: 50px;
    line-height: 50px;
    padding: 0 25px;
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

.nowa-lista-oferta li:hover,
.nowa-lista-oferta li.aktywne {
    background-color: #ff4466;
}

/* =========================================
   3. SIATKA USŁUG (KAFELKI)
========================================= */
.uslugi-siatka {
    padding: 80px 0;
    background-color: #ffffff;
}

.container-oferta {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.naglowek-sekcji-center {
    text-align: center;
    margin-bottom: 50px;
    padding-top: 40px;
}

.tytul-sekcji {
    color: #000033;
    font-size: 40px;
    margin-bottom: 20px;
}

.opis-wstepny {
    color: #555;
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 350px));
    gap: 40px;
    padding-bottom: 50px;
    justify-content: center;
}

.card-oferta {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 30, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid #f0f0f5;
}

.card-oferta:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 30, 0.12);
}

.card-img-wrapper {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background-color: #f0f0f5;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.card-oferta:hover .card-img-wrapper img {
    transform: scale(1.08);
}

.card-content {
    padding: 30px 25px;
}

.card-content h3 {
    color: #000033;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.akcent-linia {
    width: 50px;
    height: 3px;
    background-color: #ff4466;
    margin-bottom: 20px;
    transition: width 0.4s ease;
}

.card-oferta:hover .akcent-linia {
    width: 100px;
}

.card-content p {
    color: #555555;
    font-size: 16px;
    line-height: 1.7;
}

/* Klasy do przełączania w JS */
.card-oferta.ukryty {
    display: none !important;
}

.card-oferta.pokaz {
    display: block !important;
    animation: slideUp 0.5s ease forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   4. GALERIA REALIZACJI
========================================= */
.sekcja-galeria {
    padding: 80px 0;
    background-color: #ffffff;
}

.container-galeria {
    margin: 50px auto;
    padding: 0 40px;
    max-width: 1200px;
}

.grid-galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.gallery-card {
    position: relative;
    width: 100%;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 30, 0.1);
    cursor: pointer;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 51, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-card:hover img {
    transform: scale(1.1);
}

.powieksz-btn {
    color: #ffffff;
    border: 2px solid #ff4466;
    padding: 10px 25px;
    font-size: 16px;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.gallery-card:hover .powieksz-btn {
    transform: scale(1.05);
}

.powieksz-btn:hover {
    background-color: #ff4466;
}

/* =========================================
   5. LIGHTBOX (POWIĘKSZANIE ZDJĘĆ)
========================================= */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    border: 3px solid #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-lightbox:hover {
    color: #ff4466;
}

/* Responsywność dla urządzeń mobilnych */
@media (max-width: 768px) {
    .nowa-lista-oferta {
        flex-wrap: wrap;
        height: auto;
    }
    .nowa-lista-oferta li {
        width: 100%;
        text-align: center;
    }
    .oferta-nawigacja {
        height: auto;
    }
    .tytul-sekcji {
        font-size: 32px;
    }
}

/* =========================================
   ANIMACJE WEJŚCIA (MENU I GALERIA)
========================================= */

/* 1. Animacja dla przycisków menu (Kategorie) */
.nowa-lista-oferta li {
    opacity: 0; /* Początkowo niewidoczne */
    animation: fadeInDown 0.6s ease forwards;
}

/* Opóźnienia dla kolejnych przycisków, żeby wpadały jeden po drugim (efekt fali) */
.nowa-lista-oferta li:nth-child(1) { animation-delay: 0.1s; }
.nowa-lista-oferta li:nth-child(2) { animation-delay: 0.2s; }
.nowa-lista-oferta li:nth-child(3) { animation-delay: 0.3s; }
.nowa-lista-oferta li:nth-child(4) { animation-delay: 0.4s; }
.nowa-lista-oferta li:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px); /* Zaczynają trochę wyżej */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* Wracają na swoje miejsce */
    }
}

/* 2. Animacja wjazdu dla kafelków Galerii */
.gallery-card {
    opacity: 0;
    animation: fadeInUpCard 0.7s ease forwards;
}

/* Opóźnienia dla zdjęć w galerii (do 9 pierwszych zdjęć) */
.gallery-card:nth-child(1) { animation-delay: 0.1s; }
.gallery-card:nth-child(2) { animation-delay: 0.2s; }
.gallery-card:nth-child(3) { animation-delay: 0.3s; }
.gallery-card:nth-child(4) { animation-delay: 0.4s; }
.gallery-card:nth-child(5) { animation-delay: 0.5s; }
.gallery-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUpCard {
    from {
        opacity: 0;
        transform: translateY(40px); /* Wyjeżdżają z dołu */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}