/* ===== ANIMACJE SCROLL REVEAL (jak na index) ===== */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; will-change: opacity, transform; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.slide-in-left { opacity: 0; transform: translateX(-50px); transition: opacity 0.6s ease, transform 0.6s ease; will-change: opacity, transform; }
.slide-in-left.visible { opacity: 1; transform: translateX(0); }
.scale-in { opacity: 0; transform: scale(0.8); transition: opacity 0.6s ease, transform 0.6s ease; will-change: opacity, transform; }
.scale-in.visible { opacity: 1; transform: scale(1); }
.fade-in.visible, .slide-in-left.visible, .scale-in.visible { will-change: auto; }

/* Cieniutka zielona linia nad sekcjami – pełna szerokość (jak w index) */
main > section { position: relative; z-index: 1; }
main > section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    height: 1px;
    width: 100vw;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 1;
}
/* ===== STRONY O NAS - Wszystkie style w jednym pliku ===== */

/* ===== ZMIENNE KOLORYSTYCZNE I RESPONSYWNE ===== */
:root {
    /* Kolory */
    --primary: #064F3D;
    --primary-dark: #0B1A17;
    --primary-light: #3a9b85;
    --secondary: #ffffff;
    --text-dark: #0B1A17;
    --text-light: #ffffff;
    --text-muted: #4a5568;
    --gray-light: #f8f9fa;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #064F3D 0%, #1a3d35 100%);
    --gradient-secondary: linear-gradient(135deg, #1a3d35 0%, #2d4a42 100%);
    
    /* Typografia - mobile-first z clamp() */
    --font-size-base: clamp(0.9375rem, 0.85rem + 0.4vw, 1.0625rem); /* 15px - 17px */
    --font-size-h1: clamp(1.75rem, 1.2rem + 2.5vw, 3.5rem); /* 28px - 56px */
    --font-size-h2: clamp(1.4rem, 1.1rem + 1.5vw, 2.5rem); /* 22px - 40px */
    --font-size-h3: clamp(1.2rem, 1rem + 1vw, 2rem); /* 19px - 32px */
    --font-size-h4: clamp(1.1rem, 0.95rem + 0.75vw, 1.75rem); /* 17px - 28px */
    --font-size-small: clamp(0.875rem, 0.8rem + 0.4vw, 0.9375rem); /* 14px - 15px */
    --font-size-large: clamp(1.125rem, 1rem + 0.6vw, 1.25rem); /* 18px - 20px */
    
    /* Spacing - mobile-first */
    --spacing-xs: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem); /* 8px - 12px */
    --spacing-sm: clamp(0.75rem, 0.6rem + 0.75vw, 1rem); /* 12px - 16px */
    --spacing-md: clamp(1rem, 0.8rem + 1vw, 1.5rem); /* 16px - 24px */
    --spacing-lg: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem); /* 24px - 40px */
    --spacing-xl: clamp(2rem, 1.5rem + 2.5vw, 4rem); /* 32px - 64px */
    --spacing-xxl: clamp(3rem, 2rem + 5vw, 6rem); /* 48px - 96px */
    
    /* Container */
    --container-padding: clamp(0.75rem, 2vw, 1.25rem); /* 12px - 20px */
    --container-max-width: 1200px;
    
    /* Touch targets - min 44px zgodnie z WCAG */
    --touch-target-min: 2.75rem; /* 44px */
    
    /* Breakpoints jako zmienne dla czytelności */
    --bp-xs: 320px;
    --bp-sm: 480px;
    --bp-md: 768px;
    --bp-lg: 1024px;
    --bp-xl: 1280px;
    --bp-xxl: 1440px;
}

/* ===== PODSTAWOWE STYLE - MOBILE FIRST ===== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base dla rem */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    background: #fafbfc;
    color: var(--text-dark);
    line-height: 1.7;
    font-size: var(--font-size-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* ===== PRZY虽然没有 (BUTTONS) - MOBILE FIRST ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
    padding: clamp(0.875rem, 0.75rem + 0.6vw, 1rem) clamp(1.25rem, 1rem + 1.25vw, 1.75rem);
    border-radius: clamp(0.5rem, 0.4rem + 0.5vw, 0.625rem);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-base);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    border: 2px;
    position: relative;
    overflow: hidden;
    min-height: var(--touch-target-min); /* 44px zgodnie z WCAG */
    min-width: var(--touch-target-min);
    box-shadow: 0 4px 15px rgba(6, 79, 61, 0.15);
    font-family: 'Montserrat', Arial, sans-serif;
    width: 100%;
    max-width: 100%;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.btn:hover::before {
        width: 100%;
}

