/* ============================================================
   ZMIENNE & RESET
   ============================================================ */
:root {
    --bg-primary:      #0d0d0d;
    --bg-secondary:    #111111;
    --bg-card:         #161616;
    --text-primary:    #f0f0f0;
    --text-muted:      #888888;
    --accent-gold:     #c9952a;
    --accent-gold-lt:  #dba93a;
    --accent-red:      #8b1a1a;
    --border:          #2a2a2a;
    --font-display:    'Playfair Display', Georgia, serif;
    --font-body:       'Inter', system-ui, -apple-system, sans-serif;
    --nav-h:           76px;
    --ease:            0.3s ease;
    --shadow:          0 8px 32px rgba(0,0,0,0.5);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

img   { max-width: 100%; height: auto; display: block; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; }

/* ============================================================
   UTILITIES
   ============================================================ */
.accent { color: var(--accent-gold); }

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 2rem;
}

.section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 0.9rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto;
    font-size: 1rem;
}

/* ============================================================
   ANIMACJE WEJŚCIA
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger dla elementów siatki */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.1s; }
.reveal:nth-child(6) { transition-delay: 0.2s; }

/* Hero fade-in (ładuje się od razu) */
.fade-in {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
}
.fade-in:nth-child(1) { animation-delay: 0.25s; }
.fade-in:nth-child(2) { animation-delay: 0.45s; }
.fade-in:nth-child(3) { animation-delay: 0.65s; }
.fade-in:nth-child(4) { animation-delay: 0.85s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   PRZYCISKI
   ============================================================ */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all var(--ease);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: #000;
}
.btn-primary:hover {
    background-color: var(--accent-gold-lt);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201,149,42,0.35);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.btn-full { width: 100%; }

.btn-fb {
    margin-top: 1rem;
    width: 100%;
    display: block;
    border-color: #1877f2;
    color: #1877f2;
}
.btn-fb:hover {
    background-color: #1877f2;
    color: #fff;
    border-color: #1877f2;
}

/* ============================================================
   NAWIGACJA
   ============================================================ */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: background-color var(--ease), border-color var(--ease);
    border-bottom: 1px solid transparent;
}
#navbar.scrolled {
    background-color: rgba(13,13,13,0.96);
    border-bottom-color: var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent-gold);
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1001;
}

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

.nav-links a {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color var(--ease);
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background-color: var(--accent-gold);
    transition: width var(--ease);
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    border: 1px solid var(--accent-gold) !important;
    padding: 0.45rem 1.1rem;
    color: var(--accent-gold) !important;
    transition: all var(--ease) !important;
}
.nav-cta:hover {
    background-color: var(--accent-gold) !important;
    color: #000 !important;
}
.nav-cta::after { display: none !important; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    position: relative;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 24px; height: 2px;
    background-color: var(--text-primary);
    transition: all var(--ease);
    transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: var(--nav-h);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    min-height: calc(100vh - var(--nav-h));
}

.hero-subtitle {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 1.1rem;
}

.hero-title {
    font-size: clamp(3rem, 6.5vw, 5.5rem);
    font-weight: 900;
    line-height: 1.0;
    margin-bottom: 1.6rem;
}

.hero-motto {
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    border-left: 3px solid var(--accent-gold);
    padding-left: 1.2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Ramka zdjęcia z efektem złotego obrysu */
.hero-image {
    display: flex;
    justify-content: center;
    padding: 20px 20px 0 0;
}

.hero-image-frame {
    position: relative;
    width: 100%;
    max-width: 440px;
}
.hero-image-frame::before {
    content: '';
    position: absolute;
    top: -16px; right: -16px;
    width: 100%; height: 100%;
    border: 2px solid var(--accent-gold);
    opacity: 0.45;
    pointer-events: none;
    transition: opacity var(--ease);
}
.hero-image-frame:hover::before {
    opacity: 0.8;
}
.hero-image-frame img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 560px;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(15%) contrast(1.05);
}

/* Wskaźnik przewijania */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}
.hero-scroll span {
    display: block;
    width: 1px; height: 60px;
    background: linear-gradient(to bottom, var(--accent-gold), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
    0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
    40%  { opacity: 1; }
    100% { opacity: 0; transform: scaleY(1); transform-origin: top; }
}

/* ============================================================
   O MARIUSZU
   ============================================================ */
#o-mariuszu {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4.5rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    object-position: center top;
    border: 1px solid var(--border);
    filter: grayscale(25%) contrast(1.08);
    transition: filter 0.5s ease;
}
.about-image img:hover { filter: grayscale(0%) contrast(1.05); }

.about-text {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-size: 1rem;
    line-height: 1.85;
}
.about-text strong { color: var(--text-primary); font-weight: 600; }
.about-text em     { color: var(--text-primary); font-style: italic; }

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.75rem;
    padding: 0;
}
.tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-gold);
    border: 1px solid rgba(201,149,42,0.45);
    padding: 0.35rem 0.9rem;
    transition: border-color var(--ease), background-color var(--ease);
}
.tag:hover {
    border-color: var(--accent-gold);
    background-color: rgba(201,149,42,0.08);
}

