/* --- USTAWIENIA BAZOWE I FONTY --- */
/* Fonty ładowane przez <link> w <head> szablonów (preconnect + tylko używane rodziny:
   Geist, Playfair Display, Libre Baskerville). Wcześniej blokujący @import z 8 rodzinami. */

:root {
    --bg-cream: #FDF9F1;
    --text-green-dark: #37462B;
    --text-gray: #4A4A4A;
    --accent-yellow: #FFD644;
     --btn-hover: #FFC857;
}

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

body {
    background-color: var(--bg-cream); /* Kremowe tło na całej stronie, brak zaokrągleń */
    font-family: 'Geist', sans-serif;
    color: var(--text-gray);
}

body {
    padding-top: 110px;
}

html,
body {
    overflow-x: hidden;
}

/* Subtelne ziarno na całej stronie — efekt edytorski */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 2000;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* Ograniczenie szerokości zawartości i wyśrodkowanie */
main, footer {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}


.main-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background-color: var(--bg-cream);
    border-radius: 0 0 28px 28px;
    z-index: 999;
    transform: translateY(0);
    opacity: 1;
    transition:
        transform 0.22s ease-in,
        opacity 0.18s ease-in,
        box-shadow 0.18s ease;
}

/* Floating pill — pojawia się przy scrollowaniu w górę po 120px */
.main-header.is-sticky {
    position: fixed;
    top: 18px;
    left: 0;
    right: 0;
    width: calc(100% - 48px);
    max-width: 1320px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 60px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.09), 0 1px 6px rgba(0, 0, 0, 0.05);
}

.main-header.is-sticky .nav-pill {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 18px 44px;
    min-height: 76px;
    box-sizing: border-box;
    width: 100%;
}

.main-header.is-sticky .logo {
    justify-self: start;
}

.main-header.is-sticky .main-nav {
    position: static;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}

.main-header.is-sticky .main-nav ul {
    pointer-events: auto;
    gap: 0;
}

.main-header.is-sticky .main-nav a {
    padding: 10px 14px;
}

/* W pigułce podkreślenie na całą szerokość napisu (padding 14px) */
.main-header.is-sticky .main-nav a:hover::after,
.main-header.is-sticky .main-nav a.active::after {
    width: calc(100% - 28px);
}

.main-header.is-sticky .nav-right {
    justify-self: end;
}

.main-header.is-sticky .nav-dolacz-text {
    display: none;
}

.main-header.is-sticky .nav-dolacz {
    padding: 9px;
    gap: 0;
}

/* Ukrycie — fade + delikatny ruch w górę */
.main-header.is-hidden {
    transform: translateY(-22px);
    opacity: 0;
    pointer-events: none;
    transition:
        transform 0.62s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.52s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.55s ease-out;
}

.nav-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    padding: 22px 56px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
    margin-left: 80px;
}

.nav-logo-img {
    width: 115px;
    height: auto;
    display: block;
}

.logo-text {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.55;
    letter-spacing: 0.5px;
    color: var(--text-green-dark);
}

.logo-oto {
    color: var(--accent-yellow);
}

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    pointer-events: auto;
}

.main-nav li {
    flex-shrink: 0;
}

.main-nav a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 100px;
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    white-space: nowrap;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 5px;
    width: 0;
    height: 2px;
    background-color: var(--accent-yellow);
    transform: translateX(-50%);
    transition: width 0.3s ease;
    border-radius: 10px;
}

.main-nav a:hover {
    color: var(--text-green-dark);
    background-color: #f0ede8;
}

.main-nav a.active {
    color: var(--text-green-dark);
    background-color: transparent;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: calc(100% - 40px);
}

.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    white-space: nowrap;
    gap: 28px;
}

.nav-dolacz {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 100px;
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-dolacz svg {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-dolacz:hover {
    color: var(--text-green-dark);
    background-color: #f0ede8;
}

.nav-dolacz:hover svg {
    transform: scale(1.2) rotate(-8deg);
}

.nav-sep {
    display: block;
    width: 1px;
    height: 24px;
    background: #e0dcd4;
}


/* --- PRZYCISKI --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    color: #000;
    border: none;
    cursor: pointer;
}

.btn-yellow {
    position: relative;
    overflow: hidden;
    background-color: var(--accent-yellow);
    padding: 13px 28px;
    white-space: nowrap;
    flex-shrink: 0;
    z-index: 1;
}

.btn-yellow::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--btn-hover);
    transition: bottom 0.35s ease;
    z-index: -1;
}

.btn-yellow:hover::before {
    bottom: 0;
}

.btn-yellow:hover {
    animation: button-bounce 0.45s ease forwards;
}


.btn-yellow:active {
    transform: scale(0.97);
}
@keyframes button-bounce {
    0% {
        transform: scale(1);
    }

    55% {
        transform: scale(1.07);
    }

    78% {
        transform: scale(1.04);
    }

    100% {
        transform: scale(1.03);
    }
}

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

.btn-large span {
    margin-left: 10px;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.btn-large:hover span {
    transform: translateX(6px);
}

/* --- SEKCJA HERO --- */
/* ===================== HERO ===================== */

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
    margin-left: -60px;
    gap: 40px;
    position: relative;
    padding-bottom: 80px;
}

/* Pływające plamy w tle */
.hero-floaters {
    position: absolute;
    inset: -80px;
    pointer-events: none;
    z-index: 0;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    background: var(--accent-yellow);
    filter: blur(60px);
    opacity: 0.2;
    animation: hero-blob-float ease-in-out infinite;
}

.blob-1 { width: 280px; height: 280px; top: 160px; left: -50px;  animation-duration: 28s; animation-delay: 0s; }
.blob-2 { width: 200px; height: 200px; top: 60%;    left: 35%;    animation-duration: 22s; animation-delay: -8s; }
.blob-3 { width: 260px; height: 260px; bottom: -80px; right: 0;   animation-duration: 32s; animation-delay: -15s; }

@keyframes hero-blob-float {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(20px, -20px) scale(1.04); }
    66%  { transform: translate(-15px, 18px) scale(0.97); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Wodoznak OTO */
.hero-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Playfair Display', serif;
    font-size: 280px;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(55, 70, 43, 0.055);
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
    user-select: none;
    letter-spacing: -8px;
}

/* Reveal animacje przy wczytaniu */
.hero-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-reveal.delay-1 { transition-delay: 0.1s; }
.hero-reveal.delay-2 { transition-delay: 0.2s; }
.hero-reveal.delay-3 { transition-delay: 0.32s; }
.hero-reveal.delay-4 { transition-delay: 0.46s; }
.hero-reveal.delay-5 { transition-delay: 0.58s; }

.hero-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Treść */
.hero-content {
    flex: 1;
    max-width: 620px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Badge row */
.hero-label-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.hero-badge {
    background: var(--accent-yellow);
    color: var(--text-green-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
}

.hero-badge-line {
    width: 32px;
    height: 1px;
    background: rgba(55, 70, 43, 0.25);
}

.hero-badge-text {
    font-size: 13px;
    color: rgba(55, 70, 43, 0.55);
    font-weight: 500;
}

/* Nagłówek */
.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 64px;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--text-green-dark);
    margin-bottom: 32px;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-line {
    display: block;
}

.hero-content p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 44px;
    color: var(--text-gray);
    max-width: 480px;
}

/* Przyciski */
.hero-actions {
    display: flex;
    align-items: center;
    gap: 28px;
}

.hero-content .btn-large {
    padding: 18px 40px;
    font-size: 16px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.btn-arrow {
    display: inline-block;
    transition: transform 0.25s ease;
}

.btn-large:hover .btn-arrow {
    transform: translateX(5px);
}

.hero-secondary-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-green-dark);
    text-decoration: none;
    border-bottom: 1px solid rgba(55, 70, 43, 0.25);
    padding-bottom: 2px;
    transition: border-color 0.2s ease, gap 0.2s ease;
}

