/* Zmienne globalne - paleta kolorów */
:root {
    --primary-color: #1a202c; /* Ciemny granat z Twoich zrzutów (stopka/header) */
    --accent-color: #e09f5d; /* Miedziany kolor przycisków i linii */
    --accent-hover: #c7884a;
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --font-heading: 'Montserrat', sans-serif; /* Zmiana na Montserrat */
    --font-body: 'Lato', sans-serif;
}

/* Reset stylów */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

/* Typografia */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Przyciski */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(224, 159, 93, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-left: 10px;
}

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

/* Nawigacja */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 400;
    font-size: 1rem;
    position: relative;
}

.nav-links a.active, .nav-links a:hover {
    color: var(--accent-color);
}

.btn-nav {
    border: 1px solid var(--primary-color);
    padding: 8px 20px;
    border-radius: 4px;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- SEKCJA HERO Z ZACIEMNIENIEM --- */

.hero {
    position: relative;
    padding: 100px 0;
    text-align: center;
    background-image: url('assets/hero-back.png'); 
    background-size: cover;
    background-position: center;
    color: #ffffff;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.citation {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.2;
    color: #ffffff;
}

.hero-subtext {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Sekcje ogólne */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

/* Sekcja O nas */
.split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.visual-box {
    background-color: var(--bg-light);
    height: 400px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.visual-box::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-color);
    border-radius: 20px;
    z-index: -1;
}

.big-icon {
    font-size: 8rem;
    color: var(--primary-color);
    opacity: 0.1;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-color);
    font-weight: 700;
    margin-top: 20px;
}

/* Filary - Karty */
.pillars {
    background-color: var(--bg-light);
}

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

.card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    border-top: 4px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    border-top: 4px solid var(--accent-color);
}

.icon-wrapper {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.card ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.card ul li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Sekcja Dołącz */
.join-us {
    text-align: center;
    background: var(--primary-color);
    color: var(--white);
}

.join-us h2 {
    color: var(--white);
}

.join-us p {
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    margin: 0 auto 40px;
}

.join-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border-radius: 50px;
    border: none;
    outline: none;
    font-family: var(--font-body);
}

/* Footer */
.footer {
    background-color: #12161f;
    color: rgba(255,255,255,0.6);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    color: var(--white);
    margin-bottom: 10px;
}

.footer-links h4, .footer-socials h4 {
    color: var(--white);
    font-family: var(--font-heading);
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a:hover {
    color: var(--accent-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.social-icons a:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.8rem;
}

/* --- LOGO W STOPCE --- */
.footer-logo img {
    width: 100px;
    height: auto;
    margin-bottom: 15px;
    display: block;
    filter: brightness(0) invert(1); 
}

@media (max-width: 768px) {
    .footer-logo img {
        width: 120px;
        margin: 0 auto 15px auto;
    }
}

/* KLASY DLA ANIMACJI (używane przez JS) */
.hidden-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.show-element {
    opacity: 1;
    transform: translateY(0);
}

/* Responsywność Główna i obsługa Menu Mobilnego */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100px; /* Wysuwa się spod nawigacji */
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        border-top: 1px solid #edf2f7;
        z-index: 999;
    }

    /* Klasa dodawana przez JavaScript, by pokazać menu */
    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }
    
    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .split-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

/* --- STYLE PODSTRONY O NAS --- */

/* Header podstrony */
.page-header {
    background: var(--primary-color);
    padding: 120px 0 60px;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 10px;
}

