:root {
    --dark: #002f2e;
    --dark-2: #003f3d;
    --teal: #00a9a5;
    --teal-light: #19c4bd;
    --red: #d51f26;
    --white: #ffffff;
    --muted: #b8d3d1;
    --black: #061515;
    --max: 1180px;
}


/* =========================================
   RESET
   ========================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--white);
    background: var(--dark);
    line-height: 1.55;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}


/* =========================================
   CONTAINER
   ========================================= */

.container {
    width: min(var(--max), calc(100% - 48px));
    margin: 0 auto;
}


/* =========================================
   HEADER
   ========================================= */

.site-header {
    position: relative;
    z-index: 20;
    width: 100%;
    background: #002f2e;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.nav-wrap {
    min-height: 92px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* =========================================
   LOGO
   ========================================= */

.logo {
    display: flex;
    align-items: center;
    gap: 15px;

    flex-shrink: 0;
}

.logo img {
    width: 120px;
    height: auto;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;

    line-height: 1;
}

.logo-top {
    color: white;
    font-size: 28px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -1px;
}

.logo-bottom {
    color: white;
    font-family: Georgia, serif;
    font-size: 30px;
    letter-spacing: 7px;
    margin-top: 5px;
}


/* =========================================
   MENU DESKTOP
   ========================================= */

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.main-nav a {
    position: relative;

    padding: 34px 0;

    text-transform: uppercase;
    font-size: 13px;
    font-weight: 700;

    white-space: nowrap;
}

.main-nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 25px;

    width: 0;
    height: 3px;

    background: var(--red);

    transition: .25s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}


/* =========================================
   LINK STRONA GŁÓWNA - TELEFON
   ========================================= */

.mobile-home {
    display: none;
}


/* =========================================
   HERO GALERII
   ========================================= */

.gallery-hero {
    position: relative;
    overflow: hidden;

    padding: 65px 0 55px;

    background:
        linear-gradient(
            135deg,
            #003f3d 0%,
            #00514e 50%,
            #003533 100%
        );
}


/* dekoracyjne linie */

.gallery-hero::before {
    content: "";

    position: absolute;

    top: -100px;
    right: -100px;

    width: 600px;
    height: 400px;

    background:
        repeating-linear-gradient(
            -25deg,
            transparent 0,
            transparent 18px,
            rgba(25, 196, 189, .14) 19px,
            transparent 21px
        );

    transform: rotate(-5deg);

    opacity: .8;

    pointer-events: none;
}


/* czerwony akcent */

.gallery-hero::after {
    content: "";

    position: absolute;

    left: -100px;
    bottom: -100px;

    width: 450px;
    height: 180px;

    background: rgba(213, 31, 38, .08);

    transform: rotate(-8deg);

    pointer-events: none;
}


/* zawartość */

.gallery-hero-content {
    position: relative;
    z-index: 2;

    text-align: center;
}


/* mały napis */

.gallery-eyebrow {
    margin-bottom: 18px;

    color: var(--teal-light);

    font-size: 15px;
    font-weight: 900;

    letter-spacing: 4px;
}


/* tytuł */

.gallery-hero .section-title {
    margin-bottom: 25px;
}

.gallery-hero .section-title span {
    display: inline-block;

    font-size: 38px;
}


/* opis */

.gallery-intro {
    max-width: 720px;

    margin: 0 auto;

    color: #e0efee;

    font-size: 18px;
    line-height: 1.5;
}


/* wskazówka */

.gallery-hint {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    margin-top: 28px;

    padding: 10px 22px;

    border: 1px solid rgba(255, 255, 255, .25);

    border-radius: 999px;

    color: var(--white);

    background: rgba(0, 0, 0, .12);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1px;
}

.gallery-hint span {
    color: var(--teal-light);

    font-size: 20px;
}


/* =========================================
   GALERIA
   ========================================= */

.gallery-section {
    padding: 70px 0 100px;

    background: #003b39;
}

.realization {
    margin-bottom: 55px;
}

.realization:last-child {
    margin-bottom: 0;
}


/* =========================================
   GŁÓWNE ZDJĘCIE
   ========================================= */

.realization-main {
    position: relative;

    height: 430px;

    overflow: hidden;

    border: 3px solid var(--teal-light);
    border-radius: 24px;

    cursor: pointer;

    background: #002725;
}

.realization-main > img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform .5s ease,
        filter .5s ease;
}

.realization-main:hover > img {
    transform: scale(1.04);
    filter: brightness(.75);
}


/* =========================================
   NAKŁADKA
   ========================================= */

.realization-overlay {
    position: absolute;

    inset: 0;

    display: flex;
    align-items: flex-end;

    padding: 35px;

    background:
        linear-gradient(
            transparent 35%,
            rgba(0, 0, 0, .85)
        );

    pointer-events: none;
}

.realization-info span {
    color: var(--teal-light);

    font-size: 14px;
    font-weight: 900;

    letter-spacing: 2px;
}

.realization-info h2 {
    margin-top: 5px;

    font-size: clamp(28px, 4vw, 45px);

    line-height: 1;

    font-style: italic;
}

.realization-info p {
    display: inline-block;

    margin-top: 15px;

    padding: 8px 18px;

    border: 2px solid white;
    border-radius: 30px;

    font-size: 12px;
    font-weight: 900;
}


/* =========================================
   POZOSTAŁE ZDJĘCIA
   ========================================= */

