html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; /* Offset dla przyklejonego menu, aby nie zasłaniało nagłówków sekcji */
}

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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    background-color: #000;
    color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: #000;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    mix-blend-mode: screen;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 15px; /* Zmniejszamy odstęp, aby kafelki się zmieściły */
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    padding: 8px 15px; /* Dodajemy padding, aby stworzyć kafelek */
    border: 2px solid #fff; /* Widoczny obrys kafelka */
    border-radius: 5px; /* Zaokrąglone rogi kafelka */
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease; /* Płynne przejście dla wszystkich właściwości */
}

nav ul li a:hover {
    color: #000; /* Zmieniamy kolor tekstu na czarny */
    background-color: #fff; /* Białe tło po najechaniu */
    border-color: #fff; /* Biały obrys po najechaniu */
}

.menu-toggle {
    display: none;
}

/* Hero Video */
#hero {
    width: 100%;
    height: 80vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a0a00 0%, #0d0d0d 40%, #0d0d0d 60%, #000d1a 100%);
    z-index: 0;
}

/* Wrapper hero */
.hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

/* Rozmyte tło - rozciągnięte na całą szerokość */
.hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(40px) brightness(0.28) saturate(0.5);
    transform: scale(1.12);
    z-index: 1;
}

/* Główny film - pełna wysokość, oryginalny aspect ratio */
.hero-video-main {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Cień wychodzący z krawędzi filmu na czarne pasy */
.hero-cinema-sides {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background:
        linear-gradient(to right,
            rgba(0,0,0,1) 0%,
            rgba(0,0,0,0.85) 6%,
            rgba(0,0,0,0.5) 12%,
            rgba(0,0,0,0.15) 18%,
            transparent 24%,
            transparent 76%,
            rgba(0,0,0,0.15) 82%,
            rgba(0,0,0,0.5) 88%,
            rgba(0,0,0,0.85) 94%,
            rgba(0,0,0,1) 100%
        );
}

.hero-video-mobile {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}


@media (max-width: 768px) {
    #hero {
        height: auto;
        aspect-ratio: 9 / 16;
        max-height: 85vh;
    }

    .hero-video-wrap {
        display: none;
    }

    .hero-video-mobile {
        display: block;
    }

    .hero-cinema-sides {
        display: none;
    }
}

/* Light Theme Transition */
.light-theme {
    background-color: #f9f9f9;
    color: #1a1a1a;
}

/* Nowa sekcja nagłówka nad sliderem */
#headline-dark {
    background-color: #000;
    padding: 40px 0;
    text-align: center;
    width: 100%;
}

#headline-dark h1 {
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
}

.delicate-italic {
    font-style: italic;
    font-weight: 400;
    font-size: 1.2rem;
    max-width: 850px;
    margin: 30px auto 0;
    color: #e0e0e0;
    line-height: 1.8;
}

/* Slider jako Hero Section */
#slider-section {
    width: 100%;
    height: 650px; /* Stała, elegancka wysokość */
    background-color: #000;
    overflow: hidden;
    position: relative;
}

.section-padding {
    padding: 80px 0;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
    font-weight: 900;
}

/* Animacja Reveal - Wejście sekcji */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Swiper (wewnątrz #slider-section) */
.main-slider {
    width: 100%;
    height: 100%;
}

.swiper {
    --swiper-navigation-color: #fff;
    --swiper-pagination-color: #fff;
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Rozmyte tło - wypełnia cały slide */
.slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(18px) brightness(0.5) saturate(1.2);
    transform: scale(1.08);
    display: block;
}

/* Właściwe zdjęcie - oryginalne proporcje, na środku */
.slide-main {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 6s linear;
}

/* Ken Burns tylko na głównym zdjęciu */
.swiper-slide-active .slide-main {
    transform: translate(-50%, -50%) scale(1.05);
}

/* Strzałki głównego slidera - symetrycznie przy krawędziach zdjęcia */
.main-slider .swiper-button-next { right: calc(15% + 10px); }
.main-slider .swiper-button-prev { left: calc(15% + 10px); }

/* Nakładka gradientowa na slider, aby nawigacja była lepiej widoczna */
#slider-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    z-index: 2;
    pointer-events: none;
}

