/* --- KONFIGURACJA --- */
:root {
    --color-green: #125426;    /* Głęboka zieleń */
    --color-dark: #111;        /* Czerń */
    --color-bg: #e8e8e8;       /* Betonowy szary */
    --color-white: #fff;
    --color-light-gray: #f5f5f5;
    
    /* Font szeryfowy - DM Serif Display */
    --font-serif: 'DM Serif Display', serif;
    /* Font techniczny */
    --font-sans: 'Manrope', sans-serif;
    
    --concrete-tex: url('concrete-wall.png');
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Offset dla sekcji z id - uwzględnia wysokość sticky navbar */
section[id] {
    scroll-margin-top: 100px;
}

body {
    background-color: var(--color-bg);
    background-image: var(--concrete-tex);
    color: var(--color-dark);
    font-family: var(--font-sans);
    line-height: 1.5;
    overflow-x: hidden;
}

/* --- TYPOGRAFIA --- */
h1, h2, h3, .brand {
    font-family: var(--font-serif);
    font-weight: 900;
}

h1 { font-size: 5rem; line-height: 0.9; }
h2.section-title { font-size: 3rem; text-transform: uppercase; margin-bottom: 30px; }
h3 { font-size: 1.2rem; text-transform: uppercase; margin-bottom: 15px; letter-spacing: 0.5px; }

.highlight { color: var(--color-green)}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- NAWIGACJA --- */
.navbar {
    height: 80px;
    background: rgba(232, 232, 232, 0.95);
    border-bottom: 1px solid #ccc;
    position: sticky; top: 0; z-index: 1000;
    display: flex; align-items: center;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.brand { font-size: 1.5rem; letter-spacing: -1px; }
.brand-accent { font-family: var(--font-sans); font-weight: 300; font-style: italic; margin: 0 5px; font-size: 1rem; }

.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--color-dark); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
.nav-links a:hover { color: var(--color-green); }

.btn-nav {
    border: 1px solid var(--color-dark); padding: 10px 25px; transition: 0.3s;
}
.btn-nav:hover { background: var(--color-dark); color: #fff; }

.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 3px; background: #000; margin: 5px; transition: 0.3s; }

/* Burger animation */
.burger.active .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
.burger.active .line2 { opacity: 0; }
.burger.active .line3 { transform: rotate(45deg) translate(-5px, -6px); }

/* --- HERO SECTION --- */
.hero {
    min-height: 85vh;
    display: flex; align-items: center;
    border-bottom: 1px solid #ccc;
    padding: 60px 0;
    overflow: hidden;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-sup {
    font-size: 0.9rem; font-weight: 700; letter-spacing: 2px;
    color: var(--color-green); margin-bottom: 20px;
    border-bottom: 2px solid var(--color-green); display: inline-block;
}

.hero-details {
    display: flex; gap: 40px; margin: 40px 0;
    border-top: 1px solid #999; border-bottom: 1px solid #999;
    padding: 20px 0;
}

.detail-box .label { display: block; font-size: 0.7rem; font-weight: 700; color: #666; letter-spacing: 1px; }
.detail-box .value { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; line-height: 1.1; }

/* Hero Tags - simple list */
.hero-tags {
    list-style: none;
    margin-top: 30px;
}
.hero-tags li {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-dark);
}
.hero-tags li::before {
    content: '•';
    color: var(--color-green);
    margin-right: 8px;
    font-weight: 700;
}

.hero-image-wrapper {
    display: flex; justify-content: center; align-items: center;
    position: relative;
}

.hero-img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
    transform: rotate(-2deg);
    transition: transform 0.5s;
}

.hero-img:hover { transform: rotate(0deg) scale(1.02); }

/* --- SEKCJE OGÓLNE --- */
.section { padding: 90px 0; }
.bg-concrete { background-color: #dfdfdf; border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; }
.text-center { text-align: center; }

.split-layout { display: flex; gap: 50px; }
.split-left { width: 35%; }
.split-right { width: 65%; text-align: justify; font-size: 1.1rem; }
.accent-bar { width: 80px; height: 6px; background: var(--color-green); margin-top: 20px; }
.lead { font-size: 1.3rem; font-weight: 700; color: var(--color-green); margin-bottom: 20px; font-family: var(--font-serif); }

/* --- AGENDA - Clean Simple Design --- */
.agenda-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.agenda-row {
    display: flex;
    background: #fff;
    margin-bottom: 15px;
    border: 1px solid #ddd;
}

.agenda-row .time {
    background: var(--color-dark);
    color: #fff;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    text-align: center;
    padding: 20px 15px;
}

.agenda-row .time .hour {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: rgba(255,255,255,0.9);
}

.agenda-row .content {
    padding: 20px 25px;
    flex-grow: 1;
}

.agenda-row .content h3 {
    color: var(--color-green);
    font-size: 1rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.speakers-list { list-style: none; }
.speakers-list li {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}
.speakers-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.speakers-list li strong {
    color: var(--color-green);
    font-weight: 600;
}

/* Discussion break */
.discussion {
    background: var(--color-light-gray);
    padding: 12px 20px;
    margin: 15px 0;
    border-left: 3px solid var(--color-green);
    font-size: 0.9rem;
    color: #555;
}

.break {
    text-align: center;
    margin: 20px 0;
    font-style: italic;
    color: #666;
    font-weight: 600;
    padding: 12px 20px;
    background: #f0f0f0;
}

/* Special Rows */
.agenda-row.special .time { background: var(--color-green); }

.agenda-row.panel .time {
    background: var(--color-green);
}

.panelists-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 15px;
}
.panelists-grid span {
    padding: 6px 10px;
    background: var(--color-light-gray);
}
.panelists-grid span::before { content: '› '; color: var(--color-green); }

.moderator {
    font-size: 0.85rem;
    font-style: italic;
    color: #666;
    margin-bottom: 10px;
    display: block;
}

/* --- PRELEGENCI - Simple Box with Photo --- */
.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.speaker {
    background: #fff;
    border: 1px solid #ddd;
    padding: 0;
    text-align: center;
}

/* Photo container */
.speaker-photo {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--color-light-gray);
}

.speaker-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fallback initials when no photo */
.speaker-photo .initials {
    width: 100%;
    height: 100%;
    background: var(--color-green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
}

.speaker-info {
    padding: 15px;
}

.speaker h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--color-dark);
}

.speaker p {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- ORGANIZATORZY - White Background --- */
.section-organizers {
    background: var(--color-white);
    border-top: 1px solid #ddd;
    padding: 60px 0 30px 0;
}

.organizers-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.organizers-content h5,
.sponsors-content h5 {
    text-transform: uppercase;
    color: var(--color-green);
    margin-bottom: 15px;
    letter-spacing: 1px;
    font-size: 0.8rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
    display: inline-block;
}

.event-info {
    margin-top: 40px;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-dark);
    font-weight: 500;
}

/* --- SPONSORZY - White Background --- */
.section-sponsors {
    background: var(--color-white);
    border-bottom: 1px solid #ddd;
    padding: 30px 0 60px 0;
}

.sponsors-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* --- PARTNERZY - White Background, Condensed --- */
.section-partners {
    background: var(--color-white);
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 60px 0;
}

.partners-layout {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    text-align: center;
    margin-top: 40px;
    align-items: flex-start;
}

/* Nowy układ pionowy dla sponsorów */
.partners-layout-vertical {
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-align: center;
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.p-row {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.p-row:last-child {
    border-bottom: none;
}

.p-col h5,
.p-row h5 {
    text-transform: uppercase;
    color: var(--color-green);
    margin-bottom: 15px;
    letter-spacing: 1px;
    font-size: 0.8rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
    display: inline-block;
}

.logo-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 25px;
    align-items: center;
    justify-content: center;
}

.logo-img {
    max-width: 180px;
    max-height: 90px;
    object-fit: contain;
}

.logo-img.sponsor {
    max-width: 200px;
    max-height: 100px;
}

/* Event context section - W ramach obchodów */
.event-context {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
}

.event-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 300px;
}

.event-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 15px;
    line-height: 1.4;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.event-logo {
    max-width: 160px;
    max-height: 80px;
}

/* --- REJESTRACJA - White Background --- */
.section-registration {
    background: var(--color-white);
}

.form-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.form-info p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.form-info .newsletter-info {
    margin-top: 30px;
    padding: 20px;
    background: var(--color-light-gray);
    border-left: 4px solid var(--color-green);
}

.form-info .newsletter-info h4 {
    color: var(--color-green);
    margin-bottom: 10px;
    font-size: 1rem;
}

.limit-info {
    color: var(--color-green);
    font-weight: 600;
    font-style: italic;
}

.form-box {
    background: #fff;
    padding: 40px;
    border: 1px solid #ddd;
}

.input-group { margin-bottom: 20px; }

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-dark);
}

