/* Ogólne style */
:root {
    --primary-color: #E00000; /* Czerwień z logo */
    --primary-color-rgb: 224, 0, 0; /* Dodana zmienna RGB */
    --secondary-color: #333333; /* Ciemny szary/czarny z logo */
    --text-light: #ffffff;
    --text-dark: #333333;
    --background-light: #f4f4f4; /* Bardzo jasny szary */
    --background-medium: #e9e9e9; /* Lekko ciemniejszy szary */
    --background-dark: #222222; /* Ciemny szary/czarny */
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--background-light);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

h1, h2, h3 {
    font-family: 'Oswald', sans-serif;
    color: var(--secondary-color);
    margin-bottom: 0.5em;
}

/* Nagłówek główny */
.main-header {
    background: var(--background-dark);
    color: var(--text-light);
    padding: 1rem 0;
    border-bottom: 3px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.main-header .logo img {
    height: 50px; /* Logo w nagłówku, nie baner */
    width: auto;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav ul li {
    margin-left: 20px;
}

.main-nav ul li a {
    color: var(--text-light);
    font-weight: bold;
    padding: 5px 10px;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

.main-nav ul li a:hover {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* Nowa sekcja wprowadzająca (Intro Section) */
.intro-section {
    background: linear-gradient(to right, var(--background-dark) 0%, #444444 100%); /* Ciemny gradient jako tło */
    color: var(--text-light);
    padding: 4rem 0; /* Zmniejszony padding, aby dopasować obrazek */
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
}

.intro-banner-img {
    max-width: 80%; /* Maksymalna szerokość banera - możesz dostosować */
    height: auto;
    display: block; /* Upewnij się, że jest blokiem */
    margin: 0 auto 2em auto; /* Wyśrodkuj i dodaj margines dolny */
    border-radius: 8px; /* Lekkie zaokrąglenie rogów */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4); /* Wyraźny cień, aby baner się wyróżniał */
    /* filter: brightness(0.9); */ /* Usunięto, aby nie przyciemniać obrazu */
}

.intro-section h2 {
    font-size: 2.2em;
    margin-bottom: 1.5em;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.intro-section p {
    font-size: 1.3em;
    line-height: 1.8;
    margin-bottom: 2.5em;
    color: rgba(255, 255, 255, 0.9);
}

.intro-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 3em;
    flex-wrap: wrap;
}

.feature-item {
    text-align: center;
    max-width: 150px;
}

.feature-item i {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 0.5em;
}

.feature-item p {
    font-size: 1.1em;
    margin: 0;
    line-height: 1.4;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 12px 25px;
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    font-weight: bold;
    font-size: 1.1em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    background: #c00000; /* Ciemniejszy odcień czerwieni */
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: var(--secondary-color); /* Nowy styl przycisku dla kontrastu */
    color: var(--text-light);
}

.btn-secondary:hover {
    background: #555555;
}


/* Sekcja O firmie - dwie kolumny */
.about {
    padding: 5rem 0; /* Większy padding */
    background: var(--background-light);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Dwie elastyczne kolumny */
    gap: 60px; /* Większy odstęp */
    align-items: flex-start; /* Zmienione na flex-start, aby góra tekstu była wyrównana z górą karty/obrazka */
}

.about-text h2 {
    font-size: 3em;
    margin-bottom: 0.8em;
    color: var(--primary-color); /* Nagłówek o firmie na kolor główny */
    text-align: left; /* Wyrównanie do lewej */
}

.about-text p {
    font-size: 1.15em;
    line-height: 1.9;
    margin-bottom: 1.2em;
}

/* Nowe style dla sekcji z zespołem */
.team-members {
    text-align: center;
    padding: 20px;
    background: var(--background-medium);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--primary-color);
}

.team-members h3 {
    font-size: 2.2em;
    color: var(--secondary-color);
    margin-bottom: 1.5em;
    text-align: center;
}

.member-card {
    background: var(--text-light);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px; /* Odstęp między kartami */
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-card:last-child {
    margin-bottom: 0; /* Bez marginesu dla ostatniej karty */
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.member-photo {
    width: 180px; /* Szerokość zdjęcia */
    height: 200px; /* Wysokość zdjęcia */
    border-radius: 8px; /* Lekkie zaokrąglenie rogów */
    object-fit: cover; /* Wypełnij obszar, przycinając jeśli trzeba */
    object-position: center top; /* Spróbuj przesunąć kadrowanie w górę. Możesz zmienić na center center, center bottom, itp. lub procenty jak 50% 30% */
    margin-bottom: 1.5em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.member-card h4 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 0.5em;
}

.member-card p {
    font-size: 1.05em;
    line-height: 1.6;
    color: var(--text-dark);
    text-align: center;
}

/* Sekcja Usługi - ulepszone stylowanie */
.services {
    padding: 5rem 0;
    background: var(--background-medium); /* Lżejsze tło dla odróżnienia */
    text-align: center;
}

.services h2 {
    font-size: 3em;
    margin-bottom: 2em;
    color: var(--secondary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Dostosowane kolumny */
    gap: 40px;
    text-align: left;
}

.service-category {
    background: var(--text-light);
    padding: 40px; /* Większy padding */
    border-radius: 15px; /* Bardziej zaokrąglone rogi */
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18); /* Mocniejszy cień */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 5px solid var(--primary-color); /* Linia na górze kategorii */
}

.service-category:hover {
    transform: translateY(-10px); /* Większy efekt uniesienia */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.icon-wrapper {
    background: var(--primary-color);
    color: var(--text-light);
    width: 80px;
    height: 80px;
    border-radius: 50%; /* Okrągła ramka dla ikon */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5em;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.service-icon {
    font-size: 3.5em; /* Jeszcze większe ikony */
    color: var(--text-light); /* Ikony białe */
}

.service-category h3 {
    font-size: 2em;
    color: var(--secondary-color);
    margin-bottom: 1.2em;
    text-align: center;
}

.service-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.service-category ul li {
    background: var(--background-light);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 10px;
    border-left: 5px solid var(--primary-color); /* Linię zachowujemy */
    display: flex;
    align-items: center;
    font-size: 1.05em;
    color: var(--text-dark);
}

.service-category ul li:last-child {
    margin-bottom: 0;
}


/* Sekcja Call to Action (CTA Middle) - ulepszone stylowanie */
.cta-middle {
    background: linear-gradient(135deg, var(--primary-color) 0%, #AA0000 100%); /* Mocniejszy gradient */
    color: var(--text-light);
    padding: 6rem 0; /* Większy padding */
    text-align: center;
    box-shadow: inset 0 8px 20px rgba(0, 0, 0, 0.4), inset 0 -8px 20px rgba(0, 0, 0, 0.4);
}

.cta-middle h2 {
    color: var(--text-light);
    font-size: 3.5em;
    margin-bottom: 0.8em;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.cta-middle p {
    font-size: 1.4em;
    margin-bottom: 3em;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}


/* Sekcja Kontakt - ulepszone stylowanie z ikonami i formularzem */
.contact {
    padding: 5rem 0;
    background: var(--background-light);
    text-align: center;
}

.contact h2 {
    font-size: 3em;
    margin-bottom: 2em;
    color: var(--secondary-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
    text-align: left;
}

.contact-info {
    background: var(--background-medium); /* Lekko ciemniejsze tło */
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: 5px solid var(--primary-color);
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1.8em;
    text-align: center;
    font-size: 2em;
}

.contact-info p {
    margin-bottom: 1.5em; /* Zwiększono odstęp między wierszami */
    font-size: 1.1em;
    color: var(--text-dark);
    display: flex;
    align-items: flex-start;
}

.contact-info p strong {
    color: var(--secondary-color);
}

.contact-info p i {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-right: 15px; /* Większy odstęp */
    width: 30px; /* Stała szerokość dla ikon */
    text-align: center;
    padding-top: 2px; /* Drobna korekta pionowa */
}

.contact-form {
    background: var(--text-light);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    border-top: 5px solid var(--primary-color);
}

.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 1.8em;
    text-align: center;
    font-size: 2em;
}

.form-group {
    margin-bottom: 1.8em;
}

.form-group label {
    display: block;
    margin-bottom: 0.8em;
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 1.05em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: calc(100% - 24px);
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1.05em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(var(--primary-color-rgb), 0.3); /* Lepszy cień po focusie */
    outline: none;
}

.form-group textarea {
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
    padding: 16px; /* Większy przycisk */
    font-size: 1.3em;
    border: none;
    cursor: pointer;
    margin-top: 2em;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.contact-form .btn:hover {
    background: #c00000;
    transform: translateY(-4px); /* Większy efekt uniesienia */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}

/* Stopka */
.main-footer {
    background: var(--background-dark);
    color: var(--text-light);
    padding: 3rem 0; /* Większy padding */
    text-align: center;
    border-top: 8px solid var(--primary-color); /* Grubsza linia */
}

.main-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.8em;
}

.footer-contact h3 {
    color: var(--primary-color);
    margin-bottom: 1em;
    font-size: 1.8em;
}

.footer-contact p {
    margin: 0.4em 0;
    font-size: 1.05em;
}

.footer-copyright p {
    font-size: 0.98em;
    color: rgba(255, 255, 255, 0.85);
}


/* Responsywność dla wszystkich sekcji */
@media (max-width: 992px) { /* Tablet view */
    .intro-section h1 {
        font-size: 3.5em;
    }
    .intro-section h2 {
        font-size: 1.8em;
    }
    .intro-section p {
        font-size: 1.2em;
    }
    .about-grid {
        gap: 30px;
    }
    .about-text h2, .services h2, .cta-middle h2, .contact h2, .team-members h3 { /* Dodano h3 w team-members */
        font-size: 2.5em;
    }
}

@media (max-width: 768px) { /* Mobile view */
    .main-header .container {
        flex-direction: column;
        text-align: center;
    }

    .main-nav ul {
        flex-direction: column;
        margin-top: 15px;
    }

    .main-nav ul li {
        margin: 5px 0;
    }

    .intro-section {
        padding: 3rem 0; /* Mniejszy padding na mobilnych */
    }

    .intro-banner-img {
        max-width: 95%; /* Większa szerokość na mniejszych ekranach */
        margin-bottom: 1.5em; /* Mniejszy margines na mobilnych */
    }

    .about-grid {
        grid-template-columns: 1fr; /* Na małych ekranach kolumny będą jedna pod drugą */
    }
    .about-text {
        order: 1; /* Tekst nad sekcją zespołu na mobilnych */
    }
    .team-members {
        order: 2; /* Sekcja zespołu pod tekstem na mobilnych */
        margin-top: 2em; /* Dodatkowy odstęp */
    }
    .about-text h2 {
        text-align: center;
    }

    .services-grid, .contact-grid {
        grid-template-columns: 1fr;
    }

    .service-category, .contact-info, .contact-form {
        padding: 30px;
    }

    .cta-middle h2 {
        font-size: 2em;
    }
    .cta-middle p {
        font-size: 1.1em;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group textarea {
        width: calc(100% - 20px);
    }
}