.page-header p {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* Sekcja Wartości / Historia */
.quote-box {
    margin-top: 30px;
    padding: 20px;
    border-left: 4px solid var(--accent-color);
    background: rgba(224, 159, 93, 0.1);
    font-style: italic;
    font-family: var(--font-heading);
    color: var(--primary-color);
}

.quote-box i {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* --- SEKCJA ZESPÓŁ (TEAM) --- */
.team-section {
    background-color: var(--bg-light);
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.team-card {
    flex: 0 0 auto;
    width: 100%;
    max-width: 350px;
    background: transparent;
}

@media (min-width: 768px) {
    .team-card {
        width: calc(33.333% - 40px);
    }
}

.team-image {
    position: relative;
    width: 100%;
    height: 350px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

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

.img-placeholder {
    width: 100%;
    height: 100%;
    background-color: #cbd5e0;
    transition: transform 0.5s ease;
}

/* Efekt Overlay (nakładka) */
.team-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 32, 44, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease-in-out;
}

.team-bio {
    color: var(--white);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.team-socials {
    display: flex;
    gap: 15px;
}

.team-socials a {
    color: var(--accent-color);
    font-size: 1.2rem;
    transition: 0.3s;
}

.team-socials a:hover {
    color: var(--white);
    transform: scale(1.1);
}

/* Interakcje (Hover) */
.team-card:hover .img-placeholder {
    transform: scale(1.1);
}

.team-card:hover .team-overlay {
    opacity: 1;
    transform: translateY(0);
}

.team-info {
    text-align: center;
}

.team-info h3 {
    margin-bottom: 5px;
    font-size: 1.4rem;
    color: var(--primary-color);
}

.team-info span {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Styl dla zdjęcia w sekcji O Nas --- */
.image-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: block;
    position: relative;
    z-index: 2;
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-color);
    border-radius: 20px;
    z-index: 1;
}

@media (max-width: 768px) {
    .image-wrapper::before {
        top: 10px;
        right: 10px;
        width: 100%;
        height: 100%;
        z-index: -1;
    }
}

/* --- STYLE PODSTRONY PROJEKTY --- */

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 24px;
    border: 1px solid var(--text-light);
    background: transparent;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--text-light);
    transition: 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Siatka Projektów */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

/* Karta Projektu */
.project-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.project-img {
    height: 220px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.img-placeholder-project {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-icon-placeholder {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.05);
}

.status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.status-active {
    background-color: var(--accent-color);
}

.status-finished {
    background-color: #48bb78;
}

.project-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.project-desc {
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex-grow: 1;
    line-height: 1.7;
}

.project-content .text-link {
    margin-top: auto;
}

/* --- STYLE PODSTRONY BAZA WIEDZY --- */

.knowledge-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 350px;
}

.search-box input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
    background: #f8f9fa;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s;
}

.search-box input:focus {
    background: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(224, 159, 93, 0.1);
}

.search-box i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.categories-list {
    display: flex;
    gap: 10px;
}

.cat-tag {
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: 20px;
    background: #f1f5f9;
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.cat-tag:hover, .cat-tag.active {
    background: var(--primary-color);
    color: var(--white);
}

.kb-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #edf2f7;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.kb-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: transparent;
}

.kb-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.kb-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.kb-card:hover .kb-img img {
    transform: scale(1.08);
}

.kb-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.kb-meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.kb-content h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--primary-color);
}

.kb-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.kb-footer {
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-light);
}

.read-more-btn {
    color: var(--primary-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.2s;
}

.read-more-btn:hover {
    color: var(--accent-color);
    gap: 8px;
}

@media (max-width: 768px) {
    .knowledge-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .categories-list {
        overflow-x: auto;
        padding-bottom: 10px;
    }
    .search-box {
        max-width: 100%;
    }
}

/* --- STYLE PODSTRONY KONTAKT --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.info-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    background: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.info-item a {
    color: var(--text-dark);
    font-weight: 700;
    transition: 0.3s;
}

.info-item a:hover {
    color: var(--accent-color);
}

.registry-data {
    padding: 0 20px;
    color: var(--text-light);
}

.registry-data h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.registry-data ul li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.registry-data ul li strong {
    color: var(--text-dark);
    display: inline-block;
    width: 70px;
}

.contact-form-container {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow);
}

.main-contact-form .form-group {
    margin-bottom: 20px;
}

.main-contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.main-contact-form input, 
.main-contact-form textarea {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8f9fa;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.main-contact-form input:focus,
.main-contact-form textarea:focus {
    background: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(224, 159, 93, 0.1);
}

.main-contact-form textarea {
    resize: vertical;
}

@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contact-info {
        order: 2;
    }
}

/* --- STYLE PODSTRONY ARTYKUŁU --- */
.article-header {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    color: var(--white);
    margin-bottom: 80px;
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%);
}

