/* ============================================================
   PUCKA ORKIESTRA DĘTA — Arkusz stylów
   Kierunek: Morski + Kinowy
   Autor: Wygenerowany dla Puckiej Orkiestry Dętej, 2025
   ============================================================ */

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
img  { max-width: 100%; height: auto; display: block; }
ul   { list-style: none; }
a    { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* --- TOKENY PROJEKTU --- */
:root {
    --deep:        #060F18;
    --navy:        #0B2D42;
    --navy-light:  #0d3551;
    --brass:       #C8972A;
    --gold:        #E8B84B;
    --sunset:      #E8923A;
    --logo-blue:   #29ABE2;
    --sand:        #F2EBD9;
    --foam:        #F8F5F0;
    --muted:       rgba(242, 235, 217, 0.55);

    --font-display: 'Fraunces', Georgia, serif;
    --font-body:    'Source Serif 4', Georgia, serif;
    --font-ui:      'Jost', system-ui, sans-serif;

    --space-xs:  0.25rem;   /*  4px */
    --space-sm:  0.5rem;    /*  8px */
    --space-md:  1rem;      /* 16px */
    --space-lg:  2rem;      /* 32px */
    --space-xl:  4rem;      /* 64px */
    --space-2xl: 6rem;      /* 96px */

    --radius-sm: 4px;
    --radius-md: 10px;
    --radius-lg: 20px;

    --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
    --dur-fast:  150ms;
    --dur-mid:   300ms;
    --dur-slow:  650ms;

    --nav-h:  136px;
    --max-w:  1280px;
}

/* --- BASE --- */
body {
    background: var(--deep);
    color: var(--sand);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.75;
    overflow-x: hidden;
}

/* --- SKIP LINK (dostępność) --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-md);
    background: var(--brass);
    color: var(--deep);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-family: var(--font-ui);
    font-weight: 600;
    z-index: 9999;
    transition: top var(--dur-fast);
}
.skip-link:focus { top: var(--space-md); }

/* --- KONTENER --- */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}
@media (max-width: 768px) {
    .container { padding: 0 var(--space-md); }
}

/* --- GRAIN OVERLAY --- */
.grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* ============================================================
   NAWIGACJA
   ============================================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: background var(--dur-mid) var(--ease-out),
                box-shadow  var(--dur-mid) var(--ease-out);
}
.nav.scrolled {
    background: rgba(6, 15, 24, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(200, 151, 42, 0.12);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--nav-h);
    max-width: var(--max-w);
    margin: 0 auto;
    padding: var(--space-sm) var(--space-lg);
}
@media (max-width: 768px) {
    .nav-inner { padding: var(--space-sm) var(--space-md); }
}

.nav-logo img {
    height: 120px;
    width: auto;
    background: white;
    border-radius: var(--radius-sm);
    padding: 8px 16px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-ui);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sand);
    opacity: 0.75;
    transition: opacity var(--dur-fast), color var(--dur-fast);
    position: relative;
    padding-bottom: 2px;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 1px;
    background: var(--brass);
    transition: width var(--dur-mid) var(--ease-out);
}
.nav-link:hover,
.nav-link:focus-visible { opacity: 1; color: var(--gold); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; border-radius: 2px; }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
}
.nav-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: var(--sand);
    border-radius: 2px;
    transition: transform var(--dur-mid) var(--ease-out), opacity var(--dur-mid);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; border-radius: var(--radius-sm); }