.hero-secondary-link:hover {
    border-color: var(--text-green-dark);
    gap: 10px;
}

/* Zdjęcie */
.hero-collage {
    flex: 1;
    position: relative;
    min-height: 620px;
    z-index: 2;
}

/* Żółte koło — wysunięte bardziej w lewo */
.hero-collage-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--accent-yellow);
    border-radius: 50%;
    top: -4%;
    left: -8%;
    z-index: 0;
}

/* Hexagony architektoniczne */
.hero-hex {
    position: absolute;
    pointer-events: none;
}

/* Duży obrys — lewy górny narożnik, nad żółtym kołem */
.hero-hex--a {
    width: 88px;
    height: 100px;
    top: 1%;
    left: 30%;
    z-index: 4;
}

/* Średni obrys — prawy dolny, schowany za zdjęcia */
.hero-hex--b {
    width: 70px;
    height: 80px;
    bottom: -6%;
    right: 4%;
    z-index: 0;
}

/* Mały żółty wypełniony — między dwoma prawymi zdjęciami */
.hero-hex--c {
    width: 44px;
    height: 50px;
    top: 47%;
    right: 29%;
    z-index: 4;
}

/* Architektoniczne obrysy kół — koncentryczne, widoczne */
.hero-arch-ring-a {
    position: absolute;
    width: 460px;
    height: 460px;
    border: 2px solid rgba(55, 70, 43, 0.16);
    border-radius: 50%;
    top: 50%;
    left: 48%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

.hero-arch-ring-b {
    position: absolute;
    width: 640px;
    height: 640px;
    border: 1.5px solid rgba(55, 70, 43, 0.09);
    border-radius: 50%;
    top: 50%;
    left: 48%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

/* Diamenty — wyraźne akcenty architektoniczne */
.hero-arch-diamond {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(55, 70, 43, 0.40);
    transform: rotate(45deg);
    top: 8%;
    right: 28%;
    z-index: 4;
    pointer-events: none;
}

.hero-arch-diamond--b {
    width: 10px;
    height: 10px;
    border-width: 1.5px;
    top: auto;
    right: auto;
    bottom: 10%;
    left: 4%;
    border-color: rgba(55, 70, 43, 0.28);
    z-index: 4;
}

/* Krzyżyk — punkt rejestracyjny jak w rysunku technicznym */
.hero-arch-cross {
    position: absolute;
    width: 20px;
    height: 20px;
    top: 62%;
    right: 25%;
    z-index: 4;
    pointer-events: none;
}

.hero-arch-cross::before,
.hero-arch-cross::after {
    content: '';
    position: absolute;
    background: rgba(55, 70, 43, 0.28);
}

.hero-arch-cross::before {
    width: 1.5px;
    height: 100%;
    left: 50%;
    top: 0;
}

.hero-arch-cross::after {
    width: 100%;
    height: 1.5px;
    top: 50%;
    left: 0;
}

.hero-collage-main {
    position: absolute;
    width: 70%;
    height: 76%;
    left: 0;
    top: 12%;
    border-radius: 20px;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.18), 0 8px 24px rgba(0, 0, 0, 0.10);
    outline: 1.5px solid rgba(255, 255, 255, 0.55);
    transform: translate3d(0, var(--parallax, 0px), 0);
}

.hero-collage-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    object-position: center 40%;
    transform: rotate(3deg) scale(1.12);
    transform-origin: center center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-collage-main:hover img {
    transform: rotate(3deg) scale(1.17);
}

.hero-collage-top {
    position: absolute;
    width: 36%;
    height: 44%;
    right: 0;
    top: 0;
    border-radius: 18px;
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.10);
    outline: 1.5px solid rgba(255, 255, 255, 0.55);
    transform: rotate(-2deg) translate3d(0, var(--parallax, 0px), 0);
    transform-origin: center center;
}

.hero-collage-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    object-position: center 30%;
    transform: scale(1);
    transform-origin: center center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-collage-top:hover img {
    transform: scale(1.07);
}

