:root {
    --tlo-kolor: #fee440; 
    --tekst-kolor: #1a1a1a;
    --fonty: 'Outfit', sans-serif;
    --tresc-tlo: rgba(255, 255, 255, 0.45);
}

* {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: var(--fonty);
    color: var(--tekst-kolor);
    overflow-x: hidden;
}

/* Animowane Bloby w tle */
.blob-tlo {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    z-index: -1;
    pointer-events: none;
}

@keyframes obrot {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.zew-gora { animation: obrot 20s linear infinite; transform-origin: 13px 25px; }
.wew-gora { animation: obrot 10s linear infinite; transform-origin: 13px 25px; }
.zew-dol { animation: obrot 25s linear infinite; transform-origin: 84px 93px; }
.wew-dol { animation: obrot 15s linear infinite; transform-origin: 84px 93px; }

/* Scena dla latających słów */
.scena-tlo {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1; 
    overflow: hidden;
    pointer-events: none;
}

.slowo {
    position: absolute;
    font-weight: 900;
    line-height: 1;
    opacity: 0;
    display: none;
    white-space: nowrap;
    pointer-events: none;
    text-shadow: 2px 2px 10px rgba(255,255,255,0.5);
    z-index: 1;
}

@keyframes pojawienie {
    0% { opacity: 0; transform: scale(0.95); filter: blur(15px); }
    15% { opacity: 0.25; transform: scale(1); filter: blur(7px); }
    75% { opacity: 0.25; transform: scale(1); filter: blur(1px); }
    100% { opacity: 0; transform: scale(1.5); filter: blur(25px); }
}

.aktywne-slowo {
    display: block !important;
    animation: pojawienie 6s ease-in-out forwards;
}

/* Układ główny */
.kontener-glowny {
    position: relative;
    z-index: 10; 
    max-width: 800px;
    margin: 4rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: calc(100vh - 4rem);
    justify-content: center;
    padding: 0 1rem;
}

.kontener-tresc {
    width: 100%;
    background: var(--tresc-tlo);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(12px);
    padding: 3rem 2rem;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

a.tel { color: inherit; text-decoration: none; border-bottom: 2px solid transparent; transition: border 0.2s; }
a.tel:hover { border-bottom-color: #1a1a1a; }

h1 {
    font-weight: 900;
    font-size: 2.8rem;
    margin: 0 0 0.5rem 0;
    letter-spacing: -1.5px;
    color: var(--tekst-kolor);
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
    padding: 5px 15px;
    border-radius: 15px;
}

h1:hover { transform: scale(1.02); color: #9b5de5; }

.opis {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: #1a1a1a;
}

/* Style formularza */
.formularz-kontakt { width: 100%; max-width: 90%; text-align: left; }
.grupa-pola { margin-bottom: 1.2rem; }
label { display: block; font-weight: 900; margin-bottom: 0.4rem; font-size: 0.85rem; text-transform: uppercase; }
input, textarea { width: 100%; padding: 0.9rem; border: 2px solid #ccc; border-radius: 12px; font-family: var(--fonty); }
textarea { min-height: 100px; }

button[type="submit"] {
    width: 100%;
    padding: 1.1rem;
    background-color: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s;
}

button[type="submit"]:hover { background-color: #0084b0; }
button[type="submit"]:disabled { background-color: #666; cursor: not-allowed; }

#formularz-status {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    display: none;
    font-weight: 900;
    text-align: center;
}

.status-sukces { background-color: #d1fae5; color: #065f46; display: block !important; }
.status-blad { background-color: #fee2e2; color: #991b1b; display: block !important; }

@media (max-width: 600px) {
    h1 { font-size: 2.2rem; }
}