* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.contrainer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.top-logo {
    img {
        width: 64px;
    }
}

.top-social {
    img {
        width: 34px;
        margin-top: 5px;
    }
}

/* Nawigacja */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0a8848;
    padding: 7px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #27ae60;
}

/* Banner główny */
.banner {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('images/banner2.jpg') center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.banner-content h1 {
    font-size: 5.5rem;
    line-height: 4rem;
    margin-bottom: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-content p {
    margin-bottom: 1rem;
    font-size: 2.4rem;
    color: #dedede;
}

.banner-content p.desc {
    margin-bottom: 3rem;
    font-size: 4rem;
    font-weight: 300;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.btn {
    background-color: #0a8848;
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #219a52;
}

/* Sekcje */
section {
    padding: 5rem 10%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #27ae60;
    margin: 1rem auto;
}

/* Realizacje */
.realizacje {
    background-color: #f8f9fa;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem 1rem 1rem;
    color: white;
}

/* Usługi */
.uslugi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.usluga-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.usluga-card:hover {
    transform: translateY(-10px);
}

.usluga-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.usluga-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.usluga-card p {
    color: #666;
}

#image-gallery {
    width: 100%;
    margin: 4rem auto;
}

#main-image {
    max-width: 85vw;
    max-height: 85vh;
    padding: 1rem;
    box-shadow: rgba(0, 0, 0, 0.08) 0px 4px 12px;
}

#thumbnail-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

#popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
}

#popup {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    left: 50%;
    background: white;
    transition: 0.3s all;
}

.popup-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 30px;
    font-size: 6rem;
    color: #ffffff;
    cursor: pointer;
    background: none;
    border: none;
}

#popupNext {
    left: auto;
    right: 30px;
}

.thumbnail {
    width: 100px;
    height: 100px;
    margin: 5px;
    cursor: pointer;
}

/* Kontakt */
.kontakt {
    background-color: #2c3e50;
    color: white;
    font-size: 20px;
}

.kontakt .section-title {
    color: white;
}

.kontakt-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.kontakt-info h3 {
    color: #27ae60;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.kontakt-info-container {
    display: flex;
    justify-content: space-between;
}

.kontakt-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.kontakt-item .icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: #27ae60;
}

.kontakt-form input,
.kontakt-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 5px;
    font-family: inherit;
}

.kontakt-form textarea {
    height: 150px;
    resize: vertical;
}

.kontakt-form button {
    width: 100%;
    padding: 1rem;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.kontakt-form button:hover {
    background-color: #219a52;
}

/* Stopka */
footer {
    background-color: #1a252f;
    color: #aaa;
    text-align: center;
    padding: 2rem;
}

/* Responsywność */
@media (max-width: 768px) {
    .banner-content h1 {
        font-size: 2rem;
    }

    .top-logo img {
        width: 42px;
    }

    nav ul {
        flex-wrap: wrap;
        gap: 0.5rem;
        font-size: 14px;
    }

    section {
        padding: 3rem 5%;
    }

    .banner-content p.desc {
        font-size: 2.7rem;
        line-height: 2.7rem;
    }

    .kontakt-info-container {
        display: block;
    }
}
