/* ===================================
   FUNDACJA PRZYJACIEL ZWIERZ - CSS
   =================================== */

/* === 1. CSS VARIABLES === */
:root {
    /* Colors */
    --primary-orange: rgb(240, 91, 42);
    /* Pomarańcz do tekstu = ten sam jasny odcień co --primary-orange (na życzenie). */
    --text-orange: rgb(240, 91, 42);
    --primary-teal: rgb(11, 140, 140);
    --text-dark: rgb(18, 22, 23);
    --text-gray: rgb(43, 43, 43);
    --bg-light: rgb(246, 223, 215);
    --white: rgb(255, 255, 255);
    --link-blue: rgb(0, 153, 255);

    /* Fonts */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Instrument Sans', var(--font-primary);
    --font-serif: 'Maitree', Georgia, serif;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px 24px;
    --gap: 24px;

    /* Transitions */
    --transition: 0.3s ease;
}

/* === 2. RESET & BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
    /* clip (nie hidden) — zapobiega poziomemu przewijaniu, ale nie psuje position: sticky belki */
    overflow-x: clip;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    cursor: pointer;
}

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

/* === 3. NAVIGATION === */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    padding: 16px 0;
}

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

.logo {
    cursor: pointer;
    flex-shrink: 0;
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: 48px;
}

.nav-link {
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-teal);
    letter-spacing: 0.5px;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--text-orange);
}

.nav-payment {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-left: 32px;
    border-left: 1px solid #eee;
}

.payment-logo {
    cursor: pointer;
}

.payment-logo img {
    display: block;
    max-width: 70px;
    height: auto;
    transition: var(--transition);
}

.payment-logo:hover img {
    opacity: 1;
    transform: scale(1.05);
}

.phone {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    white-space: nowrap;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-teal);
    border-radius: 2px;
    transition: var(--transition);
}

/* === 4. HERO SECTION === */
.hero {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-content {
    position: relative;
    padding: 120px 24px 80px;
    width: 100%;
}

.petition-btn {
    display: inline-block;
    background: var(--primary-orange);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 40px;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.petition-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 91, 42, 0.3);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 60px;
    font-weight: 700;
    line-height: 1.1em;
    letter-spacing: -2.5px;
    color: var(--text-orange);
    margin-bottom: 24px;
    max-width: 700px;
}

.hero-subtitle {
    font-weight: 600;
    font-size: 18px;
    line-height: 1.7em;
    color: var(--text-dark);
    margin-bottom: 40px;
    max-width: 650px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 18px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 91, 42, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-orange);
    border: 3px solid var(--primary-orange);
}

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

.hero-signature {
    max-width: 300px;
}

.signature-text {
    font-weight: 300;
    font-size: 14px;
    line-height: 1.5em;
    color: var(--text-orange);
    margin-top: 12px;
}

/* === 5. SECTIONS === */
.section {
    padding: var(--section-padding);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    color: var(--text-orange);
    margin-bottom: 40px;
    text-align: center;
}

.section-description {
    font-size: 18px;
    line-height: 1.7em;
    color: var(--text-gray);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Section: Aktualne zbiórki */
.section-zbiorki {
    background: var(--bg-light);
}

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

/* Campaigns grid - max 3 per row, responsive */
.campaigns-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.campaigns-grid .campaign-item {
    flex: 0 1 auto;
}

.campaigns-grid .campaign-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    width: 430px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.campaigns-grid .campaign-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}

.campaigns-grid .campaign-card h4 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.campaigns-grid .campaign-card p {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 16px;
}

/* Responsive: 2 per row on medium screens */
@media (max-width: 1400px) {
    .campaigns-grid {
        max-width: 920px;
        margin: 0 auto;
    }
}

/* Responsive: 1 per row on mobile */
@media (max-width: 920px) {
    .campaigns-grid {
        max-width: 460px;
    }

    .campaigns-grid .campaign-item iframe {
        max-width: 100%;
    }
}

/* Section: Jak możesz pomóc? */
.section-pomoc {
    background: var(--white);
}

.pomoc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--gap);
}

/* Section: Wesprzyj nas darowizną */
.section-darowizna {
    background: var(--bg-light);
}

.darowizna-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.darowizna-item {
    background: var(--white);
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.darowizna-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.darowizna-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-teal);
    margin-bottom: 16px;
}

.account-number {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-orange);
    letter-spacing: 1px;
}

.phone-large {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-orange);
}

.link-primary {
    color: var(--primary-teal);
    text-decoration: underline;
    cursor: pointer;
}

.link-primary:hover {
    color: var(--text-orange);
}

/* Section: Zbiórki - Featured Single */
.zbiorka-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.zbiorka-featured-image {
    position: relative;
    height: 100%;
    min-height: 350px;
}

.zbiorka-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zbiorka-featured-image .zbiorka-tag {
    position: absolute;
    top: 20px;
    left: 20px;
}

.zbiorka-featured-content {
    padding: 48px 48px 48px 0;
}

.zbiorka-featured-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-teal);
    margin-bottom: 16px;
}