@media (max-width: 900px) {
    .nav-logo img {
        height: 100px;
        padding: 6px 12px;
    }

    .nav-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        /* menu zaczyna się pod całym navbar – obliczamy dynamicznie przez JS */
        background: rgba(6, 15, 24, 0.98);
        backdrop-filter: blur(14px);
        flex-direction: column;
        gap: 0;
        padding-top: 80px; /* zapas na navbar */
        padding-bottom: var(--space-md);
        transform: translateY(-110%);
        transition: transform var(--dur-slow) var(--ease-out);
        border-bottom: 1px solid rgba(200, 151, 42, 0.15);
        max-height: 100dvh;
        overflow-y: auto;
        z-index: 999;
    }
    .nav-links.open { transform: translateY(0); }
    .nav-links li { width: 100%; text-align: center; }
    .nav-link {
        display: block;
        padding: var(--space-md) var(--space-lg);
        font-size: 0.9375rem;
        border-bottom: 1px solid rgba(200, 151, 42, 0.07);
    }
    .nav-link::after { display: none; }
}

@media (max-width: 480px) {
    .nav-logo img {
        height: 90px;
        padding: 5px 10px;
    }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
    transform: scale(1.06);
    animation: hero-zoom 18s ease-out forwards;
}
@keyframes hero-zoom {
    from { transform: scale(1.06); }
    to   { transform: scale(1.0); }
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        150deg,
        rgba(6, 15, 24, 0.88) 0%,
        rgba(11, 45, 66, 0.55) 55%,
        rgba(6, 15, 24, 0.78) 100%
    );
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 3;
    max-width: var(--max-w);
    width: 100%;
    margin: 0 auto;
    padding: var(--nav-h) var(--space-lg) var(--space-xl);
    padding-top: calc(var(--nav-h) + var(--space-xl));
}
@media (max-width: 768px) {
    .hero-content { padding: calc(var(--nav-h) + var(--space-lg)) var(--space-md) var(--space-xl); }
}

.hero-eyebrow {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: var(--space-lg);
    opacity: 0;
    transform: translateY(16px);
    animation: fade-up var(--dur-slow) var(--ease-out) 0.4s forwards;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 11vw, 9.5rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.025em;
    color: var(--foam);
    margin-bottom: var(--space-lg);
}
.hero-title span {
    display: block;
    opacity: 0;
    transform: translateY(36px);
}
.hero-title span:nth-child(1) { animation: fade-up var(--dur-slow) var(--ease-out) 0.55s forwards; color: var(--logo-blue); }
.hero-title span:nth-child(2) { animation: fade-up var(--dur-slow) var(--ease-out) 0.7s  forwards; color: var(--foam); }
.hero-title span:nth-child(3) { animation: fade-up var(--dur-slow) var(--ease-out) 0.85s forwards; color: var(--logo-blue); }
.hero-tagline {
    font-family: var(--font-body);
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-style: italic;
    color: var(--muted);
    margin-bottom: var(--space-xl);
    opacity: 0;
    transform: translateY(16px);
    animation: fade-up var(--dur-slow) var(--ease-out) 1s forwards;
}
.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(16px);
    animation: fade-up var(--dur-slow) var(--ease-out) 1.15s forwards;
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 90px; right: var(--space-xl);
    z-index: 3;
}
.scroll-line {
    width: 1px; height: 56px;
    background: linear-gradient(to bottom, var(--brass), transparent);
    animation: scroll-anim 2.2s ease-in-out infinite;
}
@keyframes scroll-anim {
    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; }
}
@media (max-width: 600px) { .hero-scroll-indicator { display: none; } }

/* Wave separator */
.hero-wave {
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    z-index: 3; line-height: 0;
}
.hero-wave svg { width: 100%; height: 70px; }

/* ============================================================
   PRZYCISKI
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.875rem 2rem;
    font-family: var(--font-ui);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    min-height: 48px;
    transition: background var(--dur-mid) var(--ease-out),
                color    var(--dur-mid) var(--ease-out),
                transform var(--dur-mid) var(--ease-out),
                box-shadow var(--dur-mid) var(--ease-out),
                border-color var(--dur-mid) var(--ease-out);
}
.btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.btn-primary {
    background: var(--brass);
    color: var(--deep);
}
.btn-primary:hover {
    background: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(200, 151, 42, 0.35);
}
.btn-ghost {
    background: transparent;
    color: var(--sand);
    border: 1px solid rgba(242, 235, 217, 0.25);
}
.btn-ghost:hover {
    border-color: var(--brass);
    color: var(--gold);
    transform: translateY(-2px);
}

/* ============================================================
   NAGŁÓWKI SEKCJI
   ============================================================ */