.realization-gallery {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 15px;

    max-height: 0;

    overflow: hidden;

    opacity: 0;

    margin-top: 0;

    transition:
        max-height .6s ease,
        opacity .4s ease,
        margin-top .4s ease;
}

.realization.open .realization-gallery {
    max-height: 1000px;

    opacity: 1;

    margin-top: 18px;
}


/* =========================================
   ZDJĘCIA
   ========================================= */

.gallery-photo {
    height: 220px;

    overflow: hidden;

    border-radius: 15px;

    border: 2px solid rgba(25, 196, 189, .7);

    background: #002725;

    cursor: pointer;
}

.gallery-photo img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform .4s ease;
}

.gallery-photo:hover img {
    transform: scale(1.08);
}


/* =========================================
   FOOTER
   ========================================= */

.footer {
    background: #001c1c;
}

.footer-top {
    min-height: 125px;

    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 30px;
}

.footer-logo img {
    width: 110px;
    display: block;
}

.footer-links {
    display: flex;

    gap: 28px;

    flex-wrap: wrap;

    justify-content: flex-end;
}

.footer-links a {
    font-size: 13px;

    font-weight: 700;

    color: var(--muted);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    padding: 18px;

    text-align: center;

    border-top: 1px solid rgba(255, 255, 255, .1);

    color: #78918f;

    font-size: 12px;
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 900px) {

    .main-nav {
        gap: 18px;
    }

    .main-nav a {
        font-size: 11px;
    }

    .realization-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

}


/* =========================================
   TELEFON
   ========================================= */

@media (max-width: 768px) {

    html,
    body {
        width: 100%;
        overflow-x: hidden;
    }


    /* =====================================
       HEADER TELEFON
       ===================================== */

    .site-header {
        position: relative;

        width: 100%;
        height: 82px;
        min-height: 82px;

        background: #002f2e;

        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }


    .site-header .nav-wrap {
        width: 100%;
        height: 82px;
        min-height: 82px;

        display: flex;
        align-items: center;
        justify-content: space-between;

        padding: 0 12px;

        margin: 0;
    }


    /* LOGO */

    .site-header .logo {
        position: static;

        display: flex;
        align-items: center;

        gap: 8px;

        margin: 0;
        padding: 0;

        transform: none;

        flex-shrink: 0;
    }


    .site-header .logo img {
        width: 72px;
        height: 72px;

        object-fit: contain;

        display: block;
    }


    /* NAZWA FIRMY */

    .site-header .logo-text {
        display: flex !important;

        flex-direction: column;

        justify-content: center;

        line-height: 1;
    }

    .site-header .logo-top {
        font-size: 15px;

        letter-spacing: -0.5px;
    }

    .site-header .logo-bottom {
        font-size: 16px;

        letter-spacing: 3px;

        margin-top: 3px;
    }


    /* UKRYWAMY NORMALNE MENU */

    .site-header .main-nav {
        display: none !important;
    }


    /* STRONA GŁÓWNA */

    .mobile-home {
        display: block;

        margin-left: auto;

        padding-left: 8px;

        color: #ffffff;

        font-size: 12px;
        font-weight: 900;

        text-transform: uppercase;

        white-space: nowrap;
    }

    .mobile-home:hover {
        color: var(--teal-light);
    }


    /* =====================================
       HERO
       ===================================== */

    .gallery-hero {
        width: 100%;

        padding: 55px 0 45px;

        background:
            linear-gradient(
                135deg,
                #003f3d 0%,
                #00514e 50%,
                #003533 100%
            );
    }


    .gallery-hero-content {
        width: 100%;

        padding-left: 20px;
        padding-right: 20px;
    }


    .gallery-eyebrow {
        font-size: 11px;

        letter-spacing: 2px;

        margin-bottom: 15px;
    }


    .gallery-hero .section-title {
        margin-bottom: 25px;
    }


    .gallery-hero .section-title span {
        font-size: 27px;

        padding: 8px 25px;
    }


    .gallery-intro {
        max-width: 100%;

        font-size: 15px;

        line-height: 1.5;
    }


    .gallery-hint {
        max-width: 100%;

        font-size: 9px;

        line-height: 1.5;

        padding: 9px 15px;

        margin-top: 22px;
    }


    /* =====================================
       GALERIA
       ===================================== */

    .gallery-section {
        width: 100%;

        padding: 45px 0 70px;
    }


    .gallery-section .container {
        width: 100%;

        padding-left: 20px;
        padding-right: 20px;
    }


    .realization {
        margin-bottom: 35px;
    }


    .realization-main {
        width: 100%;

        height: 280px;

        border-radius: 18px;
    }


    .realization-overlay {
        padding: 20px;
    }


    .realization-info span {
        font-size: 11px;
    }


    .realization-info h2 {
        font-size: 27px;

        line-height: 1.05;
    }


    .realization-info p {
        margin-top: 10px;

        padding: 7px 14px;

        font-size: 10px;
    }


    /* =====================================
       POZOSTAŁE ZDJĘCIA
       ===================================== */

    .realization-gallery {
        grid-template-columns: repeat(2, 1fr);

        gap: 10px;
    }


    .realization.open .realization-gallery {
        margin-top: 10px;
    }


    .gallery-photo {
        height: 150px;

        border-radius: 10px;
    }


    /* =====================================
       FOOTER
       ===================================== */

    .footer-top {
        flex-direction: column;

        justify-content: center;

        padding: 35px 20px;
    }


    .footer-links {
        justify-content: center;

        gap: 18px;

        text-align: center;
    }

}