.btn-primary {
    background: var(--gradient-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(6, 79, 61, 0.3);
}

.btn-primary:hover {
    background: var(--gradient-secondary) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 79, 61, 0.3);
}

.btn-outline {
    background: var(--gradient-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(6, 79, 61, 0.2);
}

.btn-outline:hover {
    background: var(--gradient-secondary) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 79, 61, 0.3);
}

.btn-primary-small {
    padding: 12px 25px;
    font-size: 0.95rem;
    min-height: 40px;
    border-radius: 8px;
    background: var(--gradient-primary) !important;
    color: #ffffff !important;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(6, 79, 61, 0.2);
}

.btn-primary-small:hover {
    background: var(--gradient-secondary) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 79, 61, 0.3);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
    min-height: 56px;
}

.hero-btn-fullwidth {
        width: 100%;
    max-width: 100%;
}

@keyframes pulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(6, 79, 61, 0.7); 
    }
    70% { 
        box-shadow: 0 0 0 10px rgba(6, 79, 61, 0); 
    }
}

@keyframes cta-pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 12px 40px rgba(6, 79, 61, 0.5);
    }
}

.btn-pulse {
    animation: pulse 2s infinite !important;
}

.cta-section .btn-pulse {
    animation: cta-pulse 1.5s ease-in-out infinite !important;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== KLASY ANIMACJI ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in.visible {
    will-change: auto;
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.scale-in.visible {
    will-change: auto;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===== FONT AWESOME FIX ===== */
/* Pobieramy style Font Awesome 7 z czystej biblioteki */
/* Wszystkie ikony używają zmiennych CSS z Font Awesome 7 */
.fa-solid,
.fas,
i.fas {
    font-family: "Font Awesome 6 Free", "FontAwesome" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-transform: none !important;
    display: inline-block !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Ikony w kontenerach history i value */
.history-icon i,
.history-icon i.fas,
.history-icon .fas,
.value-icon i,
.value-icon i.fas,
.value-icon .fas {
    font-family: "Font Awesome 6 Free", "FontAwesome" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal;
    text-transform: none;
    line-height: 1 !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Font Awesome 7 - kompletne font-face */
@font-face {
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url("../webfonts/fa-solid-900.woff2") format("woff2");
}

@font-face {
    font-family: "FontAwesome";
    font-style: normal;
    font-weight: 900;
    font-display: block;
    src: url("../webfonts/fa-solid-900.woff2") format("woff2");
}

/* Kompletne style dla ikon */
.fa-lightbulb::before,
i.fa-lightbulb::before,
.fas.fa-lightbulb::before {
    content: "\f0eb" !important;
    font-family: "Font Awesome 6 Free", "FontAwesome" !important;
    font-weight: 900 !important;
}

.fa-graduation-cap::before,
.fa-graduation-cap-alt::before,
i.fa-graduation-cap::before,
.fas.fa-graduation-cap::before {
    content: "\f19d" !important;
    font-family: "Font Awesome 6 Free", "FontAwesome" !important;
    font-weight: 900 !important;
}

.fa-heart::before,
i.fa-heart::before,
.fas.fa-heart::before {
    content: "\f004" !important;
    font-family: "Font Awesome 6 Free", "FontAwesome" !important;
    font-weight: 900 !important;
}

.fa-user::before,
i.fa-user::before,
.fas.fa-user::before {
    content: "\f007" !important;
    font-family: "Font Awesome 6 Free", "FontAwesome" !important;
    font-weight: 900 !important;
}

.fa-search::before,
i.fa-search::before,
.fas.fa-search::before {
    content: "\f002" !important;
    font-family: "Font Awesome 6 Free", "FontAwesome" !important;
    font-weight: 900 !important;
}

.fa-hands-helping::before,
i.fa-hands-helping::before,
.fas.fa-hands-helping::before {
    content: "\f4c4" !important;
    font-family: "Font Awesome 6 Free", "FontAwesome" !important;
    font-weight: 900 !important;
}

.fa-book-medical::before,
i.fa-book-medical::before,
.fas.fa-book-medical::before {
    content: "\f7e4" !important;
    font-family: "Font Awesome 6 Free", "FontAwesome" !important;
    font-weight: 900 !important;
}

.fa-trophy::before,
i.fa-trophy::before,
.fas.fa-trophy::before {
    content: "\f091" !important;
    font-family: "Font Awesome 6 Free", "FontAwesome" !important;
    font-weight: 900 !important;
}

.fa-home::before,
i.fa-home::before,
.fas.fa-home::before {
    content: "\f015" !important;
    font-family: "Font Awesome 6 Free", "FontAwesome" !important;
    font-weight: 900 !important;
}

/* Wymuszamy wyświetlanie ikon */
.fas::before,
i.fas::before {
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
}

/* Dodatkowa definicja dla i z Font Awesome */
.history-icon i,
.value-icon i,
.history-icon .fas,
.value-icon .fas {
    position: relative !important;
    z-index: 1 !important;
}

/* ===== SEKCJA HERO - MOBILE FIRST ===== */
.hero-section {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, rgba(6, 79, 61, 0.92) 0%, rgba(26, 61, 53, 0.92) 100%);
    color: #ffffff !important;
    position: relative;
    overflow: visible;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
    margin-bottom: var(--spacing-xl);
    z-index: 2;
    width: 100%;
    max-width: 100vw;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        transparent,
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.hero-background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 10%);
    z-index: 1;
}

.hero-section .container {
    display: flex;
    flex-direction: column; /* Mobile first - kolumna */
    align-items: center;
    gap: var(--spacing-xl);
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-section h1,
.hero-section h2,
.hero-section p {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .btn {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    vertical-align: middle;
}

.hero-content {
    flex: 1;
    max-width: 100%;
    width: 100%;
}

.hero-content h1 {
    font-size: var(--font-size-h1);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    text-align: center;
}

.hero-content p {
    font-size: var(--font-size-large);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
    opacity: 0.95;
}

.hero-subtitle {
    font-size: var(--font-size-large);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero-btn-fullwidth {
    width: 100%;
    max-width: 100%;
}

.hero-image {
    flex: 0 0 auto;
    text-align: center;
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
}

.hero-image img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: clamp(0.75rem, 0.6rem + 0.75vw, 0.9375rem);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    object-fit: contain;
}

.hero-image img:hover {
    transform: scale(1.02);
}

/* ===== SEKCJA HISTORII - MOBILE FIRST ===== */
.history-section {
    padding: var(--spacing-xxl) 0;
    background: transparent;
    position: relative;
    z-index: 3;
    isolation: isolate;
    width: 100%;
    max-width: 100vw;
}

.history-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    right: auto;
    width: 100vw;
    transform: translateX(-50%);
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
    z-index: 1;
}

.history-section h2 {
    text-align: center;
    font-size: var(--font-size-h2);
    margin-bottom: var(--spacing-md);
    width: 100%;
}

.history-section .section-description {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
    color: #666;
    font-size: 1.1rem;
}

.history-content {
    display: grid;
    grid-template-columns: 1fr; /* Mobile first - jedna kolumna */
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
    width: 100%;
}

.history-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    z-index: 4;
}

.history-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.history-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: white !important;
    transition: all 0.3s ease;
}

.history-icon i,
.history-icon i.fas,
.history-icon .fas {
    color: white !important;
    font-family: "Font Awesome 6 Free", "FontAwesome" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal;
    text-transform: none;
    line-height: 1 !important;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.history-icon i::before,
.history-icon i.fas::before {
    display: inline-block;
    text-rendering: auto;
}

.history-card:hover .history-icon {
    transform: scale(1.1) rotate(10deg);
    background: var(--gradient-secondary);
}

.history-card:hover .history-icon i {
    color: white !important;
}

.history-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
    font-weight: 600;
}

.history-card p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

/* ===== SEKCJA ZESPOŁU ===== */
.team-section {
    padding: 100px 0;
    background: transparent;
    position: relative;
    overflow: visible;
    z-index: 2;
    margin: 60px 0;
    isolation: isolate;
}

/* ===== GLOBALNE KOLORY NAGŁÓWKÓW ===== */
h1, h2, h3, h5, h6 {
    color: var(--primary-light);
}

.team-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
    z-index: 2;
}

.team-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.team-section .section-description {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
    color: #666;
    font-size: 1.1rem;
}

/* Nowy design - każdy członek osobno */
.team-member {
    margin-bottom: 80px;
    padding: 50px 0;
}

.team-member:last-child {
    margin-bottom: 0;
}

.team-member-content {
    display: grid;
    grid-template-columns: 1fr; /* Mobile first - jedna kolumna */
    gap: var(--spacing-xl);
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    width: 100%;
}

/* Mobile first - reverse layout też jest jedną kolumną */
.team-member-content.reverse {
    grid-template-columns: 1fr;
}

.team-member-content.reverse .member-image-wrapper {
    grid-column: 1;
    order: 1;
}

.team-member-content.reverse .member-info {
    grid-column: 1;
    order: 2;
}

.member-image-wrapper {
    position: relative; /* Mobile first - relative */
    top: auto;
    height: auto;
    border-radius: clamp(0.75rem, 0.6rem + 0.75vw, 1.25rem);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease;
    background: white;
    align-self: start;
    width: 100%;
    max-width: 100%;
}

.member-image-wrapper:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.member-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: clamp(280px, 50vh, 700px); /* Responsywne min-height */
    max-height: 90vh;
    object-position: center;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(6, 79, 61, 0.6) 0%, rgba(6, 79, 61, 0.4) 30%, transparent 70%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 40px;
    pointer-events: none;
}