.zbiorka-featured-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .zbiorka-featured {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .zbiorka-featured-image {
        min-height: 250px;
    }
    .zbiorka-featured-content {
        padding: 32px;
    }
    .zbiorka-featured-content h3 {
        font-size: 24px;
    }
}

/* Section: Zbiórki - Cards */
.zbiorka-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.zbiorka-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.zbiorka-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.zbiorka-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.zbiorka-content {
    padding: 24px;
}

.zbiorka-tag {
    display: inline-block;
    background: var(--primary-orange);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.zbiorka-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.zbiorka-content p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 16px;
}

.btn-small {
    padding: 10px 20px;
    font-size: 14px;
}

/* Section: Pomoc - Cards */
.pomoc-card {
    background: var(--white);
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.pomoc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.pomoc-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 50%;
    color: var(--text-orange);
}

.pomoc-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-teal);
    margin-bottom: 12px;
}

.pomoc-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 16px;
}

/* Darowizna extras */
.darowizna-bank {
    font-size: 14px;
    color: var(--text-gray);
    margin-top: 8px;
}

.darowizna-hint {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 8px;
}

/* Partnerzy CTA */
.partnerzy-cta {
    text-align: center;
    padding: 40px;
    background: var(--bg-light);
    border-radius: 12px;
}

.partnerzy-cta p {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* Podatek extras */
.podatek-info {
    text-align: center;
    margin-top: 40px;
}

.podatek-info p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

/* Section: Partnerzy */
.section-partnerzy {
    background: var(--white);
}

.partnerzy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 32px;
    align-items: center;
    justify-items: center;
}

/* Section: Przekaż 1.5% podatku */
.section-podatek {
    background: var(--primary-teal);
    color: var(--white);
}

.section-podatek .section-title {
    color: var(--white);
}

.section-podatek .section-description {
    color: rgba(255, 255, 255, 0.9);
}

.podatek-data {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.podatek-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px 32px;
    border-radius: 8px;
    font-size: 18px;
}

.podatek-item strong {
    font-weight: 700;
}

/* === 6. FOOTER === */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 24px 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-orange);
}