.hero-collage-bottom {
    position: absolute;
    width: 43%;
    height: 34%;
    right: 0;
    bottom: 0;
    border-radius: 18px;
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.10);
    outline: 1.5px solid rgba(255, 255, 255, 0.55);
    transform: rotate(1.5deg) translate3d(0, var(--parallax, 0px), 0);
    transform-origin: center center;
}

.hero-collage-bottom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    object-position: center 10%;
    transform: scale(1);
    transform-origin: center center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-collage-bottom:hover img {
    transform: scale(1.07);
}

/* Efekt tafli wody — hover na zdjęciach w kolażu */
.hero-collage-main,
.hero-collage-top,
.hero-collage-bottom {
    cursor: pointer;
}

/* Animowana fala — element tworzony przez JS */
.water-ripple {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.38);
    transform: translate(-50%, -50%) scale(0);
    animation: water-ripple-anim 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    pointer-events: none;
    z-index: 10;
}

@keyframes water-ripple-anim {
    0%   { transform: translate(-50%, -50%) scale(0);  opacity: 0.5; }
    60%  { opacity: 0.2; }
    100% { transform: translate(-50%, -50%) scale(28); opacity: 0; }
}

/* przewin */
.hero-scroll-hint {
    position: absolute;
    bottom: -60px;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 3;
}

.hero-scroll-hint span {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(55, 70, 43, 0.4);
    writing-mode: vertical-rl;
}

.hero-scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, rgba(55, 70, 43, 0.3), transparent);
    animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
    0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
    50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
    100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

.oto-word span {
    color: var(--accent-yellow);
    font-style: italic;
    position: relative;
}

/* Marker za "OTO" w hero na stronie głównej — rysuje się po wejściu */
.hero .oto-word span {
    color: var(--text-green-dark);
    z-index: 1;
}

.hero .oto-word span::before {
    content: '';
    position: absolute;
    left: -0.08em;
    right: -0.1em;
    top: 0.16em;
    bottom: 0;
    background: var(--accent-yellow);
    z-index: -1;
    border-radius: 0.35em 0.6em 0.4em 0.7em / 0.6em 0.35em 0.65em 0.4em;
    transform: skewX(-7deg) scaleX(0);
    transform-origin: left center;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.95s;
}

.hero .hero-reveal.is-visible .oto-word span::before {
    transform: skewX(-7deg) scaleX(1);
}

/* --- MIEJSCE NA KOLEJNE SEKCJE (TYMCZASOWE STYLOWANIE) --- */
section:not(.hero) {
    padding: 60px 0;
}

section:not(.hero) h2 {
    font-family: 'Playfair Display', serif;
    color: var(--text-green-dark);
    font-size: 36px;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

/* --- DELIKATNE KARTY: JAK TO ROBIMY --- */
/* --- KARTY ZE ZDJĘCIAMI: JAK TO ROBIMY --- */

.how-section {
    position: relative;
}

.how-section .section-intro {
    max-width: 760px;
    margin: 0 auto 60px;
    text-align: center;
}

.how-section .section-intro > p:last-child {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
}

.how-image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 65px;
    margin-bottom: 30px;
    padding: 36px;
    position: relative;
}

/* Dekoracyjne narożniki w stylu kreślarskim/kadru */
.how-image-grid::before,
.how-image-grid::after,
.how-image-grid > .frame-corner-tr,
.how-image-grid > .frame-corner-bl {
    content: '';
    position: absolute;
    width: 38px;
    height: 38px;
    border: 2px solid var(--accent-yellow);
    opacity: 0.6;
    pointer-events: none;
}

.how-image-grid::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
    transform: translate(-22px, -22px);
}

.how-image-grid::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
    transform: translate(22px, 22px);
}

.how-image-grid > .frame-corner-tr {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
    transform: translate(22px, -22px);
}

.how-image-grid > .frame-corner-bl {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
    transform: translate(-22px, 22px);
}

.how-image-grid::before,
.how-image-grid::after,
.how-image-grid > .frame-corner-tr,
.how-image-grid > .frame-corner-bl {
    opacity: 0;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s ease;
}

.how-image-grid.frames-visible::before { opacity: 0.6; transform: translate(0, 0); transition-delay: 0s; }
.how-image-grid.frames-visible > .frame-corner-tr { opacity: 0.6; transform: translate(0, 0); transition-delay: 0.15s; }
.how-image-grid.frames-visible > .frame-corner-bl { opacity: 0.6; transform: translate(0, 0); transition-delay: 0.3s; }

.how-image-grid > .how-image-card {
    position: relative;
    z-index: 1;
}

.how-image-card {
    background-color: #fff;
    border: 1px solid rgba(55, 70, 43, 0.08);
    border-radius: 16px;
    overflow: hidden;
    min-height: 540px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 2px 16px rgba(55, 70, 43, 0.04);
    transition: transform 0.4s cubic-bezier(0.22,1,0.36,1),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
}

/* Linia akcentu wsuwająca się od lewej przy hover */
.how-image-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    height: 3px;
    width: 0;
    background: var(--accent-yellow);
    border-radius: 0 3px 3px 0;
    transition: width 0.45s cubic-bezier(0.22,1,0.36,1);
    z-index: 3;
}

.how-image-card:hover::before {
    width: 100%;
}

/* Naprzemienne offsety — karta 2 i 4 przesunięta w dół (transform nie wpływa na layout) */
.how-image-grid > .how-image-card:nth-child(even) {
    transform: translateY(36px);
}

.how-image-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 50px rgba(55, 70, 43, 0.1);
    border-color: rgba(55, 70, 43, 0.13);
}

.how-image-grid > .how-image-card:nth-child(even):hover {
    transform: translateY(29px);
    box-shadow: 0 24px 50px rgba(55, 70, 43, 0.1);
    border-color: rgba(55, 70, 43, 0.13);
}

