* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: url('images/tlo.jpg');
    /* Zmiana na cover z zachowaniem stałego tła, co zapobiegnie przesunięciom */
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    font-family: 'Roboto', sans-serif;
    color: #333;
    display: flex;
    flex-direction: column;
    /* To blokuje nieszczęsne przewijanie w bok */
    overflow-x: hidden; 
}


/* --- INICJALIZACJA ANIMACJI --- */
.main-logo, 
.main-nav ul li,
.main-headline,
.glass-card,
.glass-panel {
    opacity: 0;
    visibility: hidden;
}

/* Nagłówek i Nawigacja */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    /* Bezpieczne 100% szerokości bez uwzględniania paska scrolla */
    width: 100%;
    z-index: 100;
}

.main-logo {
    max-height: 100px; 
    width: auto;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.1));
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 10px;
}

.main-nav a {
    display: block;
    text-decoration: none;
}

.main-nav img {
    height: 75px; 
    width: auto;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.main-nav img:hover {
    transform: translateY(-5px);
    filter: brightness(1.1);
}

/* Główny kontener treści */
.content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    text-align: center;
}

/* Główny nagłówek */
.main-headline {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 50px;
    letter-spacing: 1px;
    /* Wzmocniony podwójny cień, żeby napis zawsze był widoczny na tle */
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.9), 1px 1px 3px rgba(255, 255, 255, 1);
}

/* Sekcja Szklanych Kart (strona główna) */
.cards-section {
    display: flex;
    justify-content: center;
    gap: 25px;
    max-width: 1200px;
    width: 100%;
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
}

/* Tło imitujące kable przepływające za kartami */
.cards-section::before {
    content: '';
    position: absolute;
    top: 30%;
    left: -10%;
    width: 120%;
    height: 60px;
    background: linear-gradient(90deg, rgba(230,126,34,0.3) 0%, rgba(52,152,219,0.4) 50%, rgba(230,126,34,0.3) 100%);
    filter: blur(15px);
    z-index: -1;
    border-radius: 50px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 30px 20px;
    width: 25%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), inset 0 0 10px rgba(255,255,255,0.5);
    transition: transform 0.3s ease, background 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.5);
}

.card-icon {
    font-size: 2.5rem;
    color: #4eb0b5; 
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(78, 176, 181, 0.4);
}

.glass-card h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a252f;
    margin-bottom: 15px;
    line-height: 1.3;
}

.glass-card p {
    font-size: 0.9rem;
    color: #34495e;
    line-height: 1.5;
}

/* Sekcja przycisku na dole */
.cta-section {
    margin-top: 20px;
}

.cta-section h3 {
    font-family: 'Verdana', sans-serif;
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 25px;
    /* Dodany ostry obrys */
    -webkit-text-stroke: 1px #000000;
    /* Dodana miękka, biała poświata dla lepszego odcięcia od tła */
    text-shadow: 0 4px 15px rgba(255, 255, 255, 0.8);
}

.btn-glass {
    display: inline-block;
    padding: 15px 40px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #2c3e50;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: scale(1.03);
}

/* --- STYLE DLA ZAKŁADKI O NAS (onas.php) --- */
.about-panel {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    padding: 50px;
    max-width: 1000px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), inset 0 0 15px rgba(255,255,255,0.6);
    color: #1a252f;
    text-align: left;
    margin-bottom: 50px;
}

.about-intro p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 40px;
    color: #2c3e50;
    text-align: center;
    font-weight: 500;
}

/* Oś Czasu (Timeline) */
.timeline {
    position: relative;
    padding-left: 30px;
    margin-bottom: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #3498db 0%, #e67e22 100%);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-year {
    position: absolute;
    left: -42px;
    top: 0;
    background: #fff;
    color: #3498db;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border: 2px solid #3498db;
}

.timeline-content {
    padding-left: 45px;
}

.timeline-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #34495e;
}

/* Misja i wsparcie */
.about-mission {
    background: rgba(255, 255, 255, 0.4);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid #e67e22;
}

.about-mission h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #e67e22;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-mission p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #34495e;
}

/* --- STYLE DLA ZAKŁADKI KONTAKT (kontakt.php) --- */
.contact-panel {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dwie równe kolumny na komputerze */
    gap: 50px;
    align-items: start;
    
    background: rgba(255, 255, 255, 0.45); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    padding: 50px;
    max-width: 1000px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), inset 0 0 15px rgba(255,255,255,0.6);
    margin-bottom: 50px;
}

.contact-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 1rem;
    line-height: 1.6;
    color: #34495e;
    margin-bottom: 40px;
}

.contact-details {
    list-style: none;
}

.contact-details li {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
}

.contact-details li i {
    color: #e67e22;
    font-size: 1.3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.input-group label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 15px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    color: #2c3e50;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.03);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #8fa1b3;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    background: rgba(255, 255, 255, 0.7);
    border-color: #3498db;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.2);
}

.form-submit {
    cursor: pointer;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

/* --- RESPONSYWNOŚĆ GLOBALNA --- */

@media (max-width: 1024px) {
    .cards-section {
        flex-wrap: wrap; 
    }
    .glass-card {
        width: calc(50% - 25px); 
        margin-bottom: 25px;
    }
    .main-nav img {
        height: 55px; 
    }
    .main-headline {
        font-size: 2.3rem;
    }
}

@media (max-width: 768px) {
    .top-header {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }
    
    .main-logo {
        max-height: 70px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .main-nav img {
        height: 45px; 
    }

    .content-wrapper {
        padding: 30px 15px;
    }

    .main-headline {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    /* Responsywność Strona Główna */
    .cards-section {
        flex-direction: column; 
        align-items: center;
        gap: 20px;
    }

    .glass-card {
        width: 100%;
        max-width: 400px;
        margin-bottom: 0;
    }

    .cards-section::before {
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 100%;
        background: linear-gradient(180deg, rgba(230,126,34,0.3) 0%, rgba(52,152,219,0.4) 50%, rgba(230,126,34,0.3) 100%);
    }

    .cta-section h3 {
        font-size: 1.3rem;
    }

    .btn-glass {
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    /* Responsywność O Nas */
    .about-panel {
        padding: 30px 20px;
    }
    .timeline::before {
        left: 15px;
    }
    .timeline-year {
        position: relative;
        left: 0;
        display: inline-block;
        margin-bottom: 15px;
    }
    .timeline-content {
        padding-left: 15px;
        border-left: 3px solid rgba(52, 152, 219, 0.3);
    }

    /* Responsywność Kontakt */
    .contact-panel {
        grid-template-columns: 1fr; /* Zmienia na jedną kolumnę na telefonie */
        gap: 30px;
        padding: 30px 20px;
    }
    .contact-info {
        border-bottom: 1px solid rgba(255, 255, 255, 0.4);
        padding-bottom: 30px;
    }
}

/* Alerty po wysłaniu formularza */
.form-alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(5px);
}

.alert-success {
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid rgba(46, 204, 113, 0.5);
    color: #27ae60;
}

.alert-error {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.5);
    color: #c0392b;
}