:root {
    /* Paleta kolorów pobrana z projektu */
    --primary-green: #2F4F3E; /* Ciemna zieleń */
    --secondary-green: #4A6E5A;
    --accent-beige: #EBE9E1; /* Tło kart */
    --accent-gold: #C49A4A;
    --accent-bright: #D9A441;
    --soft-green: #F3F7F2;
    --text-dark: #1A1A1A;
    --text-muted: #5E665F;
    --text-light: #F9F9F9;
    --white: #FFFFFF;
    
    /* Fonty */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    
    /* Inne */
    --radius: 12px;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: #Fdfdfd;
    line-height: 1.6;
}

/* Typografia */
h1, h2, h3 { font-family: var(--font-heading); color: var(--primary-green); margin-bottom: 1rem; }
h1 { font-size: 2.5rem; color: var(--text-light); }
h2 { font-size: 2rem; border-bottom: 2px solid var(--accent-beige); display: inline-block; padding-bottom: 5px; }

/* Layout Utilities */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 60px 0; }
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

/* Navbar */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 15px 0; transition: 0.3s;
}
.navbar.glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px); /* Efekt rozmycia tła (modern/iOS style) */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-badge { 
 
}
.nav-links { list-style: none; display: flex; gap: 20px; }
.nav-links a { text-decoration: none; color: var(--primary-green); font-weight: 500; }
.nav-register {
    background: var(--accent-gold);
    color: var(--white) !important;
    box-shadow: 0 8px 18px rgba(196,154,74,0.28);
}

/* Hero Section */
.hero {
    height: 80vh;
    background: url('image/top.png') center/cover no-repeat;
    position: relative;
    display: flex; align-items: center;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(47, 79, 62, 0.9), rgba(47, 79, 62, 0.4));
}
.hero-content { position: relative; z-index: 2; color: var(--white); max-width: 800px; }
.hero-buttons { margin-top: 30px; display: flex; gap: 15px; }

/* Buttons */
.btn { align-items: center; display: inline-flex; gap: 10px; justify-content: center; padding: 12px 25px; border-radius: 30px; text-decoration: none; font-weight: bold; transition: 0.3s; }
.btn-primary { background: var(--white); color: var(--primary-green); }
.btn-secondary { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-accent { background: var(--accent-gold); color: var(--white); }
.btn-cta {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-bright));
    border: 0;
    color: var(--white);
    box-shadow: 0 14px 30px rgba(196,154,74,0.34);
}
.btn-large { font-size: 1.05rem; padding: 16px 30px; }
.btn-xl {
    border-radius: 999px;
    font-size: 1.2rem;
    padding: 18px 42px;
    width: min(100%, 360px);
}
.hero-register {
    font-size: 1.05rem;
    padding: 15px 30px;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(255,255,255,0.3); }
.btn-accent:hover, .btn-cta:hover, .nav-register:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(196,154,74,0.42); }
.floating-register {
    align-items: center;
    animation: registerPulse 2.8s ease-in-out infinite;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-bright));
    border: 2px solid rgba(255,255,255,0.65);
    border-radius: 999px;
    bottom: 24px;
    box-shadow: 0 16px 36px rgba(47,79,62,0.32);
    color: var(--white);
    display: inline-flex;
    font-weight: 700;
    gap: 10px;
    padding: 14px 24px;
    position: fixed;
    right: 24px;
    text-decoration: none;
    z-index: 1100;
}

/* Info Cards */
.info-cards {
    display: flex; gap: 20px; margin-top: -50px; position: relative; z-index: 3;
    justify-content: center; flex-wrap: wrap;
}
.card {
    background: rgba(255,255,255,0.9); backdrop-filter: blur(5px);
    padding: 30px; border-radius: var(--radius); text-align: center;
    box-shadow: var(--shadow); flex: 1; min-width: 250px;
}
.register-card {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
    position: relative;
    text-decoration: none;
}
.register-card::after {
    align-items: center;
    background: var(--accent-gold);
    border-radius: 50%;
    content: ">";
    display: flex;
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 700;
    height: 36px;
    justify-content: center;
    position: absolute;
    right: 18px;
    top: 18px;
    width: 36px;
}
.register-card h3,
.register-card p,
.register-card .card-label {
    color: var(--white);
}
.card-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