.how-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 34px 30px 22px;
    position: relative;
    z-index: 1;
}

/* Ikona-plakietka w miejscu dawnego numeru */
.how-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 214, 68, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-green-dark);
    transition: background 0.35s ease, transform 0.35s ease;
}

.how-image-card:hover .how-icon {
    background: rgba(255, 214, 68, 0.42);
    transform: translateY(-2px);
}

.how-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 1.5;
}

/* Kategoria z kropką */
.how-image-card .card-category {
    padding: 0 30px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: rgba(55, 70, 43, 0.5);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 7px;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.how-image-card .card-category::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-yellow);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.how-image-card:hover .card-category {
    color: rgba(55, 70, 43, 0.8);
}

.how-image-card:hover .card-category::before {
    transform: scale(1.4);
}

.how-image-card h3 {
    padding: 0 30px;
    font-family: 'Playfair Display', serif;
    font-size: 27px;
    line-height: 1.2;
    font-weight: 500;
    color: var(--text-green-dark);
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.how-image-card > p:last-of-type {
    padding: 0 30px;
    font-size: 14px;
    line-height: 1.75;
    color: rgba(74, 74, 74, 0.65);
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.how-image-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin-top: auto;
    display: block;
    opacity: 0.82;
    filter: saturate(0.85);
    transition: height 0.45s cubic-bezier(0.22,1,0.36,1),
                opacity 0.4s ease,
                filter 0.4s ease,
                transform 0.5s ease;
}

.how-image-card:hover img {
    height: 200px;
    opacity: 1;
    filter: saturate(1);
    transform: scale(1.02);
}

/* --- SEKCJA: EFEKTY FULL WIDTH --- */

.impact-full {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: 60px; /* Zmniejszono odstęp nad sekcją z 90px */
    background-color: var(--text-green-dark);
    position: relative;
    overflow: hidden;
}

.impact-full > * {
    position: relative;
    z-index: 1;
}

/* Fotografia w tle — przewija się ze scrollem (efekt paralaksy) */
.impact-full > .impact-full-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.6);
    will-change: transform;
    backface-visibility: hidden;
}

.impact-full > .impact-full-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(55, 70, 43, 0.78) 0%, rgba(55, 70, 43, 0.92) 100%);
}

/* Ukośna siatka jak rysunek techniczny — przewija się ze scrollem */
.impact-full::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            45deg,
            rgba(253, 249, 241, 0.04) 0px,
            rgba(253, 249, 241, 0.04) 1px,
            transparent 1px,
            transparent 48px
        ),
        repeating-linear-gradient(
            -45deg,
            rgba(253, 249, 241, 0.04) 0px,
            rgba(253, 249, 241, 0.04) 1px,
            transparent 1px,
            transparent 48px
        );
    background-position: var(--impact-bg-x, 0px) var(--impact-bg-y, 0px);
    pointer-events: none;
    z-index: 0;
    will-change: background-position;
}

/* Cienka żółta linia oddzielająca sekcję od góry */
.impact-full::after {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--accent-yellow);
    opacity: 0.6;
    z-index: 0;
}

.impact-simple {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px; /* Zmniejszono wewnętrzny padding z 95px */
    color: var(--bg-cream);
    background: none;
    border: none;
    border-radius: 0;
}

.impact-simple-intro {
    max-width: 760px;
    margin: 0 auto 40px; /* Zmniejszono dolny margines z 60px */
    text-align: center;
}

/* Zmieniony napis EFEKTY */
.impact-kicker {
    font-family: 'Playfair Display', serif; /* Taka sama czcionka jak główne nagłówki */
    font-size: 46px; 
    font-weight: 500;
    color: var(--bg-cream);
    margin-bottom: 15px; /* Mniejszy margines */
    display: inline-block;
    border-bottom: none; /* Usunięto podkreślenie, by wyglądał jak klasyczny nagłówek */
}

/* Ukrywamy stary tekst w h2, skoro EFEKTY są teraz głównym tytułem */
.impact-simple-intro h2 {
    display: none;
}

.impact-simple-intro p:last-child {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(253, 249, 241, 0.85);
    max-width: 650px;
    margin: 0 auto;
}

/* Kafelki ze statystykami */
.impact-simple-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px; /* Mniejszy odstęp między kafelkami (było 30px) */
    margin-top: 30px; /* Bliżej tekstu (było 40px) */
}

.impact-simple-item {
    text-align: center;
    padding: 40px 20px 36px;
    background: transparent;
    border: none;
    border-top: 1px solid rgba(253, 249, 241, 0.12);
    border-radius: 0;
    position: relative;
    transition: transform 0.35s ease;
}

/* Żółta kreska górna — wyrasta przy hover */
.impact-simple-item::before {
    content: '';
    position: absolute;
    top: -1px; left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 40px;
    height: 2px;
    background: var(--accent-yellow);
    border-radius: 2px;
    transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}

.impact-simple-item:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.impact-simple-item:hover {
    transform: translateY(-4px);
}

/* Liczby */
.impact-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 72px;
    line-height: 1;
    font-weight: 600;
    color: var(--accent-yellow);
    margin-bottom: 14px;
    letter-spacing: -2px;
}

.impact-simple-item p {
    font-size: 12px;
    line-height: 1.5;
    color: rgba(253, 249, 241, 0.8); /* Lekko ściemniony kremowy dla lepszego kontrastu z liczbą */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Dolna notatka */
.impact-simple-note {
    max-width: 760px;
    margin: 40px auto 0; /* Znacznie mniejszy górny margines (było 70px) */
    padding-top: 30px; /* Mniejszy odstęp od linii (było 40px) */
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    line-height: 1.5;
    font-style: italic;
    color: rgba(253, 249, 241, 0.7);
    border-top: 1px solid rgba(253, 249, 241, 0.15);
}

/* --- SEKCJA: CEL --- */

.goal-section {
    padding: 120px 0;
    position: relative;
    background-image:
        linear-gradient(rgba(55, 70, 43, 0.042) 1px, transparent 1px),
        linear-gradient(90deg, rgba(55, 70, 43, 0.042) 1px, transparent 1px);
    background-size: 54px 54px;
}

.goal-section::before {
    content: '';
    display: block;
    margin-bottom: 90px;
}

.goal-top {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 90px;
    margin-bottom: 80px;
}

.goal-text {
    max-width: 650px;
}

.goal-text .section-label {
    justify-content: flex-start;
    margin-bottom: 24px;
}

.goal-text .section-label::before {
    display: none;
}

.goal-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 58px;
    line-height: 1.05;
    letter-spacing: -1px;
    font-weight: 500;
    color: var(--text-green-dark);
    margin-bottom: 28px;
}

