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

/* Body */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background: linear-gradient(90deg, #ffeb3b 0%, #ffffff 40%);
    /* Jeżeli chcesz, by gradient przewijał się razem ze stroną: */
    background-attachment: fixed;
}

/* ——— 1. Nagłówek (container) ——— */
.site-header {
    position: relative;
    background: #003366;
    overflow: hidden;
    /* obcina wszystko poza boxem */
    min-height: 300px;
    /* ustawia wysokość headera – zmień według potrzeb */
}

/* WARSTWA 1: tło (tego możesz użyć do dodatkowego gradientu, overlay itp.) */
.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: #003366;
    /* albo Twój gradient */
    z-index: 1;
}

/* WARSTWA 2: animowany obraz */
.header-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.header-animation img {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-100%, -50%);
    height: 200px;
    /* dostosuj, by nie był obcinany od góry */
    animation: slide 20s linear infinite;
}

@keyframes slide {
    0% {
        transform: translate(-100%, -50%);
    }

    100% {
        transform: translate(300%, -50%);
    }
}

/* WARSTWA 3: rzeczywista zawartość headera */
.header-content {
    background-color: #003366;
    position: relative;
    z-index: 3;
    max-width: 550px;
    /* Szerokość tylko pod tytuł i nav */
    margin: 0 auto;
    padding: 80px 20px;
    /* steruje wysokością nagłówka */
    text-align: center;
}

/* Styl tytułu i nav (przykład) */
.site-title {
    color: #fff;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.site-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.site-nav a {
    color: #fff;
    padding: 10px 15px;
    text-decoration: none;
}

.site-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* O nas */
.section-about {
    /* prosty żółty */
    padding: 80px 20px;
}

.about-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text,
.about-image {
    flex: 1 1 400px;
}

.about-text h2 {
    margin-bottom: 20px;
    text-align: left;
    font-size: 2em;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.feature-card {
    background: #003366;
    color: #fff;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
}

.more-card {
    grid-column: span 2;
    background: #002244;
}

.more-card a {
    color: #fff;
    text-decoration: none;
}

.about-image img {
    width: 100%;
    border-radius: 4px;
}

.contact-teaser {
    text-align: center;
    margin-top: 30px;
}

.contact-teaser a {
    display: inline-block;
    margin: 0 10px;
    color: #222;
    text-decoration: none;
}

.icon-pin::before {
    content: "📍 ";
}

.icon-mail::before {
    content: "✉️ ";
}

.icon-phone::before {
    content: "📞 ";
}

/* Usługi */
.section-services h2 {
    text-align: center;
    margin-bottom: 30px;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.service-card {
    background: #003366;
    color: #fff;
    padding: 20px;
    border-radius: 6px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: calc((100% / 3) - (20px * 2 / 3));
    min-width: 200px;
}

.service-card h3 {
    color: #aad4ff;
    margin-bottom: 10px;
}

.service-card p {
    margin-bottom: 10px;
    flex-grow: 1;
}

.service-card .price {
    margin-top: auto;
    font-weight: bold;
    color: #fff;
}

.service-card .price a {
    color: #fff;
    /* kolor ceny  */
}

@media(max-width:800px) {
    .service-card {
        width: calc((100% / 2) - (20px / 2));
    }
}

@media(max-width:500px) {
    .service-card {
        width: 100%;
    }
}

/* Galeria */
.section-gallery h2 {
    text-align: center;
}

.gallery-grid {
    display: grid;
   
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    display: flex;
        flex-wrap: wrap;
    gap: 10px;
    max-width: 1200px;
    margin: 0 auto;

}

.gallery-grid img {
    /*width: 100%;
    display: block;
    border-radius: 4px;*/
    border-radius: 8px;
    clip-path: inset(0 round 8px);
    object-fit: cover;

}

.section-gallery .carousel {
   
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Promocje */
.section-promos {
    padding: 60px 20px;
    text-align: center;
}

.section-promos h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* 6. Kontakt – układ dwukolumnowy */
.section-contact {
    padding: 60px 20px;
}

/* Wyrównanie tytułu sekcji Kontakt na środek */
.section-contact h2 {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-inner {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.contact-info,
.contact-map {
    flex: 1 1 400px;
}

.contact-info p {
    margin: 10px 0;
    font-size: 1em;
}

.contact-info a {
    color: #003366;
    text-decoration: none;
}

.hours {
    margin-top: 20px;
}

.hours h3 {
    margin-bottom: 10px;
    font-size: 1.2em;
}

.hours ul {
    list-style: none;
}

.hours li {
    margin: 5px 0;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border: 0;
}

/* Responsywność kontaktu */
@media (max-width: 800px) {
    .contact-inner {
        flex-direction: column;
    }
}

/* Stopka */
.site-footer {
    background: #222;
    color: #aaa;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
}

/* 1. Przestrzeń na stały header przy skrollowaniu */
html {
    scroll-padding-top: 100px;
    /* wysokość nagłówka + ewentualny margines */
}

/* 2. Responsive nav: zawijaj linki na małych ekranach */
.site-nav ul {
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .site-nav ul {
        justify-content: space-around;
    }

    .site-nav a {
        padding: 10px;
        flex: 1 1 50%;
        text-align: center;
    }
}

/* 3. Podkreślenie aktywnej zakładki */
.site-nav a.active {
    position: relative;
}

.site-nav a.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #aad4ff;
    border-radius: 2px;
}

.map {
    width: 100%;
    height: 300px;
    border: 0;
}


//galeria motywacja
/* ——— Carousel ——— */
.carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: auto;
    /* pozwala na ręczne przesuwanie */
    -webkit-overflow-scrolling: touch;
    /* płynne na iOS */
    scrollbar-width: thin;
    /* Firefox */
}

.carousel::-webkit-scrollbar {
    height: 6px;
}

.carousel::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .2);
    border-radius: 3px;
}

.carousel:hover {
    overflow: visible;
    /* pozwala obrazom wyjść poza */
}

.carousel-track {
    display: flex;
    animation: scroll 30s linear infinite;
}

.carousel:hover .carousel-track {
    animation-play-state: paused;
}

.carousel-item {
    flex: 0 0 calc(100%/5);
    border-radius: 15px;
    height: 350px;
    overflow: hidden;
    margin: 0 5px;
    position: relative;
}

.carousel-item img {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 110%;
    width: auto;
    transform: translate(-50%, -50%) scale(1);
    transition: transform .3s ease;
}

/* Na hover: pokaż overflow, podnieś nad sąsiadów & powiększ 1.5× */
.carousel-item:hover {
    overflow: visible;
    border-radius: 15px;
    z-index: 10;
}

.carousel-item:hover img {
    transform: translate(-50%, -50%) scale(1.5);
    border-radius: 15px;
}


/* animacja pętli */
@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* responsywność */
@media(max-width:800px) {
    .carousel-item {
        flex: 0 0 calc(100%/3);
        height: 200px;
    }
}

@media(max-width:500px) {
    .carousel-item {
        flex: 0 0 100%;
        height: 200px;
    }
}

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

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 4px;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2em;
    cursor: pointer;
}

body {
    overflow-x: hidden;
}