/* O mnie */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.about-text p {
    margin-bottom: 15px;
}

/* Oferta - Kafelki */
.offer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.offer-tile {
    background-color: #fff;
    padding: 40px 25px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.offer-tile i {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.offer-tile:hover {
    transform: translateY(-10px);
    border-color: #000;
}

.offer-tile h3 {
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 15px;
}

/* Opinie - Karuzela i Statystyki */
.reviews-summary {
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
}

.summary-percent {
    font-size: clamp(1.4rem, 7vw, 3.5rem);
    font-weight: 900;
    color: #000;
}

.summary-stars {
    color: #f1c40f;
    font-size: 1.5rem;
    margin: 10px 0;
}

.summary-label {
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #666;
    font-weight: 700;
    font-size: 0.9rem;
}

.reviews-swiper .swiper-slide,
.fb-reviews-swiper .swiper-slide {
    height: auto !important;
}

.reviews-swiper {
    padding: 30px 50px 70px 50px !important;
    --swiper-navigation-color: #000;
    --swiper-pagination-color: #000;
    position: relative;
    width: 100%;
}

/* Stylizacja strzałek nawigacyjnych opinii */
.rev-next, .rev-prev {
    color: #000 !important;
    transition: transform 0.3s ease;
    top: 50% !important;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
}

.rev-next { right: 5px !important; }
.rev-prev { left: 5px !important; }

.rev-next:hover, .rev-prev:hover {
    transform: scale(1.2);
}

.rev-next::after, .rev-prev::after {
    font-size: 24px !important; /* Cienkie i eleganckie strzałki */
    font-weight: 300;
}

.review-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 28px 28px 32px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
}

.review-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.review-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.review-meta {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.review-author {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-date {
    font-size: 0.78rem;
    color: #888;
    margin-top: 1px;
}

.review-google-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-left: auto;
}

.review-stars {
    color: #f1c40f;
    font-size: 0.9rem;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.review-text {
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.75;
    color: #333;
    flex: 1;
}

.google-link-container {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
}

.google-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
    flex-wrap: wrap;
}

/* Karuzela Facebook */
.fb-reviews-swiper {
    padding: 30px 50px 70px 50px !important;
    --swiper-navigation-color: #000;
    --swiper-pagination-color: #1877F2;
    position: relative;
    width: 100%;
}

.fb-next, .fb-prev {
    color: #000 !important;
    transition: transform 0.3s ease;
    top: 50% !important;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
}

.fb-next { right: 5px !important; }
.fb-prev { left: 5px !important; }

.fb-next:hover, .fb-prev:hover {
    transform: scale(1.2);
}

.fb-next::after, .fb-prev::after {
    font-size: 24px !important;
    font-weight: 300;
}

.fb-review-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 28px 28px 32px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
}

.fb-review-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.fb-review-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.fb-review-meta {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.fb-review-author {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fb-review-fb-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-left: auto;
}

.fb-review-stars {
    color: #f1c40f;
    font-size: 0.9rem;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.fb-review-text {
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.75;
    color: #333;
    flex: 1;
}

/* Galeria */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.03);
}

/* FAQ */
.faq-list {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 22px 56px 22px 24px;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
    line-height: 1.4;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    color: #888;
    transition: transform 0.3s ease, color 0.2s;
    line-height: 1;
}

.faq-question[aria-expanded="true"]::after {
    transform: translateY(-50%) rotate(45deg);
    color: #1a1a1a;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 24px;
}

.faq-answer.open {
    max-height: 400px;
    padding: 0 24px 22px;
}

.faq-answer p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #444;
    margin: 0;
}

/* Kontakt */
#contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#contact-form input, #contact-form textarea {
    padding: 15px;
    border: 1px solid #ddd;
    font-family: inherit;
}

.btn {
    background-color: #000;
    color: #fff;
    padding: 15px 30px;
    border: 2px solid #000;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #fff;
    color: #000;
}

/* Footer */
footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 40px 0;
    font-size: 0.9rem;
}

