/* --- GŁÓWNE STYLE STRONY --- */
body { 
    font-family: sans-serif; 
    line-height: 1.6; 
    margin: 0; 
    padding: 0; 
    color: #333; 
}

/* --- NAGŁÓWEK --- */
header { 
    background: #0056b3; 
    color: white; 
    text-align: center; 
    padding: 0; 
}
.header-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 0.5rem;
}

/* Animacja paska przewijanego w nagłówku */
.scrolling-text-container {
    width: 100%;
    overflow: hidden;
    background-color: #004494;
    white-space: nowrap;
    padding: 10px 0;
    box-sizing: border-box;
}
.scrolling-text {
    display: inline-block;
    color: white;
    font-weight: bold;
    font-size: 1.5em;
    padding-left: 20px;
    animation: scroll-animation 15s linear infinite;
}
@keyframes scroll-animation {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* --- KONTENERY I SEKCJE --- */
.container { 
    max-width: 960px; 
    margin: auto; 
    padding: 2rem; 
}
.section { 
    margin-bottom: 2rem; 
}
h1, h2, h3 { 
    color: #0056b3; 
}

/* --- CENNIK (TABELA DLA PC I UKŁAD DLA URZĄDZEŃ MOBILNYCH) --- */
.price-table { 
    width: 100%; 
    border-collapse: collapse; 
    margin-top: 1rem; 
    display: table; /* Wyświetlane na dużych ekranach */
}
.price-table th, .price-table td { 
    border: 1px solid #ddd; 
    padding: 0.75rem; 
    text-align: left; 
}
.price-table th { 
    background-color: #f2f2f2; 
}
.price-list-mobile { 
    display: none; /* Ukryte na dużych ekranach, pokazywane na mniejszych */
}

/* Media query - styl dla ekranów węższych niż 600px */
@media screen and (max-width: 600px) {
    .price-table { display: none; }
    .price-list-mobile { display: block; }

    .price-item {
        border: 1px solid #ddd;
        padding: 10px;
        margin-bottom: 15px;
    }
    .price-item h4 {
        margin: 0 0 10px 0;
        color: #0056b3;
        text-align: left;
        font-size: 1.1em;
    }
    .price-item p {
        margin: 5px 0;
        text-align: left;
    }
    .price-item strong {
        display: inline-block;
        width: 200px; 
    }
    .price-list-label {
        font-weight: bold;
        text-align: center;
        margin-bottom: 10px;
        color: #0056b3;
    }
}

/* --- PRZYCISKI I FORMULARZE --- */
.form-button {
    display: inline-block;
    font-weight: bold;
    font-size: 1.1em;
    color: #0056b3;
    text-decoration: none;
    border: 2px solid #0056b3;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
}
.form-button:hover {
    background-color: #0056b3;
    color: white;
}

#contactForm input, #contactForm textarea {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    margin-top: 5px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
#contactForm button {
    background-color: #0056b3;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}
#contactForm button:hover {
    background-color: #004494;
}

/* --- KONTAKT INFORMACJE --- */
.contact-info { 
    background-color: #f9f9f9; 
    padding: 1rem; 
    border-left: 5px solid #0056b3; 
}

/* --- SEKCJA TESTÓW (Przyda się dla nowej podstrony testy.html) --- */
.test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 1.5rem;
}
@media (min-width: 768px) {
    .test-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.test-item {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    background-color: #f9f9f9;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}
.test-item h3 {
    margin-top: 0;
    color: #0056b3;
    font-size: 1.1em;
}
.test-item h3 a {
    color: #0056b3;
    text-decoration: none;
}
.test-item h3 a:hover {
    text-decoration: underline;
}
.test-item iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
    margin-top: 10px;
}

/* --- STOPKA --- */
footer { 
    background: #333; 
    color: white; 
    text-align: center; 
    padding: 1rem 0; 
    margin-top: 2rem; 
}
footer a { 
    color: white; 
    text-decoration: none; 
    margin: 0 10px; 
}

/* --- WYSKAKUJĄCE OKIENKA (MODAL) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.6);
}
.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    margin: 15% auto;
}
.close-button {
    color: #aaa;
    position: absolute;
    right: 10px;
    top: 5px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* ========================================= */
/* --- STYLE DEDYKOWANE DLA TESTY.HTML ---   */
/* ========================================= */

/* Jasnoniebieskie, pastelowe tło dla nowej podstrony */
body.page-testy {
    background-color: #e6f2ff; 
}

/* Siatka 2 kolumn dla testów */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr; /* Na telefonach: 1 kolumna (jedno pod drugim) */
    gap: 40px;
    margin-top: 2rem;
}

@media (min-width: 992px) {
    .two-column-layout {
        grid-template-columns: 1fr 1fr; /* Na PC: 2 równe kolumny */
    }
}

/* Kontener dla prawych przycisków */
.test-buttons-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Wyśrodkowanie przycisków w kolumnie */
    gap: 15px; /* Odstępy między przyciskami */
}

/* Styl dla nowych przycisków w formie szarych prostokątów */
.test-link-btn {
    display: block;
    width: 75%; /* Rozciągnięte na 3/4 szerokości kolumny */
    background-color: #f0f0f0; /* Jasno szary kolor tła */
    color: #0056b3; /* Zachowanie koloru przewodniego dla tekstu */
    text-align: center;
    padding: 15px 20px;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #ccc; /* Lekkie obramowanie */
    border-radius: 4px; /* Kształt prostokąta, minimalnie zaokrąglone krawędzie */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Lekki cień */
    transition: all 0.3s ease;
}

.test-link-btn:hover {
    background-color: #e0e0e0; /* Ciemniejszy szary przy najechaniu myszką */
    transform: translateY(-2px); /* Delikatne podniesienie się przycisku */
}
/* ========================================= */
/* --- SEKCJA OPINII (KOMENTARZY) ---        */
/* ========================================= */
.comments-list {
    margin-bottom: 2rem;
}

.comment-item {
    background-color: #f9f9f9;
    border-left: 5px solid #0056b3;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.comment-item h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.1em;
}

.comment-item p {
    margin: 0;
    font-style: italic;
    color: #555;
}

.add-comment-box {
    background-color: #f0f8ff; /* Delikatny, bardzo jasny niebieski */
    padding: 20px;
    border: 1px solid #cce0ff;
    border-radius: 5px;
}

.add-comment-box h3 {
    margin-top: 0;
    color: #0056b3;
}

.add-comment-box input, .add-comment-box textarea {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.add-comment-box button {
    background-color: #0056b3;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

.add-comment-box button:hover {
    background-color: #004494;
}