.section-label {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: var(--space-md);
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5.5vw, 4.25rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.025em;
    color: var(--foam);
    margin-bottom: var(--space-lg);
}
.section-header { margin-bottom: var(--space-xl); }

/* ============================================================
   O NAS
   ============================================================ */
.section-onas {
    background: var(--deep);
    padding: var(--space-2xl) 0;
}
.onas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}
@media (max-width: 900px) {
    .onas-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
}
.onas-manifest {
    margin-bottom: var(--space-lg);
    padding-left: var(--space-lg);
    border-left: 2px solid var(--brass);
}
.onas-manifest p {
    font-family: var(--font-display);
    font-size: clamp(1.125rem, 1.8vw, 1.375rem);
    font-style: italic;
    color: var(--sand);
    line-height: 1.55;
    margin-bottom: 0.4rem;
}
.onas-bio {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: var(--space-lg);
    max-width: 520px;
}
.onas-signature { display: flex; flex-direction: column; gap: 3px; }
.signature-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--gold);
}
.signature-title {
    font-family: var(--font-ui);
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brass);
    opacity: 0.75;
}

/* Ramka zdjęcia */
.photo-frame { position: relative; }
.photo-frame::before {
    content: '';
    position: absolute;
    top: -14px; right: -14px;
    bottom: 14px; left: 14px;
    border: 1px solid rgba(200, 151, 42, 0.25);
    border-radius: var(--radius-md);
    pointer-events: none;
}
.photo-frame img {
    position: relative;
    width: 100%;
    border-radius: var(--radius-md);
    object-fit: cover;
    aspect-ratio: 4 / 3;
}
.onas-photo-caption {
    font-family: var(--font-ui);
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brass);
    margin-top: var(--space-md);
    text-align: center;
    opacity: 0.65;
}

/* ============================================================
   LICZBY
   ============================================================ */
.section-liczby {
    background: linear-gradient(160deg, #0d2233 0%, #060f18 100%);
    padding: var(--space-2xl) 0;
    position: relative;
    overflow: hidden;
}
.section-liczby::before {
    content: '';
    position: absolute;
    top: -40%; left: -15%;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(200, 151, 42, 0.07) 0%, transparent 65%);
    pointer-events: none;
}
.liczby-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    text-align: center;
}
@media (max-width: 768px) {
    .liczby-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-xl) var(--space-md); }
}
.liczba-item { padding: var(--space-lg) var(--space-md); }
.liczba-value {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 6.5vw, 5.25rem);
    font-weight: 800;
    line-height: 1;
    display: block;
    margin-bottom: var(--space-sm);
    background: linear-gradient(135deg, var(--brass) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.liczba-static { -webkit-text-fill-color: transparent; }
.liczba-label {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ============================================================
   KONCERTY
   ============================================================ */
.section-koncerty {
    background: var(--deep);
    padding: var(--space-2xl) 0;
}
.koncerty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
    min-height: 80px;
}
.koncert-card {
    background: var(--navy);
    border: 1px solid rgba(200, 151, 42, 0.12);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    position: relative;
    overflow: hidden;
    transition: transform var(--dur-mid) var(--ease-out),
                border-color var(--dur-mid),
                box-shadow var(--dur-mid);
}
.koncert-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: linear-gradient(to bottom, var(--brass), var(--sunset));
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform var(--dur-mid) var(--ease-out);
}
.koncert-card:hover {
    transform: translateY(-5px);
    border-color: rgba(200, 151, 42, 0.35);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}
