:root {
    --primary-color: #1F3A58;
    --secondary-color: #669D58;
    --accent-color: #D4773F;
    --bg-light: #F7FAFC;
    --text-dark: #2D3748;
    --text-muted: #718096;
    --white: #FFFFFF;
    --font-main: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    scroll-behavior: smooth;
    transition: font-size 0.3s, background-color 0.3s;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* WCAG Ułatwienia Dostępu */
body.high-contrast {
    background-color: #000000 !important;
    color: #FFFF00 !important;
}

body.high-contrast * {
    background-color: transparent !important;
    color: #FFFF00 !important;
    border-color: #FFFF00 !important;
}

body.high-contrast img {
    filter: grayscale(100%) contrast(120%);
}

body.large-font {
    font-size: 1.25rem !important;
}

.accessibility-widget {
    position: fixed;
    top: 150px;
    left: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 10px;
    border-radius: 0 5px 5px 0;
    z-index: 1000;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.accessibility-btn {
    cursor: pointer;
    font-weight: bold;
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    padding: 5px;
    transition: transform 0.2s;
}

.accessibility-btn:hover {
    transform: scale(1.1);
    color: var(--secondary-color);
}

/* Nagłówek i Nawigacja */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-logo img {
    height: 65px;
    width: auto;
    object-fit: contain;
}

.site-logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-nav > ul {
    display: flex;
    gap: 20px;
    position: relative;
    align-items: center;
}

.main-nav li {
    position: relative;
    padding: 10px 0;
}

.main-nav a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: color 0.3s;
    cursor: pointer;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--secondary-color);
    display: none;
    flex-direction: column;
    z-index: 1000;
    padding: 10px 0;
}

.main-nav li:hover .sub-menu {
    display: flex;
}

.sub-menu a {
    padding: 10px 20px;
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
}

.sub-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-left: 25px;
}

.btn-donate {
    background-color: var(--accent-color);
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: 25px;
    font-weight: 700 !important;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(212, 119, 63, 0.3);
    transition: all 0.3s ease !important;
    display: inline-block;
    text-align: center;
}

.btn-donate:hover {
    background-color: #bf6633;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(212, 119, 63, 0.4);
}