/* Statystyki */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background-color: var(--border);
    border: 1px solid var(--border);
}
.stat {
    background-color: var(--bg-secondary);
    padding: 2.2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: background-color var(--ease);
}
.stat:hover { background-color: var(--bg-card); }
.stat-number {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1;
}
.stat-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ============================================================
   FILMY & OPINIE
   ============================================================ */
#filmy { background-color: var(--bg-primary); }

.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.video-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.video-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.video-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    background-color: #000;
    overflow: hidden;
}
.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-info { padding: 1.4rem; }
.video-info h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    letter-spacing: 0.01em;
}
.video-info p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ============================================================
   GALERIA
   ============================================================ */
#galeria {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 4px;
}
.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item {
    overflow: hidden;
    cursor: zoom-in;
    position: relative;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease, filter 0.55s ease;
    filter: grayscale(35%) brightness(0.82);
}
.gallery-item:hover img {
    transform: scale(1.06);
    filter: grayscale(0%) brightness(1);
}
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 0px solid var(--accent-gold);
    transition: border-width 0.3s ease;
    pointer-events: none;
    z-index: 1;
}
.gallery-item:hover::after { border-width: 3px; }

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.96);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    cursor: default;
}
.lightbox-close {
    position: absolute;
    top: 1.2rem; right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity var(--ease), transform var(--ease);
    font-family: var(--font-body);
    font-weight: 300;
}
.lightbox-close:hover { opacity: 1; transform: scale(1.1); }

/* ============================================================
   KONTAKT
   ============================================================ */
#kontakt { background-color: var(--bg-primary); }

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 5rem;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.form-group label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.form-group input,
.form-group textarea {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.85rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color var(--ease);
    outline: none;
    width: 100%;
    resize: vertical;
    appearance: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent-gold); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: #3d3d3d; }

.form-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    min-height: 1.2rem;
    text-align: center;
}
.form-note.success { color: var(--accent-gold); }
.form-note.error   { color: #e05555; }

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-top: 0.5rem;
}
.contact-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}
.contact-icon {
    color: var(--accent-gold);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}
.contact-item h4 {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 0.35rem;
}
.contact-item p,
.contact-item a {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.contact-item a:hover { color: var(--accent-gold); }

/* ============================================================
   STOPKA
   ============================================================ */
footer {
    border-top: 1px solid var(--border);
    padding: 1.75rem 2rem;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.footer-nav {
    display: flex;
    gap: 2rem;
}
.footer-nav a {
    color: var(--text-muted);
    font-size: 0.78rem;
    transition: color var(--ease);
}
.footer-nav a:hover { color: var(--accent-gold); }

/* ============================================================
   RESPONSYWNOŚĆ — TABLET (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .videos-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-container { gap: 3.5rem; }
}

/* ============================================================
   RESPONSYWNOŚĆ — ŚREDNI TABLET (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
        padding-top: 3rem;
        min-height: auto;
    }
    .hero-text  { order: 2; }
    .hero-image { order: 1; padding: 16px 16px 0 0; justify-content: center; }
    .hero-image-frame { max-width: 280px; }
    .hero-image-frame img { height: 360px; }
    .hero-buttons { justify-content: center; }
    .hero-motto {
        text-align: left;
        max-width: 380px;
        margin-left: auto;
        margin-right: auto;
    }

    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-image { order: 2; }
    .about-content { order: 1; }
    .about-image img { height: 320px; }

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

/* ============================================================
   RESPONSYWNOŚĆ — MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
    :root { --nav-h: 64px; }

    .section-container { padding: 72px 1.5rem; }

    /* Hamburger menu fullscreen */
    .hamburger { display: flex; }

    .nav-links {
        display: none;
        position: fixed;
        inset: 0;
        background-color: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        z-index: 999;
    }
    .nav-links.open { display: flex; }
    .nav-links a {
        font-size: 1.1rem;
        letter-spacing: 0.14em;
        color: var(--text-primary);
    }
    .nav-cta {
        font-size: 1.1rem !important;
        padding: 0.65rem 2rem !important;
    }

    /* Galeria 2-kolumnowa */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 160px;
    }
    .gallery-item.large {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* ============================================================
   RESPONSYWNOŚĆ — MAŁE MOBILE (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 210px;
    }
    .hero-title { font-size: clamp(2.6rem, 13vw, 4rem); }
    .hero-image-frame { max-width: 220px; }
    .hero-image-frame img { height: 280px; }
}

/* ============================================================
   ORIENTACJA POZIOMA — TELEFON
   ============================================================ */
@media (max-height: 500px) and (orientation: landscape) {
    #hero { min-height: auto; }
    .hero-container { padding: 1.5rem; min-height: auto; gap: 2rem; }
    .hero-image-frame img { height: 260px; }
    .hero-title { font-size: clamp(2rem, 5vw, 3rem); }
}
