:root {
    --primary: #121416;
    --accent: #C5A059;
    --white: #FFFFFF;
    --bg-alt: #F9F9F9;
    --radius: 15px;
    --shadow: 0 15px 40px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: #f5f5f5; }

body { 
    font-family: 'Plus Jakarta Sans', sans-serif; 
    background: var(--white); 
    color: var(--primary); 
    line-height: 1.6;
    max-width: 800px; 
    margin: 0 auto; 
    box-shadow: 0 0 50px rgba(0,0,0,0.05);
    position: relative;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; }

/* --- TELEFON FLOAT --- */
.phone-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(197, 160, 89, 0.4);
    z-index: 3000;
    transition: all 0.3s ease;
    animation: pulse-ring 2s infinite;
}
.phone-float:hover { transform: scale(1.1); background-color: var(--primary); }
.phone-float svg { width: 28px; height: 28px; fill: currentColor; }

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(197, 160, 89, 0); }
    100% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0); }
}

/* --- NAWIGACJA --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 800px;
    z-index: 2000;
    padding: 15px 0;
    transition: all 0.4s ease;
    background: transparent;
}
header.scrolled {
    padding: 10px 0;
    background: rgba(18, 20, 22, 0.98);
    backdrop-filter: blur(10px);
}
.nav-container {
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { color: var(--white); text-decoration: none; font-size: 1rem; font-weight: 700; letter-spacing: 1px; }
.logo span { color: var(--accent); }
.nav-menu { display: flex; list-style: none; gap: 12px; }
.nav-menu a { text-decoration: none; color: var(--white); font-size: 0.6rem; text-transform: uppercase; font-weight: 600; letter-spacing: 1px; }

/* --- HERO --- */
.hero {
    height: 380px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.3)), 
                url('img/hero.webp') center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}
.hero-content h1 { font-size: clamp(2.2rem, 10vw, 3.5rem); text-shadow: 0 2px 15px rgba(0,0,0,0.4); }

/* --- PHOTOSWIPE (GALERIA) --- */
.pswp { z-index: 2500 !important; }
.pswp__top-bar { z-index: 2500 !important; }

/* --- SEKCJE OGÓLNE --- */
section { padding: 60px 20px; }
.section-header { margin-bottom: 30px; text-align: center; }
.section-header span { color: var(--accent); text-transform: uppercase; font-size: 0.7rem; letter-spacing: 3px; font-weight: 700; display: block; margin-bottom: 5px; }
.section-header h2 { font-size: 1.8rem; line-height: 1.2; }

/* --- O MNIE (DESKTOP) --- */
#o-mnie { display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; align-items: start; }
.profile-img { 
    width: 100%; max-width: 280px; height: auto; aspect-ratio: 1 / 1; 
    object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow);
    display: block; margin: 0;
}
.about-text-container { text-align: left; }
.about-text-container p { margin-bottom: 15px; }