.goal-text p {
    font-size: 18px;
    line-height: 1.75;
    color: rgba(74, 74, 74, 0.78);
    margin-bottom: 18px;
}

/* Obrazek — narożniki zamiast pełnej ramki */
.goal-image-box {
    position: relative;
    border-radius: 34px;
    overflow: hidden;
    height: 430px;
    background-color: rgba(55, 70, 43, 0.08);
    box-shadow: 0 30px 80px rgba(55, 70, 43, 0.16);
}

.goal-image-box::before,
.goal-image-box::after {
    content: '';
    position: absolute;
    width: 36px;
    height: 36px;
    border-color: var(--accent-yellow);
    border-style: solid;
    opacity: 0.9;
    z-index: 2;
    pointer-events: none;
    transition: width 0.4s ease, height 0.4s ease;
}

.goal-image-box::before {
    top: 18px; left: 18px;
    border-width: 2px 0 0 2px;
    border-radius: 6px 0 0 0;
}

.goal-image-box::after {
    bottom: 18px; right: 18px;
    border-width: 0 2px 2px 0;
    border-radius: 0 0 6px 0;
}

.goal-image-box:hover::before,
.goal-image-box:hover::after {
    width: 52px;
    height: 52px;
}

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

.goal-image-box:hover img {
    transform: scale(1.05);
}

/* Karty celu — ciemne, editorial */
.goal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: rgba(55, 70, 43, 0.1);
    border-radius: 28px;
    overflow: hidden;
}

.goal-card {
    position: relative;
    padding: 50px 40px 44px;
    background-color: var(--text-green-dark);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1) var(--card-delay, 0s),
                transform 0.65s cubic-bezier(0.22, 1, 0.36, 1) var(--card-delay, 0s),
                background-color 0.35s ease;
}

.goal-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.goal-card-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    margin-bottom: 32px;
}

.goal-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 214, 68, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-yellow);
    flex-shrink: 0;
    transition: background 0.35s ease, transform 0.35s ease;
}

.goal-card-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.goal-card:hover .goal-card-icon {
    background: rgba(255, 214, 68, 0.22);
    transform: translateY(-2px);
}

/* Żółta kreska na górze — wsuwa się przy hover */
.goal-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    height: 2px;
    width: 0;
    background: var(--accent-yellow);
    transition: width 0.5s cubic-bezier(0.22,1,0.36,1);
}

.goal-card:hover::before {
    width: 100%;
}

.goal-card:hover {
    background-color: rgba(55, 70, 43, 0.88);
    transform: translateY(-8px);
    box-shadow: 0 28px 52px rgba(55, 70, 43, 0.22);
    transition-delay: 0s;
}

.goal-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 500;
    color: var(--bg-cream);
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.goal-card p {
    font-size: 15px;
    line-height: 1.75;
    color: rgba(253, 249, 241, 0.78);
    position: relative;
    z-index: 1;
    margin-top: 0;
}

.goal-card p:not(.goal-card-subtitle) {
    margin-top: auto;
}

.goal-card .goal-card-subtitle {
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: rgba(255, 214, 68, 0.75);
    margin-top: 8px;
    margin-bottom: 0;
    line-height: 1.4;
}

/* --- SEKCJA: KONTAKT --- */

.contact-section {
    padding: 120px 0;
    position: relative;
}

/* Cienka linia rozdzielająca od góry */
.contact-section::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(55,70,43,0.14), transparent);
    margin-bottom: 90px;
}

.contact-intro {
    max-width: 640px;
    margin: 0 auto 70px;
    text-align: center;
}

.contact-intro h2 {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    line-height: 1.05;
    letter-spacing: -1px;
    font-weight: 500;
    color: var(--text-green-dark);
    margin-bottom: 24px;
}

.contact-intro > p:last-child {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(74, 74, 74, 0.72);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}


.contact-card {
    position: relative;
    padding: 44px 36px;
    border-radius: 28px;
    background-color: #fff;
    border: 1px solid rgba(55, 70, 43, 0.1);
    box-shadow: 0 4px 24px rgba(55, 70, 43, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.22,1,0.36,1),
                box-shadow 0.4s ease,
                background-color 0.35s ease;
}

/* Linia akcentu wsuwająca się od lewej */
.contact-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-yellow);
    border-radius: 0 3px 0 0;
    transition: width 0.45s cubic-bezier(0.22,1,0.36,1);
}

.contact-card:hover::before {
    width: 100%;
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(55, 70, 43, 0.1);
}

.contact-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 500;
    color: var(--text-green-dark);
    margin-bottom: 16px;
}

.contact-card p {
    font-size: 15px;
    line-height: 1.75;
    color: rgba(74, 74, 74, 0.72);
    margin-bottom: 0;
}

.contact-card p:not(.contact-text2) {
    flex: 0;
}

.contact-card .contact-text2 {
    font-size: 14px;
    color: rgba(74, 74, 74, 0.55);
    margin-bottom: 28px;
    flex: 0;
}

.contact-link {
    margin-top: auto;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: #d4a017;
    background-color: rgba(255, 214, 68, 0.08);
    border: 1.5px solid var(--accent-yellow);
    text-decoration: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, gap 0.3s ease;
}

