﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: system-ui, 'Segoe UI', 'Roboto', sans-serif;
    background: #ffffff;
    color: #1e2f2a;
    line-height: 1.5;
    position: relative;
}

/* Delikatna tekstura tła */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: radial-gradient(#2c9b6b 0.5px, transparent 0.5px);
    background-size: 24px 24px;
    opacity: 0.03;
    z-index: 0;
}

main {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 56px;
    color: #0a2e24;
}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: #2c9b6b;
    margin: 18px auto 0;
    border-radius: 4px;
}

/* ========== POPRAWA KONTRASTU DLA PRZYCISKÓW ========== */
/* ===== POPRAWA KONTRASTU PRZYCISKÓW ===== */
.btn {
    display: inline-block;
    background: #0a452b;   /* ciemniejszy zielony – lepszy kontrast */
    color: white;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #083d24;    /* jeszcze ciemniejszy na hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(10, 69, 43, 0.3);
}

/* Nawigacja */
.navbar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-area a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-area img {
    display: block;
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

/* Zapewnienie stabilności CLS – rezerwa miejsca */
.logo-area img {
    height: 50px;
    width: auto;
}

.logo-area img:hover {
    transform: scale(1.02);
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: #1e3b32;
    transition: color 0.2s;
    position: relative;
}

.nav-links a:hover {
    color: #2c9b6b;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2c9b6b;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ========== SLIDER – POPRAWA: NAPISY NA ZDJĘCIU ========== */
.slider-section {
    padding: 0;
}

.slider-container {
    position: relative;
    height: 92vh;
    min-height: 450px;
    overflow: hidden;
    background: #1a2a24;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    will-change: opacity;
    /* USUWAMY display: flex – to powodowało układanie obrazu i napisów obok siebie */
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.slide-content {
    position: absolute;
    bottom: 20%;
    left: 0;
    right: 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.55);
    padding: 28px 40px;
    border-radius: 24px;
    backdrop-filter: blur(4px);
    color: white;
    z-index: 2;
    margin: 0 20px;
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.4);
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 40px;
    z-index: 10;
    color: white;
    transition: all 0.3s;
}

.slider-btn:hover {
    background: #2c9b6b;
    transform: translateY(-50%) scale(1.05);
}

.prev { left: 20px; }
.next { right: 20px; }

/* O firmie */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: #2c3e38;
}

.stats-card {
    background: #f0f7f3;
    border-radius: 32px;
    padding: 40px 32px;
    border-left: 6px solid #2c9b6b;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 40px -12px rgba(0, 0, 0, 0.15);
}

.stats-card h3 {
    font-size: 1.8rem;
    margin-bottom: 32px;
    color: #0a2e24;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(44, 155, 107, 0.15);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-icon {
    font-size: 2rem;
    min-width: 50px;
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: #2c9b6b;
}

.stat-label {
    font-size: 0.95rem;
    color: #4a6a5e;
}

/* Karty oferty i turnusów */
.offers-grid, .turnusy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 32px;
}

.offer-card, .turnus-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.offer-card:hover, .turnus-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.15);
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.offer-card img, .turnus-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.offer-card:hover img, .turnus-card:hover img {
    transform: scale(1.03);
}

.card-overlay {
    padding: 20px;
    background: white;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e3b32;
    margin-bottom: 8px;
    line-height: 1.4;
}

.card-sub {
    font-size: 0.85rem;
    color: #1f7550;
}

/* Definicje i FAQ */
.def-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 32px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 32px;
}

.def-card, .faq-card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0ede7;
    transition: all 0.3s ease;
}

.def-card:hover, .faq-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Galeria – rezerwa miejsca na CLS */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.gallery-item {
    aspect-ratio: 4 / 3;
    background: #eef4f0;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 16px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: transform 0.2s;
}

.lightbox-close:hover {
    transform: scale(1.1);
}

/* FLAGI */
.flags-section {
    background: white;
    border-radius: 48px;
    margin: 40px 0;
    padding: 32px 20px;
    text-align: center;
    border: 1px solid #e0f0e8;
}

