body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: #f9f9f9;
    color: #333;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: #fff;
    border-bottom: 2px solid #ddd;
}

.logo-img {
    height: 60px;
}

header nav a {
    margin: 0 10px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

/* HERO – pełnoekranowe tło */
.hero {
    position: relative;
    background: url('images/hero-bg.jpg') no-repeat center center/cover;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
}
.hero .overlay {
    background-color: rgba(0,0,0,0.4);
    padding: 40px;
    border-radius: 10px;
    max-width: 30%;      /* tekst zajmuje maks 30% szerokości */
    margin: 0 auto;      /* wyśrodkowanie */
}

.hero h1 {
    font-size: 3em;      /* większy nagłówek */
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.4em;    /* większy opis */
    line-height: 1.4;
    margin-bottom: 20px;
}

.btn {
    background: #f5b400;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

/* SERVICES */
.services {
    display: flex;
    justify-content: space-around;
    padding: 40px 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 30%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.card img {
    max-width: 100%;
    border-radius: 10px;
}

.icon-link img {
    margin-top: 15px;
    width: 32px;
    transition: transform 0.3s ease;
}

.icon-link img:hover {
    transform: scale(1.2);
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
    background: #333;
    color: #fff;
}
body.laboratorium-page {
    background: url('images/bg-laboratorium.jpg') no-repeat center center fixed;
    background-size: cover;
}
.gallery-grid img {
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}
.card {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}
.btn {
    background: #f5b400;
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px; /* większe zaokrąglenie przycisków */
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, background 0.3s ease;
}

.btn:hover {
    background: #d89d00;
    transform: scale(1.05);
}

img {
    border-radius: 15px; /* zaokrąglenie rogów obrazków */
}

body.laboratorium-page {
    background: url('images/bg-laboratorium.jpg') no-repeat center center fixed;
    background-size: cover;
}
/* Pomarańczowe tło pod napisami */
.lab-overlay {
    background: rgba(255, 140, 0, 0.75);
    padding: 15px;
    border-radius: 10px;
    color: #fff;
    max-width: 80%;  /* zmniejszona szerokość panelu */
    margin: 20px auto;
}


/* Styl dla kart badań */
.lab-item {
    background: rgba(0, 0, 0, 0.35); /* ciemniejsze i bardziej przezroczyste */
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 8px;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    text-align: center;

.lab-item {
    background: rgba(0, 0, 0, 0.35); /* ciemniejsze i bardziej przezroczyste */
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 8px;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    text-align: center;

.lab-item h2 {
    margin-bottom: 10px;
    font-size: 1.5em;
    color: #ffd700; /* złoty nagłówek */
}

.lab-item p {
    font-size: 1.1em;
    line-height: 1.6;
}
/body.projektowanie-page {
    background: url('images/bg-projektowanie.jpg') no-repeat center center fixed;
    background-size: cover;
}

/* Pomarańczowy panel */
.proj-overlay {
    background: rgba(255, 140, 0, 0.75);
    padding: 20px;
    border-radius: 12px;
    color: #fff;
    max-width: 900px;
    margin: 30px auto;
}

/* Karty projektów */
.proj-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.proj-item img {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

.proj-item h3 {
    font-size: 1.5em;
    color: #ffd700;
}

.proj-item p {
    font-size: 1.1em;
    line-height: 1.6;
}
/* DORADZTWO */
body.doradztwo-page {
    background: url('images/bg-doradztwo.jpg') no-repeat center center fixed;
    background-size: cover;
}

.doradztwo-overlay {
    background: rgba(255, 140, 0, 0.75);
    padding: 20px;
    border-radius: 12px;
    color: #fff;
    max-width: 1100px;
    margin: 30px auto;
}

.doradztwo-overlay .proj-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.doradztwo-overlay .proj-item img {
    width: 30%;
    max-width: 300px; /* maksymalna szerokość na dużych ekranach */
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
}
.doradztwo-overlay .proj-item h3 {
    font-size: 1.5em;
    color: #ffd700;
}

.doradztwo-overlay .proj-item p {
    font-size: 1.1em;
    line-height: 1.6;
}

/* Responsywność doradztwa */
@media (max-width: 768px) {
    .doradztwo-overlay {
        padding: 15px;
    }
    .doradztwo-overlay .proj-item {
        padding: 10px;
    }
    .doradztwo-overlay .proj-item h3 {
        font-size: 1.3em;
    }
    .doradztwo-overlay .proj-item p {
        font-size: 1em;
    }
}

.map iframe {
    width: 200%;
    height: 900px; /* dowolna wysokość */
    border-radius: 10px;
}

/* Ogólne ustawienia obrazów */
img {
    max-width: 100%;
    height: auto;
}

/* Sekcja hero */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: #f5b400;
    color: #fff;
}
.hero h1 {
    font-size: 2.5em;
    line-height: 1.2;
    margin-bottom: 10px;
}
.hero p {
    font-size: 1.2em;
    max-width: 80%;
    margin: 0 auto 20px;
}
.hero .btn {
    display: inline-block;
    padding: 12px 20px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

/* Karty usług */
.services {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 40px 20px;
    gap: 20px;
}
.card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex: 1 1 calc(33% - 40px);
    max-width: 30%;
    text-align: center;
}
.card h2 {
    margin-top: 10px;
    font-size: 1.4em;
}
.card p {
    font-size: 1em;
    margin-bottom: 10px;
}

/* Responsywność */
@media (max-width: 992px) {
    .services {
        justify-content: center;
    }
    .card {
        max-width: 45%;
    }
}
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }
    nav {
        display: flex;
        flex-direction: column;
        gap: 5px;
        margin-top: 10px;
    }
    .hero h1 {
        font-size: 2em;
    }
    .hero p {
        font-size: 1em;
    }
    .card {
        max-width: 100%;
    }
}
@media (max-width: 480px) {
    nav a {
        font-size: 16px;
    }
    .hero h1 {
        font-size: 1.6em;
    }
    .hero p {
        font-size: 0.9em;
    }
}
/* HERO KONTAKTU */
.contact-hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
                url('images/bg-kontakt.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 80px 20px;
}
.contact-hero h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}
.contact-hero p {
    font-size: 1.2em;
}

/* BLOK KONTAKTU */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
}
.contact-info, .contact-form {
    flex: 1 1 45%;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.contact-info h2, .contact-form h2 {
    color: #f5b400;
    margin-bottom: 15px;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.contact-form button {
    width: 100%;
    padding: 12px;
    background: #f5b400;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
}
.contact-form button:hover {
    background: #e0a800;
}

/* MAPA */
.map-section {
    padding: 20px;
    text-align: center;
}
.map-section h2 {
    color: #f5b400;
    margin-bottom: 10px;
}
.map-section iframe {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }
}
/* HERO KONTAKTU */
.contact-hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
                url('images/bg-kontakt.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 80px 20px;
}
.contact-hero h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}
.contact-hero p {
    font-size: 1.2em;
}

/* BLOK KONTAKTU */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
}
.contact-info, .contact-form {
    flex: 1 1 45%;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.contact-info h2, .contact-form h2 {
    color: #f5b400;
    margin-bottom: 15px;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.contact-form button {
    width: 100%;
    padding: 12px;
    background: #f5b400;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
}
.contact-form button:hover {
    background: #e0a800;
}

/* MAPA */
.map-section {
    padding: 20px;
    text-align: center;
}
.map-section h2 {
    color: #f5b400;
    margin-bottom: 10px;
}
.map-section iframe {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }
}







/* === REALIZACJE === */
.referencje, .wspolpraca, .zaufali {
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
    text-align: center;
}
.referencje h2, .wspolpraca h2, .zaufali h2 {
    color: #f5b400;
    margin-bottom: 20px;
}
* Referencje */
.ref-card img {
    width: 100%;       /* Zajmuje całą szerokość kolumny masonry */
    max-width: 250px;  /* Nie większe niż 250px */
    height: auto;
    margin: 0 auto;
}

/* Współpracujemy + Zaufali nam */
.partners-grid img, .zaufali-grid img {
    max-width: 5%;
    height: auto;
}




/* Referencje – masonry */
.ref-grid {
    column-count: 4;
    column-gap: 20px;
}
.ref-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: inline-block;
    margin-bottom: 20px;
    width: 100%;
    padding: 10px;
}
.ref-card img {
    width: 100%;
    border-radius: 8px;
}
.ref-card p {
    font-size: 0.9em;
    margin-top: 8px;
}

/* Współpracujemy – 5 kolumn */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    justify-items: center;
    align-items: center;
}
.partner img {
    width: 80px;
    height: auto;
}
.partner p {
    font-size: 0.85em;
    margin-top: 5px;
}

/* Zaufali nam – 9 kolumn */
.zaufali-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 15px;
    justify-items: center;
    align-items: center;
}
.firma img {
    width: 60px;
    height: auto;
}
.firma p {
    font-size: 0.8em;
    margin-top: 5px;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 992px) {
    .ref-grid { column-count: 3; }
    .partners-grid { grid-template-columns: repeat(4, 1fr); }
    .zaufali-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 768px) {
    .ref-grid { column-count: 2; }
    .partners-grid { grid-template-columns: repeat(3, 1fr); }
    .zaufali-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
    .ref-grid { column-count: 1; }
    .partners-grid { grid-template-columns: repeat(2, 1fr); }
    .zaufali-grid { grid-template-columns: repeat(2, 1fr); }
}
