body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f0f0f0;
    color: #333;
    line-height: 1.6;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between; 
    gap: 40px; 
    background-color: #b1b3b4;
    color: white;
    padding: 15px 30px;
}

header a {
    padding-right: 100px;
}

header img {
    height: 60px;
}

#nav {
    display: flex;
    gap: 25px;
}

#nav a {
    color: rgb(0, 0, 0);
    font-size: 110%;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s, transform 0.3s;  
}

#nav a:hover {
    color: #f3c221;
    transform: scale(1.2);
}

main {
    padding: 40px 5%;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

section {
    background-color: white;
    padding: 30px;
    border-left: 8px solid #dadada;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    animation: fadeIn 1s ease;
}

.content {
    display: flex;
    align-items: stretch; 
    gap: 30px;
}

.text {
    width: 48%;
    text-align: justify;
    margin-right: 15%;
    padding-right: 20px;
    padding-left: 10px;
    background: rgba(0, 0, 0, 0.5); 
    color: white;
    font-size: 120%;
}

#onas, #oferta {
    position: relative;
    background: url('building-4859937_640.jpg') center/cover no-repeat;
    z-index: 1;
    overflow: hidden;
}

#onas::before, #oferta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 2;
}

#onas .content, #oferta .content {
    position: relative;
    z-index: 3; 
}

.gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    flex-shrink: 0; 
}

.gallery img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    animation: fadeIn 1s ease-in-out;
}

.gallery img:hover {
    transform: scale(1.5);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.full-width-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 0;
    margin-top: 20px;
    animation: fadeIn 1.5s ease-in-out;
}

#cta h2 {
    color: #f3c221;
}

h2 {
    color: #f3c221;
}

ul {
    margin-top: 10px;
    padding-left: 20px;
}

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

#cta {
    background-image: url('F8.jpg');
    background-size: cover;
    background-position: center;
    height: 400px;
    position: relative;
    margin-top: 40px;
    border-radius: 10px;
    overflow: hidden;
    animation: fadeIn 1.5s ease-in-out;
}

#cta .overlay {
    background: rgba(0, 0, 0, 0.5); 
    color: white;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

#cta h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

#cta p {
    font-size: 1.1em;
    max-width: 600px;
    margin-bottom: 20px;
}

.cta-button {
    background-color: #f3c221;
    color: #1e1e1e;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-button:hover {
    background-color: #f3c221;
    transform: scale(1.05);
}

.contact-info {
    margin-top: 20px;
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.contact-info a {
    text-decoration: none;
    color: white;
}

/* === RESPONSYWNOŚĆ === */
@media (max-width: 768px) {
    body {
        font-size: 16px;
        padding: 0;
        margin: 0;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 15px;
    }

    header a {
        padding-right: 0;
    }

    #nav {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    main {
        padding: 20px 4%;
        gap: 40px;
    }

    section {
        padding: 20px;
        border-left: 5px solid #dadada;
    }

    .content {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }

    .text {
        width: 100%;
        margin: 0;
        padding: 15px;
        font-size: 100%;
        text-align: left;
    }

    .gallery {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .gallery img {
        max-width: 100%;
        width: 100%;
        max-width: 300px;
    }

    .full-width-img {
        max-height: 200px;
        margin-top: 15px;
    }

    #cta {
        height: auto;
        border-radius: 0;
        margin-top: 30px;
    }

    #cta .overlay {
        padding: 20px;
    }

    #cta h2 {
        font-size: 1.5em;
        margin-bottom: 10px;
    }

    #cta p {
        font-size: 1em;
        margin-bottom: 15px;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 1em;
        border-radius: 20px;
    }

    .contact-info {
        display: block;
        margin-top: 15px;
        font-size: 0.95em;
        text-align: center;
    }

    footer {
        font-size: 0.85em;
        padding: 10px;
        text-align: center;
    }

    h2 {
        font-size: 1.4em;
    }

    ul {
        padding-left: 15px;
    }
}
