/* --- ZMIENNE I RESET --- */
:root {
    --primary: #e62e2e; /* Czerwień */
    --primary-dark: #cc1f1f;
    --dark: #1f2429;    /* Grafit */
    --light: #f4f4f4;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Montserrat', sans-serif; line-height: 1.6; color: var(--dark); background-color: var(--white); display: flex; flex-direction: column; min-height: 100vh; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.btn-primary { background: var(--primary); color: white; padding: 12px 25px; border-radius: 5px; font-weight: 600; display: inline-block; transition: 0.3s; }
.btn-primary:hover { background: var(--primary-dark); }
.section-padding { padding: 60px 0; }
.bg-light { background-color: var(--light); }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 40px; }
.page-header { background: var(--dark); color: white; padding: 60px 0; text-align: center; margin-bottom: 40px; }

/* --- HEADER --- */
header { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo img { height: 150px; width: auto; } 

.desktop-nav ul { display: flex; gap: 30px; }
.desktop-nav a { font-weight: 600; font-size: 16px; color: var(--dark); }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--primary); }

.hamburger { display: none; font-size: 24px; cursor: pointer; }
.mobile-nav { 
    display: none; position: absolute; top: 80px; left: 0; width: 100%; 
    background: var(--white); flex-direction: column; text-align: center; 
    box-shadow: 0 5px 10px rgba(0,0,0,0.1); 
}
.mobile-nav.active { display: flex; }
.mobile-nav a { padding: 15px; border-bottom: 1px solid #eee; font-weight: 600; }

/* --- HERO --- */
.hero { 
    background: url('images/hero.png') no-repeat center center/cover; 
    height: 80vh; display: flex; align-items: center; position: relative; color: white; 
}
.hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); }
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero h1 { font-size: 3rem; margin-bottom: 20px; line-height: 1.2; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; }

/* --- OFERTA --- */
.offer-preview { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: -50px; position: relative; z-index: 3; margin-bottom: 60px;}
.offer-box { background: white; padding: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); text-align: center; border-bottom: 4px solid var(--primary); border-radius: 5px; }
.offer-box i { font-size: 40px; color: var(--primary); margin-bottom: 20px; }
.offer-box h3 { margin-bottom: 10px; }

/* --- FAQ --- */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--light); margin-bottom: 15px; border-radius: 5px; overflow: hidden; }
.faq-question { padding: 20px; cursor: pointer; font-weight: bold; display: flex; justify-content: space-between; align-items: center; transition: 0.3s; }
.faq-answer { padding: 0 20px 20px; display: none; color: #555; border-top: 1px solid #ddd; }
.faq-item.active .faq-answer { display: block; }
.faq-item.active .faq-question { color: var(--primary); background: #f9f9f9; }
.faq-item.active i { transform: rotate(180deg); }

/* --- GALERIA REALIZACJI --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.gallery-item { position: relative; height: 300px; overflow: hidden; border-radius: 8px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; cursor: zoom-in; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-caption { position: absolute; bottom: 0; left: 0; width: 100%; background: rgba(0,0,0,0.7); color: white; padding: 15px; }
.gallery-caption h3 { margin: 0; font-size: 1.1rem; }
.gallery-caption p { margin: 0; font-size: 0.9rem; opacity: 0.9; }

/* --- OPINIE (HYBRID: AVATAR + PHOTO) --- */
.google-summary { text-align: center; margin-bottom: 30px; }
.big-rating { font-size: 2.5rem; font-weight: 700; color: #333; margin-right: 10px; }
.stars { color: #fbbc04; font-size: 1.2rem; }

/* Scrollowany pasek */
.reviews-scroller {
    display: flex;
    overflow-x: auto; 
    gap: 20px;
    padding: 10px 5px 30px 5px;
    scroll-behavior: smooth;
    scrollbar-width: thin; 
    scrollbar-color: #ccc transparent;
}
.reviews-scroller::-webkit-scrollbar { height: 8px; }
.reviews-scroller::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

/* Karta opinii */
.review-card {
    min-width: 300px; 
    max-width: 320px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    flex: 0 0 auto; 
}

/* Nagłówek (Z AVATAREM) */
.review-header { display: flex; align-items: center; margin-bottom: 12px; }
.review-avatar {
    width: 42px; height: 42px; border-radius: 50%; color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-size: 20px; margin-right: 12px; flex-shrink: 0;
}
.review-user-info h4 { font-size: 0.95rem; margin: 0; color: #202124; font-weight: 700; }
.review-user-info span { font-size: 0.8rem; color: #70757a; display: block; }
.google-icon { width: 22px; margin-left: auto; opacity: 0.8; }

/* Treść */
.review-text {
    font-size: 0.95rem; line-height: 1.5; color: #3c4043; margin-bottom: 15px; font-style: italic;
    display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
}

/* ZDJĘCIA W OPINII (Na dole) */
.review-photos { 
    margin-top: auto; 
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    display: flex; gap: 8px; 
}
.review-photos img {
    width: 110px;  
    height: 80px;  
    object-fit: cover; 
    border-radius: 6px; 
    border: 1px solid #ddd;
    cursor: zoom-in; 
    transition: 0.2s;
}
.review-photos img:hover { transform: scale(1.03); border-color: var(--primary); }

.reviews-footer { text-align: center; margin-top: 20px; }
.btn-google { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #dadce0; color: #3c4043; padding: 10px 20px; border-radius: 20px; font-weight: 600; transition: 0.3s; border: 1px solid #ddd; }
.btn-google:hover { background: #f1f3f4; }
.btn-google img { width: 18px; }

.lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.9); display: flex; justify-content: center; align-items: center; z-index: 9999; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 90%; max-height: 90%; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.5); transform: scale(0.9); transition: 0.3s ease; }
.lightbox.active img { transform: scale(1); }

/* --- FOOTER --- */
footer { background: var(--dark); color: white; text-align: center; padding: 30px 0; margin-top: auto; }
@media (max-width: 768px) {
    .desktop-nav, .contact-btn { display: none; }
    .hamburger { display: block; }
    .hero h1 { font-size: 2rem; }
    .offer-preview { margin-top: 30px; }
}