/* --- DOLEGLIWOŚCI (DESKTOP) --- */
.pain-content-wrapper { 
    display: flex; 
    flex-direction: row; 
    align-items: flex-start; 
    gap: 20px; 
    margin-top: 20px; 
}
.pain-action-img {
    width: 35%; 
    height: auto; 
    max-height: 550px; 
    object-fit: cover; 
    border-radius: var(--radius); 
    box-shadow: var(--shadow);
    position: sticky;  
    top: 90px;         
}
.pain-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 12px; 
    flex-grow: 1; 
}
.pain-card { 
    background: var(--bg-alt); 
    padding: 20px; 
    border-radius: 12px; 
    border-left: 3px solid var(--accent); 
}
.pain-card h3 { font-size: 0.9rem; margin-bottom: 6px; font-weight: 700; }
.pain-card p { font-size: 0.8rem; color: #666; }

/* --- OPINIE --- */
.testimonials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.testimonial-card { background: var(--bg-alt); padding: 25px; border-radius: var(--radius); position: relative; }
.testimonial-stars { color: var(--accent); margin-bottom: 10px; font-size: 0.8rem; }
.testimonial-text { font-style: italic; font-size: 0.85rem; margin-bottom: 15px; color: #444; }
.testimonial-author { font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--primary); }

/* --- FORMULARZ DODAWANIA OPINII --- */
.testimonial-toggle-container { text-align: center; margin-top: 30px; }
.btn-review-toggle { 
    display: inline-block; color: var(--accent); text-decoration: none; 
    font-size: 0.8rem; font-weight: 600; text-transform: uppercase; 
    letter-spacing: 1px; border-bottom: 1px dashed var(--accent); padding-bottom: 2px; transition: 0.3s;
}
.btn-review-toggle:hover { color: var(--primary); border-bottom-color: var(--primary); }

.review-form-wrapper { 
    max-width: 550px; margin: 30px auto 0; padding: 25px; 
    background: var(--bg-alt); border-radius: var(--radius); 
    box-shadow: inset 0 0 10px rgba(0,0,0,0.02);
}
.form-row-flex { display: flex; gap: 15px; align-items: center; margin-bottom: 10px; }
.form-row-flex input { margin-bottom: 0; }
.rating-select-container { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.rating-select-container label { font-size: 0.85rem; color: #555; font-weight: 600; }
.rating-select-container select { padding: 10px; border: 1px solid #ddd; border-radius: 8px; font-family: inherit; font-size: 14px; background: white; }

#review-form-status { margin-top: 15px; font-size: 0.85rem; padding: 10px; border-radius: 8px; display: none; text-align: center; }
#review-form-status.success { display: block; background: #e7f4e7; color: #2e7d32; border: 1px solid #c8e6c9; }
#review-form-status.error { display: block; background: #fdeaea; color: #c62828; border: 1px solid #ffcdd2; }

/* --- GALERIA --- */
.gal-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.gal-item { height: 160px; overflow: hidden; border-radius: 10px; cursor: pointer; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; display: block; }
.gal-item:hover img { transform: scale(1.05); }

.btn-outline {
    display: inline-block; padding: 12px 25px; border: 1.5px solid var(--accent);
    color: var(--accent); text-decoration: none; text-transform: uppercase;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 2px; border-radius: 6px;
}

/* --- CENNIK --- */
.offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.offer-item { padding: 15px 10px; border-bottom: 1px solid #f0f0f0; }
.offer-header-flex { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; gap: 10px; }
.offer-item h3 { font-size: 1.1rem; color: var(--accent); }
.offer-price { font-weight: 700; color: var(--primary); font-size: 0.9rem; white-space: nowrap; }
.offer-item p { font-size: 0.85rem; color: #555; line-height: 1.5; }
.offer-subtitle { font-weight: 700; display: block; margin-bottom: 4px; color: var(--primary); font-size: 0.85rem; }

/* --- KONTAKT --- */
.contact-area { background: var(--bg-alt); text-align: center; border-radius: var(--radius); padding: 50px 20px; }
.contact-intro { font-size: 0.9rem; margin-bottom: 15px; max-width: 600px; margin-left: auto; margin-right: auto; color: #555; }
.contact-call-text { font-size: 1.1rem; color: var(--primary); font-weight: 600; margin-top: 20px; }
.tel-big { display: block; font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--accent); text-decoration: none; font-weight: 700; margin: 5px 0; }
.contact-form-text { font-size: 0.9rem; color: #555; margin-bottom: 10px; }

form { display: flex; flex-direction: column; gap: 10px; max-width: 450px; margin: 15px auto 0; }
input, textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-family: inherit; font-size: 16px; transition: 0.3s; }
input:focus, textarea:focus { border-color: var(--accent); outline: none; }
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-label { font-size: 0.85rem; color: #555; white-space: nowrap; }

button { background: var(--primary); color: white; padding: 16px; border: none; text-transform: uppercase; font-weight: 700; cursor: pointer; border-radius: 8px; transition: 0.3s; }
button:hover { background: var(--accent); }
button:disabled { opacity: 0.5; cursor: not-allowed; }

#form-status { margin-top: 15px; font-size: 0.85rem; padding: 10px; border-radius: 8px; display: none; }
#form-status.success { display: block; background: #e7f4e7; color: #2e7d32; border: 1px solid #c8e6c9; }
#form-status.error { display: block; background: #fdeaea; color: #c62828; border: 1px solid #ffcdd2; }

/* --- STOPKA & PROMO --- */
.main-footer { background: var(--primary); color: #666; padding: 40px 20px; text-align: center; margin-top: 60px; border-top: 1px solid rgba(255,255,255,0.05); }
.main-footer a { color: #888; text-decoration: none; transition: 0.3s; }
.main-footer a:hover { color: var(--accent); }
.footer-logo { color: var(--white); text-decoration: none; font-size: 1rem; font-weight: 600; margin-bottom: 15px; display: block; letter-spacing: 1px; }
.footer-logo span { color: var(--accent); }
.footer-text { font-size: 0.75rem; margin-bottom: 8px; }
.admin-link { font-size: 0.65rem; color: #444 !important; text-transform: uppercase; letter-spacing: 1px; margin-top: 15px; display: inline-block; }

.promo-bar { background-color: var(--accent); color: var(--white); padding: 15px 20px; text-align: center; font-weight: 600; font-size: 0.9rem; letter-spacing: 1px; box-shadow: inset 0 -5px 10px rgba(0,0,0,0.05); }
.promo-content { display: flex; align-items: center; justify-content: center; gap: 10px; line-height: 1.4; padding: 5px 0; }
.promo-icon { font-size: 1.1rem; }



@media (max-width: 768px) {
    /* 1. Reset nawigacji */
    .nav-container { flex-direction: column; gap: 8px; text-align: center; }
    .nav-menu { justify-content: center; flex-wrap: wrap; gap: 15px; }
    
    /* 2. Telefon floating button */
    .phone-float { bottom: 20px; right: 20px; width: 55px; height: 55px; }

    /* 3. Sekcja O mnie - Wymuszenie równego układu pionowego */
    #o-mnie { 
        display: flex !important; 
        flex-direction: column !important; 
        gap: 20px !important; 
    }
    .profile-img { 
        position: static !important;
        max-width: 100% !important; 
        width: 100% !important;
        height: auto !important;
        margin: 0 auto 10px auto !important;
    }
    .about-text-container { text-align: center !important; }

    /* 4. Sekcja Dolegliwości - Likwidacja nakładania i sticky błędu */
    .pain-content-wrapper { 
        display: flex !important; 
        flex-direction: column !important; 
        gap: 20px !important; 
    }
    .pain-action-img { 
        position: static !important; /* Wyłącza przyklejanie zdjęcia pod tekst */
        width: 100% !important; 
        height: 240px !important; 
        margin: 0 0 10px 0 !important;
    }
    .pain-grid { 
        display: grid !important;
        grid-template-columns: 1fr !important; /* Kafelki jeden pod drugim */
        gap: 12px !important; 
        width: 100% !important;
    }

    /* 5. Siatki Opinii, Galerii i Cennika na 1 kolumnę */
    .testimonials-grid, .offer-grid { 
        grid-template-columns: 1fr !important; 
    }
    .gal-grid { 
        grid-template-columns: 1fr 1fr !important; /* Zdjęcia w galerii 2 obok siebie na mobile */
    }

    /* 6. Formularz opinii na mobile */
    .form-row-flex { 
        flex-direction: column !important; 
        align-items: stretch !important; 
        gap: 12px !important; 
    }
    .rating-select-container { 
        justify-content: space-between !important; 
    }
    .captcha-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    .captcha-row input {
        width: 100% !important;
    }
}
