/* --- STYLE DLA STRONY OBSZAR DZIAŁANIA --- */

/* 1. HERO SECTION - POPRAWA CZYTELNOŚCI */
.subpage-hero {
    position: relative;
    /* Ciemniejszy gradient (0.85) dla lepszego kontrastu napisów */
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.7)), url('../images/domy/konstantynow-1.webp');
    background-size: cover;
    background-position: center;
    padding: 180px 0 100px;
    color: #ffffff;
    text-align: center;
}

.hero__title--page {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    /* Dodatkowy cień pod tekstem dla odcięcia od tła */
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.hero__text--page {
    color: #e2e8f0; /* Jasny szary, prawie biały */
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero__badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #38bdf8; /* Jasny niebieski akcent */
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* 2. KARTY REGIONÓW */
.region-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f1f5f9;
}

.region-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.region-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.region-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 300px;
}

.region-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.region-card:hover .region-img {
    transform: scale(1.05);
}

.city-title {
    font-size: 1.5rem;
    color: #0f172a; /* Ciemny granat */
    margin-bottom: 15px;
    font-weight: 700;
}

.city-title i {
    color: var(--secondary-color);
    margin-right: 10px;
}

/* Lista miast (tagi) */
.city-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto; /* Dopycha do dołu kontenera */
}

.city-tag {
    display: inline-block;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #475569;
    font-weight: 500;
    transition: background 0.2s;
}

.city-tag:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* 3. SEKCJA LOGISTYKA */
.logistics-section {
    background-color: #0f172a; /* Ciemny granat, prawie czarny */
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Ozdobny element w tle */
.logistics-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.1), transparent 70%);
    pointer-events: none;
}

.logistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.logistics-item {
    padding: 20px;
}

.logistics-item i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #38bdf8; /* Jasny niebieski */
}

.logistics-item h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.logistics-item p {
    color: #94a3b8; /* Szary tekst na ciemnym tle */
    line-height: 1.6;
}

/* 4. FAQ SEKCJA (ACCORDION) */
.faq-logistic-item {
    background: white;
    border-radius: 16px;
    margin-bottom: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border: 1px solid #f1f5f9;
    overflow: hidden; /* Ważne dla animacji */
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.faq-logistic-item:hover {
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    border-color: #cbd5e1;
}

.faq-header {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    outline: none;
}

.faq-header h4 {
    margin: 0;
    color: #0f172a; /* Ciemny nagłówek */
    font-weight: 600;
    font-size: 1.1rem;
    padding-right: 20px;
}

.faq-icon {
    color: var(--secondary-color);
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #ffffff;
}

/* Klasa active dla otwartego elementu */
.faq-logistic-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-logistic-item.active .faq-header h4 {
    color: var(--secondary-color); /* Podświetlenie pytania */
}

.faq-inner {
    padding: 0 25px 25px 25px;
    color: #334155;
    line-height: 1.6;
    border-top: 1px solid transparent; /* Rezerwacja miejsca */
}

/* RESPANSYWNOŚĆ */
@media (max-width: 768px) {
    .subpage-hero {
        padding: 140px 0 60px;
    }
    
    .hero__title--page {
        font-size: 1.8rem;
    }

    .region-card {
        grid-template-columns: 1fr;
    }
    
    .region-img-wrapper {
        height: 250px;
        min-height: auto;
    }

    .region-content {
        padding: 25px;
    }
    
    /* Na mobile odwracamy kolejność flex/grid, żeby obrazek był zawsze pierwszy */
    .region-card:nth-child(2) {
        display: flex;
        flex-direction: column;
    }

    .faq-header {
        padding: 15px 20px;
    }
    
    .faq-header h4 {
        font-size: 1rem;
    }
}