.input-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    background: #fafafa;
    font-size: 1rem;
}

.input-group input:focus {
    outline: none;
    border-color: var(--color-green);
    background: #fff;
}

.checkbox-group {
    font-size: 0.85rem;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--color-green);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--color-green);
    color: #fff;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1rem;
}

.btn-submit:hover {
    background: var(--color-dark);
}

/* --- STOPKA - Expanded Footer --- */
footer {
    background: var(--color-dark);
    color: #fff;
    padding: 0;
    margin-top: 0;
}

.footer-main {
    padding: 60px 0 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
}

.footer-brand {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.footer-brand span {
    font-family: var(--font-sans);
    font-weight: 300;
    font-style: italic;
    font-size: 0.9rem;
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.7;
    opacity: 0.8;
    margin-bottom: 20px;
}

.footer-col h5 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    color: var(--color-green);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-contact a {
    color: var(--color-green);
    text-decoration: none;
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

.footer-bottom p {
    margin: 0;
}

/* --- MOBILE --- */
@media (max-width: 900px) {
    .hero-layout, .split-layout, .form-layout { grid-template-columns: 1fr; gap: 40px; }
    h1 { font-size: 3rem; }
    .nav-links {
        position: fixed; right: 0; top: 80px; height: calc(100vh - 80px); background: #e8e8e8;
        flex-direction: column; width: 100%; align-items: center; justify-content: center;
        transform: translateX(100%); transition: transform 0.3s, visibility 0s 0.3s;
        border-top: 2px solid var(--color-green);
        visibility: hidden;
    }
    .nav-active {
        transform: translateX(0);
        visibility: visible;
        transition: transform 0.3s, visibility 0s;
    }
    .burger { display: block; }
    .hero-img { max-width: 80%; margin: 0 auto; }
    
    /* Agenda mobile */
    .agenda-row { flex-direction: column; }
    .agenda-row .time {
        width: 100%;
        flex-direction: row;
        gap: 10px;
        padding: 12px 15px;
    }
    
    .hero-details { flex-direction: column; gap: 20px; }
    
    /* Footer mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .footer-social { justify-content: center; }
    
    /* Partners mobile */
    .partners-layout { gap: 30px; }
    .logo-container { flex-direction: column; }
    
    /* Event context mobile */
    .event-context {
        flex-direction: column;
        gap: 30px;
    }
    
    .event-item {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    h1 { font-size: 2.5rem; }
    h2.section-title { font-size: 2rem; }
    .speakers-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .speaker-photo { height: 140px; }
    .panelists-grid { grid-template-columns: 1fr; }
}
