/* Plik: style.css - Wzorowany na stylu Planer */

/* Ogólne style */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3 {
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.8em;
}

h2 {
    font-size: 2.2em;
    margin-top: 40px;
}

h3 {
    font-size: 1.8em;
}

p {
    text-align: center;
    margin-bottom: 15px;
}

.section-description {
    font-size: 1.1em;
    color: #555; 
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Header/Nawigacja */
header {
    background-color: #337AB7;
    color: white;
    padding: 20px 0;
    text-align: center;
}
header h1 {
    margin: 0;
    font-size: 2.5em;
    color: white;
}
header p {
    margin-top: 5px;
    font-size: 1.1em;
}

nav { background-color: #286090; }
nav .container { display: flex; justify-content: center; padding: 10px 0; }
nav a { color: white; text-decoration: none; padding: 8px 15px; margin: 0 5px; border-radius: 5px; transition: background-color 0.3s; }
nav a:hover { background-color: #337AB7; }

/* Sekcje */
section { padding: 40px 0; border-bottom: 1px solid #ddd; }
section:last-child { border-bottom: none; }
section h2 { color: #337AB7; margin-bottom: 20px; }

/* Hero */
#hero { text-align: center; background-color: white; padding: 60px 0; }
#hero .main-cta { background-color: #5CB85C; color: white; padding: 15px 30px; text-decoration: none; font-size: 1.5em; border-radius: 8px; margin-top: 20px; display: inline-block; transition: background-color 0.3s; font-weight: bold; }
#hero .main-cta:hover { background-color: #449D44; }

/* Zalety */
#zalety ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
#zalety li { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); font-size: 1.1em; text-align: left; }
#zalety li:before { content: '✨'; margin-right: 10px; color: #337AB7; font-weight: bold; }

/* Zakup */
#zakup { text-align: center; }
#zakup .price-box { background-color: #FFC107; padding: 25px; border-radius: 10px; display: inline-block; margin-bottom: 30px; }
#zakup .price-box strong { font-size: 2.5em; color: #333; }
#zakup .purchase-options { display: flex; justify-content: center; gap: 20px; margin-top: 20px; }
#zakup .purchase-options a { padding: 12px 25px; border-radius: 6px; text-decoration: none; font-weight: bold; transition: opacity 0.3s; }
#zakup .purchase-options a:hover { opacity: 0.8; }
.delivery-info { margin-top: 20px; font-style: italic; color: #666; }

/* Licencja */
#licencja p { text-align: justify; line-height: 1.6; }
#licencja .section-description { font-weight: bold; color: #333; text-align: center; }

/* Footer */
footer { background-color: #333; color: white; text-align: center; padding: 15px 0; font-size: 0.9em; }
footer a { color: #FFC107; text-decoration: none; margin: 0 5px; }

/* --- Style dla Nowej Galeria (Karuzela) --- */

#galeria .section-description {
    margin-bottom: 20px;
}

.slider-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background-color: #fff;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
    text-align: center;
    cursor: pointer; 
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* Przyciski nawigacyjne */
.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.prev-btn:hover, .next-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-btn { left: 10px; border-radius: 5px 0 0 5px; }
.next-btn { right: 10px; border-radius: 0 5px 5px 0; }


/* --- Style dla Modalu (Powiększenie) --- */

.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    padding-top: 60px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.9); 
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1200px;
    animation-name: zoom;
    animation-duration: 0.6s;
}

.caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* --- Przycisk Scroll To Top --- */
#scrollToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    font-size: 24px;
    line-height: 1;
    border: none;
    outline: none;
    background-color: #337AB7; /* Główny kolor strony */
    color: white;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50%;
    opacity: 0.8;
    display: none; /* Domyślnie ukryty - zarządzane przez JS */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.3s, opacity 0.3s;
}

#scrollToTopBtn:hover {
    background-color: #286090;
    opacity: 1;
}