.image-signature {
    text-align: left;
    color: white !important;
}

.image-signature h4 {
    margin: 0 0 10px 0;
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.5px;
}

.image-signature p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.3px;
}

.member-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    padding-left: 0; /* Mobile first - bez padding */
    width: 100%;
    order: 2;
}

.member-image-wrapper {
    order: 1;
}

.member-header {
    border-bottom: 2px solid var(--gradient-primary);
    padding-bottom: 20px;
}

.member-header h3 {
    font-size: 2rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.member-title {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.member-description {
    line-height: 1.8;
    color: #555;
}

.member-description p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.member-description p:last-child {
    margin-bottom: 0;
}

.member-description ul {
    margin: 15px 0;
    padding-left: 25px;
}

.member-description ul li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.intro-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.7;
}

/* Experience Timeline */
.experience-timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 30px 0;
}

.timeline-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(6, 79, 61, 0.15);
}

.timeline-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: white;
    font-weight: bold;
}

.timeline-content h4 {
    margin: 0 0 5px 0;
    color: var(--primary-dark);
    font-size: 1.1rem;
    font-weight: 600;
}

.timeline-content p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Philosophy Box */
.philosophy-box {
    background: #064F3D !important;
    background-image: linear-gradient(135deg, #064F3D 0%, #267764 100%) !important;
    color: #ffffff !important;
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(6, 79, 61, 0.2);
    position: relative;
}

.philosophy-box p {
    margin: 0 !important;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    font-weight: 500 !important;
    color: #ffffff !important;
}

.philosophy-box strong {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}

/* ===== ZNAK SZCZEGÓLNY – PASY Z PRAWEJ (tak jak na innych stronach) ===== */
body {
    position: relative;
    isolation: isolate;
}

body::after {
    content: '';
    position: fixed;
    top: 50%;
    right: 0px;
    width: 250px;
    height: 350px;
    pointer-events: none;
    z-index: 1;
    background-image: url('../images/pasy w tle.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    opacity: 0.4;
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    body::after {
        width: 180px;
        height: 250px;
        right: -50px;
        opacity: 0.15;
    }
}

@media (max-width: 480px) {
    body::after { display: none; }
}

.member-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.specialty-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.specialty-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 79, 61, 0.3);
}