.footer-col p {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.link-footer {
    color: var(--white);
    text-decoration: underline;
    cursor: pointer;
}

.link-footer:hover {
    color: var(--text-orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* === 7. ANIMATIONS === */
.animate-in {
    opacity: 0;
    transform: perspective(1200px) translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.animate-in:nth-child(1) { animation-delay: 0.1s; }
.animate-in:nth-child(2) { animation-delay: 0.2s; }
.animate-in:nth-child(3) { animation-delay: 0.3s; }
.animate-in:nth-child(4) { animation-delay: 0.4s; }
.animate-in:nth-child(5) { animation-delay: 0.5s; }

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

.animate-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* === 8. RESPONSIVE === */

/* Large screens - reduce nav spacing when needed */
@media (max-width: 1400px) {
    .nav-menu {
        gap: 24px;
    }

    .nav-payment {
        padding-left: 24px;
        gap: 14px;
    }

}

@media (max-width: 1280px) {
    .nav-menu {
        gap: 16px;
    }

    .nav-payment {
        padding-left: 16px;
        gap: 10px;
    }

    .nav-link {
        font-size: 12px;
    }

    .phone {
        font-size: 14px;
    }
}

/* Tablet (810px - 1199px) */
@media (max-width: 1199px) {
    .logo img {
        width: 180px;
    }

    .hero-title {
        font-size: 48px;
    }

    .section-title {
        font-size: 36px;
    }

    .nav-menu {
        gap: 12px;
        margin-left: 24px;
    }

    .nav-link {
        font-size: 11px;
        letter-spacing: 0.3px;
    }

    .nav-payment {
        padding-left: 12px;
        gap: 8px;
    }

    .phone {
        font-size: 14px;
        white-space: nowrap;
    }
}

/* Nawigacja: hamburger + menu wysuwane do 1100px
   (poziomy nav mieści się dopiero powyżej ~1080px, więc na tabletach idzie hamburger). */
@media (max-width: 1100px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        right: -100%;
        width: 280px;
        bottom: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 32px;
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        gap: 24px;
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    /* Blokada przewijania tła przy otwartym menu — zapobiega „pulsowaniu"
       (pasek adresu przeglądarki nie chowa się/pokazuje przy scrollu). */
    .menu-open,
    .menu-open body {
        overflow: hidden;
    }
}

/* Mobile (max 809px) */
@media (max-width: 809px) {
    :root {
        --section-padding: 60px 16px;
    }

    /* Logo Mobile */
    .logo img {
        width: auto;
        max-width: 180px;
    }

    .nav-payment {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 0;
        border-left: none;
        padding-top: 24px;
        border-top: 1px solid #eee;
        width: 100%;
    }

    /* Hero Mobile */
    .hero {
        min-height: 600px;
    }

    .hero-content {
        padding: 80px 16px 60px;
    }

    .hero-title {
        font-size: 36px;
        letter-spacing: -2px;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 18px;
        text-align: center;
        margin: 0 auto 32px;
    }

    .hero-cta {
        flex-direction: column;
        max-width: 400px;
        margin: 0 auto 40px;
    }

    .btn {
        width: 100%;
        font-size: 16px;
    }

    .hero-signature {
        margin: 0 auto;
        text-align: center;
        background: rgba(255, 255, 255, 0.95);
        padding: 16px 20px;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .signature-text {
        font-size: 12px;
        color: var(--text-dark);
    }

    /* Sections Mobile */
    .section-title {
        font-size: 28px;
    }

    .section-description {
        font-size: 16px;
    }

    .darowizna-content {
        grid-template-columns: 1fr;
    }

    .podatek-data {
        flex-direction: column;
        gap: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Small Mobile (max 480px) */
@media (max-width: 480px) {
    .logo img {
        max-width: 140px;
    }

    .hero-title {
        font-size: 28px;
    }

    .btn {
        padding: 14px 24px;
        font-size: 16px;
    }

    .section-title {
        font-size: 24px;
    }
}

/* === 9. DROPDOWN NAVIGATION === */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-teal);
    letter-spacing: 0.5px;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
}

.nav-dropdown-trigger:hover {
    color: var(--text-orange);
}

.nav-dropdown-trigger.active {
    color: var(--text-orange);
}

.nav-dropdown-trigger::after {
    content: "▾";
    font-size: 10px;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-trigger::after {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1001;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--text-orange);
}

/* Responsive dropdown */
@media (max-width: 1199px) {
    .nav-dropdown-trigger {
        font-size: 11px;
        letter-spacing: 0.3px;
    }
}

@media (max-width: 1100px) {
    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-trigger {
        font-size: 14px;
        width: 100%;
        justify-content: space-between;
    }

    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        background: var(--bg-light);
        border-radius: 8px;
        margin-top: 8px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .nav-dropdown.active .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown-menu a {
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* ===================================
   NAV CTA BUTTON - Pulsujący POMAGAM
   =================================== */

.nav-cta-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: #E53935;
    color: white !important;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(229, 57, 53, 0.4);
    animation: pulse-btn 2s ease-in-out infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
    margin-left: 16px;
}

.nav-cta-btn::before,
.nav-cta-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50px;
    background: transparent;
    border: 2px solid #E53935;
    transform: translate(-50%, -50%);
    animation: ripple 2s ease-out infinite;
    z-index: -1;
}

.nav-cta-btn::after {
    animation-delay: 1s;
}

.nav-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(229, 57, 53, 0.5);
    animation: none;
}

.nav-cta-btn:hover::before,
.nav-cta-btn:hover::after {
    animation: none;
    opacity: 0;
}

@keyframes pulse-btn {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(229, 57, 53, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(229, 57, 53, 0.6);
    }
}

@keyframes ripple {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.6;
    }
    100% {
        width: 180%;
        height: 180%;
        opacity: 0;
    }
}

/* Przełącznik motywu przeniesiony do menu hamburgera (mobile/tablet) — jako pozycja menu, nie w belce. */
#pz-theme-toggle.pz-theme-in-menu {
    order: 0 !important;
    margin: 4px 0 0 0 !important;
    align-self: flex-start;
}

/* Desktop: CTA at the end of nav */
@media (min-width: 1101px) {
    .navbar .container > .nav-cta-btn {
        order: 3;
    }
}

/* Mobile: CTA between logo and hamburger */
@media (max-width: 1100px) {
    .navbar .container > .nav-cta-btn {
        margin-left: auto;
        margin-right: 12px;
        padding: 10px 20px;
        font-size: 13px;
    }

    /* Hamburger ma być tuż przy „Wspomóż". JS ustawia inline order (przełącznik 998,
       Wspomóż 999), więc nadpisujemy z !important. Prawy klaster: przełącznik → Wspomóż → hamburger. */
    #pz-theme-toggle {
        order: 997 !important;
        margin-left: auto !important;
    }
    .navbar .container > .nav-cta-btn {
        order: 998 !important;
    }
    .navbar .container > .mobile-menu-toggle {
        order: 999 !important;
    }
}

/* Bardzo wąskie telefony — zwężenie paska, żeby logo+Wspomóż+hamburger zawsze się mieściły (nawet ~320px). */
@media (max-width: 400px) {
    .navbar .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .navbar .container > .nav-cta-btn {
        margin-right: 10px;
        padding: 9px 16px;
        font-size: 12px;
        letter-spacing: 0.5px;
    }
}

/* Partnerzy na stronie głównej (sekcja "Wspierają nas") — z admina (partners.json) */
.home-partners {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
    margin: 0 auto 40px;
    max-width: 900px;
}
.home-partner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: var(--transition);
}
.home-partner:hover { transform: translateY(-4px); }
.home-partner-logo {
    width: 120px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 12px;
    font-size: 38px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.home-partner-logo img { width: 100%; height: 100%; object-fit: contain; }
.home-partner span { font-size: 14px; font-weight: 600; color: var(--primary-teal); }