.header-content {
    position: relative;
    z-index: 2;
    padding-bottom: 80px;
    max-width: 900px;
    margin: 0 auto;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.article-header h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--white);
    font-weight: 700;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.article-container {
    max-width: 740px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #2d3748;
    font-family: var(--font-body);
}

.article-lead {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 60px;
    line-height: 1.5;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 40px;
}

.article-body h2 {
    font-size: 2.2rem;
    margin-top: 70px;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.article-body p {
    margin-bottom: 30px;
}

.article-body img {
    width: 100vw;
    max-width: 1000px;
    height: auto;
    margin: 50px 0 50px -130px;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

blockquote {
    border-left: 4px solid var(--accent-color);
    margin: 50px 0;
    padding: 20px 40px;
    font-style: italic;
    font-size: 1.4rem;
    color: var(--primary-color);
    background: #f8f9fa;
    border-radius: 0 15px 15px 0;
    line-height: 1.5;
}

@media (max-width: 1100px) {
    .article-body img {
        margin: 40px 0;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .article-header { height: auto; padding-top: 120px; }
    .article-header h1 { font-size: 2.2rem; }
    .header-content { padding-bottom: 40px; }
    .article-container { padding: 0 20px; font-size: 1.1rem; }
    .article-lead { font-size: 1.25rem; }
    blockquote { padding: 15px 20px; font-size: 1.2rem; }
}

.read-next {
    background-color: #f8f9fa;
    padding: 100px 0;
    margin-top: 100px;
    border-top: 1px solid #e2e8f0;
}

@media (max-width: 900px) {
    .article-header {
        height: auto;
        min-height: 350px;
        padding-top: 100px;
    }
    .header-content {
        padding: 0 20px 40px 20px;
    }
    .article-header h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    .article-container {
        padding: 0 20px;
        width: 100%;
        box-sizing: border-box;
    }
    figure {
        margin: 30px 0;
        width: 100%;
    }
    figure img {
        border-radius: 8px;
    }
    .highlight-box {
        padding: 20px;
        margin: 30px 0;
        font-size: 1.1rem;
        border-left-width: 4px;
    }
    .article-lead {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }
}

/* ========================================= */
/* === STYLE PREZENTACJI (DARK MODE) === */
/* ========================================= */

body.presentation-mode {
    --dark-bg: #0f1219;
    --dark-card: #1a202c;
    --gold: #e09f5d;
    --text-grey: #a0aec0;
    
    background-color: var(--dark-bg);
    color: #fff;
    overflow-x: hidden;
}

.login-wrapper {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #2d3748 0%, #0f1219 100%);
}

.login-box {
    background: var(--dark-card);
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(224, 159, 93, 0.1);
    max-width: 400px;
    width: 90%;
}

.login-input {
    width: 100%;
    padding: 15px;
    margin: 20px 0;
    background: #0f1219;
    border: 1px solid #2d3748;
    color: var(--gold);
    text-align: center;
    font-size: 1.2rem;
    border-radius: 50px;
    outline: none;
}

.login-input:focus { border-color: var(--gold); }

.pres-hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: url('assets/hero-back.png') no-repeat center center/cover;
}

.pres-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 18, 25, 0.8) 0%, #0f1219 100%);
}

.pres-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

.pres-tag {
    color: var(--gold);
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
}

.pres-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 30px;
    background: linear-gradient(45deg, #fff, #a0aec0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pres-stats {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap; 
    gap: 20px; 
    margin-top: 50px;
    overflow-x: auto; 
    padding-bottom: 10px;
}

.stat-box {
    background: rgba(255,255,255,0.05);
    padding: 15px 20px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
    min-width: 120px; 
}

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

.usp-card {
    background: var(--dark-card);
    padding: 30px;
    border-radius: 15px;
    border-left: 3px solid var(--gold);
    transition: transform 0.3s;
}

.usp-card:hover {
    transform: translateY(-10px);
    background: #232a38;
}

