:root {
    --primary-color: #ff4500;
    --dark-bg: #121212;
    --text-color: #e0e0e0;
    --card-bg: #1e1e1e;
    --highlight-color: #28a745;
}

body {
    /* OSTATECZNA POPRAWKA TŁA */
    background-image: url('/assets/zdjecie1.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-color: var(--dark-bg); /* Kolor awaryjny */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
}

.page-content {
    position: relative;
    z-index: 1;
    background-color: rgba(18, 18, 18, 0.85);
    padding: 1rem;
}

header {
    text-align: center;
    padding: 5rem 1rem;
    max-width: 900px;
    margin: 0 auto;
}

header h1 {
    font-size: 3.2rem;
    color: white;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0px 2px 5px rgba(0,0,0,0.5);
}

header p {
    font-size: 1.2rem;
    margin: 1rem auto 2rem auto;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: white;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #e03e00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

main {
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 2.5rem 1rem; 
    text-align: center;
    border-bottom: 1px solid #333;
}
section:last-of-type {
    border-bottom: none;
}
section h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
section p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Style dla sekcji z obrazem */
.section-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 1000px;
    margin: 2rem auto 0;
    text-align: left;
}
.text-block {
    flex: 1;
}
.image-block {
    flex: 1;
}
.image-block img {
    width: 100%;
    border-radius: 8px;
}

/* Dodatkowy obrazek w sekcji "scenariusze" */
.gallery-image {
    max-width: 800px;
    margin: 3rem auto 0;
}
.gallery-image img {
    width: 100%;
    border-radius: 8px;
}

/* Sekcja z 3 kolumnami */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.feature-item {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #333;
}
.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Lista korzyści */
.benefits-list {
    text-align: left;
    max-width: 800px;
    margin: 2rem auto 0;
}
.benefit-item {
    background-color: var(--card-bg);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    font-size: 1.1rem;
}

/* Tabela porównawcza i Cennik */
.table-container {
    overflow-x: auto;
    max-width: 800px;
    margin: 2rem auto 0;
}
table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}
th, td {
    padding: 1rem;
    border: 1px solid #444;
}
th {
    background-color: var(--primary-color);
    color: white;
}
tbody tr:nth-child(even) {
    background-color: var(--card-bg);
}
td.highlight {
    color: var(--highlight-color);
    font-weight: bold;
}

/* Sekcja FAQ */
.faq-container {
    max-width: 800px;
    margin: 2rem auto 0;
    text-align: left;
}
.faq-item {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}
.faq-item h4 {
    margin: 0 0 0.5rem 0;
    color: white;
    font-size: 1.2rem;
}
.faq-item p {
    margin: 0;
    line-height: 1.6;
}

/* Formularz kontaktowy */
#kontakt form {
    max-width: 700px;
    margin: 2rem auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
#kontakt input,
#kontakt textarea {
    width: 100%;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #444;
    background-color: #2a2a2a;
    color: var(--text-color);
    font-size: 1rem;
    box-sizing: border-box;
}
.sukces, .blad {
    padding: 1rem;
    border-radius: 5px;
    max-width: 700px;
    margin: 0 auto 1rem auto;
    font-weight: bold;
}
.sukces {
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
}
.blad {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

footer {
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 2rem;
    background-color: #000;
    font-size: 0.9rem;
    color: #888;
}

/* Style dla galerii YouTube */
.youtube-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.youtube-video-wrapper {
    position: relative;
    padding-top: 56.25%; /* Proporcje 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.youtube-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Style dla cookies i stopki */
footer a {
    color: var(--primary-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--card-bg);
    color: var(--text-color);
    padding: 15px;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.5);
    z-index: 1000;
    display: none; /* Domyślnie ukryty */
    align-items: center;
    justify-content: center;
    gap: 20px;
    box-sizing: border-box;
}

#cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
}

#cookie-banner a {
    color: var(--primary-color);
    text-decoration: underline;
}

#cookie-banner button {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color: 0.3s ease;
}

#cookie-banner button:hover {
    background-color: #e03e00;
}

/* Style dla sekcji z kontaktem do osób */
.contact-persons-section {
    background-color: var(--card-bg); /* Lekko jaśniejsze tło dla wyróżnienia */
}
.contact-persons-wrapper {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap; /* Zawijanie na mniejszych ekranach */
    max-width: 900px;
    margin: 2rem auto 0;
}
.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.contact-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%; /* Okrągłe zdjęcie */
    border: 3px solid var(--primary-color);
    object-fit: cover; /* Zapewnia, że zdjęcie dobrze wypełnia koło */
    margin-bottom: 1rem;
    background-color: #333; /* Tło, gdyby zdjęcia nie było */
}
.contact-info h3 {
    margin: 0.5rem 0;
    color: white;
    font-size: 1.5rem;
}
.contact-info p {
    margin: 0.25rem 0;
    font-size: 1rem;
}
.contact-info a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-info a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* OSTATECZNA POPRAWKA DLA CHECKBOXA */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Wyrównanie do lewej */
    gap: 10px;
    margin: 1rem 0;
    text-align: left;
}
.checkbox-wrapper input[type="checkbox"] {
    width: auto;
    flex-shrink: 0;
}
.checkbox-wrapper label {
    font-size: 0.9rem;
    color: #aaa;
}


@media (max-width: 768px) {
    header h1 { font-size: 2.2rem; }
    section h2 { font-size: 2.5rem; }
    .section-content {
        flex-direction: column;
    }
    .youtube-gallery {
        grid-template-columns: 1fr;
    }
    #cookie-banner {
        flex-direction: column;
        text-align: center;
    }
    .contact-persons-wrapper {
        flex-direction: column; /* Karty jedna pod drugą */
        gap: 2rem;
    }
}