/* Stylizacja strony O nas */
:root { 
    --primary-color: #01a1e5;
    --dark-color: #141518;
    --light-color: #f5f5f5;
}

.page-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('tlo2.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.page-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.page-hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.about-details {
    padding: 80px 0;
}

.about-content {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.about-text {
    flex: 2;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* DODANE: Niebieskie podkreślenia dla h2 */
.about-text h2 {
    color: #141518;
    margin-bottom: 20px;
    margin-top: 40px;
    text-align: center;
    position: relative;
}

.about-text h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.about-text h2:first-child {
    margin-top: 0;
}

.about-text ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.about-text li {
    margin-bottom: 10px;
}

.team {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.team h2 {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

/* DODANE: Podkreślenie dla nagłówka team */
.team h2::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.team-member {
    background: white;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
}

.member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-role {
    color: #3498db;
    font-weight: bold;
    margin-bottom: 15px;
}

.certificates {
    padding: 80px 0;
}

.certificates h2 {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

/* DODANE: Podkreślenie dla nagłówka certificates */
.certificates h2::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

.certificates > .container > p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.certificate-item {
    text-align: center;
    padding: 20px;
}

.certificate-item img {
    max-width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 15px;
}

.stats {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('tlo3.png');
    background-size: cover;
    background-position: center top;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.stats h2 {
    margin-bottom: 50px;
    position: relative;
}

/* DODANE: Podkreślenie dla nagłówka stats (białe, aby kontrastowało z ciemnym tłem) */
.stats h2::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.contact-preview {
    padding: 80px 0;
    text-align: center;
    background-color: #f8f9fa;
}

.contact-preview h2 {
    margin-bottom: 20px;
    position: relative;
}

/* DODANE: Podkreślenie dla nagłówka contact-preview */
.contact-preview h2::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

.contact-preview p {
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#stats_label {
    color: white;
}

/* Początkowy stan dla animowanych elementów */
.stat-number, 
.about-text h2, 
.about-text p, 
.about-text ul, 
.team-member, 
.certificate-item {
    opacity: 0;
    transform: translateY(30px);
}

/* Płynne przejścia */
.about-text h2, 
.about-text p, 
.about-text ul, 
.team-member, 
.certificate-item {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stat-number {
    transition: opacity 0.5s ease, transform 0.5s ease;
    min-height: 1.2em;
}

/* ============================================= */
/* RESPONSIVE DESIGN - O NAS */
/* ============================================= */

/* Tablet (769px - 1024px) */
@media (max-width: 1024px) {
    .page-hero {
        padding: 80px 0;
    }
    
    .page-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        gap: 40px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

/* Small Tablet (577px - 768px) */
@media (max-width: 768px) {
    .page-hero {
        padding: 60px 0;
    }
    
    .page-hero-content h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .page-hero-content p {
        font-size: 1.1rem;
        padding: 0 20px;
    }
    
    .about-details {
        padding: 60px 0;
    }
    
    .about-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .about-text h2 {
        font-size: 1.75rem;
        margin-top: 30px;
    }
    
    .stats {
        padding: 60px 0;
    }
    
    .stats h2 {
        margin-bottom: 40px;
        font-size: 1.75rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .team {
        padding: 60px 0;
    }
    
    .team h2 {
        font-size: 1.75rem;
        margin-bottom: 40px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .team-member {
        padding: 25px;
    }
    
    .member-photo {
        width: 120px;
        height: 120px;
    }
    
    .certificates {
        padding: 60px 0;
    }
    
    .certificates h2 {
        font-size: 1.75rem;
    }
    
    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .contact-preview {
        padding: 60px 0;
    }
    
    .contact-preview h2 {
        font-size: 1.75rem;
    }
}

/* Mobile (425px - 576px) */
@media (max-width: 576px) {
    .page-hero {
        padding: 50px 0;
    }
    
    .page-hero-content h1 {
        font-size: 1.75rem;
    }
    
    .page-hero-content p {
        font-size: 1rem;
    }
    
    .about-details {
        padding: 50px 0;
    }
    
    .about-text h2 {
        font-size: 1.5rem;
        margin-top: 25px;
    }
    
    .about-text ul {
        margin-left: 15px;
    }
    
    .stats {
        padding: 50px 0;
    }
    
    .stats h2 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .stat-desc {
        font-size: 0.9rem;
    }
    
    .team {
        padding: 50px 0;
    }
    
    .team h2 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    .team-member {
        padding: 20px;
    }
    
    .member-photo {
        width: 100px;
        height: 100px;
        margin-bottom: 15px;
    }
    
    .certificates {
        padding: 50px 0;
    }
    
    .certificates h2 {
        font-size: 1.5rem;
    }
    
    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .certificate-item {
        padding: 15px;
    }
    
    .certificate-item img {
        height: 100px;
    }
    
    .contact-preview {
        padding: 50px 0;
    }
    
    .contact-preview h2 {
        font-size: 1.5rem;
    }
    
    .btn-primary {
        padding: 10px 25px;
        font-size: 0.95rem;
    }
}

/* Small Mobile (320px - 424px) */
@media (max-width: 424px) {
    .container {
        padding: 0 15px;
    }
    
    .page-hero {
        padding: 40px 0;
    }
    
    .page-hero-content h1 {
        font-size: 1.5rem;
    }
    
    .page-hero-content p {
        font-size: 0.95rem;
        padding: 0 15px;
    }
    
    .about-details {
        padding: 40px 0;
    }
    
    .about-text h2 {
        font-size: 1.4rem;
    }
    
    .about-text p {
        font-size: 0.95rem;
    }
    
    .stats {
        padding: 40px 0;
    }
    
    .stats h2 {
        font-size: 1.4rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .team {
        padding: 40px 0;
    }
    
    .team h2 {
        font-size: 1.4rem;
    }
    
    .team-member {
        padding: 15px;
    }
    
    .certificates {
        padding: 40px 0;
    }
    
    .certificates h2 {
        font-size: 1.4rem;
    }
    
    .contact-preview {
        padding: 40px 0;
    }
    
    .contact-preview h2 {
        font-size: 1.4rem;
    }
    
    .btn-primary {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

/* High DPI/Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .page-hero,
    .stats {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}