@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #e75151;
    --dark-bg: #2d3436;
    --dark-grey: #636e72;
    --light-grey-bg: #f5f5f5;
    --text-light: #dfe6e9;
    --text-dark: #2d3436;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    background-color: #fff;
    color: var(--text-dark);
}

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

/* Header */
header {
    background-color: var(--dark-bg);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    /* Wyrównuje elementy na krańcach */
    align-items: center;
}

.logo {
    color: #fff;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
    z-index: 101;
}

.logo i {
    color: var(--primary-color);
}

/* POPRAWIONY KOD CSS */
.header-contact {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Zmienione z powrotem na 'center' dla lepszego wyrównania */
    gap: 40px;
    /* Zmniejszony odstęp, żeby dać więcej miejsca */
    margin: 0 20px;
    min-width: 0;
    /* Ważna reguła zapobiegająca "wypychaniu" layoutu */
}

.contact-column {
    display: flex;
    flex-direction: column;
}

.header-contact p {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 300;
    margin: 0;
    line-height: 1.5;
    white-space: nowrap;
    /* KLUCZOWA ZMIANA: Zapobiega łamaniu tekstu */
}

.header-contact strong {
    font-weight: 600;
}

.header-contact i {
    color: var(--primary-color);
    margin-right: 5px;
}

.logo {
    margin-right: 20px;
    /* Odstęp między logo a informacjami kontaktowymi */
}

nav {
    margin-left: 20px;
    /* Odstęp między informacjami kontaktowymi a nawigacją */
}

nav {
    margin-left: auto;
    /* Dodaj tę regułę tutaj */
}

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

nav ul li {
    margin-left: 25px;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

.nav-button {
    background-color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 50px;
    color: #fff;
}

.nav-button:hover {
    color: #fff;
    opacity: 0.9;
}

.menu-toggle {
    display: none;
    /* Ukryty na desktopie */
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 101;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../images/tlo.jpg") no-repeat center center/cover;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding-top: 70px;
    /* Odsunięcie od stałego nagłówka */
}

.hero-content {
    max-width: 600px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
}

.hero-title {
    font-size: 4rem;
    color: #e72626;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.cta-button {
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 35px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: #c63d3d;
    transform: translateY(-3px);
}

/* Content Sections */
.content-section {
    padding: 120px 0;
    text-align: center;
}

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

#about p {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.content-section-dark {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 60px 0;
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 10px auto 20px;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background-color: var(--dark-grey);
    padding: 30px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-item h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* Contact */
.contact-info {
    margin-top: 30px;
    font-size: 1.1rem;
    text-align: center;
}

.contact-info p {
    margin-bottom: 1rem;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 10px;
}

.map-container iframe {
    width: 100%;
    max-width: 1050px;
    height: 450px;
}

/* Footer */
footer {
    background-color: #222;
    color: #aaa;
    text-align: center;
    padding: 2rem 0;
}

/* ############################################# */
/* #          STYLE DLA URZĄDZEŃ MOBILNYCH     # */
/* ############################################# */

@media (max-width: 768px) {

    /* --- ZMIANY W TEJ SEKCJI --- */
    header .container {
        display: flex;
        /* Użyj 'space-evenly' lub 'center' w zależności od preferencji */
        justify-content: center;
        align-items: center;
    }

    .header-contact {
        /* Nadaj mu flex: 1, aby zajął całą dostępną przestrzeń */
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 20px;
    }

    nav {
        margin-left: auto;
        /* Przesunie menu na prawo */
    }

    .hero {
        /* Zwiększ odsunięcie, bo nagłówek jest teraz wyższy */
        padding-top: 140px;
    }

    /* --- KONIEC ZMIAN --- */

    .menu-toggle {
        display: block;
        /* Pokaż przycisk hamburgera */
    }

    nav ul {
        display: none;
        /* Ukryj nawigację domyślnie */
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--dark-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    nav ul.active {
        display: flex;
        /* Pokaż menu po kliknięciu */
    }

    nav ul li {
        margin: 20px 0;
    }

    /* Sekcja Hero */
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    /* Ogólne nagłówki i sekcje */
    h2 {
        font-size: 2rem;
    }

    .content-section,
    .content-section-dark {
        padding: 40px 0;
    }

    #about p {
        text-align: center;
    }
}

/* Styling dla formularza kontaktowego */
.contact-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.contact-content .contact-info {
    flex: 1;
    min-width: 300px;
    text-align: left;
    margin-top: 0;
}

#contact-form {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

#contact-form h3 {
    text-align: center;
    margin-bottom: 5px;
    color: var(--dark-bg);
}

#contact-form {
    /* Powiększenie szerokości formularza */
    max-width: 670px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

#contact-form input,
#contact-form textarea {
    /* Powiększenie czcionki w polach formularza */
    font-size: 1.1rem;
    padding: 15px;
    /* Dodatkowe powiększenie pól */
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    transition: border-color 0.3s ease;
}

#contact-form textarea {
    /* Powiększenie wysokości pola wiadomości */
    height: 230px;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

#contact-form button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#contact-form button:hover {
    background-color: #c63d3d;
}

/* Dostosowanie dla urządzeń mobilnych */
@media (max-width: 768px) {
    .contact-content {
        flex-direction: column;
        align-items: center;
    }

    .contact-content .contact-info,
    #contact-form {
        min-width: unset;
        width: 100%;
    }
}

/* Opcjonalnie: powiększenie nagłówka "Wyślij do nas wiadomość" */
#contact-form h3 {
    font-size: 1.5rem;
}

.header-contact .break {
    display: block;
    margin-left: 25px;
    /* Margines odpowiadający szerokości ikony i tekstu "Adres: " */
}

/* Dostosowanie dla urządzeń mobilnych - aby nie było problemów z wyrównaniem */
@media (max-width: 768px) {
    .header-contact .break {
        margin-left: 0;
    }
}