.lang-grid {
    display: grid;
    grid-template-columns: repeat(15, auto);
    justify-content: center;
    align-items: center;
    gap: 10px 8px;
    list-style: none;
    margin: 24px 0 0 0;
    padding: 0;
}

.lang-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fcf9;
    padding: 6px 12px;
    border-radius: 60px;
    text-decoration: none;
    color: #1a4e3a;
    font-weight: 500;
    border: 1px solid #cde2d8;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.lang-item:hover {
    background: #2c9b6b;
    color: white;
    border-color: #2c9b6b;
    transform: translateY(-2px);
}

.lang-item img {
    height: 14px;
    width: auto;
    border-radius: 2px;
}

/* Kontakt */
.contact-full {
    background: linear-gradient(135deg, #f4faf7 0%, #e8f3ed 100%);
    padding: 60px 0;
    border-radius: 48px 48px 0 0;
    position: relative;
}

.contact-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(#2c9b6b 0.8px, transparent 0.8px);
    background-size: 32px 32px;
    opacity: 0.04;
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    position: relative;
    z-index: 1;
}

.contact-info-card {
    background: white;
    border-radius: 32px;
    padding: 40px;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.contact-info-card:hover {
    transform: translateY(-5px);
}

.contact-info-card h3 {
    font-size: 1.6rem;
    margin-bottom: 24px;
    color: #0a2e24;
}

.contact-info-card p {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Karta CTA (poprawiony kontrast) */
.cta-card {
    background: linear-gradient(135deg, #0f5c3c 0%, #0a452b 100%);
    color: white;
    text-align: center;
}

.cta-card h3 {
    color: white;
}

.cta-card p {
    color: rgba(255,255,255,0.95);
    justify-content: center;
}

.cta-card .btn {
    background: white;
    color: #0a452b;
    margin-top: 20px;
    font-size: 1.1rem;
    padding: 14px 36px;
}

.cta-card .btn:hover {
    background: #f0f7f3;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.google-maps {
    width: 100%;
    height: 350px;
    border: 0;
    border-radius: 32px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Przycisk rezerwacji z animacją */
.cta-btn {
    text-align: center;
    margin: 40px 0;
}

.btn-pulse {
    animation: pulse 2s infinite;
    background: #0f5c3c;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(15, 92, 60, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(15, 92, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(15, 92, 60, 0); }
}

/* Stopka */
footer {
    background: #0e2e24;
    color: #dbefe7;
    padding: 48px 0 24px;
    border-radius: 32px 32px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}

.footer-links a {
    display: block;
    color: #c0ded2;
    text-decoration: none;
    margin: 8px 0;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #2c9b6b;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #2b5a48;
    padding-top: 28px;
    font-size: 0.85rem;
}

.team-photo {
    margin-top: 48px;
    text-align: center;
}

.team-photo img {
    max-width: 100%;
    border-radius: 32px;
    transition: transform 0.3s;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.team-photo img:hover {
    transform: scale(1.01);
}

/* Responsywność */
@media (max-width: 1200px) {
    .lang-grid {
        grid-template-columns: repeat(10, auto);
    }
}

@media (max-width: 1024px) {
    .offers-grid, .turnusy-grid, .def-grid, .faq-grid, .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .lang-grid {
        grid-template-columns: repeat(8, auto);
    }
}

@media (max-width: 800px) {
    .about-grid, .contact-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .offers-grid, .turnusy-grid, .def-grid, .faq-grid, .gallery-grid {
        grid-template-columns: 1fr;
    }
    .nav-links { display: none; }
    .slide-content h2 { font-size: 1.8rem; }
    .lang-grid {
        grid-template-columns: repeat(5, auto);
    }
    .logo-area img {
        height: 40px;
    }
}

@media (max-width: 500px) {
    .lang-grid {
        grid-template-columns: repeat(3, auto);
    }
}
/* Zabezpieczenie: tylko jeden slajd widoczny */
#mainSlider .slide:not(:first-child) {
    display: none !important;
}
.slide_active{
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover
}
    