/* --- Global Styles & Variables --- */
:root {
    --primary-color: #3498db;
    --dark-blue: #2c3e50;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --font-family: 'Poppins', sans-serif;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --border-radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--font-family); line-height: 1.7; color: var(--text-color); background-color: var(--white); overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { color: var(--dark-blue); font-weight: 700; line-height: 1.2; }
h2 { font-size: 2.8rem; text-align: center; margin-bottom: 3rem; }
h3 { font-size: 1.8rem; }

/* TUTAJ DODAŁEM WIĘKSZE ODSTĘPY MIĘDZY SEKCJAMI */
section { 
    padding: 90px 0; 
}

/* --- Buttons --- */
.btn { display: inline-block; padding: 12px 28px; text-decoration: none; border-radius: 50px; font-weight: 600; transition: transform 0.3s ease, background-color 0.3s ease; border: none; cursor: pointer; }
.btn-primary { background: var(--primary-color); color: var(--white); }
.btn-primary:hover { background: #2980b9; transform: translateY(-3px); }
.btn-secondary { background: transparent; color: var(--primary-color); border: 2px solid var(--primary-color); }
.btn-secondary:hover { background: var(--primary-color); color: var(--white); transform: translateY(-3px); }

/* --- Header & Navigation --- */
#main-header { position: fixed; width: 100%; top: 0; z-index: 1000; transition: background-color 0.4s ease, box-shadow 0.4s ease; }
#main-header.scrolled { background-color: var(--white); box-shadow: var(--shadow); }
#main-header nav { display: flex; justify-content: space-between; align-items: center; padding: 15px 40px; }
#main-header .logo { font-size: 1.8rem; font-weight: 700; color: var(--white); text-decoration: none; }
#main-header.scrolled .logo { color: var(--dark-blue); }
.nav-right { display: flex; align-items: center; gap: 1.5rem; }
#main-header nav ul { list-style: none; display: flex; align-items: center; margin: 0; }
#main-header nav ul li a { text-decoration: none; color: var(--white); padding: 0 1rem; font-weight: 600; transition: color 0.3s; }
#main-header.scrolled nav ul li a { color: var(--text-color); }
#main-header nav ul li a:hover { color: var(--primary-color); }
.nav-socials { display: flex; gap: 1rem; }
.nav-socials a { color: var(--white); font-size: 1.1rem; transition: color 0.3s, transform 0.3s; }
.nav-socials a:hover { color: var(--primary-color); transform: scale(1.2); }
#main-header.scrolled .nav-socials a { color: var(--text-color); }

/* --- Hamburger Menu --- */
.hamburger { display: none; background: none; border: none; color: var(--white); font-size: 1.8rem; cursor: pointer; z-index: 2001; }
#main-header.scrolled .hamburger { color: var(--dark-blue); }
.mobile-nav { position: fixed; top: 0; right: 0; width: 80%; height: 100vh; background-color: var(--dark-blue); z-index: 2000; display: flex; flex-direction: column; align-items: center; justify-content: center; transform: translateX(100%); transition: transform 0.4s ease-in-out; }
.mobile-nav.active { transform: translateX(0); }
.mobile-nav a { color: var(--white); text-decoration: none; font-size: 1.5rem; margin: 1.5rem 0; }

/* --- Hero Section --- */
#hero { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); background: url('Foto/tlo 6.jpg') no-repeat center center/cover; padding: 0; /* Reset padding for hero */ }
#hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(44, 62, 80, 0.7); }
.hero-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }

.video-placeholder-main {
    width: 85vw;
    max-width: 680px;
    height: 420px;
    margin-bottom: 2.5rem;
    border-radius: var(--border-radius);
    overflow: hidden; 
    background-color: #000; 
    box-shadow: var(--shadow);
}
.video-placeholder-main video {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

/* --- Stats Section --- */
#stats { background: var(--light-gray); }
#stats .container { display: flex; justify-content: space-around; text-align: center; }
.stat-item h2 { font-size: 3.5rem; color: var(--primary-color); }
.stat-item p { font-weight: 600; color: #555; }

/* --- Content Sections --- */
.content-container { display: flex; gap: 4rem; align-items: center; }
.content-section.reverse .content-container { flex-direction: row-reverse; }
.text-content, .image-content { flex: 1; }
.text-content h2 { text-align: left; margin-bottom: 1.5rem; }

.image-content img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    object-fit: cover; 
}
#how-it-works .image-content {
    min-height: 400px; 
}

/* --- Accordion --- */
.accordion details { margin-bottom: 1rem; border-bottom: 1px solid #ddd; }
.accordion summary { font-weight: 600; font-size: 1.1rem; cursor: pointer; padding: 1rem 0; list-style: none; position: relative; padding-right: 25px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; position: absolute; right: 5px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--primary-color); transition: transform 0.3s; }
.accordion details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.accordion details p { padding: 0 1rem 1rem 1rem; line-height: 1.8; }

/* --- "How it works" Section --- */
.how-it-works-list { list-style: none; padding-left: 0; margin-bottom: 2rem; }
.how-it-works-list li { position: relative; padding-left: 30px; margin-bottom: 1rem; font-size: 1.1rem; line-height: 1.6; }
.how-it-works-list li i { position: absolute; left: 0; top: 5px; color: var(--primary-color); font-size: 1.2rem; }
.buttons-container { display: flex; gap: 1rem; margin-top: 2rem; }

/* --- Testimonial Slider & Case Study Button --- */
.opinions-section { background: var(--light-gray); }
.testimonial-slider-wrapper { position: relative; max-width: 1100px; margin: 0 auto; }
.testimonial-slider { overflow: hidden; }
.slider-track { display: flex; transition: transform 0.5s ease-in-out; }
.testimonial-card { flex-shrink: 0; width: 100%; padding: 0 1rem; box-sizing: border-box; }
.testimonial-card > div { background: var(--white); padding: 2.5rem; border-radius: var(--border-radius); box-shadow: var(--shadow); text-align: center; height: 100%; display: flex; flex-direction: column; }
.testimonial-card img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin-bottom: 1.5rem; border: 3px solid var(--primary-color); }
.testimonial-card p { font-style: italic; margin-bottom: 1.5rem; font-size: 0.95rem; flex-grow: 1; }
.testimonial-card span { font-weight: 700; color: var(--dark-blue); }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: var(--white); color: var(--primary-color); border: none; border-radius: 50%; width: 45px; height: 45px; font-size: 1.2rem; cursor: pointer; box-shadow: var(--shadow); transition: background-color 0.3s, color 0.3s; z-index: 10; }
.slider-btn:hover { background-color: var(--primary-color); color: var(--white); }
.slider-btn.prev { left: -20px; }
.slider-btn.next { right: -20px; }
.btn-case-study { background: transparent; border: 1px solid var(--primary-color); color: var(--primary-color); padding: 8px 16px; border-radius: 20px; cursor: pointer; margin-top: 1.5rem; transition: background-color 0.3s, color 0.3s; }
.btn-case-study:hover { background-color: var(--primary-color); color: var(--white); }

