* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* żeby scroll do sekcji nie chował się pod sticky headerem */
section {
    scroll-margin-top: 90px;
}

/* HEADER */
header {
    background-color: #222;
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6em;
    font-weight: 700;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #ffcc00;
}

/* HERO */
.hero {
    background: url('pliki strony/zdjecia/slide1.jpg') center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 150px 20px;
}

.hero-text h1,
.hero-text h2 {
    font-size: 2.4em;
    margin-bottom: 20px;
    text-shadow:
        -2px -2px 0 #000,
         2px -2px 0 #000,
        -2px  2px 0 #000,
         2px  2px 0 #000,
        -3px  0   0 #000,
         3px  0   0 #000,
         0    3px 0 #000,
         0   -3px 0 #000;

}

/* tekst w hero – na dużych ekranach przyklejony na dole */
.hero-text {
    position: relative;
}

.hero-text p {
    position: absolute;
    bottom: -135px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 700;
    font-size: 1.4em;      /* trochę mniejszy, żeby ładniej się mieścił */
    color: #fff;
    white-space: normal;   /* 🔥 pozwala ZAWIJAĆ tekst w kilka linii */
    max-width: 90%;        /* nie wyjdzie poza ekran */
    text-align: center;
    text-shadow:
        -2px -2px 0 #000,
         2px -2px 0 #000,
        -2px  2px 0 #000,
         2px  2px 0 #000,
        -3px  0   0 #000,
         3px  0   0 #000,
         0    3px 0 #000,
         0   -3px 0 #000;

}

/* PRZYCISK Z TELEFONEM */
.btn {
    display: inline-block;
    background-color: #ffcc00;
    color: #222;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.3s ease;
    margin-top: 40px;
}

.btn:hover {
    background-color: #e6b800;
}

/* SERVICES */
.services {
    text-align: center;
    padding: 60px 0;
}

.services h2 {
    font-size: 2em;
    margin-bottom: 40px;
    color: #222;
}

.service-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.service-item {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    width: 300px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

service-item:hover {
    transform: translateY(-5px);
}

.service-item img {
    width: 70px;
    margin-bottom: 15px;
}

/* ABOUT */
.about {
    background: #fff;
    padding: 60px 0;
    text-align: center;
}

.about h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

/* CONTACT */
.contact {
    background-color: #222;
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.contact a {
    color: #ffcc00;
    text-decoration: none;
    font-weight: 600;
}

.contact-flex {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    margin-top: 30px;
}

.contact-info {
    width: 40%;
}

.contact-map {
    width: 50%;
}

/* FOOTER */
footer {
    background: #111;
    color: #aaa;
    text-align: center;
    padding: 15px 0;
    font-size: 0.9em;
}

/* SLAJDY TŁA */
.slideshow {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 1s ease-in-out;
}

/* RESPONSYWNOŚĆ – TELEFONY */
@media (max-width: 768px) {

    /* wąski pasek z samym napisem – bez menu */
    header {
        padding: 6px 0;          /* węższy pasek */
    }

    .header-content {
        justify-content: center;
    }

    .logo {
        font-size: 1em;          /* mniejszy napis */
        text-align: center;
    }

    nav {
        display: none;           /* ukryj menu na telefonie */
    }

    /* hero na cały ekran, środek, kolejność: nagłówek → PRZYCISK → tekst */
    .hero {
        padding: 40px 15px;
        min-height: 100vh;       /* pełny ekran telefonu */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-text {
        position: static;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .hero-text h2 {
        font-size: 1.8em;
        margin-bottom: 5px;
        order: 1;
    }

    .btn {
        order: 2;                /* PRZYCISK NA ŚRODKU – DRUGI */
        margin-top: 10px;
        padding: 10px 22px;
        font-size: 1em;
    }

    .hero-text p {
        order: 3;                /* TEKST NA DOLE – TRZECI */
        position: static !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        margin-top: 10px;
        font-size: 1.1em;
        white-space: normal;
        padding: 0 10px;
        text-align: center;
    }

    .service-list {
        flex-direction: column;
        align-items: center;
    }

    .contact-flex {
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }

    .contact-info,
    .contact-map {
        width: 100%;
    }
}