.member-cta {
    margin-top: 10px;
}

.member-cta .btn {
    padding: 14px 32px;
    font-size: 1.05rem;
    font-weight: 600;
}

/* Responsive - team section */

@media (max-width: 768px) {
    .team-member {
        margin-bottom: 50px;
        padding: 30px 0;
    }

    .team-member-content {
        gap: 30px;
    }

    /* Reset reverse layout dla Mileny */
    .team-member-content.reverse .member-image-wrapper {
        grid-column: 1 !important;
    }

    .team-member-content.reverse .member-info {
        grid-column: 1 !important;
    }

    .member-image-wrapper {
        position: relative !important; /* Wyłączamy sticky na tabletach */
        top: auto !important;
        height: auto !important;
        width: 100%;
        max-width: 100%;
    }

    .member-info {
        padding-left: 0;
        width: 100%;
    }

    .member-header h3 {
        font-size: 1.4rem;
    }

    .member-title {
        font-size: 1.1rem;
    }

    .member-description p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .member-description ul {
        padding-left: 20px;
        margin: 12px 0;
    }

    .member-description ul li {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .intro-text {
        font-size: 1rem;
    }

    .timeline-item {
        padding: 15px;
        gap: 12px;
    }

    .timeline-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .timeline-content h4 {
        font-size: 1rem;
    }

    .timeline-content p {
        font-size: 0.9rem;
    }

    .philosophy-box {
        padding: 20px;
        margin: 20px 0;
    }

    .philosophy-box p {
        font-size: 1rem;
    }

    .philosophy-box strong {
        font-size: 1.1rem;
    }

    .image-overlay {
        padding: 20px;
    }

    .image-signature h4 {
        font-size: 1.4rem;
    }

    .image-signature p {
        font-size: 0.9rem;
    }

    .member-image-wrapper img {
        min-height: 400px;
        width: 100%;
        max-width: 100%;
    }
}

/* Stare style dla kompatybilności - można usunąć w przyszłości */
.card-image {
    position: relative;
    overflow: hidden;
    height: 350px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 30px;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
    font-weight: 600;
}

.card-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1rem;
}

