body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

header {
    background-color: #313234;
    height: 75px;
    width: 100%;
    margin: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

header > nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
    width: 100%;
    box-sizing: border-box;
}

.logo-container {
    display: flex;
    align-items: center;
}

header > nav img {
    width: 110px;
    height: 50px;
}

header > nav #nazwa_logotyp {
    color: #555;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 200%;
    text-shadow: 2px 2px 0 gainsboro, -2px -2px 0 gainsboro, 2px -2px 0 gainsboro, -2px 2px 0 gainsboro;
    display: flex;
    align-items: center;
    margin-left: 15px;
}

header > nav ul.menu {
    display: flex;
    padding: 0;
    list-style-type: none;
    margin: 0;
}

header > nav ul.menu > li {
    margin-left: 20px;
}

header > nav ul.menu > li > a {
    line-height: 20px;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
}

header > nav ul.menu > li > a:hover {
    color: #00cadf;
}

.hamburger {
    display: none; /* Domyślnie ukryty na dużych ekranach */
    background: none;
    border: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    align-items: center;
    gap: 8px;
}

.hamburger-text {
    font-size: 16px;
    text-transform: uppercase;
    color: #fff;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex; /* Pokazujemy hamburger na małych ekranach */
    }

    header > nav ul.menu {
        display: none !important; /* Ukrywamy menu na małych ekranach */
        flex-direction: column;
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background-color: #313234;
        padding: 10px 0;
        text-align: center;
        z-index: 1000;
    }

    header > nav ul.menu.active {
        display: flex !important; /* Pokazujemy menu po kliknięciu */
    }

    header > nav ul.menu > li {
        margin: 10px 0;
        width: 100%;
    }

    header > nav ul.menu > li > a {
        font-size: 16px;
        display: block;
        padding: 10px;
    }

    header > nav #nazwa_logotyp {
        font-size: 150%;
        margin-left: 10px;
    }

    header > nav img {
        width: 80px;
        height: 40px;
    }
}

/* HERO SECTION */
.hero {
    position: relative;
    height: 350px;
    width: 100%;
    overflow: hidden;
    margin: 0;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slogan {
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    max-width: 800px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    text-align: left;
    padding: 20px;
}

.slogan h1 {
    font-weight: lighter;
    margin: 0;
    line-height: 1;
}

.slogan > p {
    font-size: 23px;
    margin: 0;
    font-weight: bolder;
    line-height: 1;
}

@media (max-width: 768px) {
    .hero {
        height: 250px;
    }

    .slogan {
        max-width: 100%;
        padding: 15px;
        right: 0;
        left: 0;
        text-align: center;
    }

    .slogan h1 {
        font-size: 24px;
    }

    .slogan > p {
        font-size: 18px;
    }
}

section > .container {
    margin: 50px auto;
    text-align: center;
}

.icon-container {
    text-align: center;
    margin: 0 auto;
}

.icon-square {
    background-color: black;
    border-radius: 15%;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    position: relative;
}

.icon-square i {
    color: white;
    font-size: 40px;
}

.tytuly {
    text-align: center;
}

.uslugi {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cennik {
    display: flex;
    justify-content: center;
    align-items: center;
}

.middle-icon {
    background-color: #00cadf;
}

.blue-title {
    color: #00cadf;
}

.icon-text {
    background-color: white;
    margin-top: 10px;
    padding: 10px;
}

.row {
    display: flex;
    justify-content: space-between;
    gap: 0px;
}

@media (max-width: 768px) {
    .row {
        flex-direction: column;
        gap: 20px;
    }

    .col-2 {
        flex: none;
        width: 100%;
    }

    .col-2:nth-child(2) {
        align-self: auto;
    }
}

.col-2 {
    flex: 1;
    text-align: center;
}

.col-2:nth-child(2) {
    align-self: center;
}

/* GALERIA */
.gallery {
    display: grid;
    grid-template-columns: repeat(18, 1fr);
    gap: 0px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery .item {
    position: relative;
    overflow: hidden;
}

.gallery .large {
    grid-column: span 6;
    height: 200px;
    width: 100%;
}

.gallery .small {
    grid-column: span 3;
    height: 200px;
    width: 100%;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery .large {
        grid-column: span 2;
        height: 150px;
    }

    .gallery .small {
        grid-column: span 1;
        height: 150px;
    }
}

.layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.layer .icon {
    margin: 0 10px;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    text-decoration: none;
}

.layer .icon:hover {
    color: #ff9900;
}

.item:hover .layer {
    opacity: 1;
    visibility: visible;
}

/* LICZBY */
.numbers-section {
    margin-top: 50px;
    text-align: center;
}

.number-container {
    text-align: center;
    margin: 20px;
}

.number {
    font-size: 40px;
    font-weight: bold;
    color: black;
}

.label {
    font-size: 16px;
    color: #00cadf;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .numbers-section {
        margin-top: 30px;
    }

    .number-container {
        margin: 10px;
    }

    .number {
        font-size: 30px;
    }

    .label {
        font-size: 14px;
    }
}

/* FOOTER */
footer {
    background-color: #333;
    color: #fff;
    padding: 0;
    font-size: 14px;
    margin: 0;
    width: 100%;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.footer-column {
    flex: 1;
    padding: 0 15px;
    min-width: 250px;
    text-align: left;
    margin-top: 30px;
    margin-bottom: 20px;
}

.footer-title {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-title h3 {
    margin: 0;
    font-size: 16px;
    text-transform: uppercase;
}

.footer-title .title-line {
    flex: 1;
    height: 2px;
    background-color: #555;
    margin-left: 10px;
}

.footer-column p {
    margin: 0 0 10px;
    line-height: 1.6;
    margin-top: 10px;
    margin-bottom: 10px;
}

.o_nas {
    text-align: justify;
}

.rowfoot {
    display: grid;
    grid-template-columns: 100px auto;
    gap: 10px;
    align-items: flex-start;
}

.rowfoot p {
    margin: 0;
}

.rowfoot p:nth-child(odd) {
    font-weight: bold;
}

.social-icons {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 10px;
}

.social-icons a {
    display: inline-block;
    background-color: #00cadf;
    color: #fff;
    font-size: 16px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-icons a:hover {
    background-color: #09aabc;
}

.footer-bottom {
    margin: 0;
    box-sizing: border-box;
    padding: 20px 0;
    width: 100%;
    margin-top: 30px;
    border-top: 1px solid #555;
    font-size: 13px;
    color: #aaa;
    text-align: center;
    background-color: #222;
}

@media (max-width: 768px) {
    footer {
        font-size: 12px;
        width: 100%;
    }

    .footer-container {
        padding: 0 10px;
        width: 100%;
    }

    .footer-column {
        min-width: 100%;
        margin-top: 20px;
        text-align: center;
    }

    .rowfoot {
        grid-template-columns: 1fr;
    }

    .social-icons {
        justify-content: center;
    }

    .o_nas {
        text-align: center;
        font-size: 14px;
        line-height: 1.8;
        padding: 0 10px;
        word-break: break-word;
        hyphens: auto;
    }
}
