* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Roboto', sans-serif; background-color: #f4f7f6; color: #333; line-height: 1.6; }

/* Nawigacja - przygotowana pod przyszłe kalkulatory */
nav { background: #2c3e50; color: white; padding: 1rem; text-align: center; }
nav a { color: white; margin: 0 15px; text-decoration: none; font-weight: bold; }
nav a:hover { text-decoration: underline; }

/* Sekcja główna z obrazkiem */
.hero-section {
    position: relative;
    width: 100%;
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), 
                url('../img/mlodaPara.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Stylizacja dymków */
.bubble {
    position: absolute;
    background: white;
    padding: 15px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-size: 0.9rem;
    max-width: 200px;
    font-weight: 500;
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
}

/* "Ogonek" dymka */
.bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: white transparent;
}

/* Pozycjonowanie dymków - do dopasowania pod obrazek */
.b1 { top: 10%; left: 15%; animation-delay: 0.5s; }
.b2 { top: 25%; right: 15%; animation-delay: 1s; }
.b3 { bottom: 30%; left: 10%; animation-delay: 1.5s; }
.b4 { top: 5%; right: 35%; animation-delay: 2s; }
.b5 { bottom: 15%; right: 20%; animation-delay: 2.5s; }
.b6 { bottom: 50%; left: 40%; animation-delay: 3s; font-style: italic; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.cta-container {
    position: absolute;
    bottom: 50px;
    text-align: center;
    width: 100%;
}

.btn {
    background: #e67e22;
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    transition: background 0.3s;
}
.btn:hover { background: #d35400; }

/* Responsywność - wersja z podwójnym odstępem przycisku */
@media (max-width: 600px) {
    .hero-section {
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center; 
        padding: 40px 10px 80px 10px; /* Zwiększony padding na dole dla lepszego balansu */
        background-attachment: scroll;
    }

    .bubble {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin: 12px 0;
        width: 85%;
        max-width: 280px;
        font-size: 0.85rem;
        padding: 12px 15px;
        
        background: rgba(255, 255, 255, 0.4); 
        backdrop-filter: blur(10px); 
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 15px;

        /* Animacja dymków */
        opacity: 0;
        animation-name: fadeIn;
        animation-duration: 1.2s;
        animation-timing-function: ease-out;
        animation-fill-mode: forwards;
    }

    .bubble:nth-child(even) { align-self: flex-end; }
    .bubble:nth-child(odd) { align-self: flex-start; }
    .bubble::after { display: none; }

    /* KONFIGURACJA PRZYCISKU Z PODWÓJNYM ODSTĘPEM */
    .cta-container {
        position: relative;
        margin-top: 100px;    /* PODWÓJNY ODSTĘP od ostatniego dymka */
        margin-bottom: 60px;   /* Dodatkowy margines na dole, by przycisk nie "dusił się" */
        width: 100%;
        display: flex;
        justify-content: center;
        opacity: 0;
        animation: fadeIn 1s ease-out 3.5s forwards; 
    }

    .btn {
        display: block;
        width: 85%;
        max-width: 300px;
        padding: 18px 10px;
        font-size: 1.1rem; /* Lekko większy tekst dla lepszej czytelności */
        text-align: center;
        line-height: 1.3;
        white-space: normal;
        word-wrap: break-word;
        box-shadow: 0 4px 20px rgba(230, 126, 34, 0.3); /* Delikatna poświata przycisku */
    }
}

/* Style dla strony kontakt.html */
.contact-section {
    padding: 60px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.profile-block {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px;
    margin-bottom: 30px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 18px 35px rgba(0,0,0,0.08);
}

.profile-photo {
    width: 190px;
    height: 190px;
    object-fit: cover;
    border-radius: 22px;
    flex-shrink: 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.profile-copy h2 {
    margin-bottom: 0.8rem;
    color: #2c3e50;
}

.profile-copy p {
    color: #4a5568;
    line-height: 1.75;
}

.intro-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 18px 35px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.intro-card h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.intro-card p {
    color: #4a5568;
    line-height: 1.7;
    font-size: 1.03rem;
}

.contact-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-card,
.contact-form {
    background: #ffffff;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 18px 35px rgba(0,0,0,0.08);
    min-width: 320px;
    flex: 1 1 360px;
}

.contact-card h2,
.contact-form h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.contact-card p,
.contact-card li {
    margin-bottom: 1rem;
    color: #4a5568;
}

.contact-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-field {
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
}

.contact-label {
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.contact-input,
.contact-textarea {
    border: 1px solid #c5d0d9;
    border-radius: 14px;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 1rem;
    color: #2c3e50;
    background: #f9fbfb;
}

.contact-textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    margin-top: 10px;
}

.contact-note {
    margin-top: 1rem;
    color: #555;
    font-size: 0.95rem;
}

.faq-section {
    padding: 60px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-header {
    margin-bottom: 30px;
    text-align: center;
    background: #ffffff;
    padding: 36px 28px;
    border-radius: 24px;
    box-shadow: 0 22px 45px rgba(0,0,0,0.08);
    border: 1px solid rgba(44, 62, 80, 0.12);
}

.faq-header h1 {
    color: #1f3a5f;
    font-size: 2.45rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}

.faq-header p {
    color: #4a5568;
    max-width: 780px;
    margin: 0 auto;
    line-height: 1.8;
}

.faq-list {
    display: grid;
    gap: 18px;
}

.faq-item {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 18px 35px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid rgba(44, 62, 80, 0.08);
}

.faq-item summary {
    cursor: pointer;
    padding: 22px 24px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #2c3e50;
    list-style: none;
    background: #f7f9fb;
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(44, 62, 80, 0.08);
}

.faq-item summary:hover {
    background: #eef4f8;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    float: right;
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.faq-item[open] summary {
    background: #eef4f8;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-answer {
    padding: 24px 26px 28px;
    color: #4a5568;
    line-height: 1.8;
    background: #fbfcfd;
}

.faq-answer p,
.faq-answer ol {
    margin: 0 0 18px;
}

.faq-answer ol {
    padding-left: 28px;
}

.faq-answer li {
    margin-bottom: 18px;
}

.faq-answer li strong {
    display: block;
    margin-bottom: 0.4rem;
    color: #1f3a5f;
}

.faq-points {
    list-style: decimal inside;
    padding-left: 0;
}

.faq-points li {
    margin-bottom: 18px;
    padding-left: 0;
}

.faq-answer li::marker {
    color: #2c3e50;
    font-weight: 700;
}

@media (max-width: 780px) {
    .profile-block,
    .contact-grid,
    .faq-list {
        flex-direction: column;
    }
    .profile-photo {
        width: 100%;
        height: auto;
    }
    .faq-section {
        padding: 40px 15px;
    }
}