.card-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn-primary-small {
    padding: 12px 25px;
    font-size: 0.95rem;
    background: var(--gradient-primary);
    color: var(--text-light);
    border: none;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(6, 79, 61, 0.3);
}

.btn-primary-small::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: width 0.6s ease;
    transform: translateX(-50%);
    z-index: 1;
}

.btn-primary-small:hover::before {
    width: 100%;
}

.btn-primary-small:hover {
    background: var(--gradient-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 79, 61, 0.4);
}

/* ===== SEKCJA WARTOŚCI ===== */
.values-section {
    padding: 100px 0;
    background: transparent;
    position: relative;
    z-index: 2;
    isolation: isolate;
}

/* Tekst nad pasami – uniesienie treści kontenerów sekcji (bez zmiany tła sekcji) */
.history-section .container,
.team-section .container,
.values-section .container {
    position: relative;
    z-index: 2;
}

.values-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    right: auto;
    width: 100vw;
    transform: translateX(-50%);
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
    z-index: 1;
}

.values-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.values-section .section-description {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
    color: #666;
    font-size: 1.1rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.value-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    z-index: 4;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: white !important;
    transition: all 0.3s ease;
}

.value-icon i,
.value-icon i.fas,
.value-icon .fas {
    color: white !important;
    font-family: "Font Awesome 6 Free", "FontAwesome" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal;
    text-transform: none;
    line-height: 1 !important;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.value-icon i::before,
.value-icon i.fas::before {
    display: inline-block;
    text-rendering: auto;
}

.value-card:hover .value-icon {
    transform: scale(1.15) rotate(10deg);
    background: var(--gradient-secondary);
}

.value-card:hover .value-icon i {
    color: white !important;
}

.value-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
    font-weight: 600;
}

.value-card p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

/* ===== SEKCJA CTA ===== */
.cta-section {
    background: var(--gradient-primary);
    padding: 100px 0 140px 0;
    position: relative;
    overflow: visible;
    text-align: center;
    color: var(--text-light);
    margin-top: 0;
    margin-bottom: 0;
    z-index: 3;
    isolation: isolate;
}

/* Linia rozdzielająca CTA od footera */
.cta-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.5) 50%, transparent 100%);
    z-index: 1;
}

