:root {
    --primary: #0f172a;      /* Głęboki granat/czarny */
    --secondary: #1e293b;    /* Jaśniejszy granat */
    --accent: #f1c40f;       /* Złoty */
    --accent-glow: rgba(241, 196, 15, 0.4);
    --text-main: #e2e8f0;    /* Jasny szary */
    --text-muted: #94a3b8;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, .serif { font-family: 'Lora', serif; }

/* --- ANIMACJE --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    /* ZMIANA: Dodano więcej światła w centrum gradientu */
    background: radial-gradient(circle at center, #2c3e50 0%, #0f172a 70%); 
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
}

/* Tło z drobinkami (opcjonalnie CSS only) */
.hero::before {
    content: "";
    position: absolute;
    width: 100%; height: 100%;
    background-image: radial-gradient(var(--glass-border) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.1;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
}

.hero-logo {
    width: 140px;
    margin-bottom: 20px;
    border-radius: 20px; 
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 30px;
}

.hero-btn {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: 0.3s;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.hero-btn:hover {
    background: var(--accent);
    color: var(--primary);
    box-shadow: 0 0 30px var(--accent-glow);
}

/* --- STATS SECTION --- */
.stats-section {
    padding: 80px 20px;
    background: var(--secondary);
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 40px 20px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent);
    font-family: 'Lora', serif;
    display: block;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- MEDIA SECTION (The Interactive Part) --- */
.media-section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--white);
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.media-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.media-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(241, 196, 15, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.media-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
    opacity: 0.8;
}

.media-date {
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.media-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
    line-height: 1.4;
}

.media-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.media-link {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

.media-link:hover { color: var(--accent); gap: 12px; }

/* Ukrywanie kart powyżej limitu */
.media-card.hidden { display: none; }

.load-more-container {
    text-align: center;
    margin-top: 50px;
}

/* --- VIDEO SECTION --- */
.video-section {
    padding: 100px 20px;
    background: linear-gradient(to bottom, var(--primary), #000);
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

/* --- THANK YOU & GALLERY --- */
.content-block {
    padding: 100px 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.thank-you-text {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.gallery-scroller {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px;
    scrollbar-width: none; /* Firefox */
}
.gallery-scroller::-webkit-scrollbar { display: none; } /* Chrome */

.gallery-img {
    height: 300px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: 0.3s;
    border: 1px solid var(--glass-border);
}

.gallery-img:hover { transform: scale(1.05); border-color: var(--accent); }

/* --- FOOTER --- */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 80px 20px 30px;
    text-align: center;
    background: #050a15;
}

.footer-contact {
    background: var(--glass);
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    margin: 0 auto 50px;
    border: 1px solid var(--glass-border);
}

.footer-contact h3 { color: var(--accent); margin-bottom: 15px; }
.contact-link { color: var(--white); font-size: 1.2rem; text-decoration: none; border-bottom: 2px solid var(--accent); }

.amdg {
    margin-top: 40px;
    letter-spacing: 5px;
    color: var(--text-muted);
    font-weight: 700;
    opacity: 0.5;
}

/* RWD */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .media-grid { grid-template-columns: 1fr; }
}

/* --- LOGO CAROUSEL (Nowość) --- */
.logo-carousel {
    overflow: hidden;
    padding: 40px 0;
    position: relative;
    width: 100%;
    /* Efekt zanikania po bokach (maska gradientowa) */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    margin-bottom: 50px;
}

.logo-track {
    display: flex;
    gap: 60px;
    width: max-content;
    animation: scrollLogos 60s linear infinite; 
}

/* Kiedy najedziesz myszką, karuzela zwalnia lub staje (opcjonalne) */
.logo-track:hover {
    animation-play-state: paused;
}

.carousel-logo-item {
    height: 40px; /* Wysokość logotypów */
    width: auto;
    filter: grayscale(100%) opacity(0.5); /* Domyślnie szare i przygaszone */
    transition: all 0.3s ease;
    object-fit: contain;
}

.carousel-logo-item:hover {
    filter: grayscale(0%) opacity(1); /* Kolor po najechaniu */
    transform: scale(1.1); /* Lekkie powiększenie */
}

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Przesuwamy o połowę (bo duplikujemy listę) */
}

/* Dostosowanie dla mobilnych */
@media (max-width: 768px) {
    .logo-track { gap: 30px; }
    .carousel-logo-item { height: 30px; }
}

.carousel-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    /* Usuwamy ewentualne obramowania linków */
    border: none; 
    outline: none;
}