@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&family=Fira+Sans:wght@300;400;500;600;700;800;900&display=swap');

body {
    margin: 0;
    font-family: "Fira Sans", sans-serif;
    background: linear-gradient(to bottom, #B3CFE5 0%, #B3CFE5 80%, #0A1931 87%);
}

/* --- HEADER --- */
header {
    background: linear-gradient(90deg, #0A1931 70%, #4a7fa7bd 100%);
    color: #fff;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    height: 70px; /* wysokość nagłówka */
    box-shadow: 0 2px 8px rgba(50, 50, 93, 0.15);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    flex-wrap: wrap;
    box-sizing: border-box;
}

header p {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0;
    text-shadow: 0 2px 8px rgba(50, 50, 93, 0.10);
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
    transition: color 0.2s, border-bottom 0.2s;
}

nav a:hover {
    color: #B3CFE5;
    border-bottom: 2px solid #B3CFE5;
}

/* --- TELEFONY --- */
#wstep a[href^="tel"], header a[href^="tel"] {
    background: #1a3d63bd;
    color: #fff;
    padding: 8px 18px;
    border-radius: 25px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(50, 50, 93, 0.10);
    transition: background 0.2s, transform 0.2s;
}

#wstep a[href^="tel"]:hover, header a[href^="tel"]:hover {
    background: #0A1931;
    transform: scale(1.08);
}

/* --- SEKCJA WSTĘPNA --- */
#wstep {
    min-height: 60vh;
    width: 100%;
    background:
        linear-gradient(to bottom, rgba(179,207,229,0) 70%, #B3CFE5 100%),
        url('obrazy/portret-rzemieslnika.jpg') no-repeat center top / cover;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 10px;
    box-sizing: border-box;
}

#wstep article {
    width: 90%;
    max-width: 500px;
    text-align: center;
    background: linear-gradient(135deg, #F6FAFDbd 80%, #B3CFE5 100%);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(74,127,167,0.18), 0 1.5px 8px rgba(50,50,93,0.10);
    border: 1.5px solid #B3CFE5;
    padding: 20px;
}

/* --- SEKCJA USŁUG --- */
/* PC – pierwotny wygląd */
#uslugi {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 10px;
    padding: 25px;
    justify-items: center;
}

#uslugi > article {
    width: 17.5vw;
    height: auto;
    background: linear-gradient(135deg, #F6FAFDbd 80%, #B3CFE5 100%);
    text-align: center;
    padding: 18px 10px 14px 10px;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(74,127,167,0.10), 0 1.5px 8px rgba(50,50,93,0.10);
    border: 1.5px solid #B3CFE5;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

#uslugi > article:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 28px rgba(74,127,167,0.18);
}

#uslugi img {
    width: 90%;
    height: auto;
    border-radius: 16px;
    border: 2px solid #4a7fa7bd;
    box-shadow: 0 4px 24px rgba(74,127,167,0.18);
    margin-top: 10px;
}

/* --- SEKCJA O FIRMIE --- */
#o-firmie {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    padding: 20px;
    margin: 40px auto;
    background-color: #F6FAFDbd;
    max-width: 900px;
    border-radius: 10px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
    align-items: center;
}

#o-firmie article {
    text-align: center;
    font-size: 1.2rem;
}

#o-firmie img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 18px;
    border: 2px solid #4a7fa7bd;
    box-shadow: 0 4px 24px rgba(74,127,167,0.18);
}

/* --- OPINIE --- */
#opinie iframe {
    width: 100%;
    min-height: 600px;
    border: none;
    display: block;
}

/* --- STOPKA --- */
footer {
    background-color: #0A1931;
    color: white;
    text-align: center;
    padding: 20px 10px;
}

footer a {
    color: #F6FAFD;
    font-weight: 700;
    text-decoration: underline;
    text-shadow: 0 1px 6px #0A1931;
    transition: color 0.2s, text-shadow 0.2s;
}

footer a:hover {
    color: #B3CFE5;
    text-shadow: 0 2px 12px #4a7fa7bd;
}

/* --- ELEMENTY DEKORACYJNE --- */
hr {
    border: none;
    height: 2px;
    width: 50%;
    margin: 36px auto;
    background: #B3CFE5;
    box-shadow: 0 0 8px #B3CFE5, 0 2px 8px #0A1931;
    opacity: 0.7;
}

/* --- MEDIA QUERIES --- */
@media (max-width: 900px) {
    header {
        text-align: center;
    }
    header nav {
        padding: 10px;
        justify-content: center; /* wyśrodkowanie linków w nav */
    }

    #uslugi {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
        padding: 25px;
        justify-items: center;
    }

    #uslugi > article {
        width: 100%;
        max-width: 320px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column; /* ustawienie elementów headera w kolumnie */
        align-items: center;    /* wyśrodkowanie pionowe */
    }
    header nav {
        padding: 10px;
        justify-content: center;
    }
    #wstep {
        margin-top: 70px; /* równe headerowi */
    }
}

@media (max-width: 600px) {
    header {
        height: auto;
        padding: 10px 10px;
        flex-direction: column; 
        align-items: center; /* wyśrodkowanie wszystkiego w headerze */
    }
    header nav {
        padding: 10px;
        justify-content: center; /* wyśrodkowanie linków */
    }
    header a[href^="tel"] {
        margin-top: 10px; /* odstęp pod menu */
    }
    #wstep {
        margin-top: 100px; /* dla wyższego zawiniętego headera */
    }
    #o-firmie {
        margin: 0px 20px;
    }
}