.contact-link:hover {
    background-color: var(--accent-yellow);
    border-color: var(--accent-yellow);
    color: var(--text-green-dark);
    gap: 13px;
}

/* --- DOFINANSOWANIE (strona główna, nad sekcją Kontakt) --- */

.home-funding {
    padding: 60px 0 40px;
}

.home-funding-card {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 52px;
    padding: 52px 56px;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(255, 214, 68, 0.12) 0%, transparent 45%),
        linear-gradient(135deg, #3d4c30 0%, #2c3720 100%);
    border-radius: 32px;
    box-shadow: 0 30px 70px rgba(37, 46, 27, 0.28),
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

/* Subtelna tekstura wzoru (jak w stopce) — dodaje głębi */
.home-funding-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/bez-tla-wzor.webp') no-repeat right center / cover;
    opacity: 0.09;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 0%, transparent 65%);
    mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 0%, transparent 65%);
}

/* Miniatura plakatu — klikalna, otwiera pełny rozmiar */
.home-funding-figure {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    align-self: center;
    display: block;
    width: 214px;
    padding: 8px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.45s ease;
}

.home-funding-figure:hover {
    transform: translateY(-6px) rotate(-0.6deg);
    box-shadow: 0 26px 52px rgba(0, 0, 0, 0.4);
}

.home-funding-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 9px;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Nakładka „Powiększ" na hover */
.home-funding-zoom {
    position: absolute;
    inset: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-green-dark);
    background: rgba(255, 214, 68, 0.92);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.home-funding-figure:hover .home-funding-zoom,
.home-funding-figure:focus-visible .home-funding-zoom {
    opacity: 1;
}

.home-funding-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.home-funding-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--accent-yellow);
    margin-bottom: 18px;
}

.home-funding-kicker::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-yellow);
    box-shadow: 0 0 0 4px rgba(255, 214, 68, 0.2);
}

.home-funding .home-funding-title {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -0.3px;
    font-weight: 500;
    color: #fdf9f1;
    margin: 0 0 16px;
}

.home-funding-text {
    font-size: 15px;
    line-height: 1.75;
    color: rgba(253, 249, 241, 0.72);
    margin: 0 0 28px;
}

.home-funding-text strong {
    color: #ffffff;
    font-weight: 600;
}

/* Kwoty jako subtelny wiersz statystyk */
.home-funding-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 44px;
    margin: 0;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.home-funding-stats div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.home-funding-stats dt {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(253, 249, 241, 0.5);
}

.home-funding-stats dd {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
}

/* Wejście przy scrollowaniu */
.funding-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease,
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.funding-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 680px) {
    .home-funding {
        padding: 40px 0 24px;
    }

    .home-funding-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
        padding: 40px 26px;
    }

    .home-funding-card::before {
        -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, transparent 70%);
        mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, transparent 70%);
    }

    .home-funding-body {
        align-items: center;
    }

    .home-funding-kicker {
        justify-content: center;
    }

    .home-funding-figure {
        width: 196px;
    }

    .home-funding .home-funding-title {
        font-size: 25px;
    }

    .home-funding-stats {
        justify-content: center;
        gap: 20px 34px;
    }

    .home-funding-stats div {
        align-items: center;
    }
}

/* --- STOPKA --- */

.site-footer {
    width: 100%;
    max-width: none;
    margin: 80px 0 0;
    padding: 80px 0 0;
    background-color: var(--text-green-dark);
    color: var(--bg-cream);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/bez-tla-wzor.webp') no-repeat center / cover;
    opacity: 0.15;
    pointer-events: none;
    -webkit-mask-image:
        linear-gradient(to right, transparent 5%, rgba(0,0,0,0.3) 30%, rgba(0,0,0,0.7) 60%, rgba(0,0,0,1) 85%),
        radial-gradient(ellipse 120% 80% at 70% 30%, rgba(0,0,0,1) 20%, rgba(0,0,0,0.5) 50%, transparent 75%);
    -webkit-mask-composite: destination-in;
    mask-image:
        linear-gradient(to right, transparent 5%, rgba(0,0,0,0.3) 30%, rgba(0,0,0,0.7) 60%, rgba(0,0,0,1) 85%),
        radial-gradient(ellipse 120% 80% at 70% 30%, rgba(0,0,0,1) 20%, rgba(0,0,0,0.5) 50%, transparent 75%);
    mask-composite: intersect;
}

.site-footer-spotlight {
    position: absolute;
    inset: 0;
    background: url('../img/bez-tla-wzor.webp') no-repeat center / cover;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    -webkit-mask-image: radial-gradient(circle 250px at var(--mx, -999px) var(--my, -999px), rgba(0,0,0,0.2) 0%, transparent 100%);
    mask-image: radial-gradient(circle 250px at var(--mx, -999px) var(--my, -999px), rgba(0,0,0,0.2) 0%, transparent 100%);
}

.site-footer:hover .site-footer-spotlight {
    opacity: 1;
}