footer a {
    color: inherit;
    text-decoration: none;
}

/* Floating Socials */
.side-socials {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2000;
}

.social-icon {
    width: 50px;
    height: 50px;
    background-color: #fff;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-icon.fb:hover { background-color: #1877F2; color: #fff; }
.social-icon.ig:hover { background-color: #E4405F; color: #fff; }
.social-icon.yt:hover { background-color: #FF0000; color: #fff; }
.social-icon.spotify:hover { background-color: #1DB954; color: #fff; }
.social-icon.tt:hover { background-color: #010101; color: #fff; }

.social-icon.back-to-top { background-color: #333; color: #fff; margin-top: 10px; border: none; cursor: pointer; font-size: inherit; }
.social-icon.back-to-top:hover { background-color: #fff; color: #000; }

@media (max-width: 768px) {
    /* Layout - sekcje */
    .about-grid, .offer-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: 1;
    }

    .about-text {
        order: -1;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .gallery-grid img {
        height: 160px;
    }

    .section-padding {
        padding: 50px 0;
    }

    #opinie {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    #kontakt {
        padding-top: 80px;
        padding-bottom: 60px;
    }

    footer {
        padding: 20px 0;
    }

    /* Google buttons */
    .google-buttons {
        flex-direction: column;
        gap: 10px;
    }

    /* Menu hamburger */
    .menu-toggle {
        display: block;
        font-size: 1.8rem;
        cursor: pointer;
        color: #fff;
        margin-left: auto;
    }

    header nav {
        order: 3;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 91px;
        right: 15px;
        left: auto;
        width: 200px;
        background-color: #000;
        padding: 15px 0;
        border: 1px solid #333;
        border-radius: 8px;
        z-index: 999;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 10px 0;
        text-align: center;
    }

    /* Slider */
    #slider-section {
        height: 320px;
    }

    .main-slider .swiper-button-next { right: 5px; }
    .main-slider .swiper-button-prev { left: 5px; }

    /* Nagłówek headline */
    #headline-dark {
        padding: 28px 0;
    }

    #headline-dark h1 {
        font-size: 1.6rem;
        padding: 0 15px;
    }

    .delicate-italic {
        font-size: 1rem;
        margin-top: 18px;
        padding: 0 15px;
    }

    /* Pływające ikony - schowane na mobile, zastąpione paskiem na dole */
    .side-socials {
        display: none;
    }

    /* Opinie - paddingi slidera */
    .reviews-swiper,
    .fb-reviews-swiper {
        padding: 20px 30px 60px 30px !important;
    }

    .fb-review-card {
        height: 100%;
        padding: 20px 18px 24px;
    }

    #opinie-fb .google-link-container {
        margin-top: 60px;
    }

    #opinie-fb {
        padding-bottom: 80px;
    }

    /* Przyciski - dopasowane do zawartości, wyśrodkowane */
    .google-buttons .btn {
        width: auto;
        align-self: center;
        padding: 12px 24px;
        font-size: 0.85rem;
        text-align: center;
    }

    .summary-percent {
        text-align: center;
        padding: 0 10px;
    }

    /* Formularz - zapobiegamy zoom na iOS */
    #contact-form input,
    #contact-form textarea {
        font-size: 16px;
    }

    /* Zabezpieczenie przed overflow treści */
    .container {
        padding: 0 15px;
    }

    h2 {
        font-size: 1.8rem;
    }
}

/* Pasek social media na dole - domyślnie ukryty, widoczny tylko na mobile */
.mobile-bottom-bar {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #111;
        border-top: 1px solid #333;
        z-index: 2000;
        justify-content: space-around;
        align-items: center;
        padding: 8px 0;
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
    }

    .mobile-bottom-bar a {
        color: #fff;
        font-size: 1.3rem;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        text-decoration: none;
        transition: color 0.2s;
    }

    .mobile-bottom-bar a.tel {
        background-color: #25D366;
        border-radius: 50%;
        font-size: 1.1rem;
    }

    .mobile-bottom-bar a:active {
        opacity: 0.7;
    }

    body {
        padding-bottom: calc(60px + env(safe-area-inset-bottom));
    }
}