/* ========================================= */
/* 1. ZMIENNE I RESET */
/* ========================================= */

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    padding-top: var(--header-height);
    background-color: #fff;
    counter-reset: dayCounter;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
svg { max-width: 100%; }

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.mb-10 { margin-bottom: 10px; }
.mt-30 { margin-top: 30px; }

/* ========================================= */
/* 2. BUTTONS & LINKS */
/* ========================================= */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 28px; border-radius: var(--border-radius); font-weight: 700;
    cursor: pointer; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.5px;
    gap: 8px; border: 2px solid transparent;
}
.btn-primary { background-color: var(--primary-color); color: var(--white); border-color: var(--primary-color); }
.btn-primary:hover { background-color: var(--primary-hover); border-color: var(--primary-hover); }

.btn-secondary-action { background-color: var(--secondary-color); color: var(--white); border-color: var(--secondary-color); }
.btn-secondary-action:hover { background-color: var(--secondary-hover); border-color: var(--secondary-hover); }

.btn-gray { background-color: #f3f4f6; color: #333; border-color: #f3f4f6; }
.btn-gray:hover { background-color: #e5e7eb; border-color: #e5e7eb; color: #111; }

.text-link {
    font-weight: 700; text-transform: uppercase; font-size: 0.9rem;
    color: var(--primary-color); margin-right: 10px; position: relative; white-space: nowrap; 
}
.text-link:hover { text-decoration: underline; color: var(--primary-hover); }
.full-width { width: 100%; text-align: center; }

/* ========================================= */
/* 3. HEADER & MENU */
/* ========================================= */
.site-header {
    background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed; top: 0; width: 100%; z-index: 1000; height: var(--header-height);
    display: flex; align-items: center;
}
.header-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.header-left-group { display: flex; align-items: center; }
.logo { flex-shrink: 0; width: 220px; display: flex; align-items: center; }
.logo img { max-height: 60px; width: auto; }
.desktop-nav { margin-left: 30px; }
.nav-list { display: flex; gap: 18px; }
.nav-list a { font-weight: 600; text-transform: uppercase; font-size: 0.85rem; white-space: nowrap; }
.nav-list a:hover, .nav-list a.active { color: var(--primary-color); }

.header-right { display: flex; align-items: center; gap: 10px; }
.lang-dropdown { position: relative; margin-left: 15px; }
.lang-btn { background: none; border: none; font-weight: bold; cursor: pointer; font-size: 1rem; padding: 10px; display: flex; align-items: center; gap: 5px; }
.lang-content { display: none; position: absolute; right: 0; top: 100%; background-color: var(--white); min-width: 80px; box-shadow: 0 8px 16px rgba(0,0,0,0.2); z-index: 1; border: 1px solid #eee; }
.lang-content a { display: block; padding: 10px 15px; color: var(--text-color); font-weight: bold; }
.lang-dropdown.active .lang-content { display: block; }
.mobile-menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-color); margin-right: 15px; }

/* SIDEBAR MOBILNY */
.mobile-sidebar { position: fixed; top: 0; left: 0; width: 300px; height: 100%; background: var(--white); z-index: 2000; transform: translateX(-100%); transition: transform 0.3s ease-in-out; box-shadow: 4px 0 15px rgba(0,0,0,0.1); display: flex; flex-direction: column; padding: 30px; }
.mobile-sidebar.active { transform: translateX(0); }
.mobile-sidebar-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1999; }
.mobile-sidebar-overlay.active { display: block; }
.close-sidebar { align-self: flex-end; background: none; border: none; font-size: 30px; cursor: pointer; margin-bottom: 20px; }
.sidebar-logo-container { margin-bottom: 30px; width: 180px; }
.sidebar-nav { list-style: none; margin-bottom: 40px; }
.sidebar-nav li { margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.sidebar-nav li a { font-size: 1.2rem; font-weight: 600; color: var(--text-color); }
.sidebar-nav li a.active { color: var(--primary-color); }
.sidebar-cta { margin-bottom: 30px; }
.sidebar-lang { font-size: 1.2rem; font-weight: bold; color: #ccc; margin-top: 20px; }
.sidebar-lang .lang-option.active { color: var(--primary-color); }

/* ========================================= */
/* 4. HERO & COUNTDOWN */
/* ========================================= */
.hero { 
    min-height: 85vh; 
    background-color: #000;
    position: relative; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: var(--white); 
    flex-direction: column; 
    padding-bottom: 50px; 
    overflow: hidden; 
}

.hero-video {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 0;
}
.hero-overlay { 
    position: absolute; top: 0; left: 0; right: 0; bottom: 0; 
    background: rgba(0,0,0,0.6); z-index: 1; 
}

.hero-content { 
    position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 20px; width: 100%; 
}
.hero-meta { display: flex; gap: 15px; font-size: 1.3rem; font-weight: 300; text-transform: uppercase; letter-spacing: 2px; color: #f0f0f0; }
.event-title { font-size: 4rem; font-weight: 800; line-height: 1.1; margin: 10px 0 30px 0; word-wrap: break-word; }

/* ========================================= */
/* --- HERO STAMP (PIECZĄTKA) --- */
/* ========================================= */

/* Upewniamy się, że kontener rodzic ma pozycję relative, 
   aby pieczątka pozycjonowała się względem niego, a nie okna */
.hero-container {
    position: relative;
}

.hero-stamp {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 10;
    transform: rotate(15deg); /* Lekki obrót jak przybita pieczątka */
    animation: stampIn 1s ease-out forwards; /* Animacja "wbicia" */
    opacity: 0; /* Startowa przezroczystość dla animacji */
}

.stamp-inner {
    width: 160px;
    height: 160px;
    background-color: rgba(214, 29, 47, 0.9); /* Twój czerwony kolor z lekką przezroczystością */
    border: 3px solid #fff;
    border-radius: 50%; /* Koło */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    line-height: 1.3;
    box-shadow: 0 0 0 5px rgba(214, 29, 47, 0.5), /* Zewnętrzna poświata */
                0 10px 20px rgba(0,0,0,0.4); /* Cień pod spodem */
    backdrop-filter: blur(4px); /* Efekt szkła (rozmycie tła pod spodem) */
}

.stamp-inner span {
    padding: 10px;
    border: 1px dashed rgba(255,255,255,0.5); /* Wewnętrzna przerywana ramka */
    border-radius: 50%;
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animacja wjazdu pieczątki */
@keyframes stampIn {
    0% {
        opacity: 0;
        transform: scale(3) rotate(15deg); /* Startuje powiększona */
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(15deg); /* Ląduje w normalnym rozmiarze */
    }
}

/* Responsywność - na mniejszych ekranach */
@media (max-width: 1200px) {
    .hero-stamp {
        right: 20px;
        top: 20px;
    }
    .stamp-inner {
        width: 130px;
        height: 130px;
        font-size: 0.75rem;
    }
    .stamp-inner span {
        width: 105px;
        height: 105px;
    }
}

@media (max-width: 768px) {
    /* Na telefonach przesuwamy ją, żeby nie zasłaniała tekstu, 
       albo zmniejszamy jeszcze bardziej */
    .hero-stamp {
        position: relative; /* Zmieniamy na relative, żeby była w przepływie */
        top: auto;
        right: auto;
        transform: rotate(0);
        margin: 0 auto 30px auto; /* Wyśrodkowana nad tekstem */
        animation: none; /* Wyłączamy animację wbicia na mobile */
        opacity: 1;
    }
    
    .stamp-inner {
        width: auto;
        height: auto;
        border-radius: 4px; /* Na mobile robimy z niej prostokątną etykietę */
        background-color: var(--primary-color);
        padding: 8px 20px;
        box-shadow: none;
        border: none;
    }
    
    .stamp-inner span {
        border: none;
        width: auto;
        height: auto;
        padding: 0;
    }
    
    /* Ukrywamy łamanie linii na mobile, żeby tekst był w jednej linii (opcjonalnie) */
    .stamp-inner span br {
        display: none;
    }
    .stamp-inner span::after {
        content: " "; /* Spacja zamiast entera */
    }
}

/* LICZNIK (KWADRATOWY, SZKLANY) */
.countdown-wrapper { 
    text-align: center; width: 100%; max-width: 450px; margin: 0 auto; 
}
.countdown-heading { text-transform: uppercase; font-size: 1rem; margin-bottom: 15px; letter-spacing: 1px; color: #ccc; font-weight: 400; }
.flip-timer { display: flex; justify-content: center; gap: 10px; flex-wrap: nowrap; }

.flip-box {
    background: rgba(34, 34, 34, 0.85); 
    backdrop-filter: blur(5px);
    color: #fff;
    padding: 15px 5px; 
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    flex: 1; min-width: 0; position: relative; overflow: hidden;
}
.flip-box::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 50%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 100%);
    border-bottom: 1px solid rgba(0,0,0,0.5);
}
.flip-number {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: clamp(1.8rem, 4.5vw, 4rem); 
    font-weight: bold; line-height: 1; margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}
.flip-label { font-size: 0.7rem; color: #aaa; letter-spacing: 1px; font-family: sans-serif; }

/* ========================================= */
/* 5. SEKCJE GŁÓWNE (ABOUT, TOPICS, CALENDAR) */
/* ========================================= */
.section { padding: 80px 0; }
.section-heading { font-size: 2.5rem; margin-bottom: 0; color: var(--text-color); line-height: 1.2; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 50px; color: var(--text-color); }

.calendar-overlap-section { position: relative; z-index: 10; margin-top: -80px; margin-bottom: 60px; }
.calendar-box { background: var(--white); padding: 40px; box-shadow: 0 15px 30px rgba(0,0,0,0.1); text-align: center; border-radius: var(--border-radius); }
.calendar-title { font-size: 2rem; margin-bottom: 30px; color: var(--text-color); }
.calendar-buttons-large { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.btn-cal { font-size: 1.1rem; padding: 16px 40px; min-width: 200px; }

.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.heading-with-icon { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }
.center-icon-heading { justify-content: center; } 
.heading-icon { width: 40px; height: 40px; stroke: var(--primary-color); }
.sub-heading { margin-top: 30px; margin-bottom: 15px; }
.intro-text, .text-content p { margin-bottom: 20px; font-size: 1.05rem; color: #555; text-align: justify; }
.check-list li, .text-content li { margin-bottom: 12px; padding-left: 35px; position: relative; font-weight: 500; }
.check-list li::before, .text-content li::before { content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ce246b' stroke-width='3' stroke-linecap='square' stroke-linejoin='miter'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: contain; }
.btn-group { margin-top: 40px; display: flex; gap: 15px; }

.bg-light { background-color: var(--bg-light); }
.grid-3-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.card { background: var(--white); padding: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); text-align: left; transition: var(--transition); border-radius: var(--border-radius); height: 100%; }
.card:hover { transform: translateY(-5px); }
.card-icon { font-size: 2rem; color: var(--secondary-color); margin-bottom: 15px; }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--text-color); }
.card p { font-size: 0.95rem; color: #666; }

/* ========================================= */
/* 6. PRELEGENCI (POLAROID STYLE - OSTRE) */
/* ========================================= */
.speakers-grid {
    display: flex;
    flex-wrap: wrap;           /* Zawijanie do nowej linii */
    justify-content: center;   /* Wyśrodkowanie kart */
    gap: 40px;                 /* Odstępy między kartami */
    margin-bottom: 40px; 
    max-width: 1400px;         /* Opcjonalnie: limit szerokości kontenera */
    margin-left: auto;
    margin-right: auto;
}

.speaker-card.new-style {
    text-align: left;
    background: #fff; 
    padding: 15px 15px 25px 15px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.08); 
    transition: var(--transition);
    border-radius: 0; /* Ostre krawędzie */
    flex: 0 1 280px;  /* 0: nie rośnij, 1: malej, 280px: baza szerokości */
    width: 100%;      /* Zapewnia responsywność na mobile */
    min-width: 250px; /* Minimalna szerokość karty */
}
.speaker-card.new-style:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.15); }

.speaker-img-box { position: relative; overflow: hidden; margin-bottom: 15px; border-radius: 0; }
.speaker-img-box img { width: 100%; display: block; transition: var(--transition); border-radius: 0; }
.speaker-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; cursor: pointer; border-radius: 0; }
.speaker-img-box:hover .speaker-overlay { opacity: 1; }
.btn-small-overlay { padding: 8px 16px; font-size: 0.8rem; box-shadow: 0 2px 5px rgba(0,0,0,0.3); }

.speaker-info-below .sp-name { font-size: 1.3rem; font-weight: 700; color: var(--text-color); margin-bottom: 0px; line-height: 1.2; }
.speaker-info-below .sp-position { font-size: 0.95rem; color: #666; margin-bottom: 0px; line-height: 1.4; }
.speaker-info-below .sp-company { font-size: 0.95rem; color: var(--primary-color); font-weight: 700; text-transform: uppercase; margin-top: 2px; }
.center-btn { text-align: center; }

/* ========================================= */
/* 7. PARTNERZY */
/* ========================================= */
.section.partners { background-color: var(--bg-partners); }
.partner-subsection { margin-bottom: 60px; }
.partner-subsection:last-child { margin-bottom: 0; }
.partner-category-title { color: var(--text-color); font-size: 1.4rem; font-weight: bold; margin-bottom: 0; text-transform: uppercase; }

.logos-matrix { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }

.logo-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    padding: 10px;
    border-radius: 0; /* Ostre */
}
.logo-box:hover { border-color: var(--primary-color); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.logo-box img { opacity: 0.7; filter: grayscale(100%); transition: var(--transition); max-width: 100%; max-height: 100%; border-radius: 0; }
.logo-box:hover img { opacity: 1; filter: grayscale(0%); }

.logo-box.large { width: 220px; height: 120px; }
.logo-box.small { width: 160px; height: 90px; }

/* ========================================= */
/* 8. STOPKA */
/* ========================================= */
.site-footer { background: var(--bg-dark-gray); color: #ccc; padding: 60px 0 20px; font-size: 0.95rem; }
.footer-grid-revised { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; border-bottom: 1px solid #333; padding-bottom: 40px; margin-bottom: 30px; }
.footer-left-col { display: flex; flex-direction: column; }
.footer-heading { color: var(--white); margin-bottom: 20px; text-transform: uppercase; font-size: 1rem; letter-spacing: 1px; }

.footer-socials { display: flex; gap: 10px; flex-wrap: nowrap; }
.footer-socials a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: rgba(255,255,255,0.1); color: #fff; transition: var(--transition); flex-shrink: 0; border-radius: 0; }
.footer-socials a:hover { background: var(--primary-color); }
.footer-socials svg { width: 18px; height: 18px; }

.footer-logo { max-height: 40px; opacity: 0.8; transition: var(--transition); display: block; }
.footer-logo:hover { opacity: 1; }

.footer-links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 30px; list-style: none; }
.footer-links-grid li a { color: #ccc; transition: var(--transition); }
.footer-links-grid li a:hover { color: var(--primary-color); }
.footer-links-grid li.span-2 { grid-column: span 2; }

.footer-bottom { text-align: center; color: #777; font-size: 0.85rem; }
.copyright-link { color: #999; text-decoration: underline; }
.copyright-link:hover { color: var(--primary-color); }

/* ========================================= */
/* 9. MODAL */
/* ========================================= */
.modal {
    display: none; 
    position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    align-items: center; justify-content: center;
}

.modal-content {
    background-color: #fefefe;
    margin: 0; width: 90%; max-width: 700px; position: relative; 
    border-radius: 0; /* Ostre */
    display: flex; flex-direction: column; 
    height: 80vh; max-height: 80vh; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.close-modal { position: absolute; right: 20px; top: 15px; font-size: 30px; font-weight: bold; color: #888; cursor: pointer; z-index: 10; transition: color 0.3s; }
.close-modal:hover { color: var(--primary-color); }

.modal-header-block { display: flex; gap: 30px; padding: 40px 40px 20px 40px; border-bottom: 1px solid #eee; align-items: center; flex-shrink: 0; }
.modal-img-wrap { width: 150px; height: 150px; flex-shrink: 0; overflow: hidden; border-radius: 0; }
.modal-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.modal-details h3 { font-size: 1.8rem; margin-bottom: 5px; color: var(--text-color); }
.modal-position { font-size: 1rem; color: #666; margin-bottom: 2px; }
.modal-company { font-size: 1rem; color: var(--primary-color); font-weight: 700; text-transform: uppercase; margin-bottom: 15px; }

.modal-socials { display: flex; gap: 10px; }
.social-link { display: flex; justify-content: center; align-items: center; width: 36px; height: 36px; background: #f0f0f0; color: #555; transition: var(--transition); border-radius: 0; }
.social-link:hover { background: var(--primary-color); color: var(--white); }
.social-link svg { width: 18px; height: 18px; }

.modal-body-scroll { padding: 30px 40px; overflow-y: auto; flex: 1; }
.modal-text-content p { margin-bottom: 15px; font-size: 1rem; color: #555; text-align: justify; }


/* ========================================= */
/* 10. PODSTRONY (OGÓLNE) & AGENDA */
/* ========================================= */
.page-header { background: var(--bg-light); padding: 60px 0; text-align: center; border-bottom: 1px solid #e2e8f0; }
.page-title { font-size: 3rem; font-weight: 800; color: var(--text-color); margin-bottom: 20px; }
.page-intro { max-width: 800px; margin: 0 auto; font-size: 1.1rem; color: #555; }

/* AGENDA STYLES */
.agenda-tabs { display: flex; justify-content: center; gap: 20px; margin-bottom: 50px; flex-wrap: wrap; }
.tab-btn { background: transparent; border: 2px solid #ddd; padding: 15px 30px; cursor: pointer; text-align: center; min-width: 180px; transition: var(--transition); border-radius: 0; }
.tab-btn:hover { border-color: var(--primary-color); }
.tab-btn.active { background-color: var(--primary-color); border-color: var(--primary-color); color: #fff; box-shadow: 0 5px 15px rgba(214, 29, 47, 0.3); }
.tab-btn .day-label { display: block; font-size: 1.2rem; font-weight: 800; text-transform: uppercase; }
.tab-btn .day-date { display: block; font-size: 0.9rem; opacity: 0.8; }

.agenda-content { display: none; animation: fadeIn 0.5s ease; }
.agenda-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Elementy drukowane */
.print-only-header { display: none; }
.screen-text { display: block; }

/* Pozycje Agendy */
.agenda-item { display: flex; border-bottom: 1px solid #eee; padding: 30px 20px; align-items: flex-start; border-left: 4px solid transparent; transition: var(--transition); }
.agenda-item:last-child { border-bottom: none; }
.agenda-item:hover { background-color: #fcfcfc; }

/* LIVE */
.agenda-item.live {
    border-left-color: #25d366; 
    background-color: #f0fdf4;  
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
}
.agenda-item.live::after {
    content: '\f21e \00a0 TRWA TERAZ'; 
    font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; top: 10px; right: 20px;
    background: #25d366; color: #fff;
    padding: 4px 10px; font-size: 0.7rem;
    border-radius: 0;
    text-transform: uppercase; letter-spacing: 0.5px;
    animation: pulseBadge 2s infinite;
}
@keyframes pulseBadge { 0% { opacity: 1; } 50% { opacity: 0.7; } 100% { opacity: 1; } }

.agenda-time-col { width: 180px; flex-shrink: 0; display: flex; flex-direction: column; gap: 5px; }
.time-range { font-weight: 700; font-size: 1.1rem; color: var(--primary-color); }
.agenda-location { font-size: 0.85rem; color: #777; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.agenda-location::before { content: '\f3c5'; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 0.8rem; }

.agenda-details { flex-grow: 1; padding-left: 30px; }

/* TAGI (OSTRE KRAWĘDZIE) */
.agenda-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 0.75rem; text-transform: uppercase; font-weight: 700; padding: 6px 12px; border-radius: 0; margin-bottom: 10px; color: #fff; letter-spacing: 0.5px; }
.agenda-tag.keynote { background-color: var(--secondary-color); }
.agenda-tag.panel { background-color: #555; }
.agenda-tag.workshop { background-color: #ff9800; }
.agenda-tag.presentation { background-color: #8e44ad; }
.agenda-tag.casestudy { background-color: #16a085; }

/* BREAK (Rejestracja, Lunch, Networking) */
.agenda-item.break-item { 
    background-color: #fafafa; border-bottom: none; margin-bottom: 20px; 
    border-radius: 0; border: 1px solid #ddd; 
    align-items: flex-start; padding: 20px; flex-direction: column; 
}
@media (min-width: 769px) { .agenda-item.break-item { flex-direction: row; } }

.agenda-tag.break { 
    background-color: #fff; color: #444; font-size: 1rem; margin: 0;
    border: 1px solid #ccc; padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03); border-radius: 0; margin-bottom: 5px;
}
.tag-icon { color: inherit; margin-right: 5px; }

.agenda-topic { font-size: 1.4rem; font-weight: 700; margin-bottom: 10px; color: var(--text-color); line-height: 1.3; margin-top: 5px; }
.agenda-desc { color: #666; margin-bottom: 15px; line-height: 1.5; }

/* PRELEGENCI W AGENDZIE */
.agenda-speakers-list { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 15px; }
.agenda-speaker { display: flex; align-items: center; gap: 10px; background: #fff; padding: 5px 15px 5px 5px; border-radius: 0; border: 1px solid #e2e8f0; cursor: pointer; transition: var(--transition); }
.agenda-speaker:hover { border-color: var(--secondary-color); box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.agenda-speaker img { width: 40px; height: 40px; border-radius: 0; object-fit: cover; }
.agenda-speaker span { font-weight: 600; font-size: 0.9rem; color: var(--text-color); }

.agenda-speaker.moderator { background-color: #f9f9f9; }
.agenda-speaker.moderator .mod-label { display: block; font-size: 0.65rem; text-transform: uppercase; color: #ffb300; font-weight: 800; line-height: 1; margin-bottom: 2px; }

.agenda-actions { margin-top: 60px; display: flex; justify-content: center; gap: 20px; padding-top: 40px; border-top: 2px solid #eee; }

/* ========================================= */
/* 11. PRINT STYLES (PDF - FINALNA WERSJA)   */
/* ========================================= */

@page {
    margin: 1.5cm;
    size: auto; 
}

@media print {
    body { 
        padding: 0 !important; margin: 0 !important; 
        background: #fff !important; width: 100% !important; 
        -webkit-print-color-adjust: exact; /* Wymusza drukowanie kolorów tła */
        print-color-adjust: exact;
    }
    
    .site-header, .mobile-sidebar, .mobile-menu-toggle, .mobile-sidebar-overlay, 
    .site-footer, .agenda-tabs, .agenda-actions, .page-intro, .footer-bottom, 
    .agenda-item.live::after, .screen-text { 
        display: none !important; 
    }

    .page-header { padding-top: 30px !important; padding-bottom: 30px !important; }
    .agenda-section { padding: 40px 0 !important; }

    .print-only-header { display: flex; flex-direction: column; align-items: center; }
    .print-meta { display: flex; justify-content: center; gap: 20px; color: #666; font-size: 10pt; text-transform: uppercase; margin-bottom: 10px; }
    .print-main-title { font-size: 24pt; font-weight: 800; margin: 0; color: #000; }
    .print-sub-title { font-size: 16pt; font-weight: 400; margin: 5px 0 0 0; color: #444; text-transform: uppercase; }

    .agenda-content { display: block !important; opacity: 1 !important; visibility: visible !important; height: auto !important; page-break-inside: auto !important; }

    .agenda-content::before {
        /* Zwiększamy licznik o 1 dla każdego wystąpienia klasy */
        counter-increment: dayCounter;        
        display: block;
        font-size: 14pt;
        font-weight: bold;
        border-bottom: 2px solid #000;
        margin-bottom: 15px;
    }
    /* Składamy treść: Tekst + Numer dnia + Data z atrybutu HTML w zależności od wersji językowej */
    .lang-pl .agenda-content::before { content: "Dzień " counter(dayCounter) " - " attr(data-date); }
    .lang-en .agenda-content::before { content: "Day " counter(dayCounter) " - " attr(data-date); }

    .agenda-item { border-bottom: 1px solid #ccc; padding: 12px 0; break-inside: avoid; border-left: none !important; background: none !important; }
    .agenda-item.break-item { border: none; border-bottom: 1px solid #ccc; padding: 10px 0; margin: 0; }
    
    .agenda-time-col { width: 110px; }
    .time-range { color: #000; font-size: 11pt; font-weight: bold; }
    .agenda-location { color: #444; font-size: 9pt; }
    
    .agenda-topic { color: #000; font-size: 13pt; margin-bottom: 4px; }
    .agenda-desc { color: #333; font-size: 10pt; line-height: 1.3; margin-bottom: 8px; }

    /* Kolorowe tagi w PDF */
    .agenda-tag { display: inline-block !important; border: none !important; color: #fff !important; padding: 3px 8px !important; font-size: 8pt !important; margin-bottom: 5px !important; -webkit-print-color-adjust: exact; }
    .agenda-tag.keynote { background-color: #75c6e4 !important; }
    .agenda-tag.panel { background-color: #555 !important; }
    .agenda-tag.workshop { background-color: #ff9800 !important; }
    .agenda-tag.presentation { background-color: #8e44ad !important; }
    .agenda-tag.casestudy { background-color: #16a085 !important; }
    .agenda-tag.break { color: #000 !important; border: 1px solid #ccc !important; background: transparent !important; }

    /* Prelegenci w PDF - separacja kreskami */
    .agenda-speakers-list { margin-top: 5px; display: flex !important; flex-wrap: wrap; gap: 10px; }
    .agenda-speaker { display: flex !important; align-items: center; gap: 10px; }
    .agenda-speaker img { display: block !important; height: 40px; border-radius: 50%; object-fit: cover; }
    .agenda-speaker span { color: #000; font-size: 10pt; }
}

/* ========================================= */
/* 12. RWD */
/* ========================================= */
@media (max-width: 1100px) {
    .desktop-nav, .desktop-only-btn, .desktop-only-lang { display: none; }
    .mobile-menu-toggle { display: block; }
    .header-container { padding: 0 15px; }
}

@media (max-width: 768px) {
    .grid-2-col, .grid-3-col { grid-template-columns: 1fr; }
    .footer-grid-revised { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-left-col { align-items: center; }
    .footer-socials { justify-content: center; }
    .calendar-buttons-large { flex-direction: column; width: 100%; }
    .btn-cal { width: 100%; }
    .logo-box.large { width: 100%; height: auto; }
    .logo-box.small { width: 45%; height: auto; }
    
    /* Modal Fullscreen na Mobile */
    .modal-content { width: 100%; height: 100%; max-height: 100vh; max-width: none; }
    .modal-header-block { flex-direction: column; text-align: center; padding: 40px 20px 20px; }
    .modal-socials { justify-content: center; }
    .modal-body-scroll { padding: 20px; }
    
    /* Agenda Mobile */
    .agenda-item { flex-direction: column; }
    .agenda-time-col { width: 100%; margin-bottom: 10px; flex-direction: row; justify-content: space-between; align-items: center; border-bottom: 1px dashed #ddd; padding-bottom: 5px; }
    .agenda-details { padding-left: 0; }
    .agenda-actions { flex-direction: column; }
    .agenda-actions .btn { width: 100%; }
}

/* ========================================= */
/* --- PODSTRONA: PRELEGENCI --- */
/* ========================================= */

/* ZABEZPIECZENIE PROPORCJI ZDJĘĆ */
.speaker-img-box {
    aspect-ratio: 1 / 1; /* Wymusza kwadratowy kontener */
    overflow: hidden;
}

.speaker-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Kluczowe: kadruje zdjęcie do środka, nie spłaszcza go */
    display: block;
}

.speakers-page {
    background-color: var(--white);
    padding-bottom: 100px;
}

/* Wymuszamy 4 kolumny na dużych ekranach dla lepszej czytelności przy 15 osobach */
@media (min-width: 1200px) {
    .speakers-page .speakers-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
}

/* ========================================= */
/* --- PODSTRONA: AKTUALNOŚCI --- */
/* ========================================= */

.news-section {
    background-color: var(--white);
    padding-bottom: 80px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.news-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border-radius: 0; /* Ostre krawędzie */
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
}

/* Obrazek */
.news-img-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Standard newsowy, szerszy niż u prelegentów */
    overflow: hidden;
}

.news-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img-box img {
    transform: scale(1.05);
}

/* Kategoria na zdjęciu */
.news-category {
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 12px;
    z-index: 2;
}

/* Treść */
.news-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}
.news-meta i { color: var(--secondary-color); }

.news-title {
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 15px;
    font-weight: 700;
}

.news-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.news-title a:hover {
    color: var(--primary-color);
}

.news-excerpt {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.read-more-link {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    align-self: flex-start;
}

.read-more-link:hover {
    color: var(--primary-hover);
    gap: 12px; /* Efekt przesunięcia strzałki */
}

/* Paginacja */
.pagination-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    color: var(--text-color);
    font-weight: 700;
    transition: var(--transition);
    border-radius: 0; /* Ostre */
}

.pagination-btn:hover, .pagination-btn.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.pagination-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
    background: #f9f9f9;
}

/* RWD dla Aktualności */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================= */
/* --- PODSTRONA: POJEDYNCZY NEWS (SINGLE) --- */
/* ========================================= */

/* Nagłówek artykułu */
.article-header-section {
    background-color: var(--bg-light);
    padding: 80px 0 60px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.article-meta-top {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
}

.news-category-label {
    background-color: var(--primary-color);
    color: #fff;
    padding: 4px 10px;
    font-size: 0.75rem;
}

.article-main-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-color);
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.article-lead {
    font-size: 1.25rem;
    color: #444;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Kontener treści */
.article-body-section {
    background-color: #fff;
    padding-top: 50px;
}

.article-container {
    max-width: 900px; /* Nieco węższy kontener dla lepszego czytania */
    margin: 0 auto;
}

/* Zdjęcie główne */
.article-featured-image {
    width: 100%;
    margin-bottom: 50px;
}
.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Treść sformatowana (Rich Text) */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

/* Akapity */
.article-content p {
    margin-bottom: 25px;
}

/* Style tekstu */
.article-content strong, 
.article-content b {
    font-weight: 700;
    color: #000;
}

.article-content em, 
.article-content i {
    font-style: italic;
}

.article-content u {
    text-decoration: underline;
    text-decoration-color: var(--secondary-color);
    text-decoration-thickness: 2px;
}

.article-content s, 
.article-content del {
    text-decoration: line-through;
    color: #888;
}

.article-content a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s;
}
.article-content a:hover {
    color: var(--primary-hover);
    background-color: rgba(214, 29, 47, 0.05);
}

/* Nagłówki w treści */
.article-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-top: 50px;
    margin-bottom: 20px;
    color: var(--text-color);
    padding-left: 15px;
    border-left: 5px solid var(--secondary-color);
    line-height: 1.2;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 15px;
    color: var(--text-color);
}

/* Cytaty */
.article-content blockquote {
    margin: 40px 0;
    padding: 30px 40px;
    background-color: #f8fafc;
    border-left: 5px solid var(--primary-color);
    font-size: 1.25rem;
    font-style: italic;
    color: #444;
    position: relative;
    font-family: serif; /* Dla wyróżnienia cytatu */
}
.article-content blockquote::before {
    content: '\201C'; /* Cudzysłów otwierający */
    font-size: 4rem;
    position: absolute;
    top: -10px;
    left: 10px;
    color: rgba(0,0,0,0.1);
    font-family: sans-serif;
}

/* Listy */
.article-content ul, 
.article-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}
.article-content ul li {
    list-style-type: disc;
    margin-bottom: 10px;
    padding-left: 10px;
}
.article-content ul li::marker {
    color: var(--primary-color);
}

/* Media w treści (Generowane automatycznie przez JS) */
.article-media-block {
    margin: 40px 0;
    width: 100%;
    display: flex;       /* Centruje zawartość */
    flex-direction: column;
}

.article-media-block img {
    width: 100%;
    height: auto;
    display: block;
}

.img-caption {
    display: block;
    font-size: 0.85rem;
    color: #777;
    margin-top: 8px;
    font-style: italic;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    width: 100%;
}

/* Embedy Wideo (YouTube, Vimeo - domyślne 16:9) */
.embed-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* Proporcja 16:9 */
    overflow: hidden;
    background: #000; /* Tło na czas ładowania */
}

.embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Spotify (Resetuje proporcje wideo, ustawia stałą wysokość) */
.embed-container.spotify-embed {
    height: 152px; /* Standardowa wysokość paska Spotify */
    padding-bottom: 0; 
    background: transparent;
}

/* --- NAWIGACJA POD ARTYKUŁEM (Zaktualizowana) --- */
.post-navigation-container {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
    
    /* Używamy GRID dla stabilnej pozycji, nawet jak brakuje elementu */
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* Lewa | Środek (auto) | Prawa */
    gap: 20px;
    align-items: center;
}

.nav-news-btn {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    padding: 15px 20px;
    transition: var(--transition);
    background: #fff;
    
    /* Domyślnie czerwona ramka */
    border: 1px solid var(--primary-color);
    border-radius: 0; /* Ostre krawędzie */
}

/* Hover - delikatna zmiana tła zamiast zmiany ramki */
.nav-news-btn:hover {
    background-color: #fff0f0; /* Bardzo jasny czerwony */
    border-color: var(--primary-hover);
}

/* Pozycjonowanie w siatce */
.nav-news-btn.prev {
    grid-column: 1; 
    justify-self: start; /* Trzymaj się lewej */
    text-align: left;
    max-width: 300px;
    width: 100%;
}

/* Środkowy przycisk (Lista) */
.nav-news-btn.list {
    grid-column: 2; 
    justify-self: center; /* Zawsze na środku */
    
    flex-direction: row;
    align-items: center;
    gap: 10px;
    background-color: #333;
    color: #fff;
    border-color: #333; /* Czarna ramka dla przycisku listy */
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 15px 30px;
    white-space: nowrap;
}

.nav-news-btn.list:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Prawy przycisk (Następny) */
.nav-news-btn.next {
    grid-column: 3; 
    justify-self: end; /* Trzymaj się prawej */
    text-align: right;
    max-width: 300px;
    width: 100%;
}

/* Etykiety nawigacji */
.nav-news-btn .nav-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.nav-news-btn.next .nav-label {
    justify-content: flex-end; 
}
.nav-news-btn.prev .nav-label {
    justify-content: flex-start;
}

.nav-news-btn .nav-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.3;
    /* Obcinanie długich tytułów do 2 linii */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* RWD dla Nawigacji */
@media (max-width: 768px) {
    .post-navigation-container {
        grid-template-columns: 1fr; /* Jedna kolumna */
        gap: 15px;
    }
    
    .nav-news-btn.prev, 
    .nav-news-btn.list, 
    .nav-news-btn.next {
        grid-column: auto;
        justify-self: stretch; /* Rozciągnij na całą szerokość */
        text-align: center !important;
        max-width: none;
    }
    
    .nav-news-btn .nav-label {
        justify-content: center !important;
    }

    /* Zmieniamy kolejność na mobile: Poprzedni -> Następny -> Lista (na dole) */
    .nav-news-btn.prev { order: 1; }
    .nav-news-btn.next { order: 2; }
    .nav-news-btn.list { order: 3; margin-top: 10px; }
}

/* ========================================= */
/* --- PODSTRONA: PARTNERZY --- */
/* ========================================= */

.partners-page-section {
    background-color: var(--white);
    padding-bottom: 80px;
}

/* Wyśrodkowanie nagłówków kategorii */
.text-center { text-align: center; }
.mb-30 { margin-bottom: 30px; }
.mt-50 { margin-top: 50px; }

/* Separator między grupami */
.section-divider {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 60px auto;
    max-width: 800px;
}

/* ========================================= */
/* --- PODSTRONA: LOKALIZACJA --- */
/* ========================================= */

/* Sekcja Venue (Obiekt) */
.venue-section { padding-bottom: 50px; }

.venue-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.venue-label {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.venue-name {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-color);
}

.venue-desc {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 30px;
}

.venue-contact {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.vc-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 1rem;
}
.vc-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-top: 4px;
}

.venue-image img {
    width: 100%;
    height: auto;
    box-shadow: 20px 20px 0 #f0f0f0; /* Ozdobny cień - ostry */
}

/* Mapa */
.map-container iframe {
    filter: grayscale(100%); /* Opcjonalnie: czarno-biała mapa pasująca do stylu */
    transition: filter 0.3s;
}
.map-container iframe:hover {
    filter: grayscale(0%);
}

/* Transport (Karty) */
.transport-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.transport-card {
    background: #fff;
    padding: 30px;
    border: 1px solid #ddd;
    text-align: left;
    /* Usunięto transition i hover */
}

.tr-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.transport-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.transport-card p {
    font-size: 0.95rem;
    color: #666;
}

/* Hotele */
.hotels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.hotel-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    border-radius: 0;
}
.hotel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.hotel-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.hotel-img img {
    width: 100%; height: 100%; object-fit: cover;
}

.hotel-dist {
    position: absolute;
    bottom: 0; left: 0;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.8rem;
    padding: 5px 10px;
    font-weight: 700;
}

.hotel-info {
    padding: 25px;
}

.stars {
    color: #ffb300;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.hotel-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.hotel-info p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* RWD Lokalizacja */
@media (max-width: 900px) {
    .venue-grid { grid-template-columns: 1fr; }
    .venue-image { order: -1; margin-bottom: 30px; }
}

@media (max-width: 768px) {
    .transport-grid { grid-template-columns: 1fr; }
}

/* ========================================= */
/* --- PODSTRONA: KONTAKT (UPDATE) --- */
/* ========================================= */

.contact-people-section { padding-bottom: 60px; background-color: var(--white); }
.contact-people-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }

/* Karta Osoby */
.contact-person-card {
    background: #fff; border: 1px solid #e2e8f0; transition: var(--transition);
    border-radius: 0; display: flex; flex-direction: column;
}
.contact-person-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); transform: translateY(-5px); border-color: #cbd5e1;
}
.cp-img-box { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; border-bottom: 1px solid #eee; }
.cp-img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.contact-person-card:hover .cp-img-box img { transform: scale(1.05); }

.cp-details { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.cp-name { font-size: 1.4rem; font-weight: 800; margin-bottom: 5px; color: var(--text-color); }
.cp-position { font-size: 0.95rem; font-weight: 600; color: #666; margin-bottom: 15px; }

/* Dane tekstowe (email, tel) */
.cp-contact-data { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.cp-contact-data a { font-size: 0.9rem; color: #444; display: flex; align-items: center; gap: 8px; transition: color 0.3s; }
.cp-contact-data a:hover { color: var(--primary-color); }
.cp-contact-data i { color: var(--primary-color); width: 16px; text-align: center; }

/* Ikonki Social (na dole karty) */
.cp-socials-row {
    margin-top: auto; padding-top: 15px; border-top: 1px solid #eee;
    display: flex; gap: 10px;
}
/* Używamy stylów .social-link zdefiniowanych globalnie w stopce/modalu */


/* --- SEKCJA ORGANIZATORA (NOWY UKŁAD) --- */
.organizer-section { padding: 80px 0; background-color: var(--bg-light); border-top: 1px solid #e2e8f0; }

.organizer-box-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr; /* Logo | Dane | Newsletter */
    gap: 40px;
    background: #fff;
    padding: 50px;
    border: 1px solid #ddd;
    align-items: start;
}

.org-section-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 20px; color: var(--text-color); }

/* Kolumna 1: Brand */
.org-col-brand { display: flex; flex-direction: column; gap: 20px; }
.org-logo { max-width: 200px; }
.org-socials { display: flex; gap: 10px; margin-top: 10px; }

/* Kolumna 2: Info */
.org-col-info { border-left: 1px solid #eee; padding-left: 40px; }
.org-col-heading { font-size: 1.1rem; text-transform: uppercase; color: #888; margin-bottom: 20px; }
.org-details-list p { margin-bottom: 8px; font-size: 0.95rem; }
.org-details-list a { color: var(--primary-color); font-weight: 600; }
.org-separator { height: 1px; background: #eee; margin: 15px 0; width: 50px; }
.org-details-list span { color: #888; font-weight: 600; margin-right: 5px; }

/* Kolumna 3: Newsletter */
.org-col-newsletter {
    background: #1e1e1e; /* Ciemne tło dla kontrastu */
    padding: 30px;
    color: #fff;
    border-radius: 0;
}
/* Styl linku w checkboxie na ciemnym tle */
.nl-checkbox a {
    color: #fff; /* Biały kolor dla kontrastu */
    text-decoration: underline;
    transition: color 0.3s;
}

.nl-checkbox a:hover {
    color: var(--primary-color); /* Czerwony po najechaniu */
}

.news-form-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 5px; color: #fff; }
.news-form-subtitle { font-size: 0.9rem; color: #ccc; margin-bottom: 20px; text-transform: uppercase; }

.nl-inputs { display: flex; flex-direction: column; gap: 15px; margin-bottom: 15px; }
.nl-input {
    width: 100%; padding: 12px; background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2); color: #fff; font-size: 0.9rem;
    border-radius: 0;
}
.nl-input::placeholder { color: #aaa; }
.nl-input:focus { outline: none; border-color: var(--primary-color); background: rgba(255,255,255,0.15); }

.nl-checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 0.75rem; color: #ccc; margin-bottom: 20px; }
.nl-checkbox input { accent-color: var(--primary-color); margin-top: 3px; }

/* Komunikat sukcesu */
.nl-message { text-align: center; padding: 20px 0; animation: fadeIn 0.5s; }
.nl-message i { font-size: 3rem; color: #25d366; margin-bottom: 15px; }
.nl-message h4 { font-size: 1.5rem; margin-bottom: 5px; }

/* RWD Kontakt */
@media (max-width: 1024px) {
    .organizer-box-grid { grid-template-columns: 1fr; gap: 50px; }
    .org-col-info { border-left: none; padding-left: 0; border-top: 1px solid #eee; padding-top: 30px; }
}

/* ========================================= */
/* --- PODSTRONA: REJESTRACJA (FULL CSS) --- */
/* ========================================= */

.registration-section {
    padding-bottom: 80px;
}

/* --- LOGIKA KROKÓW (SPA) --- */
.registration-step {
    display: none;
}
.registration-step.active {
    display: block;
    animation: regFadeIn 0.4s ease-out;
}
@keyframes regFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- WIDOK 1: PAKIETY --- */
.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    padding: 40px 30px;
    background: #fff;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 0;
    flex: 1 1 300px;
    max-width: 380px;
    width: 100%;
}

.pricing-card:hover:not(.disabled) {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    background: #fffafa;
}

.pc-badge {
    position: absolute;
    top: 0; left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Pakiet niedostępny */
.pricing-card.disabled {
    opacity: 0.7;
    background: #f8f8f8;
    border-color: #ddd;
}
.pricing-card.disabled .btn {
    background-color: #ccc;
    border-color: #ccc;
    pointer-events: none;
}

.pc-name {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-color);
}

.pc-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color); /* Zawsze czerwony */
    margin-bottom: 20px;
}

.pc-desc {
    flex-grow: 1;
    margin-bottom: 30px;
}

.pc-desc ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.pc-desc li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    font-size: 0.95rem;
    position: relative;
    padding-left: 25px;
}

.pc-desc li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.pricing-card .btn {
    margin-top: auto; /* Pcha CTA na dół */
}

/* --- WIDOK 2: LAYOUT --- */
.reg-layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Przycisk powrotu */
.back-btn-styled {
    background: none;
    border: none;
    color: #666;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    transition: color 0.3s;
}
.back-btn-styled:hover {
    color: var(--primary-color);
}

/* SEKCJE FORMULARZA */
.reg-section-block {
    margin-bottom: 50px;
}

.reg-section-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 25px;
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
    color: var(--text-color);
}

.reg-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
}
.form-field.full { grid-column: span 2; }
.form-field.half { grid-column: span 1; }

.form-field label {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #444;
}

.form-field input, 
.form-field select, 
.form-field textarea {
    padding: 12px 15px;
    border: 1px solid #ccc;
    font-size: 1rem;
    border-radius: 0;
    transition: border 0.3s;
}

.form-field input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* POLA Z PRZYCISKIEM OBOK (NIP / KOD) */
.input-with-button, 
.discount-container {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.input-with-button input, 
.discount-container input {
    flex-grow: 1;
}

.input-with-button .btn, 
.discount-container .btn {
    white-space: nowrap;
    height: 47px;
    padding: 0 20px;
}

/* PRZEŁĄCZNIK FAKTURY */
.invoice-type-toggle {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}
.radio-card {
    flex: 1;
    cursor: pointer;
}
.radio-card input {
    display: none;
}
.rc-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    font-weight: 700;
    transition: all 0.3s;
}
.radio-card input:checked + .rc-content {
    border-color: var(--primary-color);
    background: #fff;
    color: var(--primary-color);
    box-shadow: inset 0 0 0 1px var(--primary-color);
}

/* PŁATNOŚCI */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pay-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: 0.3s;
}
.pay-option:has(input:checked) {
    border-color: var(--primary-color);
    background: #fffafa;
}

/* --- SIDEBAR PODSUMOWANIA --- */
.reg-summary-col {
    position: sticky;
    top: 100px;
}

.reg-summary-box {
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.rs-header {
    background: #333;
    color: #fff;
    padding: 12px 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.rs-body {
    padding: 25px;
}

.rs-pkg-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.rs-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.rs-row.discount {
    color: #28a745;
    font-weight: 700;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-weight: 400;
}

.rs-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: 800;
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
}

.rs-features {
    margin-top: 25px;
    background: #f9f9f9;
    padding: 15px;
}

.rs-features ul {
    list-style: none;
    padding: 0;
}

.rs-features li {
    font-size: 0.85rem;
    margin-bottom: 6px;
    padding-left: 20px;
    position: relative;
}

.rs-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 800;
}

/* --- WIDOK 3: PODSUMOWANIE FINALNE --- */
.final-review-box {
    max-width: 850px;
    margin: 0 auto;
    border: 1px solid #ddd;
    padding: 40px;
    background: #fff;
}

.rev-group {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.rev-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.checkbox-legal {
    display: flex;
    align-items: flex-start;
    font-size: 0.8em;
    gap: 12px;
    background: #f9f9f9;
    padding: 10px;
    border: 1px solid #eee;
}
.checkbox-legal input {
    margin-top: 4px;
}

.summary-price {
    color: #28a745 !important; /* Soczysta zieleń */
    font-size: 1.2em;
}

.checkbox-legal a {
    color: #d32f2f;
    text-decoration: none;
}
.checkbox-legal a:hover {
    color: #b71c1c;
}

/* Upewnienie się, że nagłówki w podsumowaniu wyglądają jak w formularzu */
.reg-section-title {
    /* Twoje style z kroku 2, np: */
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2rem;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 900px) {
    .reg-layout-grid { grid-template-columns: 1fr; }
    .reg-summary-col { order: -1; position: static; margin-bottom: 30px; }
    .reg-form-grid { grid-template-columns: 1fr; }
    .form-field.full, .form-field.half { grid-column: span 1; }
    .input-with-button { flex-direction: column; }
}

/* GALERIA */
.gallery-section { padding: 60px 0; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.gallery-item {
    background: #fff;
    padding: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
    cursor: pointer;
}
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}
.gallery-cta-box {
    margin-top: 60px;
    padding: 50px;
    background-color: var(--bg-light);
    text-align: center;
    border: 2px dashed var(--secondary-color);
}
.cta-text {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 25px;
    font-weight: 600;
}