.koncert-card:hover::before { transform: scaleY(1); }
.koncert-date {
    font-family: var(--font-ui);
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: var(--space-sm);
}
.koncert-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foam);
    line-height: 1.15;
    margin-bottom: var(--space-sm);
}
.koncert-place {
    font-family: var(--font-ui);
    font-size: 0.875rem;
    color: var(--muted);
}
.koncert-desc {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.6;
    margin-top: var(--space-sm);
}
.koncert-type {
    display: inline-block;
    margin-top: var(--space-md);
    padding: 3px 12px;
    background: rgba(200, 151, 42, 0.1);
    border: 1px solid rgba(200, 151, 42, 0.18);
    border-radius: 20px;
    font-family: var(--font-ui);
    font-size: 0.625rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brass);
}
.koncerty-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-2xl) 0;
    color: var(--muted);
    font-style: italic;
    line-height: 2;
}
.koncerty-note {
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    font-style: italic;
}
.koncerty-note a {
    color: var(--brass);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.koncerty-note a:hover { color: var(--gold); }

/* ============================================================
   GALERIA
   ============================================================ */
.section-galeria {
    background: #040b12;
    padding: var(--space-2xl) 0;
}
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
}
@media (max-width: 768px) { .galeria-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .galeria-grid { grid-template-columns: 1fr; } }

.galeria-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: var(--radius-sm);
    aspect-ratio: 4 / 3;
    background: var(--navy);
}
.galeria-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease-out);
}
.galeria-item:hover img { transform: scale(1.07); }
.galeria-item-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(6,15,24,0.85) 0%, transparent 55%);
    opacity: 0;
    transition: opacity var(--dur-mid);
    display: flex;
    align-items: flex-end;
    padding: var(--space-md);
}
.galeria-item:hover .galeria-item-overlay { opacity: 1; }
.galeria-item:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 2px;
}
.galeria-item-caption {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--sand);
    letter-spacing: 0.04em;
}

/* Lightbox */
.lightbox {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.96);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-mid);
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-inner {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}
.lightbox-inner img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}
.lightbox-caption {
    font-family: var(--font-ui);
    font-size: 0.875rem;
    color: var(--muted);
    text-align: center;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(200, 151, 42, 0.12);
    border: 1px solid rgba(200, 151, 42, 0.25);
    color: var(--sand);
    cursor: pointer;
    border-radius: var(--radius-sm);
    min-width: 48px; min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: background var(--dur-fast), color var(--dur-fast);
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(200, 151, 42, 0.28);
    color: var(--gold);
}
.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 2px;
}
.lightbox-close { top: var(--space-lg); right: var(--space-lg); font-size: 1.6rem; }
.lightbox-prev  { left:  var(--space-lg); top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: var(--space-lg); top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
    .lightbox-prev { left: var(--space-sm); }
    .lightbox-next { right: var(--space-sm); }
    .lightbox-close { top: var(--space-sm); right: var(--space-sm); }
}

/* ============================================================
   HISTORIA / TIMELINE
   ============================================================ */
.section-historia {
    background: var(--deep);
    padding: var(--space-2xl) 0;
}
.timeline {
    position: relative;
    padding-left: 130px;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 8px; bottom: 0;
    left: 84px;
    width: 1px;
    background: linear-gradient(to bottom, var(--brass) 0%, rgba(200,151,42,0.15) 100%);
}
@media (max-width: 768px) {
    .timeline { padding-left: 90px; }
    .timeline::before { left: 50px; }
}
@media (max-width: 480px) {
    .timeline { padding-left: 70px; }
    .timeline::before { left: 30px; }
}

.timeline-item {
    position: relative;
    margin-bottom: var(--space-2xl);
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-marker {
    position: absolute;
    left: -130px; top: 0;
    width: 120px;
    text-align: right;
    padding-right: var(--space-lg);
}
@media (max-width: 768px) {
    .timeline-marker { left: -90px; width: 80px; padding-right: var(--space-md); }
}
@media (max-width: 480px) {
    .timeline-marker { left: -70px; width: 58px; padding-right: var(--space-sm); font-size: 0.625rem !important; }
}

.timeline-year {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 700;
    font-style: italic;
    color: var(--brass);
    line-height: 1.3;
}
/* Punkt na osi */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -50px; top: 8px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--brass);
    box-shadow: 0 0 0 4px var(--deep), 0 0 0 6px rgba(200, 151, 42, 0.25);
}
@media (max-width: 768px) {
    .timeline-item::before { left: -14px; }
}
@media (max-width: 480px) {
    .timeline-item::before { left: -14px; }
}

