/* --- ZMIENNE I STYLE GLOBALNE --- */
:root {
    --primary-color: #7001e5;
    --primary-dark: #43325c;
    --bg-light: #f8f7fa;
    --bg-white: #ffffff;
    --text-dark: #1a1a1a;
    --text-light: #5c5c5c;
    --border-color: #e5e5e5;
    --font-main: 'Inter', sans-serif;
    --transition-smooth: all 0.3s ease-in-out;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px rgba(0,0,0,0.07);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-main);
    background-color: var(--bg-white);
    color: var(--text-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: var(--primary-color); transition: var(--transition-smooth); font-weight: 500; }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4 { color: var(--text-dark); line-height: 1.2; font-weight: 800; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.1rem; font-weight: 700; }
p { margin-bottom: 1.25rem; }

.section { padding: 6rem 0; }
.section-title { text-align: center; margin-bottom: 1rem; }
.section-subtitle { text-align: center; max-width: 700px; margin: 0 auto 3rem auto; font-size: 1.1rem; }
.bg-light { background-color: var(--bg-light); }
.eyebrow { display: block; color: var(--primary-color); font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.5px; }

/* --- HEADER --- */
.header {
    position: fixed;
    width: 100%;
    top: 0; left: 0; z-index: 1000;
    transition: var(--transition-smooth);
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
}
.header.scrolled { border-bottom: 1px solid var(--border-color); }
header nav { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo img { height: 40px; }
.nav-links { display: flex; list-style: none; gap: 2.5rem; }
.nav-links a { color: var(--text-dark); font-weight: 500; position: relative; }
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0;
    width: 0; height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-smooth);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.burger { display: none; cursor: pointer; }
.burger .line { width: 28px; height: 2px; background-color: var(--text-dark); margin: 6px; transition: var(--transition-smooth); }

/* --- HERO (HOME) --- */
.hero-home { padding: 120px 0 80px 0; margin-top: 80px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-text h1 { margin-bottom: 1.5rem; }
.hero-text p { font-size: 1.1rem; margin-bottom: 2rem; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-image { border-radius: 12px; box-shadow: var(--shadow-md); object-fit: cover; width: 100%; height: 100%; }

/* --- PAGE HEADER (DLA PODSTRON) --- */
.page-header {
    padding: 6rem 0;
    margin-top: 80px;
    background-color: var(--bg-light);
    text-align: center;
}
.page-header h1 { margin-bottom: 1rem; }
.page-header p { max-width: 800px; margin: 0 auto; font-size: 1.1rem; }

/* --- PRZYCISKI --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 700;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}
.btn-primary { background-color: var(--primary-color); color: white; }
.btn-primary:hover { background-color: var(--primary-dark); transform: translateY(-2px); }
.btn-secondary { background-color: transparent; border-color: var(--border-color); color: var(--text-dark); }
.btn-secondary:hover { border-color: var(--primary-color); color: var(--primary-color); }
.btn-large { padding: 16px 40px; font-size: 1.1rem; }

/* --- KARTY (CARDS) --- */
.card-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary-color); }
.card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.card-tag {
    background-color: var(--bg-light);
    color: var(--primary-color);
    font-size: 0.8rem; font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    flex-shrink: 0;
}

/* --- INNE SEKCJE --- */
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: flex-start; }
.split-list h3 { margin-bottom: 1.5rem; }
.split-list ul { list-style: none; }
.split-list li { padding-left: 1.5rem; position: relative; margin-bottom: 1rem; }
.split-list li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}
.cta-section { text-align: center; }
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p { max-width: 600px; margin: 0 auto 2rem auto; }

/* --- ZESPÓŁ (TEAM) --- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.team-card { text-align: center; }
.team-card img {
    width: 150px; height: 150px;
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    object-fit: cover;
    box-shadow: var(--shadow-md);
}
.team-card h4 { margin-bottom: 0.25rem; }
.team-card .role { color: var(--primary-color); font-weight: 700; margin-bottom: 0.5rem; }
.team-card p.team-email {
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}
.team-card p.team-email a {
    color: var(--text-light);
}
.team-card p.team-email a:hover {
    color: var(--primary-color);
}
.team-card p { font-size: 0.9rem; }

/* --- LISTA DOKUMENTÓW --- */
.document-list ul { list-style: none; }
.document-list li { margin-bottom: 1rem; }
.document-link {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 8px;
    color: var(--text-dark);
    font-weight: 700;
    transition: var(--transition-smooth);
}
.document-link:hover { background-color: var(--primary-color); color: white; }
.document-link svg { margin-right: 1rem; }

/* --- FOOTER --- */
.footer { padding: 5rem 0 2rem 0; background-color: var(--text-dark); color: var(--text-light); border-top: 5px solid var(--primary-color); }
.footer a { color: var(--text-light); }
.footer a:hover { color: white; }
.footer h4 { color: white; margin-bottom: 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; margin-bottom: 4rem; }
.footer-col-main p { color: var(--text-light); }
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.75rem; }
.footer address { font-style: normal; }
.social-links { display: flex; gap: 1rem; margin-top: 1.5rem; }
.social-links a {
    display: flex;
    width: 40px; height: 40px;
    justify-content: center; align-items: center;
    border: 1px solid var(--text-light);
    border-radius: 50%;
    font-weight: 700;
}
.footer-bottom { display: flex; justify-content: space-between; padding-top: 2rem; border-top: 1px solid #333; font-size: 0.9rem; }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 80px; right: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }
    .nav-links.nav-active { transform: translateX(0); }
    .nav-links a { font-size: 1.5rem; }
    .burger { display: block; }
    .burger.toggle .line:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
    .burger.toggle .line:nth-child(2) { opacity: 0; }
    .burger.toggle .line:nth-child(3) { transform: rotate(45deg) translate(-7px, -8px); }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-image-wrapper { order: -1; max-width: 500px; margin: 0 auto; }
    .hero-buttons { justify-content: center; }
    .split-section { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .section { padding: 4rem 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* --- BUTTON STYLES --- */
.btn-bio-trigger {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
    transition: var(--transition-smooth);
    font-family: var(--font-main);
}

.btn-bio-trigger:hover {
    background: var(--primary-color);
    color: white;
}

/* --- MODAL STYLES --- */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000; /* Above header */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex; /* Show when active */
    animation: fadeIn 0.3s ease-out;
}

.modal-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transform: translateY(20px);
    animation: slideUp 0.3s ease-out forwards;
}

.modal-close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.modal-header img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.modal-body p {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Mobile Tweak for Modal */
@media (max-width: 600px) {
    .modal-header {
        flex-direction: column;
        text-align: center;
    }
}