:root {
    --primary-color: #4a3728; 
    --light-bg: #fdfbf9;
    --glass: rgba(255, 255, 255, 0.15);
    --green-dark: #2d5a27;
    --green-light: #4a823f;
    --vibrant-green: #528c46;
}

/* SKELETON LOADING */
@keyframes shimmer {
    0% { background-position: -468px 0; }
    100% { background-position: 468px 0; }
}
.skeleton {
    background: #f6f7f8;
    background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-repeat: no-repeat;
    background-size: 800px 100%;
    animation: shimmer 1.5s infinite linear;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--light-bg);
    overflow-x: hidden;
}

a {
    color: var(--green-dark);
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

a:hover {
    color: var(--green-light);
}

.txt-accent{
    color: var(--green-light);
}
/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    display: flex;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.nav-left {
    flex: 1;
    background-color: #f4f1ee;
    display: flex;
    align-items: center;
    padding-left: 5%;
}

.logo-main {
    height: 50px;
}

.nav-right {
    width: 250px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    margin-left: -40px;
}

.logo-partner {
    height: 45px;
}

.under-construction {
    position: fixed;
    top: 80px;
    width: 100%;
    z-index: 999;
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 12px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* SLIDER SECTION */
.slider-section {
    margin-top: 120px;
    height: calc(100vh - 125px);
    width: 100%;
    position: relative;
    overflow: hidden;
    z-index: 5;
}

.slider {
    height: 100%;
    width: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    cursor: pointer;
}

.slide.active {
    opacity: 1;
    z-index: 10;
}

.slide-media {
    flex: 1;
    overflow: hidden;
    background: #000;
}

.slide-media img, .slide-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    overflow: hidden;
    background: #fdfdfd; 
}

.slide-content::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0.35;
    z-index: 1;
    pointer-events: none;
}

.glass-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 2;
    animation: move 12s infinite alternate;
}

.c1 { width: 350px; height: 350px; background: #e8f0e6; top: -100px; right: -50px; opacity: 0.7; }
.c2 { width: 300px; height: 300px; background: #f4efea; bottom: -80px; left: -40px; opacity: 0.6; animation-delay: -3s; }

@keyframes move {
    from { transform: translate(0, 0) rotate(0deg); }
    to { transform: translate(60px, 80px) rotate(15deg); }
}

.text-wrapper {
    position: relative;
    z-index: 10;
    color: var(--primary-color);
    max-width: 80%;
}

.text-wrapper h2 {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--green-dark);
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.2);
    color: white;
    border: none;
    padding: 25px 15px;
    cursor: pointer;
    z-index: 100;
    font-size: 1.5rem;
    transition: 0.3s;
}

.prev-btn:hover, .next-btn:hover {
    background: rgba(0, 0, 0, 0.5);
}

.next-btn { right: 0; border-radius: 5px 0 0 5px; }
.prev-btn { left: 0; border-radius: 0 5px 5px 0; }

/* LOKALIZACJA */
.location-section {
    padding: 100px 5%;
    background: linear-gradient(-45deg, var(--green-dark), var(--green-light), var(--vibrant-green));
    background-size: 400% 400%;
    animation: fluidBG 15s ease infinite;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 6;
}

@keyframes fluidBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.location-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 50px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.location-text { flex: 1; }
.location-text h2 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.location-map {
    flex: 1.5;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.location-map iframe { width: 100%; height: 100%; border: 0; }

/* KONTAKT */
.contact-section {
    padding: 100px 5%;
    background-color: white;
    display: flex;
    justify-content: center;
}

.contact-container {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.contact-section h2 {
    font-size: 2.5rem;
    color: var(--green-dark);
    margin-bottom: 40px;
}

.contact-details {
    background: var(--light-bg);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 40px;
}

.contact-details h3 { margin-bottom: 20px; color: var(--primary-color); }
.contact-details p { margin: 10px 0; font-size: 1.1rem; color: #555; }

.contact-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

.contact-logos img { height: 70px; object-fit: contain; }

footer {
    background-color: #1a1a1a;
    color: #888;
    padding: 30px;
    text-align: center;
    font-size: 0.9rem;
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.98);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    position: relative;
    width: 95%; height: 95%;
    display: flex;
    flex-direction: column; 
}

#lightbox-media-container {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    min-height: 0;
}

#lightbox-media-container img, 
#lightbox-media-container video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox-caption {
    width: 100%;
    background: rgba(0,0,0,0.85);
    color: white;
    padding: 25px;
    text-align: center;
    flex-shrink: 0; 
    font-size: 1.1rem;
    line-height: 1.4;
}

.close-lightbox {
    position: absolute;
    top: 15px; right: 25px;
    color: white; font-size: 50px;
    cursor: pointer; z-index: 2100;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.l-prev, .l-next {
    position: absolute;
    top: 45%; 
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 2.5rem;
    width: 60px; height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2050;
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s;
}

.l-prev:hover, .l-next:hover { background: rgba(255,255,255,0.25); }
.l-next { right: 20px; }
.l-prev { left: 20px; }

/* RESPONSYWNOŚĆ */
@media (max-width: 1100px) {
    .location-container { flex-direction: column; text-align: center; padding: 30px; }
    .location-map { width: 100%; height: 350px; }
    .location-text h2 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .slide { flex-direction: column; }
    .slide-media { height: 40%; flex: none; }
    .slide-content { height: 60%; flex: none; padding: 30px; }
    .text-wrapper h2 { font-size: 1.7rem; }
    .nav-right { width: 180px; }
    .logo-main { height: 40px; }
    .contact-logos { flex-direction: column; gap: 30px; }
    
}
@media (max-width: 768px) {
    /* poprawki lightbox na mobile */
    .lightbox-content {
        display: flex !important;
        flex-direction: column !important; 
    }

    #lightbox-media-container {
        order: 2 !important; 
        flex: 1;
        min-height: 0;
    }

    .lightbox-caption {
        order: 1 !important; 
        padding: 15px;
        font-size: 0.95rem;
        background: rgba(0, 0, 0, 0.9);
        width: 100%;
        box-sizing: border-box;
    }

    .l-prev, .l-next { 
        top: 60% !important; 
        width: 45px; 
        height: 45px; 
    }
}
@media (max-height: 600px) and (orientation: landscape) {
    .lightbox-content { flex-direction: row; }
    .lightbox-caption { width: 30%; height: 100%; display: flex; align-items: center; }
}