/* Panel rejestracji */
.registration-section {
    background: linear-gradient(180deg, var(--soft-green), var(--white));
}
.registration-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: 40px;
    align-items: center;
}
.section-kicker {
    color: var(--accent-gold);
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.registration-copy p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 24px;
    max-width: 620px;
}
.registration-details {
    display: grid;
    gap: 14px;
    margin-bottom: 28px;
}
.registration-details div {
    border-left: 4px solid var(--accent-gold);
    padding-left: 16px;
}
.registration-details strong,
.registration-details span {
    display: block;
}
.registration-details span {
    color: var(--text-muted);
}
.glass-panel.registration-panel {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 18px;
}
.panel-header {
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    margin-bottom: 18px;
}
.panel-header span {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.panel-header strong {
    color: var(--primary-green);
}
.registration-button-box {
    align-items: center;
    background: linear-gradient(180deg, var(--soft-green), var(--white));
    border: 1px solid rgba(47,79,62,0.12);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    min-height: 420px;
    justify-content: center;
    padding: 36px 28px;
    text-align: center;
}
.registration-button-box h3 {
    font-size: 2rem;
}
.registration-button-box p {
    color: var(--text-muted);
    margin-bottom: 28px;
    max-width: 440px;
}
.registration-button-box small {
    color: var(--text-muted);
    margin-top: 16px;
}
.button-icon {
    align-items: center;
    background: var(--primary-green);
    border-radius: 50%;
    color: var(--white);
    display: flex;
    font-size: 2rem;
    height: 82px;
    justify-content: center;
    margin-bottom: 24px;
    width: 82px;
}

/* Sekcja o wydarzeniu */
.section-split { display: flex; gap: 50px; padding: 80px 20px; align-items: start; flex-wrap: wrap; }
.col-left, .col-right { flex: 1; }
.rounded-img { width: 100%; border-radius: var(--radius); margin-top: 20px; }
.glass-panel {
    background: var(--accent-beige); /* Beżowe tło jak na projekcie */
    padding: 40px; border-radius: var(--radius);
}
.program-list { list-style: none; margin-top: 20px; }
.program-list li { padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,0.1); }

/* Galeria i Historia */
.history-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 200px 200px; gap: 15px; margin-top: 30px; }
.hist-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.hist-item.big { grid-row: span 2; }
.mini-gallery {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 22px;
}
.mini-gallery img {
    aspect-ratio: 1;
    border-radius: 8px;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

/* Footer */
footer { background: var(--primary-green); color: var(--white); text-align: center; padding: 20px; margin-top: 50px; }

/* Animacje (Reveal Class) */
.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }
.register-card.visible:hover { transform: translateY(-6px); }

@keyframes registerPulse {
    0%, 100% { box-shadow: 0 16px 36px rgba(47,79,62,0.32); }
    50% { box-shadow: 0 16px 36px rgba(47,79,62,0.32), 0 0 0 8px rgba(217,164,65,0.18); }
}

@media (prefers-reduced-motion: reduce) {
    .floating-register { animation: none; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .grid-2-col, .section-split, .history-grid, .registration-layout { display: block; }
    .hero h1 { font-size: 1.8rem; }
    .hero-buttons { flex-direction: column; align-items: flex-start; }
    .nav-links { display: none; /* Tu można dodać logikę burgera w JS */ }
    .info-cards { flex-direction: column; margin-top: 20px; }
    .card { margin-bottom: 10px; }
    .hist-item { margin-bottom: 10px; }
    .glass-panel.registration-panel { margin-top: 30px; padding: 12px; }
    .panel-header { align-items: flex-start; flex-direction: column; gap: 4px; }
    .registration-button-box { min-height: 330px; padding: 28px 18px; }
    .registration-button-box h3 { font-size: 1.6rem; }
    .btn-xl { font-size: 1.05rem; padding: 16px 24px; }
    .floating-register {
        bottom: 16px;
        justify-content: center;
        left: 20px;
        right: 20px;
    }
    .mini-gallery { grid-template-columns: 1fr; }
}
