/* --- Reset & base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* --- Header --- */
header {
    background-color: #38761d;
    color: white;
    padding: 20px;
}

.header-content {
    display: grid;
    grid-template-areas:
        "logo"
        "title"
        "contact";
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.header-logo {
    grid-area: logo;
}

.header-title {
    grid-area: title;
    font-size: 1.2em;
    margin: 0;
    font-weight: normal;
    color: #f0f0f0;
}

.kontakt-szybki {
    grid-area: contact;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.kontakt-szybki a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.kontakt-szybki a:hover {
    text-decoration: underline;
}

.kontakt-szybki span {
    margin-right: 8px;
    font-size: 1.1em;
}

/* Desktop header layout */
@media (min-width: 768px) {
    .header-content {
        grid-template-areas: "logo title contact";
        grid-template-columns: 1fr 2fr 1fr;
        align-items: center;
        text-align: left;
    }

    .header-title {
        font-size: 1.6em;
        text-align: center;
    }

    .kontakt-szybki {
        flex-direction: column;
        align-items: flex-end;
    }

    .kontakt-szybki a {
        justify-content: flex-end;
    }
}

/* --- Main layout --- */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

/* Services */
.uslugi {
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.galeria {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Two-column layout on larger screens */
@media (min-width: 768px) {
    .container {
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: 30px;
    }
}

/* --- Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 20px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.02);
}

@media (min-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 992px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 10px;
    background-color: #333;
    color: white;
    margin-top: 30px;
}

footer .kontakt-stopka {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #555;
}

footer .kontakt-stopka p {
    margin: 5px 0;
}

footer .kontakt-stopka a {
    color: #ccffcc;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

footer .kontakt-stopka a:hover {
    text-decoration: underline;
}

footer .kontakt-stopka span {
    margin-right: 8px;
    font-size: 1em;
}

/* --- Logo --- */
.logo {
    max-width: 120px;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: 8px;
}