.usp-icon {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.usp-card h3 {
    color: #ffffff !important;
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 700;
}

.pillars-flex {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.pillar-item {
    flex: 1;
    min-width: 300px;
    background: linear-gradient(145deg, var(--dark-card), #151922);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pillar-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 5px;
    background: var(--gold);
}

.timeline {
    position: relative;
    max-width: 1100px;
    margin: 100px auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    width: 2px;
    background: var(--gold);
    transform: translateX(-50%);
}

.timeline-item {
    padding: 20px 60px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }

.timeline-dot {
    position: absolute;
    top: 40px;
    width: 30px;
    height: 30px;
    background: var(--gold);
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 20px var(--gold);
}

.timeline-item:nth-child(odd) .timeline-dot { right: -15px; }
.timeline-item:nth-child(even) .timeline-dot { left: -15px; }

.timeline-content {
    background: linear-gradient(145deg, #1a202c, #11151c);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(224, 159, 93, 0.3);
    text-align: left;
}

.timeline-date {
    background: var(--gold);
    color: #0f1219;
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 20px;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.timeline-content h3 {
    font-size: 2rem;
    color: white;
    margin-bottom: 15px;
}

.timeline-goal {
    font-size: 1.1rem;
    color: var(--gold);
    font-weight: 700;
    font-style: italic;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.timeline-section-title {
    color: white;
    font-size: 1.1rem;
    margin-top: 25px;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-left: 3px solid var(--gold);
    padding-left: 15px;
}

.timeline-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-list li {
    font-size: 1rem;
    color: #cbd5e0;
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
    line-height: 1.6;
}

.timeline-list li::before {
    content: '•';
    color: var(--gold);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

.summary-box {
    background: var(--gold);
    color: var(--dark-bg);
    padding: 60px;
    border-radius: 30px;
    text-align: center;
    margin: 100px 0;
}

.summary-box h2, .summary-box h4 { color: #0f1219; }

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@media(max-width: 900px) {
    .pres-title { font-size: 2.5rem; }
    .timeline::before { left: 20px; }
    .timeline-item { width: 100%; padding-left: 60px; padding-right: 0; padding-top: 0; padding-bottom: 40px; text-align: left; }
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) { left: 0; }
    .timeline-item:nth-child(odd) .timeline-dot, .timeline-item:nth-child(even) .timeline-dot { left: 5px; top: 0; }
    .timeline-content { padding: 25px; }
    .timeline-content h3 { font-size: 1.5rem; }
}

.pres-hero .pres-content img {
    filter: none !important;
    margin-bottom: 20px;
    width: 120px;
}

/* ========================================= */
/* === STYLE PODSTRONY: STREFA RADNEGO === */
/* ========================================= */

.radny-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #11151c 100%);
    padding: 100px 0 80px;
    text-align: center;
    color: var(--white);
    border-bottom: 5px solid var(--accent-color);
}

.radny-hero .badge {
    display: inline-block;
    background-color: rgba(224, 159, 93, 0.2);
    color: var(--accent-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 1px solid var(--accent-color);
}

.radny-hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
}

.radny-hero p {
    font-size: 1.2rem;
    color: #a0aec0;
    max-width: 800px;
    margin: 0 auto;
}

.olioc-box {
    background: var(--white);
    border-radius: 15px;
    padding: 50px;
    box-shadow: var(--shadow);
    margin-top: -40px;
    position: relative;
    z-index: 10;
    border-top: 4px solid var(--accent-color);
}

.olioc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.olioc-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.olioc-item i {
    font-size: 2rem;
    color: var(--accent-color);
    background: #f8f9fa;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.olioc-item h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    color: var(--primary-color);
}

.olioc-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

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

.tool-card {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    border: 1px solid #edf2f7;
    transition: transform 0.3s, box-shadow 0.3s;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--accent-color);
}

.tool-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-heading);
}

.tool-card h3 i {
    color: var(--accent-color);
    font-size: 1.8rem;
}

.tool-card p {
    color: var(--text-light);
    margin-bottom: 25px;
    flex-grow: 1;
    line-height: 1.6;
}

.qr-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    border: 1px dashed #cbd5e0;
}

.qr-box img {
    width: 100px;
    height: 100px;
    border-radius: 5px;
}

.qr-text a {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s;
}

.qr-text a i {
    margin-right: 5px;
    color: var(--text-light);
}

.qr-text a:hover, .qr-text a:hover i {
    color: var(--accent-color);
}

.map-container {
    background: var(--primary-color);
    padding: 80px 0;
    margin: 80px 0;
    color: var(--white);
    text-align: center;
}

.map-container h2 {
    color: var(--white);
    font-family: var(--font-heading);
}

.map-iframe-wrapper {
    width: 100%;
    height: 600px;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 3px solid var(--accent-color);
    background: #000;
}

.pillar-item h4 {
    font-family: var(--font-heading);
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* --- LOKALNE POPRAWKI STREFY RADNEGO --- */
@media (max-width: 768px) {
    .radny-hero h1 { font-size: 2.5rem; }
    .olioc-box { padding: 30px 20px; margin-top: -20px; }
    .olioc-grid { grid-template-columns: 1fr; gap: 30px; }
    .map-iframe-wrapper { height: 400px; }
    .qr-box { flex-direction: column; text-align: center; }
    .tool-card { padding: 25px; }
}

/* --- GLOBALNA NAPRAWA DLA TELEFONÓW (GRID & FLEX) --- */
@media (max-width: 768px) {
    /* Wymuszamy układ 1-kolumnowy dla wszystkich siatek na telefonach */
    .tools-grid,
    .projects-grid,
    .usp-grid,
    .plecak-grid,
    .team-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    /* Naprawa szerokości kart, filarów i elementów flex */
    .pillar-item,
    .tool-card,
    .team-card {
        min-width: 100% !important;
        width: 100% !important;
    }

    /* Dopasowanie marginesów na telefonach */
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
        overflow-x: hidden;
    }
}

/* Style dla rozwijanych opcji w projektach */
.project-options-wrapper {
    margin-top: auto;
    width: 100%;
}

.project-sub-options .btn {
    margin-left: 0 !important; /* Reset marginesu dla btn-outline */
    text-align: center;
    width: 100%;
}
/* ========================================= */
/* === STYLE PODSTRONY: DLA MIESZKAŃCÓW === */
/* ========================================= */

.resident-hero {
    background: linear-gradient(135deg, #1f2937 0%, #11151c 100%);
    padding: 100px 0 80px;
    text-align: center;
    color: var(--white);
    border-bottom: 5px solid #48bb78; /* Zielony akcent odróżniający od radnych */
}

.resident-hero .badge {
    display: inline-block;
    background-color: rgba(72, 187, 120, 0.2);
    color: #48bb78;
    padding: 8px 20px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 1px solid #48bb78;
}

.resident-hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.resident-hero p {
    font-size: 1.2rem;
    color: #a0aec0;
    max-width: 800px;
    margin: 0 auto;
}

/* Nowe sekcje merytoryczne (Sąsiedztwo, Dezinformacja) */
.resident-content-box {
    background: var(--white);
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    border-left: 4px solid var(--accent-color);
}

.resident-content-box h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.resident-content-box h3 i {
    color: var(--accent-color);
    font-size: 2rem;
}

.resident-content-box p {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.highlight-rule {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border: 1px solid #edf2f7;
}

.highlight-rule h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Tabela Harmonogramu Szkoleń */
.schedule-table-wrapper {
    overflow-x: auto;
    margin-top: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    text-align: left;
}

.schedule-table th {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px;
    font-family: var(--font-heading);
    font-weight: 600;
    white-space: nowrap;
}

.schedule-table td {
    padding: 15px;
    border-bottom: 1px solid #edf2f7;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.schedule-table tr:hover {
    background-color: #f8f9fa;
}

.schedule-table td:last-child {
    font-weight: bold;
    color: var(--accent-color);
    white-space: nowrap;
}

/* Plecak Ewakuacyjny */
.plecak-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.plecak-item {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border: 1px solid #edf2f7;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform 0.3s;
}

.plecak-item:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
}

.plecak-item i {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-top: 3px;
    width: 30px;
    text-align: center;
}

.plecak-item div h5 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.05rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.plecak-item div p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Szybka nawigacja (Spis Treści) */
.quick-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    padding: 0 20px;
}

.quick-nav .btn {
    font-size: 0.9rem;
    padding: 10px 20px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.quick-nav .btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white);
}

/* Margines dla kotwic (żeby menu nie zasłaniało tytułów) */
.step-section {
    scroll-margin-top: 80px;
}

/* Numeracja kroków w tytułach */
.step-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.step-number {
    background: var(--accent-color);
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: bold;
}