:root {
    --primary: #2299EE;
    --secondary: #2E4CD8;
    --accent: #06288E;
    --highlight: #5A24DA;
    --text: #222;
    --bg: #fff;
}

/* Reset & layout fix */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden; /* << ZABLOKUJ CAŁE PRZEWIJANIE DOMYŚLNE */
    font-family: 'Open Sans', sans-serif;
}

/* Scrollable container */
.page-container {
    height: 100vh;
    width: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

/* Each full-screen section */
.page-section {
    scroll-snap-align: start;
    height: 100vh;
    width: 100%;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Example: Different background for testing */
/*#home    { background: linear-gradient(to bottom, #2299EE, #2E4CD8); color: white; }*/
/*#services { background: #fff; color: #222; }*/
/*#why-us      { background: #f8f8ff; }*/
/*#contact  { background: #eaeaff; }*/

/* Fix form overflow */
#contact {
    overflow-y: auto;
}

/* Optional image styles */
.logo {
    width: max(10vw, 180px);
    background: white;
    padding: 10px;
    margin-bottom: 2vw;
    /*border-radius: 12px;*/
    /*box-shadow: 0 0 10px rgba(0,0,0,0.1);*/
}


body {
    color: var(--text);
    background-color: var(--bg);
    font-size: 18px; /* zamiast domyślnego 16px */
    line-height: 1.6;
}


header, section, footer {
    scroll-snap-align: start;
    height: 100vh;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

header {
    h1{
        color: var(--accent);
        font-size: max(6vw, 2.5em);
        margin-bottom: 10px;
        line-height: max(4vw, 1em);
    }

    p{
        font-size: max(2vw, 2em);
    }
    color: var(--accent);
    padding: 60px 20px;
    text-align: center;
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 40px 20px;
    h2{
        text-align: center;
        font-size: 5vw;
        margin-bottom: 3vw;
        color: var(--accent);
    }
    strong{
        color: var(--primary);
    }
}

#services ul, #why-us ul {
    list-style: none;
    padding: 0;
}

#services li, #why-us li {
    margin-bottom: 15px;
    font-size: 1.1em;
}

#contact {
    form {
        display: flex;
        flex-direction: column;
    }

    input, textarea {
        padding: 12px;
        margin-bottom: 15px;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 1em;
    }

    button {
        background-color: var(--primary);
        color: white;
        padding: 12px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 1em;
        transition: background 0.3s ease;
    }

    button:hover {
        background-color: var(--accent);
    }

    p{
        text-align: center;
        font-size: 1.2em;
        margin-top: 20px;
    }
}

footer {
    background: linear-gradient(to right, var(--primary), var(--highlight));
    color: white;
    text-align: center;
    padding: 20px;
}

@media (max-width: 600px) {
    header h1 {
        /*font-size: 1.8em;*/
    }

    #services li, #why-us li {
        font-size: 1em;
    }
}

body {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    height: 100%;
    overflow-y: scroll;
}

section, header, footer {
    scroll-snap-align: start;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.panel {
    position: relative;
    width: 100vw;
    height: 100vh;
    scroll-snap-align: start;
    overflow: hidden;
}

.panel {
    /* start poza ekranem z lewej (lub prawej) */
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

/* kiedy sekcja w zasięgu widoku — wróć na swoje miejsce */
.panel.in-view {
    transform: translateX(0);
    opacity: 1;
}