/* --- Globalne style --- */
:root {
    --primary-color: #ffffff;
    --secondary-color: #f8f9fa;
    --text-color: #6c757d;
    --heading-color: #212529;
    --dark-bg: #1a1a1a;
    --footer-bg: #1a1a1a;
    --font-family: 'Helvetica Neue', Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

/* --- Nagłówek i Nawigacja --- */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 0.5rem 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #f0f0f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

nav .logo img {
    height: 60px;
}

nav .nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

nav .nav-links li a {
    color: #666666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav .nav-links li a:hover {
    color: #000;
}

.contact-button {
    background-color: #000;
    color: #fff;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-button:hover {
    background-color: #333;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger svg {
    color: var(--heading-color);
}

/* --- Sekcja Hero z Karuzelą --- */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    color: white;
}

.carousel { width: 100%; height: 100%; }

.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    text-align: left;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active { opacity: 1; z-index: 2; }
.slide::after {
    content: ''; position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3;
}
.hero-content {
    position: relative;
    z-index: 4;
    padding: 20px;
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
}
.hero h1 { font-size: 3.5rem; margin-bottom: 1rem; text-shadow: 2px 2px 8px rgba(0,0,0,0.7); }
.hero p { font-size: 1.5rem; text-shadow: 1px 1px 4px rgba(0,0,0,0.7); }

.carousel-btn {
    position: absolute; top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.2);
    color: white; border: none; padding: 1rem;
    cursor: pointer; z-index: 5; font-size: 1.5rem;
    transition: background-color 0.3s;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-btn:hover { background-color: rgba(0, 0, 0, 0.5); }
.carousel-btn.prev { left: 40px; }
.carousel-btn.next { right: 40px; }

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: white;
}

/* --- Sekcje Ogólne --- */
section {
    padding: 6rem 0;
}

h2 {
    font-size: 3rem;
    text-align: left;
    margin-bottom: 2rem;
    color: var(--heading-color);
    font-weight: 700;
}

/* --- Sekcja "O Nas" --- */
.about-us { background-color: var(--primary-color); }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .9rem;
    color: #888;
    text-align: left;
    margin-bottom: .5rem;
}

.about-us-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    font-size: 1.1rem;
    color: var(--text-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}
.feature-card {
    background: #fff;
    border-radius: 12px;
    text-align: left;
}
.feature-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
}
.feature-card p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-color);
}

/* --- Sekcja "Nasze Realizacje" --- */
.portfolio-dark {
    background: var(--dark-bg);
}
.portfolio-dark h2 {
    color: #fff;
    text-align: center;
    margin-bottom: 4rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* --- SEKCJA "ZAUFALI NAM" --- */
.trusted-by {
    padding: 4rem 0;
    text-align: center;
}

.trusted-by h2 {
    text-align: center;
}

/* --- FORMULARZ KONTAKTOWY --- */
.contact {
    background-color: var(--primary-color);
    padding-bottom: 8rem;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
}

form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

form input,
form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    background-color: #f8f9fa;
    color: var(--text-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
    margin-bottom: 1.5rem;
}

form input::placeholder,
form textarea::placeholder {
    color: #999;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: #000;
}

form button {
    padding: 1rem 2.5rem;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    display: block;
    margin: 1rem auto 0 auto;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #333;
}

/* --- Stopka --- */
footer {
    background-color: var(--footer-bg);
    padding: 4rem 0 2rem 0;
    color: #aaa;
}
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
}
.footer-logo img {
    height: 60px;
}
.footer-links a {
    color: #fff;
    text-decoration: none;
    margin-left: 2rem;
    font-size: 1rem;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: #ccc;
}
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    font-size: 0.9rem;
    color: #6c757d;
    border-top: 1px solid #333;
    max-width: 1140px;
    margin: 0 auto;
}

/* --- Responsywność --- */
@media (max-width: 992px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    h2 { font-size: 2.2rem; }
    .hero { height: 70vh; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.2rem; }
    .about-us-content { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr; }
    form .form-row { grid-template-columns: 1fr; }

    nav .nav-links, .contact-button { display: none; }
    nav .nav-links.active {
        display: flex;
        position: fixed;
        top: 0; left: 0;
        width: 100%;
        height: 100vh;
        background: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }
    nav .nav-links li { margin: 1.5rem 0; }
    nav .nav-links li a { font-size: 1.5rem; }
    .hamburger { display: block; }

    .footer-container { flex-direction: column; gap: 2rem; }
    .footer-links { display: flex; flex-direction: column; gap: 1rem; align-items: center; }
    .footer-links a { margin-left: 0; }
}

.trusted-by-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 3rem;
}

.trusted-by-logos img {
    max-height: 50px;
    width: auto;
}

/* --- 404 Page Specific Styles --- */
.error-page {
    min-height: calc(100vh - 120px); /* Adjust based on header/footer height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--primary-color); /* White background */
    color: var(--text-color);
    padding: 4rem 0;
}

.error-page .error-code {
    font-size: 10rem; /* Large 404 */
    color: #212529; /* Dark heading color */
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1;
}

.error-page .error-message {
    font-size: 1.5rem;
    color: #6c757d; /* Text color */
    margin-bottom: 2rem;
    max-width: 600px;
    line-height: 1.5;
}

.error-page .button {
    display: inline-block;
    background-color: #343a40; /* Dark button */
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.error-page .button:hover {
    background-color: #495057;
}

@media (max-width: 768px) {
    .error-page .error-code {
        font-size: 7rem;
    }
    .error-page .error-message {
        font-size: 1.2rem;
    }
}