.cta-section h2 {
    color: var(--text-light) !important;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff !important;
}

.cta-buttons {
    display: flex;
    flex-direction: row; /* Przyciski obok siebie */
    gap: var(--spacing-md);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-md);
}

/* Przyciski CTA - zielone tło, białe po hover */
.cta-section .btn-primary {
    background: var(--gradient-primary) !important;
    color: white !important;
    padding: clamp(1rem, 0.8rem + 1vw, 1.5rem) clamp(2rem, 1.5rem + 2.5vw, 4.125rem) !important;
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.3rem) !important;
    font-weight: 700 !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
    border: none !important;
    min-width: auto !important;
    width: auto !important;
    max-width: 100% !important;
    flex: 0 1 auto !important;
    position: relative !important;
    overflow: visible !important;
}

.cta-section .btn-primary.btn-pulse {
    animation: cta-pulse 1.5s ease-in-out infinite !important;
}

.cta-section .btn-primary:hover {
    background: rgba(255, 255, 255, 1) !important;
    color: var(--primary) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3) !important;
}

.cta-section .btn-outline {
    background: var(--gradient-primary) !important;
    color: white !important;
    border: none !important;
    padding: clamp(0.95rem, 0.75rem + 1vw, 1.1875rem) clamp(1.5rem, 1.25rem + 1.25vw, 2.25rem) !important;
    font-size: clamp(0.95rem, 0.85rem + 0.5vw, 1.14rem) !important;
    font-weight: 700 !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    min-width: auto !important;
    width: auto !important;
    max-width: 100% !important;
    flex: 0 1 auto !important;
}

.cta-section .btn-outline:hover {
    background: rgba(255, 255, 255, 1) !important;
    color: var(--primary) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3) !important;
}

.btn-large {
    min-width: 200px;
    padding: 18px 35px;
    font-size: 1.1rem;
}

/* ===== ANIMACJE ===== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSYWNOŚĆ - MOBILE FIRST ===== */
/* Mobile first - style bazowe są już dla mobile */

/* Tablet Portrait - 768px i więcej */
@media (min-width: 768px) {
    .hero-section .container {
        flex-direction: row;
        align-items: center;
        gap: var(--spacing-xl);
    }
    
    .hero-content {
        max-width: 50%;
    }
    
    .hero-image {
        flex: 0 0 45%;
        max-width: 45%;
    }
    
    .team-member-content {
        grid-template-columns: 40% 1fr;
        gap: var(--spacing-xl);
    }
    
    .team-member-content.reverse {
        grid-template-columns: 1fr 40%;
    }
    
    .team-member-content.reverse .member-image-wrapper {
        grid-column: 2;
        order: 2;
    }
    
    .team-member-content.reverse .member-info {
        grid-column: 1;
        order: 1;
    }
    
    .member-info {
        padding-left: var(--spacing-md);
    }
    
    .history-content,
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
}

/* Tablet Landscape / Small Desktop - 1024px i więcej */
@media (min-width: 1024px) {
    .hero-section .container {
        gap: var(--spacing-xxl);
    }
    
    .hero-content {
        max-width: 50%;
    }
    
    .hero-image {
        flex: 0 0 45%;
    }
    
    /* STICKY DZIAŁA TYLKO OD 1024px */
    .member-image-wrapper {
        position: sticky !important;
        top: clamp(5rem, 5vh, 6.25rem); /* 80px - 100px */
        height: fit-content;
    }
    
    .team-member-content {
        grid-template-columns: clamp(400px, 35vw, 500px) 1fr;
        gap: clamp(3rem, 4vw, 3.75rem);
    }
    
    .team-member-content.reverse {
        grid-template-columns: 1fr clamp(400px, 35vw, 500px);
    }
    
    .history-content,
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop - 1280px i więcej */
@media (min-width: 1280px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-section .container {
        max-width: 1200px;
    }
    
    .team-member-content {
        max-width: 1400px;
    }
}

/* Large Desktop - 1440px i więcej */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-section .container {
        max-width: 1400px;
    }
}