.timeline-body h3 {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--foam);
    margin-bottom: var(--space-sm);
}
.timeline-body > p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: var(--space-lg);
    max-width: 540px;
}
.timeline-photo { margin-bottom: var(--space-lg); }
.timeline-photo img {
    border-radius: var(--radius-md);
    max-width: 480px;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
@media (max-width: 600px) {
    .timeline-photo img { aspect-ratio: 4 / 3; }
}

/* ============================================================
   KONTAKT
   ============================================================ */
.section-kontakt {
    background: var(--navy);
    padding: var(--space-2xl) 0;
    border-top: 1px solid rgba(200, 151, 42, 0.08);
}
.kontakt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}
@media (max-width: 900px) {
    .kontakt-grid { grid-template-columns: 1fr; }
    .kontakt-photo { display: none; }
}
.kontakt-details {
    margin: var(--space-lg) 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.kontakt-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-family: var(--font-ui);
    font-size: 1rem;
    color: var(--sand);
}
.kontakt-icon {
    color: var(--brass);
    flex-shrink: 0;
}
.kontakt-item a:hover { color: var(--gold); }
.kontakt-placeholder { opacity: 0.6; font-style: italic; }

.kontakt-social {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-top: var(--space-sm);
}
.social-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    background: rgba(200, 151, 42, 0.08);
    border: 1px solid rgba(200, 151, 42, 0.18);
    border-radius: var(--radius-sm);
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--sand);
    min-height: 48px;
    transition: background var(--dur-mid), border-color var(--dur-mid),
                color var(--dur-mid), transform var(--dur-mid) var(--ease-out);
}
.social-link:hover {
    background: rgba(200, 151, 42, 0.18);
    border-color: var(--brass);
    color: var(--gold);
    transform: translateY(-2px);
}
.social-link:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 3px;
}
.kontakt-photo img {
    border-radius: var(--radius-md);
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--deep);
    border-top: 1px solid rgba(200, 151, 42, 0.08);
    padding: var(--space-xl) 0;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-lg);
}
@media (max-width: 600px) {
    .footer-inner { flex-direction: column; text-align: center; }
}
.footer-logo img {
    height: 90px; width: auto;
    background: white;
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    opacity: 0.75;
    transition: opacity var(--dur-fast);
}
.footer-logo:hover img { opacity: 1; }
.footer-copy {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.04em;
}
.footer-social { display: flex; gap: var(--space-md); }
.footer-social a {
    color: var(--muted);
    transition: color var(--dur-fast);
    min-width: 44px; min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-social a:hover { color: var(--gold); }
.footer-social a:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* ============================================================
   ANIMACJE SCROLL
   ============================================================ */
@keyframes fade-up {
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
    opacity: 0;
    transform: translateX(-28px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
    opacity: 0;
    transform: translateX(28px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* Opóźnienia dla siatki liczb */
.liczba-item:nth-child(1) { transition-delay: 0ms; }
.liczba-item:nth-child(2) { transition-delay: 80ms; }
.liczba-item:nth-child(3) { transition-delay: 160ms; }
.liczba-item:nth-child(4) { transition-delay: 240ms; }

/* ============================================================
   REDUCED MOTION — dostępność
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .hero-bg { animation: none; }
    .reveal, .reveal-left, .reveal-right {
        opacity: 1; transform: none; transition: none;
    }
    .hero-eyebrow, .hero-tagline, .hero-actions,
    .hero-title span {
        opacity: 1; transform: none; animation: none;
    }
}
