.main { margin: 54px auto 0 auto; }
@media only screen and (max-width: 1200px) { .main { margin: 49px auto 0 auto; } }
@media only screen and (max-width: 600px) { .main { margin: 46px auto 0 auto; } .main__hero { min-height: 160px; } }

/* ====== DOFINANSOWANIE (fund__) ====== */

/* ====== HEADER — white nav on dark hero, reverts on scroll ====== */
body:has(.fund__page) .header:not(.header--scrolled) .header__navLink {
    color: #fff;
}
body:has(.fund__page) .header:not(.header--scrolled) .header__navLink:hover {
    color: rgba(255, 255, 255, 0.7);
}
body:has(.fund__page) .header:not(.header--scrolled) .header__navLink--red {
    color: #ff9999;
}
body:has(.fund__page) .header:not(.header--scrolled) .header__navLink--red:hover {
    color: #fff;
}
body:has(.fund__page) .header:not(.header--scrolled) .dropDownLink {
    color: #fff;
}
body:has(.fund__page) .header:not(.header--scrolled) .dropDownLink:hover {
    color: rgba(255, 255, 255, 0.7);
}
body:has(.fund__page) .header:not(.header--scrolled) .header__hamburger span {
    background: #fff;
}
body:has(.fund__page) .header:not(.header--scrolled) .header__badge--hot {
    background: #cc0000;
}

/* ====== PAGE WRAPPER — full-page background ====== */
.fund__page {
    position: relative;
    overflow: hidden;
    background: #1a1a1a;
    width: 100%;
}
.fund__page::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('../../images/funds/funds2.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    opacity: 0.18;
    pointer-events: none;
}

/* ====== HERO ====== */
.fund__hero {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 180px 20px 80px;
    text-align: center;
}
.fund__heroContent {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}
.fund__heroBadge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.fund__heroBadge i {
    font-size: 16px;
}
.fund__heroTitle {
    font-size: 44px;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 16px 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
.fund__heroTitle span {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    text-underline-offset: 6px;
}
.fund__heroSubtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin: 0 0 36px 0;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.fund__heroCta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #800000;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 4px 20px rgba(128, 0, 0, 0.35);
}
.fund__heroCta:hover {
    background: #990000;
    transform: translateY(-1px);
}
.fund__heroCta:active {
    transform: scale(0.97);
}

/* ====== PROGRAMS (BUR / KFS) ====== */
.fund__programs {
    width: 100%;
    position: relative;
    padding: 70px 20px;
}
.fund__programsInner {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
}
.fund__sectionTitle {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin: 0 0 12px 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.fund__sectionSubtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    margin: 0 0 50px 0;
    line-height: 1.6;
}
.fund__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.fund__card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 36px 32px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.fund__card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}
.fund__card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    border-radius: 20px 0 0 20px;
}
.fund__card--bur::before { background: rgba(255, 255, 255, 0.5); }
.fund__card--kfs::before { background: rgba(255, 255, 255, 0.5); }
.fund__cardIcon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}
.fund__card--bur .fund__cardIcon {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
}
.fund__card--kfs .fund__cardIcon {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
}
.fund__cardTitle {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 6px 0;
    color: #fff;
}
.fund__cardFullname {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    margin: 0 0 16px 0;
}
.fund__cardText {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.65;
    margin: 0 0 20px 0;
}
.fund__cardHighlight {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.fund__card--kfs .fund__cardHighlight {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.fund__cardList {
    list-style: none;
    padding: 0;
    margin: 0;
}
.fund__cardList li {
    padding: 6px 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.fund__cardList li i {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin-top: 4px;
    flex-shrink: 0;
}
.fund__card--kfs .fund__cardList li i {
    color: rgba(255, 255, 255, 0.6);
}

/* ====== PROCESS STEPS ====== */
.fund__process {
    width: 100%;
    position: relative;
    padding: 70px 20px;
}
.fund__processInner {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
}
.fund__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 50px;
}
.fund__step {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px 24px;
    text-align: center;
    position: relative;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.fund__step:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}
.fund__stepNum {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    border: 2px solid rgba(255, 255, 255, 0.25);
}
.fund__stepIcon {
    font-size: 32px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 14px;
}
.fund__stepTitle {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
}
.fund__stepText {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0;
}

/* ====== WHY US ====== */
.fund__why {
    width: 100%;
    position: relative;
    padding: 70px 20px;
}
.fund__whyInner {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
}
.fund__whyGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 50px;
}
.fund__whyItem {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: background 0.3s, border-color 0.3s;
}
.fund__whyItem:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}
.fund__whyIcon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.fund__whyTitle {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
}
.fund__whyText {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0;
}

/* ====== CTA ====== */
.fund__cta {
    width: 100%;
    position: relative;
    padding: 70px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}
.fund__ctaInner {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}
.fund__ctaTitle {
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px 0;
}
.fund__ctaText {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin: 0 0 32px 0;
}
.fund__ctaButtons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}
.fund__ctaBtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}
.fund__ctaBtn:active { transform: scale(0.97); }
.fund__ctaBtn--primary {
    background: #800000;
    color: #fff;
}
.fund__ctaBtn--primary:hover { background: #990000; transform: translateY(-1px); }
.fund__ctaBtn--secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
}
.fund__ctaBtn--secondary:hover { background: rgba(255, 255, 255, 0.15); transform: translateY(-1px); }
.fund__ctaBtn--green {
    background: rgba(76, 175, 80, 0.15);
    color: #a5d6a7;
    border: 2px solid rgba(76, 175, 80, 0.35);
}
.fund__ctaBtn--green:hover { background: rgba(76, 175, 80, 0.25); transform: translateY(-1px); }

/* ====== RESPONSIVE ====== */
@media only screen and (max-width: 1050px) {
    .fund__hero { padding: 160px 15px 60px; }
    .fund__heroTitle { font-size: 34px; }
    .fund__cards { grid-template-columns: 1fr; }
    .fund__steps { grid-template-columns: repeat(2, 1fr); }
    .fund__whyGrid { grid-template-columns: repeat(2, 1fr); }
}
@media only screen and (max-width: 600px) {
    .fund__hero { padding: 130px 15px 50px; }
    .fund__heroTitle { font-size: 28px; }
    .fund__heroSubtitle { font-size: 1rem; }
    .fund__sectionTitle { font-size: 24px; }
    .fund__steps { grid-template-columns: 1fr; }
    .fund__whyGrid { grid-template-columns: 1fr; }
    .fund__card { padding: 28px 20px; }
    .fund__ctaTitle { font-size: 24px; }
    .fund__ctaButtons { flex-direction: column; align-items: center; }
    .fund__ctaBtn { width: 100%; max-width: 300px; justify-content: center; }
}