/* Hero Section (Strona Główna) */
.hero-section {
    background-color: var(--primary-color);
    background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 100 C 200 0 400 200 600 100 S 1000 0 1200 100 S 1600 200 1800 100 S 2200 0 2400 100 L 2400 1000 L 0 1000 Z' fill='rgba(255, 255, 255, 0.02)'/%3E%3Cpath d='M0 150 C 300 50 500 250 800 150 S 1300 50 1600 150 S 2100 250 2400 150 L 2400 1000 L 0 1000 Z' fill='rgba(255, 255, 255, 0.015)'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: center center;
    color: var(--white);
    padding: 80px 20px;
    position: relative;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

@media(min-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-content h2 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #e2e8f0;
    max-width: 500px;
}

.hero-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

/* Licznik zaufania (Trust Bar) */
.trust-bar {
    background: var(--white);
    padding: 40px 20px;
    margin-top: -30px;
    position: relative;
    z-index: 10;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
}

.trust-item h3 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.trust-item p {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Karuzela Partnerów */
.partners-section {
    background: var(--secondary-color);
    padding: 60px 0;
    overflow: hidden;
    margin-top: 50px;
}

.partners-section h3 {
    text-align: center;
    color: var(--white);
    margin-bottom: 15px;
    font-size: 2.2rem;
    font-weight: 700;
}

.partners-section p {
    text-align: center;
    color: #e2e8f0;
    margin-bottom: 40px;
    font-size: 1.05rem;
}

.carousel-wrapper {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.carousel-track {
    display: inline-block;
    animation: scroll 25s linear infinite;
}

.carousel-wrapper:hover .carousel-track {
    animation-play-state: paused;
}

.partner-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    width: 200px;
    height: 80px;
    margin: 0 20px;
    background: var(--white);
    border-radius: 8px;
    transition: 0.3s;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.partner-logo img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: 0.3s;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.partner-logo:hover img {
    filter: grayscale(0%);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Sekcje wspólne i kontenery */
.section {
    padding: 80px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
    margin: 0 auto;
    font-size: 1.1rem;
}

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

.container-narrow {
    max-width: 1000px;
    margin: 0 auto;
}

.container-reading {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 60px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .container-reading {
        padding: 30px 20px;
    }
}

/* Projekty (Karty) */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-item {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-top: 6px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    transition: 0.3s;
    scroll-margin-top: 100px;
}

.project-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.project-item-img {
    height: 250px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    overflow: hidden;
}

.project-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.project-theme {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.project-title {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.project-title a {
    color: inherit;
    transition: 0.2s;
}

.project-title a:hover {
    color: var(--secondary-color);
}

.project-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}

.project-amount {
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 700;
    color: var(--text-dark);
}

.project-divider {
    border: none;
    border-top: 1px solid #edf2f7;
    margin-bottom: 20px;
}

.project-desc {
    flex-grow: 1;
}

.project-desc p {
    text-align: justify;
    margin-bottom: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.project-funding {
    margin-top: 25px;
    font-size: 0.95rem;
    color: var(--text-dark);
    font-style: italic;
}

/* Wersja szczegółowa listy projektów */
.project-item-detailed {
    margin-bottom: 60px;
}

.project-item-detailed .project-item-img {
    height: auto;
    max-height: 400px;
}

.project-item-detailed .project-item-content {
    padding: 40px;
}

.project-item-detailed .project-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.project-item-detailed .project-desc p {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Aktualności */
.news-item {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    overflow: hidden;
    border-left: 4px solid var(--secondary-color);
}

.news-header {
    display: flex;
    padding: 20px;
    cursor: pointer;
    align-items: center;
    transition: background 0.2s;
}

.news-header:hover {
    background: #fdfdfd;
}

.news-thumb {
    width: 100px;
    height: 100px;
    background: #e2e8f0;
    border-radius: 6px;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-title-area {
    flex: 1;
}

.news-title-area h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.news-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.news-body {
    display: none;
    padding: 0 20px 30px 20px;
    border-top: 1px dashed #edf2f7;
    margin-top: 10px;
}

.news-body.active {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding-top: 20px;
}

.news-text {
    flex: 1.5;
    min-width: 300px;
    color: var(--text-dark);
    line-height: 1.7;
    text-align: justify;
}

.news-expanded-img {
    flex: 1;
    min-width: 300px;
    height: 250px;
    background: #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.news-expanded-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* O nas / Zarząd */
.avatar-frame {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background-color: #e2e8f0;
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: 90%;
}

.avatar-female {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%23a0aec0' d='M50 48c14 0 22-12 22-26S64 2 50 2 28 8 28 22s8 26 22 26zm0 6c-24 0-45 15-45 46v4h90v-4c0-31-21-46-45-46z'/%3E%3C/svg%3E");
}

.avatar-male {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%23a0aec0' d='M50 45c11 0 18-10 18-23S61 2 50 2 32 9 32 22s7 23 18 23zm0 8c-20 0-40 14-40 47v4h80v-4c0-33-20-47-40-47z'/%3E%3C/svg%3E");
    background-size: 85%;
}

.avatar-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.avatar-prezes {
    width: 250px;
    height: 250px;
    margin: 0 auto;
    border: 4px solid var(--primary-color);
}

.avatar-czlonek {
    width: 210px;
    height: 210px;
    margin: 0 auto 20px;
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
    text-align: center;
}

@media (max-width: 850px) {
    .board-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .board-grid {
        grid-template-columns: 1fr;
    }
}

/* Działalność Charytatywna */
.charity-item {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
    align-items: center;
    background: var(--white);
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border-top: 6px solid var(--accent-color);
}

.charity-item-img {
    flex: 1;
    min-width: 300px;
    height: 280px;
    background: #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.charity-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.charity-item-text {
    flex: 1.5;
    min-width: 300px;
}

.charity-item-text h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 700;
}

.charity-item-text p {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 12px;
}

/* 1,5% Podatku */
.tax-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 60px 40px;
    text-align: center;
    border-top: 8px solid var(--accent-color);
}

.tax-card h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.tax-desc {
    font-size: 1.15rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.krs-box {
    background: #fff8f5;
    border: 2px dashed var(--accent-color);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    display: inline-block;
}

.krs-label {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.krs-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-color);
    letter-spacing: 5px;
    line-height: 1;
}

.tax-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(102, 157, 88, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

.tax-action-btn:hover {
    background-color: #558748;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(102, 157, 88, 0.4);
}

.tax-subtext {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .krs-number {
        font-size: 2.5rem;
    }
    .tax-card {
        padding: 40px 20px;
    }
}

/* Kontakt */
.contact-section {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

.contact-info-bar {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.05rem;
}

.contact-info-bar div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(102, 157, 88, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    text-align: left;
}

.checkbox-group input {
    margin-top: 4px;
}

.submit-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #558748;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .contact-info-bar {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 15px;
    }
    .contact-section {
        padding: 30px 20px;
    }
}

/* Dokumenty Prawne (Statut, Ochrona Dzieci, RODO) */
.legal-doc h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-size: 2rem;
}

.legal-doc h3 {
    color: var(--accent-color);
    margin-top: 50px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.6rem;
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 10px;
}

.legal-doc h4 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-align: center;
}

.legal-doc p {
    margin-bottom: 15px;
    text-align: justify;
    line-height: 1.8;
}

.legal-doc ul,
.legal-doc ol {
    margin-bottom: 15px;
    margin-left: 20px;
    text-align: justify;
    line-height: 1.8;
}

.legal-doc li {
    margin-bottom: 5px;
}

/* Stopka */
.site-footer {
    background: #112132;
    color: #a0aec0;
    padding: 50px 20px 20px;
    font-size: 1.1rem;
}

.footer-title {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #2d3748;
    padding-bottom: 30px;
}

.footer-title h4 {
    color: var(--accent-color);
    font-size: 1.6rem;
    margin: 5px 0;
    white-space: nowrap;
    letter-spacing: 1px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 20px;
}

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

.footer-col a:hover {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .footer-title h4 {
        font-size: 1.2rem;
        white-space: normal;
    }
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #2d3748;
    font-size: 0.9rem;
    color: #718096;
}

.footer-bottom a {
    color: #a0aec0;
    font-weight: 600;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: var(--secondary-color);
}


