/* --- RESET I USTAWIENIA GŁÓWNE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
    background-color: #0d1a26;
    /* Ciemny granat tła */
    color: #f0f0f0;
}

/* Klasa pomocnicza do blokowania przewijania */
body.no-scroll {
    overflow: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3 {
    line-height: 1.3;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 600;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 20px;
}

a {
    color: #e67e22;
    /* Pomarańczowy akcent */
    text-decoration: none;
}

/* --- NAWIGACJA (MENU) --- */
header {
    background: #081017;
    padding: 20px 0;
    border-bottom: 2px solid #1a2f42;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    z-index: 1002;
    /* Na wierzchu menu mobilnego */
}

nav {
    /* To jest teraz nawigacja desktopowa */
}

nav ul {
    list-style: none;
    display: flex;
}

nav li {
    margin-left: 25px;
}

nav a {
    text-decoration: none;
    color: #f0f0f0;
    font-weight: 500;
    font-size: 1rem;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Aktywny link - pomarańczowy */
nav a.active {
    background-color: #e67e22;
    color: #ffffff;
}

nav a.active.home-active {
    background-color: transparent;
    color: #e67e22;
    /* Tylko pomarańczowy tekst */
}

nav a:not(.active):hover {
    background-color: #1a2f42;
    /* Lekki hover */
    color: #ffffff;
}

/* --- PRZYCISK HAMBURGERA --- */
.hamburger {
    display: none;
    /* Ukryty na desktopie */
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1002;
    /* Na wierzchu menu mobilnego */
    padding: 5px;
}

.hamburger.is-active {
    color: #e67e22;
    /* Pomarańczowy po kliknięciu */
}


/* --- SEKCJA HERO (STRONA GŁÓWNA) --- */
.hero-main {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('hero-bg.jpg') no-repeat center center;
    background-size: cover;
    height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    color: #ffffff;
}

.hero-main h1 {
    font-size: 3.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.cta-button {
    display: inline-block;
    background-color: #e67e22;
    /* Pomarańczowy */
    color: #ffffff;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 20px;
}

.cta-button:hover {
    background-color: #d35400;
    /* Ciemniejszy pomarańczowy */
    transform: scale(1.05);
}


/* --- SEKCJA O MNIE (STRONA GŁÓWNA) --- */
.about-section {
    padding: 80px 0;
    text-align: center;
    background-color: #0f2130;
    /* Trochę jaśniejszy granat */
}

.about-logo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    /* Robi kółko */
    border: 4px solid #1a2f42;
    margin: 0 auto 30px auto;
    background: url('LOGO.jpg') no-repeat center center;
    background-size: cover;
}

.about-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-section p {
    font-size: 1.1rem;
    color: #bbb;
    max-width: 700px;
    margin: 0 auto;
}


/* --- GŁÓWNA ZAWARTOŚĆ (DLA PODSTRON) --- */
.main-content {
    padding: 60px 0;
}

.main-content.text-page {
    max-width: 800px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

/* --- STOPKA --- */
footer {
    background: #081017;
    color: #aaa;
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid #1a2f42;
    margin-top: 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-links a {
    color: #aaa;
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: #e67e22;
    transform: scale(1.1);
}

footer p {
    margin-top: 20px;
    font-size: 0.9rem;
}

/* --- PODSTRONA PORTFOLIO (FILMY) --- */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin-bottom: 30px;
    border-radius: 8px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- PODSTRONA OFERTA (CENNIK) --- */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    background-color: #0f2130;
    border-radius: 8px;
    overflow: hidden;
}

.price-table th,
.price-table td {
    padding: 20px;
    border-bottom: 1px solid #1a2f42;
    text-align: left;
}

.price-table th {
    background-color: #1a2f42;
    color: #ffffff;
    font-size: 1.2rem;
}

.price-table td:last-child {
    text-align: right;
    font-weight: bold;
    color: #ffffff;
    font-size: 1.1rem;
    width: 120px;
}

.price-table .service-name {
    color: #f0f0f0;
    font-weight: 500;
}

.price-table .service-description {
    font-size: 0.9rem;
    color: #bbb;
    padding-top: 5px;
}

.price-table tr:last-child td {
    border-bottom: 0;
}

/* --- PODSTRONA KONTAKT --- */
.contact-info {
    font-size: 1.2rem;
    margin-bottom: 30px;
    background-color: #0f2130;
    padding: 40px;
    border-radius: 8px;
}

.contact-info p {
    margin-bottom: 15px;
}

.contact-info a {
    color: #f0f0f0;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #e67e22;
}


/* --- GALERIA ZDJĘĆ (POPRAWIONA) --- */
.photo-gallery {
    display: grid;
    /* 3 kolumny na dużych, 2 na tabletach, 1 na telefonie */
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gallery-item {
    width: 100%;
    height: auto;
    /* Automatyczna wysokość */
    display: block;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

/* --- LIGHTBOX (OKNO MODALNE) --- */
.lightbox-modal {
    display: none;
    /* Domyślnie ukryty */
    position: fixed;
    z-index: 1003;
    /* Nad wszystkim */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-modal.active {
    display: flex;
    /* Pokazuje lightbox */
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    border-radius: 5px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #bbb;
}

/* --- STRZAŁKI LIGHTBOXA --- */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: #ffffff;
    cursor: pointer;
    padding: 0 20px;
    user-select: none;
    /* Zapobiega zaznaczaniu tekstu */
    transition: color 0.3s ease;
}

.lightbox-prev {
    left: 10px;
}

.lightbox-next {
    right: 10px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: #bbb;
}


/* --- NOWY KALKULATOR --- */
#price-calculator {
    background-color: #0f2130;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 60px;
}

#price-calculator h2 {
    border-bottom: 2px solid #1a2f42;
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: #e67e22;
    /* Pomarańczowy */
}

.calc-section {
    margin-bottom: 30px;
}

.calc-option {
    display: block;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.calc-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.calc-option input[type="radio"],
.calc-option input[type="checkbox"] {
    margin-right: 15px;
    /* Powiększenie pól wyboru */
    transform: scale(1.3);
}

.calc-option-details {
    margin-left: 35px;
    /* Wcięcie dla pól liczbowych */
    margin-top: 10px;
    color: #bbb;
}

.calc-option-details label {
    display: block;
    margin-bottom: 5px;
}

.calc-input-number {
    background-color: #0d1a26;
    color: #ffffff;
    border: 1px solid #1a2f42;
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 1rem;
    width: 80px;
}

/* Ukrywa pola liczbowe domyślnie */
.hidden-field {
    display: none;
}

/* --- POLE PODSUMOWANIA CENY --- */
#total-price-box {
    background-color: #081017;
    border-top: 3px solid #e67e22;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    position: sticky;
    bottom: 20px;
    z-index: 99;
}

#total-price-box h2 {
    margin: 0 0 10px 0;
    color: #ffffff;
    font-size: 1.5rem;
}

#total-price-output {
    font-size: 2.5rem;
    font-weight: bold;
    color: #e67e22;
}

/* --- KONIEC STYLI KALKULATORA --- */


/* --- RESPONSYWNOŚĆ (TELEFONY) --- */
@media (max-width: 1000px) {

    /* 2 kolumny na tabletach */
    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-main h1 {
        font-size: 2.5rem;
    }

    /* --- MENU MOBILNE --- */
    .hamburger {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: #081017;
        border-left: 2px solid #1a2f42;
        padding: 100px 40px 40px 40px;
        transition: right 0.3s ease-in-out;
        z-index: 1001;
    }

    nav.nav-open {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    nav li {
        margin: 15px 0;
        width: 100%;
    }

    nav a {
        font-size: 1.2rem;
        padding: 10px 0;
        color: #ffffff;
    }

    nav a.active,
    nav a.active.home-active {
        background: none;
        color: #e67e22;
    }

    .hero-main {
        height: 50vh;
    }

    /* Tabela Cennika */
    .price-table th,
    .price-table td {
        padding: 10px;
        display: block;
        width: 100%;
    }

    .price-table td:last-child {
        text-align: left;
        padding-top: 0;
    }

    .price-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #1a2f42;
        border-radius: 8px;
    }

    .price-table th {
        display: none;
    }

    .price-table td {
        border-bottom: none;
    }

    .price-table .service-name {
        font-size: 1.2rem;
        color: #e67e22;
    }

    /* Galeria na mobilnych - 1 kolumna */
    .photo-gallery {
        grid-template-columns: 1fr;
    }

    /* Mniejsze strzałki na mobilnych */
    .lightbox-prev,
    .lightbox-next {
        font-size: 2rem;
    }

    /* Kalkulator na mobilnych */
    #price-calculator {
        padding: 20px;
    }

    #total-price-box {
        bottom: 0;
        border-radius: 0;
    }
}