/* Mobile Large - 480px i mniej */
@media (max-width: 480px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    .hero-image img {
        max-height: 300px;
    }
    
    .history-section,
    .team-section,
    .values-section {
        padding: 50px 0;
    }
    
    .history-section h2,
    .team-section h2,
    .values-section h2 {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 1rem;
    }

    .history-icon,
    .value-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .history-card,
    .value-card {
        padding: 25px;
    }
    
    .team-card {
        border-radius: 15px;
    }
    
    .card-image {
        height: 300px;
    }
    
    /* Reset reverse layout dla Mileny na małych ekranach */
    .team-member-content.reverse .member-image-wrapper {
        grid-column: 1 !important;
    }

    .team-member-content.reverse .member-info {
        grid-column: 1 !important;
    }

    .member-image-wrapper {
        width: 100%;
        max-width: 100%;
    }

    .member-image-wrapper img {
        min-height: 350px;
        width: 100%;
        max-width: 100%;
    }
    
    .member-info {
        width: 100%;
        padding-left: 0;
    }

    .member-description ul {
        padding-left: 18px;
        margin: 10px 0;
    }

    .member-description ul li {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }
    
    .image-overlay {
        padding: 15px;
    }
    
    .image-signature h4 {
        font-size: 1.2rem;
    }
    
    .image-signature p {
        font-size: 0.85rem;
    }
    
    .cta-section {
        padding: 50px 12px 80px 12px;
    }
    
    .cta-section .container {
        padding: 0;
        max-width: 100%;
    }
    
    .cta-section h2 {
        font-size: 1.75rem;
        padding: 0 5px;
        line-height: 1.3;
    }
    
    .cta-section p {
        font-size: 1rem;
        padding: 0 5px;
        margin-bottom: 25px;
    }

    .cta-buttons {
        padding: 0 5px;
    }
}

/* Mobile Medium */
@media (max-width: 375px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .history-section h2,
    .team-section h2,
    .values-section h2,
    .cta-section h2 {
        font-size: 1.5rem;
    }
    
    .member-header h3 {
        font-size: 1.3rem;
    }
    
    /* Reset reverse layout dla Mileny */
    .team-member-content.reverse .member-image-wrapper {
        grid-column: 1 !important;
    }

    .team-member-content.reverse .member-info {
        grid-column: 1 !important;
    }

    .member-image-wrapper {
        width: 100%;
        max-width: 100%;
    }

    .member-image-wrapper img {
        min-height: 300px;
        width: 100%;
        max-width: 100%;
    }

    .member-info {
        width: 100%;
        padding-left: 0;
    }
    
    .history-card,
    .value-card {
        padding: 20px;
    }
    
    .philosophy-box {
        padding: 18px;
        margin: 18px 0;
    }
    
    .philosophy-box p {
        font-size: 0.95rem;
    }
    
    .philosophy-box strong {
        font-size: 1.05rem;
    }

    .cta-section {
        padding: 40px 10px 60px 10px;
    }

    .cta-section h2 {
        font-size: 1.5rem;
        padding: 0;
    }

    .cta-section p {
        font-size: 0.95rem;
        padding: 0;
    }

    .cta-buttons {
        padding: 0;
    }

    .cta-section .btn-primary,
    .cta-section .btn-outline {
        padding: 16px 20px;
        font-size: 1rem;
    }
}

/* Mobile Small */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .history-section h2,
    .team-section h2,
    .values-section h2,
    .cta-section h2 {
        font-size: 1.4rem;
    }
    
    /* Reset reverse layout dla Mileny */
    .team-member-content.reverse .member-image-wrapper {
        grid-column: 1 !important;
    }

    .team-member-content.reverse .member-info {
        grid-column: 1 !important;
    }

    .member-image-wrapper {
        width: 100%;
        max-width: 100%;
    }

    .member-image-wrapper img {
        min-height: 280px;
        width: 100%;
        max-width: 100%;
    }

    .member-info {
        width: 100%;
        padding-left: 0;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .cta-section {
        padding: 35px 8px 50px 8px;
    }

    .cta-section h2 {
        font-size: 1.4rem;
    }

    .cta-section p {
        font-size: 0.9rem;
    }

    .cta-section .btn-primary,
    .cta-section .btn-outline {
        padding: 14px 18px;
        font-size: 0.95rem;
    }
}

/* Footer styles removed; unified in css/footer-unified.css */
