/* Stylizacja strony Oferta */
:root { 
    --primary-color: #01a1e5;
    --dark-color: #141518;
    --light-color: #f5f5f5;
}

/* Hero Section dla oferty */
.page-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('tlo2.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
    margin-top: var(--header-height);
}

.page-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.page-hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Sekcje ogólne */
section {
    padding: 80px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h2 {
    color: var(--dark-color);
    margin-bottom: 50px;
    font-size: 2.5em;
    text-align: center;
    position: relative;
}

h2::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

/* Szczegółowa oferta */
.detailed-offer {
    background: var(--light-color);
}

.offer-category {
    background: white;
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.offer-category:hover {
    transform: translateY(-5px);
}

.category-header {
    background: var(--dark-color);
    color: white;
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.category-header i {
    font-size: 2em;
    color: var(--primary-color);
}

.category-header h3 {
    font-size: 1.8em;
    margin: 0;
}

.offer-details {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.offer-item h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3em;
}

.offer-item p {
    color: #666;
    line-height: 1.7;
}

/* Proces działania */
.process {
    background: white;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.step {
    text-align: center;
    padding: 30px 20px;
    background: var(--light-color);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-10px);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step h4 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-size: 1.3em;
}

/* FAQ Section */
.faq {
    background: var(--light-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #f8f8f8;
}

.faq-question h4 {
    color: var(--dark-color);
    font-size: 1.1em;
    margin: 0;
    flex: 1;
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
    padding-bottom: 20px;
    color: #666;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: none; /* Zamiast stałej wartości */
    height: auto; /* Pozwala na automatyczne dopasowanie wysokości */
    overflow: visible; /* Pozwala na przewijanie jeśli treść jest długa */
    padding: 0 25px 20px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Contact Preview Section */
.contact-preview {
    padding: 80px 0;
    text-align: center;
    background-color: #f8f9fa;
}

.contact-preview h2 {
    margin-bottom: 20px;
}

.contact-preview p {
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s;
}

.btn-primary:hover {
    background-color: #0181b5;
    transform: translateY(-2px);
}

/* ============================================= */
/* RESPONSIVE DESIGN - OFERTA */
/* ============================================= */

/* Tablet (769px - 1024px) */
@media (max-width: 1024px) {
    .page-hero {
        padding: 80px 0;
    }
    
    .page-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .category-header {
        padding: 20px 25px;
    }
    
    .category-header h3 {
        font-size: 1.6em;
    }
    
    .offer-details {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
        padding: 25px;
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* Small Tablet (577px - 768px) */
@media (max-width: 768px) {
    .page-hero {
        padding: 60px 0;
    }
    
    .page-hero-content h1 {
        font-size: 2rem;
    }
    
    .page-hero-content p {
        font-size: 1.1rem;
        padding: 0 20px;
    }
    
    section {
        padding: 60px 0;
    }
    
    h2 {
        font-size: 2em;
        margin-bottom: 40px;
    }
    
    .category-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }
    
    .category-header i {
        font-size: 1.8em;
    }
    
    .category-header h3 {
        font-size: 1.5em;
    }
    
    .offer-details {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .step {
        padding: 25px 15px;
    }
    
    .faq-question {
        padding: 15px 20px;
    }
    
    .faq-question h4 {
        font-size: 1em;
    }
    
    /* Poprawki dla FAQ na urządzeniach mobilnych */
    .faq-answer p {
        padding-bottom: 15px;
        line-height: 1.6;
        font-size: 0.95em; /* Nieco mniejszy tekst dla lepszego dopasowania */
    }
    
    .faq-item.active .faq-answer {
        padding: 0 15px 15px; /* Mniejsze paddingi na urządzeniach mobilnych */
    }
}

/* Mobile (425px - 576px) */
@media (max-width: 576px) {
    .page-hero {
        padding: 50px 0;
    }
    
    .page-hero-content h1 {
        font-size: 1.75rem;
    }
    
    .page-hero-content p {
        font-size: 1rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    h2 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    
    .category-header {
        padding: 15px 20px;
    }
    
    .category-header h3 {
        font-size: 1.4em;
    }
    
    .offer-details {
        padding: 15px;
    }
    
    .offer-item h4 {
        font-size: 1.2em;
    }
    
    .step {
        padding: 20px 15px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.3em;
    }
    
    .faq-question {
        padding: 12px 15px;
    }
    
    .faq-answer p {
        padding-bottom: 15px;
    }
    
    .btn-primary {
        padding: 10px 25px;
        font-size: 0.95em;
    }
}

/* Small Mobile (320px - 424px) */
@media (max-width: 424px) {
    .container {
        padding: 0 15px;
    }
    
    .page-hero {
        padding: 40px 0;
    }
    
    .page-hero-content h1 {
        font-size: 1.5rem;
    }
    
    .page-hero-content p {
        font-size: 0.95rem;
        padding: 0 15px;
    }
    
    section {
        padding: 40px 0;
    }
    
    h2 {
        font-size: 1.6em;
    }
    
    .category-header {
        padding: 12px 15px;
    }
    
    .category-header h3 {
        font-size: 1.3em;
    }
    
    .offer-details {
        padding: 12px;
    }
    
    .contact-preview {
        padding: 40px 0;
    }
    
    .btn-primary {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    /* Dodatkowe poprawki dla bardzo małych urządzeń */
    .faq-answer p {
        padding-bottom: 12px;
        line-height: 1.5;
        font-size: 0.9em;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 12px 12px;
    }
}