footer.site-footer {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.footer-inner {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 60px;
    display: grid;
    grid-template-columns: 1.1fr 1.2fr 0.8fr 0.7fr;
    gap: 70px;
}

/* logo + opis */

.footer-logo-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.footer-logo-badge {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(253, 249, 241, 0.95);
    border: 1px solid rgba(253, 249, 241, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

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

.footer-logo-text {
    font-size: 19px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: var(--bg-cream);
}

/* nagłówki */

.footer-contact h3,
.footer-social h3,
.footer-docs h3 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 500;
    color: var(--bg-cream);
    margin-bottom: 26px;
}

/* kontakt */

.footer-contact-list {
    display: grid;
    gap: 12px;
}

.footer-contact-list p {
    font-size: 15px;
    line-height: 1.5;
    color: rgba(253, 249, 241, 0.78);
}

.footer-contact-list span {
    display: inline-block;
    min-width: 76px;
    font-weight: 700;
    color: var(--bg-cream);
}

.footer-contact-list a {
    color: rgba(253, 249, 241, 0.78);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-list a:hover {
    color: var(--bg-cream);
}

/* dokumenty */

.footer-docs-list {
    display: grid;
    gap: 12px;
}

.footer-docs-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(253, 249, 241, 0.78);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-docs-list a:hover {
    color: var(--bg-cream);
}

.footer-docs-list svg {
    flex-shrink: 0;
}

/* social media */

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 44px;
    height: 44px;
    border-radius: 50%;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background-color: rgba(253, 249, 241, 0.08);
    border: 1px solid rgba(253, 249, 241, 0.14);
    color: var(--bg-cream);

    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;

    transition: background-color 0.3s ease,
                transform 0.3s ease;
}

.social-links a:hover {
    background-color: rgba(253, 249, 241, 0.18);
    transform: translateY(-4px);
}

/* dół stopki */

.footer-bottom {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(253, 249, 241, 0.12);
    padding: 22px 40px;
    max-width: 1400px;
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    gap: 20px;

    font-size: 13px;
    color: rgba(253, 249, 241, 0.55);
}

.footer-bottom a {
    color: rgba(253, 249, 241, 0.75);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

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



/* --- ANIMACJA KART PRZY SCROLLOWANIU: JAK TO ROBIMY --- */
.how-image-card {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.35s ease,
                background-color 0.35s ease,
                box-shadow 0.35s ease;
    transition-delay: var(--card-delay, 0s);
}

.how-image-card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* --- ANIMACJA KART PRZY SCROLLOWANIU: KONTAKT --- */
.contact-card {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--card-delay, 0s);
}

.contact-card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ===================== HAMBURGER / MENU MOBILNE ===================== */

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-green-dark);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── MOBILNE MENU — wysuwany panel z prawej (drawer) ── */
.mobile-nav {
    display: none;               /* desktop: ukryte; media query włącza display:flex */
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(82vw, 340px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 104px 30px 48px;
    background: var(--text-green-dark);
    box-shadow: -24px 0 64px rgba(20, 26, 15, 0.32);
    z-index: 998;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.5s;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.mobile-nav.is-open {
    transform: translateX(0);
    visibility: visible;
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.mobile-nav ul a {
    display: inline-block;
    font-family: 'Geist', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(253, 249, 241, 0.7);
    text-decoration: none;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.mobile-nav ul a:hover {
    color: var(--bg-cream);
}

.mobile-nav ul a.active {
    color: var(--accent-yellow);
    border-bottom-color: var(--accent-yellow);
}

.mobile-nav-cta {
    margin-top: 14px;
}

/* Przyciemnione tło pod panelem — klik zamyka menu */
.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20, 26, 15, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
    z-index: 997;
}

.mobile-nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

/* ===================== RESPONSYWNOŚĆ: TABLET 11" (1025px–1200px) — hamburger ===================== */

@media (min-width: 1025px) and (max-width: 1200px) {

    .main-nav,
    .nav-right {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .logo {
        margin-left: 0;
    }

    .nav-logo-img {
        width: 50px;
    }

    .nav-pill {
        padding: 12px 20px;
    }

    body.nav-open {
        overflow: hidden;
    }

    .mobile-nav {
        display: flex;
    }

    /* --- Hero: dwukolumnowy z dostosowanymi rozmiarami --- */
    .hero {
        gap: 24px;
        margin-left: 0;
    }

    .hero-content {
        max-width: 460px;
    }

    .hero-content h1 {
        font-size: 48px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .hero-collage {
        min-height: 520px;
    }
}

/* ===================== RESPONSYWNOŚĆ: TABLET 13" I OKNA POŚREDNIE (1201px–1519px) — pełne menu kompaktowe ===================== */

@media (min-width: 1201px) and (max-width: 1519px) {

    .logo {
        margin-left: 0;
    }

    .nav-pill {
        padding: 16px 28px;
    }

    .main-nav ul {
        gap: 0;
    }

    .main-nav a {
        font-size: 11.5px;
        padding: 8px 10px;
        white-space: nowrap;
    }

    .main-nav a:hover::after,
    .main-nav a.active::after {
        width: calc(100% - 20px);
    }

    .nav-dolacz-text {
        display: none;
    }

    .nav-dolacz {
        padding: 8px 10px;
    }

    .nav-sep {
        display: none;
    }

    .btn-yellow {
        padding: 11px 20px;
        font-size: 12px;
    }
}

/* Hero dopasowane do węższych okien (do 1439px) */
@media (min-width: 1201px) and (max-width: 1439px) {

    .hero {
        gap: 24px;
        margin-left: 0;
    }

    .hero-content {
        max-width: 460px;
    }

    .hero-content h1 {
        font-size: 48px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .hero-collage {
        min-height: 520px;
    }
}

/* ===================== RESPONSYWNOŚĆ: TABLET / MOBILE ===================== */

@media (max-width: 1024px) {

    main, footer {
        padding: 0 24px;
    }

    /* --- Nagłówek i menu --- */
    .nav-pill {
        padding: 10px 16px;
    }

    .logo {
        margin-left: 0;
    }

    .main-nav,
    .nav-right {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-logo-img {
        width: 42px;
    }

    body.nav-open {
        overflow: hidden;
    }

    .mobile-nav {
        display: flex;
    }

    /* --- Hero --- */
    .hero {
        flex-direction: column;
        margin-top: 16px;
        margin-left: 0;
        padding-bottom: 50px;
        gap: 0;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        align-items: center;
    }

    .hero-label-row {
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 46px;
        align-items: center;
        text-align: center;
    }

    .hero-content p {
        max-width: 100%;
        margin: 0 auto 36px;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
        gap: 18px;
    }

    .hero-collage {
        min-height: clamp(400px, 58vw, 560px);
        order: -1;
        margin-bottom: 24px;
        width: 100%;
        overflow: hidden;
    }

    .hero-collage-circle {
        width: 200px;
        height: 200px;
    }

    .hero-collage-top {
        width: 32%;
        height: 40%;
    }

    .hero-collage-bottom {
        width: 38%;
        height: 30%;
    }

    .hero-watermark {
        font-size: 140px;
    }

    .hero-scroll-hint {
        display: none;
    }

    /* --- Jak to robimy --- */
    .how-image-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 24px;
        gap: 18px;
    }

    .how-image-grid > .how-image-card:nth-child(even) {
        margin-top: 0;
    }

    /* --- Efekty --- */
    .impact-simple-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .impact-kicker {
        font-size: 36px;
    }

    /* --- Cel --- */
    .goal-top {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 50px;
    }

    .goal-image-box {
        height: 320px;
        order: -1;
    }

    .goal-text h2 {
        font-size: 40px;
    }

    .goal-grid {
        grid-template-columns: 1fr;
    }

    /* --- Kontakt --- */
    .contact-intro h2 {
        font-size: 40px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* --- Stopka --- */
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 0 24px 48px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 22px 24px;
    }
}

@media (max-width: 600px) {

    body {
        padding-top: 100px;
    }

    main, footer {
        padding: 0 18px;
    }

    /* --- Nagłówek --- */
    .main-header {
        padding: 14px 18px;
    }

    .nav-logo-img {
        width: 80px;
    }

    /* --- Hero --- */
    .hero {
        margin-top: 8px;
        padding-bottom: 40px;
    }

    .hero-watermark {
        font-size: 90px;
    }

    .hero-content h1 {
        font-size: clamp(30px, 9vw, 36px);
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-collage {
        min-height: clamp(280px, 75vw, 380px);
        overflow: visible;
    }

    .hero-collage-top,
    .hero-collage-bottom {
        display: none;
    }

    .hero-collage-main {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
    }

    .hero-collage-main img {
        transform: scale(1.04);
    }

    /* Żółte koło jako czyste tło — wysuwa się zza dolnego-lewego rogu zdjęcia,
       nie nachodzi półprzezroczyście na kadr (to dawało wrażenie „przycięcia"). */
    .hero-collage-circle {
        width: 120px;
        height: 120px;
        top: auto;
        left: 4px;
        bottom: -44px;
        opacity: 1;
        z-index: 0;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .hero-actions .btn-large {
        text-align: center;
        justify-content: center;
    }

    .hero-secondary-link {
        justify-content: center;
        border-bottom: none;
    }

    /* --- Sekcje ogólne --- */
    section:not(.hero) {
        padding: 50px 0;
    }

    section:not(.hero) h2 {
        font-size: 28px;
    }

    /* --- Jak to robimy --- */
    .how-section .section-intro {
        margin-bottom: 30px;
    }

    .how-image-grid {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 14px;
        margin-top: 20px;
    }

    .how-image-card {
        min-height: auto;
    }

    .how-card-top {
        padding: 24px 20px 16px;
    }

    .how-image-card .card-category {
        padding: 0 20px;
    }

    .how-image-card h3 {
        font-size: 22px;
        padding: 0 20px;
    }

    .how-image-card > p:last-of-type {
        padding: 0 20px;
        margin-bottom: 20px;
    }

    .how-image-card img {
        height: 180px;
    }

    /* --- Efekty --- */
    .impact-simple-stats {
        grid-template-columns: 1fr;
    }

    .impact-simple {
        padding: 48px 24px;
    }

    .impact-full-bg {
        display: none;
    }

    .impact-number {
        font-size: 54px;
    }

    .impact-kicker {
        font-size: 28px;
    }

    .impact-simple-note {
        font-size: 17px;
        margin-top: 28px;
        padding-top: 24px;
    }

    .impact-simple-item {
        padding: 28px 16px 24px;
    }

    /* --- Cel --- */
    .goal-section {
        padding: 70px 0;
    }

    .goal-section::before {
        margin-bottom: 50px;
    }

    .goal-text h2 {
        font-size: 32px;
    }

    .goal-image-box {
        height: 220px;
        border-radius: 22px;
    }

    .goal-card {
        padding: 32px 24px 28px;
    }

    .goal-card-top-row {
        margin-bottom: 20px;
    }

    .goal-card h3 {
        font-size: 20px;
    }

    /* --- Kontakt --- */
    .contact-section {
        padding: 70px 0;
    }

    .contact-section::before {
        margin-bottom: 50px;
    }

    .contact-intro {
        margin-bottom: 40px;
    }

    .contact-intro h2 {
        font-size: 32px;
    }

    .contact-card {
        padding: 28px 24px;
    }

    .contact-card h3 {
        font-size: 24px;
    }

    /* --- Stopka --- */
    .site-footer {
        margin-top: 60px;
        padding-top: 60px;
    }

    .footer-inner {
        padding: 0 18px 40px;
        gap: 36px;
    }

    .footer-logo-wrap {
        justify-content: center;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-contact,
    .footer-social,
    .footer-docs {
        text-align: center;
    }

    .footer-contact-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .footer-contact-list p {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        text-align: center;
    }

    .footer-contact-list span {
        min-width: 0;
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: rgba(253,249,241,0.45);
        display: block;
    }

    .footer-docs-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .footer-docs-list a {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-contact h3,
    .footer-social h3,
    .footer-docs h3 {
        font-size: 24px;
        margin-bottom: 18px;
    }

    .footer-bottom {
        padding: 18px 18px;
        align-items: center;
        text-align: center;
    }
}

/* ===================== STICKY MINI-PIGUŁKA — ekrany z hamburgerem (≤1200px) ===================== */

@media (max-width: 1200px) {
    .main-header.is-sticky .nav-pill {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        min-height: auto;
    }

    .main-header.is-sticky .main-nav,
    .main-header.is-sticky .nav-right {
        display: none;
    }

    .main-header.is-sticky .nav-toggle {
        display: flex;
        margin-left: 0;
    }

    .main-header.is-sticky .logo {
        margin-left: 0;
    }
}
