/* =========================================
   CONTACT SECTION (Tło, Logo i Nowoczesny wygląd)
========================================= */

.contact-section {
    padding: 140px 20px 160px;
    /* Kolor tła bez zmian */
    background: linear-gradient(180deg, #d3e5f5 0%, #eef5ff 100%);
    font-family: 'Nunito', sans-serif;
    scroll-margin-top: 80px;
    position: relative;
    overflow: visible;
    /* USUNIĘTO border-radius: 80px 80px 0 0; żeby góra mogła idealnie stykać się z falą */
    /* USUNIĘTO ujemny margin-top i box-shadow */
    margin-top: 0;
    z-index: 10;
}



.position-relative {
    position: relative;
    z-index: 2;
}

.contact-section .wrap {
    max-width: 1100px;
    margin: 0 auto;
}

/* ================== NAGŁÓWEK SEKCI ================== */
.contact-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.contact-header-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.contact-header-logo img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    filter: drop-shadow(0 8px 16px rgba(74, 158, 255, 0.15));
}

.contact-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.contact-header p {
    font-size: 1.25rem;
    color: #4a5568;
    line-height: 1.7;
}

/* Dekoracyjne tła - bąbelki */
.contact-bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.6;
}

.bg-blob-left {
    width: 500px;
    height: 500px;
    background: #8ec3f8;
    top: -150px;
    left: -200px;
}

.bg-blob-right {
    width: 400px;
    height: 400px;
    background: #ffb8d2;
    bottom: 50px;
    right: -150px;
}

/* ================== SIATKA ================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 50px;
    align-items: stretch;
}

/* ================== LEWA KARTA (WIZYTÓWKA) ================== */
.contact-info-box {
    background: #ffffff;
    border-radius: 32px;
    padding: 50px 40px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    border: none;
}

/* Układ Logo + Nazwa firmy wewnątrz karty */
.contact-company-name-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.contact-card-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: transparent;
    filter: drop-shadow(0 4px 8px rgba(74, 158, 255, 0.15));
}

.contact-company-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a202c;
    line-height: 1.2;
    margin-bottom: 0;
}

.contact-company-name span {
    color: #4a9eff;
    font-size: 1.25rem;
    display: block;
    margin-top: 2px;
    letter-spacing: -0.2px;
    text-transform: uppercase;
}

/* Lista kontaktowa */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    position: relative;
    z-index: 1;
}

.contact-list li {
    display: flex;
    align-items: flex-start; /* Zmienione z center na flex-start, by zrównać ikonkę z pierwszym rzędem (jak kapsułka) */
    gap: 24px;
    margin-bottom: 30px;
}

.contact-list li:last-child {
    margin-bottom: 0;
}

/* Okrągłe, niebieskie ikony w wizytówce */
.contact-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e2eeff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a9eff;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.8), 0 8px 16px rgba(74, 158, 255, 0.12);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.2;
    stroke: currentColor;
    fill: none;
    transition: all 0.3s ease;
}

.contact-icon svg circle,
.contact-icon svg path,
.contact-icon svg polyline {
    stroke: currentColor;
}

/* Stan PO najechaniu (hover) na całą linię */
.contact-list li:hover .contact-icon {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, #4a9eff 0%, #8a98eb 100%);
    color: #ffffff !important;
}

/* Wymuszenie bieli na kreskach samej ikony przy najeżdżaniu */
.contact-list li:hover .contact-icon svg,
.contact-list li:hover .contact-icon svg path,
.contact-list li:hover .contact-icon svg circle,
.contact-list li:hover .contact-icon svg polyline {
    stroke: #ffffff !important;
}

/* Teksty obok ikon (np. Email, Adres) */
.contact-text {
    display: flex;
    flex-direction: column;
    margin-top: 4px; /* Dodane dla lepszego wyrównania ze środkiem ikony po zastosowaniu flex-start */
}

.contact-text strong {
    font-size: 0.85rem;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    font-weight: 800;
}

.contact-text a, .contact-text span {
    font-size: 1.15rem;
    color: #2d3748;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.contact-text a:hover {
    color: #4a9eff;
}

/* ================== KAPSUŁKI TELEFONICZNE ================== */

/* Kontener dla kapsułek telefonicznych */
.contact-pills-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 6px;
    width: 100%;
}

/* Nowoczesna Kapsułka z numerem telefonu */
.contact-pill {
    display: inline-flex;
    flex-direction: column;
    background: #f4f8fc;
    border: 1px solid #e2eef9;
    padding: 12px 20px; /* Zwiększony padding, żeby karta oddychała */
    border-radius: 18px; /* Bardziej obłe rogi */
    text-decoration: none !important;
    transition: all 0.3s ease;
    align-items: flex-start;
    min-width: 220px; /* WYMUSZA TĄ SAMĄ SZEROKOŚĆ OBU KAFELKÓW */
}

/* Co się dzieje po najechaniu na kapsułkę */
.contact-pill:hover {
    background: #ffffff;
    border-color: #4a9eff;
    box-shadow: 0 8px 25px rgba(74, 158, 255, 0.15); /* Nieco bardziej widoczny cień podskoku */
    transform: translateY(-3px); /* Wyższy skok przy najechaniu */
}

/* Mały napis u góry kapsułki (Kto to) */
.contact-pill .pill-label {
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    color: #718096 !important; /* Przyciemniony dla lepszej czytelności */
    letter-spacing: 0.8px;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

/* Główny, duży numer telefonu na dole kapsułki */
.contact-pill .pill-number {
    font-size: 1.2rem !important; /* Większy numer telefonu */
    font-weight: 800 !important;
    color: #1a202c !important;
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
}

/* Koloruje teksty na niebiesko przy najeżdżaniu */
.contact-pill:hover .pill-label,
.contact-pill:hover .pill-number {
    color: #4a9eff !important;
}


/* ================== PRZYCISK FACEBOOK ================== */
.contact-facebook-btn a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background: #1877F2;
    color: #ffffff;
    padding: 18px 20px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(24, 119, 242, 0.35);
    position: relative;
    z-index: 1;
}

.contact-facebook-btn a svg {
    width: 24px;
    height: 24px;
}

.contact-facebook-btn a:hover {
    background: #166fe5;
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(24, 119, 242, 0.45);
}

/* ================== PRAWA KARTA (MAPA) ================== */
.contact-map-box {
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    position: relative;
    background: #e2e8f0;
    border: 8px solid #ffffff;
}

.contact-map-box iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    filter: contrast(1.05) saturate(1.1);
}

/* ================== RESPONSIVE ================== */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-map-box {
        min-height: 450px;
    }

}

@media (max-width: 600px) {
    .contact-section {
        padding: 80px 20px;
        scroll-margin-top: 80px;
    }

    .contact-header h2 {
        font-size: 2.2rem;
    }

    .contact-info-box {
        padding: 40px 25px;
        border-radius: 24px;
    }

    .contact-icon {
        width: 48px;
        height: 48px;
    }

    .contact-map-box {
        min-height: 350px;
        border-width: 4px;
        border-radius: 24px;
    }
}