@media(min-width: 768px) { .testimonial-card { width: 50%; } }
@media(min-width: 1024px) { .testimonial-card { width: 33.333%; } }

/* --- About Section --- */
.about-section { background: var(--white); }
.about-us-main { display: flex; gap: 2rem; align-items: center; background: var(--light-gray); padding: 2rem; border-radius: var(--border-radius); }
.about-us-main img { max-width: 40%; border-radius: var(--border-radius); }
.team-heading { text-align: center; margin: 4rem 0 2rem 0; }
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
.team-member { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.team-member img { 
    width: 150px; 
    height: 150px; 
    object-fit: cover; 
    border-radius: 50%; /* <-- POPRAWIONE Z POWROTEM NA KÓŁKO */
    border: 3px solid var(--primary-color); 
    transition: transform 0.3s; 
}
.team-member:hover img { transform: scale(1.1); }
.team-member span { font-weight: 600; color: var(--dark-blue); }

/* --- Contact Section --- */
.contact-section { background: var(--light-gray); color: var(--text-color); }
.contact-section h2 { color: var(--dark-blue); }
.contact-section p { text-align: center; margin-bottom: 2rem; }
.google-form-container { max-width: 800px; margin: 0 auto; border-radius: var(--border-radius); overflow: hidden; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.google-form-container iframe { width: 100%; display: block; }

/* --- Footer --- */
footer { background: #1e2b38; color: #a9b3be; padding: 2rem 0; }
footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.footer-links { display: flex; gap: 1.5rem; }
footer a { color: var(--white); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* --- Modals (Pricing & Case Study) --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0s 0.4s; padding: 1rem; }
.modal-overlay.active { opacity: 1; visibility: visible; transition: opacity 0.4s; }
.modal-content { background: var(--white); padding: 2rem; border-radius: var(--border-radius); max-width: 900px; width: 100%; position: relative; transform: translateY(-50px); transition: transform 0.4s; max-height: 90vh; overflow-y: auto; }
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-close-btn { position: absolute; top: 10px; right: 10px; background: #eee; border: none; font-size: 1.5rem; cursor: pointer; color: #555; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; line-height: 1; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.pricing-card { border: 1px solid #ddd; border-radius: var(--border-radius); padding: 1.5rem; text-align: center; display: flex; flex-direction: column; }
.pricing-card h3 { flex-grow: 1; }
.pricing-card p { margin-top: 1rem; flex-grow: 1; }

.price-wrapper { 
    margin: 1rem 0; 
    min-height: 80px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
}
.price-wrapper .old-price { 
    font-size: 1.2rem; 
    color: #999; 
    text-decoration: line-through; 
    display: block; 
}
.price-wrapper .old-price small {
    font-size: 0.9rem;
}

.price-wrapper .promo-price, 
.price-wrapper .final-price { 
    font-size: 3.5rem; 
    font-weight: 700; 
    color: var(--primary-color); 
    line-height: 1; 
}

.price-wrapper small { 
    font-size: 1.1rem; 
    font-weight: 600; 
    color: var(--text-color);
    margin-left: 0.2em;
}

.price-wrapper .promo-price,
.promotion-ended .final-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.promo-text { 
    background-color: var(--primary-color); 
    color: var(--white); 
    padding: 8px 16px; 
    border-radius: 20px; 
    font-size: 0.9rem; 
    display: inline-block;
    border: none;
}

.final-price { 
    display: none; 
}

.promotion-ended .old-price, 
.promotion-ended .promo-price, 
.promotion-ended .promo-text { 
    display: none;
}
.promotion-ended .final-price { 
    display: flex; 
}

.case-study-modal h3 { font-size: 1.3rem; margin: 1.5rem 0 1rem 0; }
.case-study-modal ul { list-style: none; padding-left: 0; }
.case-study-modal ul li { margin-bottom: 1rem; line-height: 1.8; }
.case-study-modal ul li strong { color: var(--dark-blue); }

/* --- Scroll Animations --- */
.fade-in-section { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in-section.is-visible { opacity: 1; transform: translateY(0); }

/* --- Responsive Design --- */
@media(max-width: 900px) {
    .nav-right { display: none; }
    .hamburger { display: block; }
    #main-header nav { padding: 15px 20px; }
}
@media(max-width: 768px) {
    h2 { font-size: 2.2rem; }
    .content-container, .content-section.reverse .content-container, .about-us-main { flex-direction: column; text-align: center; }
    .text-content h2 { text-align: center; }
    .about-us-main img { max-width: 80%; }
    #stats .container { flex-direction: column; gap: 2rem; }
    .slider-btn.prev { left: 5px; }
    .slider-btn.next { right: 5px; }
    footer .container { flex-direction: column; gap: 1rem; }
    .buttons-container { flex-direction: column; align-items: center; }
    .modal-content { padding: 1.5rem; padding-top: 3.5rem; }
    .modal-close-btn { top: 5px; right: 5px; }
    #main-header .logo { font-size: 1.5rem; }

    /* DODANE POPRAWKI DO WIDEO NA TELEFONIE */
    .video-placeholder-main {
        height: auto;
        width: 90vw;
        aspect-ratio: 16 / 9;
    }
}