/* =================================================== */
/* ZMIENNE I ZASADY OGÓLNE                             */
/* =================================================== */
:root {
    --primary-blue: #0056b3;
    --accent-blue: #007bff;
    --light-blue: #eef6ff;
    --dark-grey: #212529;
    --medium-grey: #6c757d;
    --bg-light-grey: #f8f9fa;
    --white: #ffffff;
    --max-width: 1200px;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    color: var(--dark-grey);
    background-color: #fff;
    line-height: 1.6;
}

/* Zapobieganie ukrywaniu sekcji pod przyklejonym nagłówkiem */
section {
    scroll-margin-top: 80px;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* =================================================== */
/* NAGŁÓWEK I NAWIGACJA                                */
/* =================================================== */
.header {
    position: sticky;
    top: 0;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    z-index: 1000;
    height: 80px;
}

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

/* Dopasowanie logo obrazkowego */
.logo-img {
    max-height: 55px; /* Wysokość dopasowana do paska menu */
    width: auto;
    display: block;
    object-fit: contain;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark-grey);
}

.logo-icon {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-right: 12px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.company-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark-grey);
}

.company-sub {
    font-size: 0.8rem;
    color: var(--medium-grey);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav a {
    text-decoration: none;
    color: var(--dark-grey);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav a:hover {
    color: var(--primary-blue);
}

/* =================================================== */
/* TYPOGRAFIA I SEKCJE                                 */
/* =================================================== */
.section {
    padding: 70px 0;
}

.title-primary {
    text-align: center;
    color: var(--primary-blue);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.title-secondary {
    text-align: center;
    color: var(--primary-blue);
    font-size: 1.8rem;
    font-weight: 600;
    margin: 40px 0 25px 0;
}

.title-tertiary {
    text-align: center;
    color: var(--primary-blue);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 40px 0 5px 0;
}

.cert-hint {
    text-align: center;
    font-size: 0.85rem;
    color: var(--medium-grey);
    margin-bottom: 20px;
}

.intro-description {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    font-size: 1.05rem;
    color: #495057;
}

/* Tła sekcji */
.section-intro {
    background-color: var(--white);
}

.section-oferta {
    background-color: var(--bg-light-grey);
}

.section-ceny {
    background-color: var(--light-blue);
}

.section-kontakt {
    background-color: var(--white);
}

.section-about {
    background-color: var(--bg-light-grey);
}

/* =================================================== */
/* SIATKI I UKŁADY                                     */
/* =================================================== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Usługi / Kafelki */
.card-service {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    border-top: 4px solid var(--primary-blue);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.card-service h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* Oferta (Wiersze dwukolumnowe) */
.offer-row {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 40px;
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.offer-row.reverse {
    flex-direction: row-reverse;
}

.offer-text {
    flex: 1;
}

.offer-text h2 {
    color: var(--primary-blue);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.offer-text ul {
    list-style: none;
}

.offer-text ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.offer-text ul li::before {
    content: "•";
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: -2px;
}

.offer-media {
    width: 510px;
    max-width: 100%;
}

.offer-img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
}

/* Ceny */
.pricing-box {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.pricing-text {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn:hover {
    background-color: #004085;
}

/* Kontakt i Mapa */
.contact-card {
    background: var(--bg-light-grey);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.contact-icon {
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.contact-card h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.contact-card a {
    color: var(--primary-blue);
    text-decoration: none;
}

.map-container {
    margin-top: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* O nas / Zarząd (Zdjęcia Pionowe) */
.board-member {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.board-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: top center;
}

.board-info {
    padding: 25px;
}

.board-info h3 {
    color: var(--dark-grey);
    font-size: 1.3rem;
}

.board-info .position {
    display: block;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* Certyfikaty i Lightbox */
.cert-grid {
    margin-top: 10px;
}

.cert-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.cert-item:hover {
    transform: scale(1.02);
}

.cert-item img {
    width: 100%;
    height: auto;
    display: block;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
}

/* Mobile Call Bar (Zadzwoń Teraz) */
.mobile-call-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-blue);
    z-index: 1500;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
}

.mobile-call-btn {
    display: block;
    text-align: center;
    color: var(--white);
    text-decoration: none;
    padding: 15px 0;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Stopka */
.footer {
    background-color: var(--dark-grey);
    color: #f8f9fa;
    padding: 40px 0 20px 0;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.footer-info h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--white);
}

.bank-account {
    margin-top: 10px;
    color: #adcdff;
}

.footer-copyright {
    border-top: 1px solid #343a40;
    width: 100%;
    padding-top: 20px;
    color: var(--medium-grey);
}

/* =================================================== */
/* RESPONSYWNOŚĆ (MEDIA QUERIES)                       */
/* =================================================== */
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .offer-row, .offer-row.reverse {
        flex-direction: column;
    }
    .offer-media {
        width: 100%;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 50px; /* Miejsce na dolny pasek szybkiego kontaktu */
    }
    .header-container {
        flex-direction: column;
        justify-content: center;
        gap: 10px;
    }
    .header {
        height: auto;
        padding: 15px 0;
    }
    section {
        scroll-margin-top: 120px;
    }
    .grid-3, .grid-2 {
        grid-template-columns: 1fr;
    }
    .nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .mobile-call-bar {
        display: block;
    }
}