@import url('https://fonts.googleapis.com/css2?family=Exo:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --body-text-size: 12px;
    --text: 'Montserrat', system-ui;
    --display: 'Anton', system-ui;

    --hero: #EF0020;
    --hover: #a60016;
    --active: #770010;
    --light-grey: #D9D9D9;
    --mid-grey: #4D4D4D;
    --dark-grey: #262626;
    --transparent-black: rgba(0, 0, 0, 0.5);
    --to-white: saturate(0) brightness(1000%);

    --big-vertical-margins: 5vw;
    --small-vertical-margins: 3vw;
    --big-gap: 2.5rem;
    --small-gap: 1rem;
    --big-horizontal-margins: 60px;
    --small-horizontal-margins: 40px;

    --big-padding: 1.5rem;
    --small-padding: 0.8rem;

    --small-corners: 5px;
    --big-corners: 15px;
    --divider: 5px;
}
@media screen and (min-width: 350px) {
    :root {
        --big-padding: 2rem;
        --small-padding: 1rem;
    }
}
@media screen and (min-width: 1400px) {
    :root {
        --big-horizontal-margins: 15vh;
        --big-vertical-margins: 15vw;
        --small-vertical-margins: 8vw;
        --big-gap: 4rem;
        --small-gap: 2rem;
        --big-padding: 2.5rem;
        --small-padding: 1.5rem;
    }
}
@media screen and (min-width: 1200px) {
    :root {
        --body-text-size: 15px;
    }
}


*{
    font-family: var(--text);
    font-size: var(--body-text-size);
    font-weight: 400;
    color: #000;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}

html, body {
    width: 100%; 
    overflow-x: hidden;
    scroll-behavior: smooth;
    background-color: var(--background);
} 
div, section {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    scroll-margin-top: 150px !important;
}

/* text */

h1, h1 span{
    font-size: 3.8rem;
    line-height: 4.6rem;
    font-family: var(--display);
    color: #fff;
    text-transform: uppercase;
}
h2, h2 span {
    font-family: var(--display);
    font-size: 3.2rem;
    line-height: 3.5rem;
}
.subtitle-box h2 {
    margin-bottom: var(--big-gap);
    margin-top: 1rem;
}
h3, h3 span {
    font-size: 2.4rem;
    line-height: 2.6rem;
    font-weight: 900;
    text-transform: uppercase;
}
h4, h4 span {
    font-size: 1rem;
    font-weight: 600;
}
p {
    line-height: 18px;
}
a {
    text-decoration: none;
    cursor: pointer;
}
a:hover {
    color: #fff;
}
@media screen and (min-width: 450px) {
    h3, h3 span {
        font-size: 3rem;
        line-height: 3.5rem;
    }
    h1 {
        font-size: 5rem;
        line-height: 6rem;
    }
}
@media screen and (min-width: 1400px) {
    h2, h2 span {
        font-size: 3.8rem;
        line-height: 4.3rem;
    }
    h3, h3 span {
        font-size: 4rem;
        line-height: 4.5rem;
    }
}

/* lists */

ul {
    list-style-type: none;
}
li {
    display: flex;
    gap: var(--small-gap);
    align-items: center;
}
li, li p, li span {
    font-size: 1.2rem;
    font-weight: 600;
}

/* button */

button {
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    border: none;
    padding: var(--small-padding) var(--big-padding);
    display: inline-block;
    background: var(--hero);
    position: relative;
    z-index: 2 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: max-content;
    text-transform: capitalize;
    border-radius: var(--small-corners);
    margin-top: var(--big-gap);
}
button:hover, button:focus,
a:hover .button-like, a:focus .button-like{
    background-color: var(--hover) !important;
    transition: all 300ms ease-in-out;
}
button:focus, a:focus .button-like, .to-top:focus {
    outline: rgb(255, 183, 0) 2px solid;
    transition: none;
}
button:active, button:loading,
a:active .button-like,  a:loading .button-like {
    background-color: var(--active) !important;
}
button img {
    padding-left: 10px;
    margin-top: 2px;
    height: 20px;
    width: auto;
}
button.hero-btn {
    padding: var(--big-padding);
}

/* photos */

picture, img {
    background-color: transparent;
}
img.photo {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: var(--big-corners);
}
.thumb {
    position: absolute;
    top: 0;
    left: 0;
}

/* icons */

.big-icon-container {
    height: 5rem;
}
.big-icon {
    height: 10rem;
}
.medium-icon-container {
    display: flex;
    align-items: center;
    width: max-content;
}
.medium-icon {
    height: auto;
    width: 4rem;
}
.small-icon {
    height: 2.5rem;
    width: auto;
}

/* container */

.container {
    padding: var(--big-horizontal-margins) var(--big-vertical-margins);
}

/* flex */

.flex {
    display: flex;
    gap: var(--big-gap);
    justify-content: center;
    flex-direction: column;
}
.flex-col {
    flex-basis: 50%;
}
@media screen and (min-width: 700px) {
    .flex {
        flex-direction: row;
    }
}

/* grid */

.grid {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    display: grid;
    gap: 0;
}
.card {
    padding: var(--big-padding);
}
@media screen and (min-width: 500px) and (max-width: 699px) {
    .grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }
}
@media screen and (min-width: 700px) {
    .grid {
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: auto;
    }
    .card {
        padding: var(--big-padding);
    }
}

/* cells */

.cell-container {
    display: flex;
    flex-direction: column;
    gap: var(--small-gap);
    padding: var(--big-horizontal-margins) var(--small-vertical-margins);
}
.cell-container .flex {
    gap: var(--small-gap);
}
.big-cell, .medium-cell {
    position:relative;
}
.big-cell {
    min-height: 430px;
    max-height: 50vh;
}
.big-cell, .big-cell img, .big-cell .overlay,
.medium-cell, .medium-cell img, .medium-cell .overlay {
    border-radius: var(--big-corners);
}
.big-cell img:not(.small-icon), .medium-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.big-cell .overlay {
    width: 100%;
}
.big-cell img.photo {
    min-height: 430px;
    max-height: 50vh;
    margin-bottom: -4px;
}
.medium-cell {
    height: 30vh;
    min-height: 250px;
}
.medium-cell .overlay {
    width: 100%;
}
.medium-cell.left .overlay {
    left: auto;
    right: 0;
}
.medium-cell .overlay button {
    margin-top: 0;
}
@media screen and (min-width: 450px) and (max-width: 649px) {
    .medium-cell .overlay {
        width: 66%;
    }
}
@media screen and (min-width: 650px) {
    .big-cell .overlay {
        width: auto;
    }
    .medium-cell, .medium-cell img, .medium-cell .overlay {
        border-radius: 0 var(--big-corners) var(--big-corners) 0;
    }
    .medium-cell.left, .medium-cell.left img, .medium-cell.left .overlay {
        border-radius: var(--big-corners) 0  0 var(--big-corners);
    }
}
@media screen and (min-width: 650px) and (max-width: 899px) {
    .cell-container .flex {
        flex-direction: row;
    }
}
@media screen and (min-width: 900px) {
    .medium-cell .overlay {
        width: 66%;
    }
    .cell-container .flex {
        flex-direction: row;
    }
    .big-cell {
        max-height: 65vh;
    }
}
@media screen and (min-width: 1200px) {
    .medium-cell {
        height: 40vh;
    }
}
@media screen and (min-width: 1400px) {
    .medium-cell {
        min-height: 400px;
    }
    .big-cell {
        min-height: max-content;
        min-height: 100%;
    }
    .big-cell img.photo {
        max-height: 62vh;
    }
}

/* overlay */

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    height: 100%;
}

/* dividers */

.vert-divider {
    height: inherit;
    width: 0px;
    padding: 0 2px;
    background-color: #fff;
}
.horizontal-divider {
    background-color: #fff;
    padding: 0;
    height: 3px;
}

.hidden {
    opacity: 0;
}


/*-------------- BELKA NAWIGACJI  ----------------*/

section.top-bar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
    /* padding-bottom: var(--small-horizontal-margins); */
}
section.top-bar * {
    color: #fff;
}
nav.top-nav {
    background-color: #000;
    padding: var(--small-gap) var(--big-vertical-margins);
    position: relative;
}
.shorthand img, nav.top-nav img {
    filter: var(--to-white);
    -webkit-filter: var(--to-white);
}
nav.top-nav .telefon, .shorthand .adres, .shorthand .email {
    gap: 1rem;
}
nav.top-nav .telefon, .shorthand .adres, .shorthand .email {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

/* mobile top bar */

.mobile-top-nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: inherit;
    padding: 1.5rem var(--big-padding);
    background-color: var(--dark-grey);
}
.mobile-top-nav img {
    height: 4rem;
    margin-top: -4px;
    cursor: pointer;
}
.close-icon {
    display: none;
}
.desktop-logo {
    display: none;
}

/* mobile rollout menu */

.shorthand, .top-nav {
    display: none;
    opacity: 0;
    transition: all 250ms ease-in-out;
}

/* shorthand */

.shorthand {
    background-color: var(--dark-grey);
    padding: var(--small-gap) var(--big-vertical-margins);
}
.shorthand .button-container {
    display: none;
}
.shorthand button {
    margin-top: 0;
}
.shorthand h2 {
    white-space: nowrap;
}

/* top nav */

nav.top-nav {
    flex-direction: column-reverse;
    background-color: var(--dark-grey);
    margin-top: 0;
    padding-bottom: var(--big-gap);
}
nav.top-nav .horizontal-divider {
    margin: 0 calc(-1 * var(--big-vertical-margins));
}

/* shared media queries */

@media screen and (max-width: 649px) {
    nav.top-nav {
        padding-bottom: var(--small-horizontal-margins);
    }
}
@media screen and (min-width: 650px) {
    section.top-bar {
        background-color: transparent;
        height:initial;
    }
    .top-bar .flex {
        justify-content: space-between;
        align-items: center;
        flex-direction: row !important;
    }
    .shorthand {
        padding: 20px var(--big-vertical-margins);
    }
    .shorthand, .top-nav {
        opacity: 1;
        display: flex !important;
    }
    .shorthand .button-container {
        display: block;
        margin-top: 0;
    }
    .mobile-top-nav {
        display: none;
    }
    .desktop-logo {
        display: block;
    }
    nav.top-nav {
        flex-direction: column-reverse;
        background-color: #000;
        padding-bottom: 10px;
        padding: 10px var(--big-vertical-margins);
    }
    .menu-icon, .close-icon {
        display: none;
    }
}
@media screen and (min-width: 651px) and (max-width: 799px) {
    nav.top-nav .telefon div, .shorthand .adres {
        display: none;
    }
}
@media screen and (min-width: 900px) {
    nav.top-nav .telefon h4, .shorthand .adres p, .shorthand .email p {
        margin-top: 0.2rem;
    }
}

/*-------------- START ----------------*/

section.start {
    padding-top: 155px;
    background-color: var(--mid-grey);
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: row;
}
.start * {
    color: #fff;
}
.start img.photo {
    border-radius: 0;
}
.start .overlay, .start .start-bg  {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
}
.start-bg .thumb {
    display: none;
}
.start .overlay {
    background-color: var(--transparent-black);
    z-index: 1;
}
.start .start-bg {
    z-index: 0;
    background-color: var(--mid-grey);
}
.start .start-bg img {
    position: absolute;
    top: 0;
}

.start > .wrapper {
    width: 100vw;
}
.start .container {
    position: relative;
    z-index: 2;
}
.start .container .wrapper {
    display: none;
}

.start h4 {
    max-width: 800px;
    font-size: 1.2rem;
    line-height: 1.6rem;
    font-weight: 500;
}
.start h1 {
    margin-bottom: 30px;
    max-width: 1200px;
}
.start button {
    margin-bottom: 30px;
    margin-top: 30px;
}

#ban1, #ban2, #ban3, #ban4, 
#ban1-text, #ban2-text, #ban3-text, #ban4-text  {
        opacity: 0;
        animation-duration: 32s;
        animation-iteration-count: infinite;
        animation-name: fade;
}
#ban1, #ban1-text {
    animation-delay: 0s;
}
#ban2, #ban2-text {
    animation-delay: 8s;
}
#ban3, #ban3-text {
    animation-delay: 16s;
}
#ban4, #ban4-text {
    animation-delay: 24s;
}
@keyframes fade {
    0%   {opacity: 0%;}
    5%  {opacity: 100%;}
    25%  {opacity: 100%;}
    30%  {opacity: 0%;}
    100% {opacity: 0%;}
}

.start .ban-text-container {
    min-height: 100vh;
    position: relative;
}
.start .container .wrapper {
    display: block;
}
.start .container .ban-text {
    position: absolute;
    top: 0;
}

@media screen and (max-width: 649px) {
    section.start {
        padding-top: 0;
    }
    .tab-wrapper {
        display: none !important;
    }
    .ban-text {
        top: 50% !important;
        transform: translateY(-50%);
    }
    .start .container {
        padding-bottom: 0;
        height: 100vh;
        padding-top: 4rem;
    }
}
@media screen and (min-width: 1200px) {
    section.start {
        padding-top: 180px;
    }
}
@media screen and (min-width: 800px) {
    .start-bg .thumb {
        display: block;
        filter: blur(5px); 
        -webkit-filter: blur(5px)
    }
}
@media screen and (min-width: 650px) {
    .start .ban-text-container {
        min-height: 450px;
    }
    .start h1 {
        margin-bottom: 60px;
    }
    .start button {
        margin-bottom: 40px;
    }
}
@media screen and (min-width: 500px) {
    .start .container .wrapper .tab {
        display: flex;
        justify-content: center;
        flex-basis: 25%;
        padding: var(--small-padding) 15px;
        cursor: pointer;
    }
    .start .container .wrapper .tab:hover,
    .start .container .wrapper .tab:active {
        background-color: var(--transparent-black);
        transition: all 150ms ease-in-out;
    }
    .start .container .wrapper li {
        text-align: center;
        font-size: 1rem;
        font-weight: 400;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: -moz-none;
        -o-user-select: none;
        user-select: none;
    }
    .start .container .wrapper .horizontal-divider {
        background-color: #fff;
        height: 5px;
        width: 100%;
        position: relative;
    }
    .start .container .wrapper .horizontal-divider .slider {
        position: absolute;
        top: -5px;
        left: 0%;
        background-color: var(--hero);
        height: 10px;
        width: 25%;
        transition: left 150ms ease-in-out;
        animation-name: move;
        animation-timing-function: ease-in;
        animation-iteration-count: infinite;
        animation-duration: 32s;
        animation-delay: 0s;
    }
    @keyframes move {
        0% {left: 0%;}
        24% {left: 0%;}
        25% {left: 25%;}
        49% {left: 25%;}
        50% {left: 50%;}
        74% {left: 50%;}
        75% {left: 75%;}
        99% {left: 75%;}
        100% {left: 0%;}
    }
    @keyframes move2 {
        0% {left: 25%;}
        24% {left: 25%;}
        25% {left: 50%;}
        49% {left: 50%;}
        50% {left: 75%;}
        74% {left: 75%;}
        75% {left: 0%;}
        99% {left: 0%;}
        100% {left: 25%;}
    }
    @keyframes move3 {
        0% {left: 50%;}
        24% {left: 50%;}
        25% {left: 75%;}
        49% {left: 75%;}
        50% {left: 0%;}
        74% {left: 0%;}
        75% {left: 25%;}
        99% {left: 25%;}
        100% {left: 50%;}
    }
    @keyframes move4 {
        0% {left: 75%;}
        24% {left: 75%;}
        25% {left: 0%;}
        49% {left: 0%;}
        50% {left: 25%;}
        74% {left: 25%;}
        75% {left: 50%;}
        99% {left: 50%;}
        100% {left: 75%;}
    }
    .start .container .wrapper .flex {
        flex-direction: row;
        gap: 0;
    }
}

@media screen and (min-width: 1400px) {
    .start .container {
        padding: var(--small-horizontal-margins) var(--big-vertical-margins);
    }
}
/*-------------- O NAS ----------------*/

.o-nas .container:nth-child(2) {
    background-color: var(--light-grey);
}
.zespol .flex-col .flex:nth-child(2) {
    margin-bottom: var(--big-gap);
}
@media screen and (max-width: 399px) {
    .o-nas .vert-divider {
        display: none;
    }
}
@media screen and (min-width: 400px) and (max-width: 899px) {
    .o-nas .flex-col .flex {
        flex-direction: row;
    }
}
@media screen and (max-width: 699px) {
    .o-nas .container:first-child {
        flex-direction: column-reverse;
    }
}
@media screen and (min-width: 849px) and (max-width: 899px) {
    .o-nas .vert-divider {
        display: none;
    }
}

/*-------------- PROCES ----------------*/

section.proces .container {
    background-color: var(--hero);
}
section.proces .container:last-child {
    padding-top: 0;
    padding-bottom: 0;
}
.proces .card {
    background-color: #fff;
    border-radius: var(--small-corners);
}
.proces .card:nth-child(3) {
    border-radius: var(--small-corners) var(--small-corners) 0 0;
}
.proces .card:nth-child(2) {
    background-color: transparent;
}
.proces .card:nth-child(2) img {
    filter: var(--to-white);
    -webkit-filter: var(--to-white);
}
.proces .card p {
    margin-top: 0.6rem;
    margin-bottom: var(--small-horizontal-margins);
    font-weight: 500;
}
.proces .card p span {
    font-weight: 700;
}
.proces h3 span {
    color: #fff;
}
@media screen and (min-width: 500px) and (max-width: 699px) {
    .proces .card:nth-child(1) {
        background-color: transparent;
    }
    .proces .card:nth-child(1) img {
        filter: var(--to-white);
        -webkit-filter: var(--to-white);
    }
    .proces .card:nth-child(2) {
        background-color: #fff;
    }
    .proces .card:nth-child(2) img {
        filter: none;
        -webkit-filter: none;
    }
}
@media screen and (min-width: 700px) {
    .proces .card:nth-child(1) {
        border-radius: var(--small-corners) var(--small-corners) 0 0;
    }
    .proces .card:nth-child(2) {
        background-color: transparent;
    }
    .proces .card:nth-child(2) img {
        filter: var(--to-white);
        -webkit-filter: var(--to-white);
    }
}

/*-------------- OFERTA ----------------*/

.oferta .flex-col a .medium-cell {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--hero);
    height: 100%;
    border-radius: var(--big-corners);
    padding: var(--big-padding);
}
.oferta .flex-col a .medium-cell .flex {
    align-items: center;
    flex-direction: row;
}
.oferta .flex-col a .medium-cell h2 {
    color: #fff;
}
.oferta .flex-col a .medium-cell img {
    filter: invert();
    -webkit-filter: invert();
}

.oferta .overlay {
    background-color: var(--transparent-black);
    padding: var(--big-padding);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.overlay * {
    color: #fff;
}
.oferta .overlay img {
    filter: invert();
    -webkit-filter: invert();
}
.oferta h4 {
    font-weight: 500;
}

/*-------------- LICZBY ----------------*/

.liczby .container {
    padding: var(--big-horizontal-margins) var(--big-padding);
    background-color: var(--dark-grey);
}
.liczby h3, .liczby h4 {
    text-align: center;
}
.liczby h3 {
    letter-spacing: 1px;
    font-size: 4rem;
    line-height: 4rem;
    font-family: var(--display);
    color: var(--hero);
    margin-bottom: var(--small-gap);
}
.liczby h4 {
    color: #fff;
    text-transform: uppercase;
}
@media screen and (min-width: 900px) {
    .liczby h3 {
        font-size: 5rem;
        line-height: 5rem;
    }
}
@media screen and (min-width: 500px) and (max-width: 1399px) {
    .liczby .grid {
        grid-template-columns: 1fr 1fr;
    }
    .liczby h3 {
        margin-bottom: var(--small-gap);
    }
}
@media screen and (min-width: 1400px) {
    .liczby .grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
    .liczby h3 {
        margin-bottom: var(--small-gap);
    }
}

/*-------------- REFERENCJE ----------------*/

.referencje {
    background-color: var(--light-grey);
}
.referencje .container {
    padding: var(--big-horizontal-margins) var(--small-padding);
}

.referencje .medium-cell {
    background-color: var(--dark-grey);
    min-height: 350px;
}
.referencje .overlay {
    display: none;
    border-radius: var(--big-corners);
    position: relative;
    flex-basis: min-content;
}
.referencje .medium-cell .flex {
    padding: var(--big-padding);
    justify-content: space-around;
    gap: 0;
    flex-direction: column;
}
.referencje .medium-cell.flex  {
    flex-direction: row;
    gap: 0;
}
.referencje .medium-cell .flex *:not(.quote) {
    text-align: center;
    color: #fff;
    position: relative;
    z-index: 1;
}
.referencje p {
    font-size: 1.2rem;
    line-height: 1.4rem;
}
.referencje h4 span {
    color: var(--hero) !important;
}

.referencje img {
    height: 100%;
    width: auto;
    object-fit: contain;
    border-radius: var(--big-corners);
}

.quote {
    position: relative;
    height: 5rem;
}
.quote img {
    border-radius: 0 !important;
}
.quote.up {
    margin-bottom: calc(-1 * var(--big-padding));
    left: 0;
    width: min-content;
}
.quote.down {
    transform: rotate(180deg);
    margin-top: calc(-1 * var(--big-padding));
    margin-bottom: calc(-1 * var(--big-padding));
    display: flex;
}

.referencje button {
    margin: var(--small-gap) auto;
    margin-bottom: 0;
}

.referencje .hidden {
    display: none;
}

@media screen and (min-width: 430px) and (max-width:649px) {
    .referencje .overlay {
        display: block;
        height: 50%;
    }
    .referencje .medium-cell {
        min-height: 300px;
        align-items: center;
    }
    .referencje h4 {
        padding: 0 var(--big-padding);
    }
}
@media screen and (min-width: 1199px) and (max-width:1299px) {
    .referencje p {
        font-size: 1rem;
        line-height: normal;
    }
    .referencje h4, .referencje h4 span {
        font-size: 0.8rem;
    }
}
@media screen and (min-width: 1100px){
    .referencje .medium-cell.flex.right {
        flex-direction: row-reverse;
    }
    .referencje .overlay {
        display: block;
    }
}
@media screen and (min-width: 1300px) and (max-width:1499px) {
    .referencje p {
        font-size: 1rem;
        line-height: normal;
    }
}
@media screen and (min-width: 1100px) {
    .referencje .medium-cell {
        min-height: 350px;
    }
    .referencje .medium-cell.right .overlay img {
        border-radius: 0 var(--big-corners) var(--big-corners) 0;
    }
}

/*-------------- KONTAKT ----------------*/

section.kontakt {
    background-color: var(--dark-grey);
}
.kontakt * {
    color: #fff;
}

.kontakt .container .flex:first-child {
    flex-basis: 50%;
}
.kontakt .flex .photo-container {
    flex-basis: 100%;
}
.kontakt .flex img.photo {
    object-fit: cover;
    max-height: 300px;
    object-position: 50% 100%
}

.kontakt .grid {
    display: flex;
    flex-direction: column;
    margin-top: var(--small-horizontal-margins);
    gap: var(--small-gap); 
}
.kontakt .card {
    background-color: var(--mid-grey);
    border-radius: var(--big-corners);
}
.kontakt .card *:not(:last-child) {
    margin-bottom: 1rem;
}
.kontakt .card.clickable:hover, .kontakt .card.clickable:active {
    background-color: rgb(98, 98, 98);
    transition: all 300ms ease-in-out;
}
.kontakt .card.clickable:hover .medium-icon {
    filter: var(--to-white);
    -webkit-filter: var(--to-white);
    transition: all 150ms ease-in;
}

.map-card {
    height: 50vh;
    padding: 0;
    position: relative;
}
.map-container iframe{
    position:absolute;
    left:0;
    top:0;
    height:100%;
    width:100%;
    z-index: 2;
}

@media screen and (min-width: 400px) {
    .kontakt .grid {
        display: grid;
    }
    .map-card {
        height: 100%;
        grid-column: 1 / span 2;
        grid-row: 2 / span 2;
    }
}
@media screen and (min-width: 400px) and (max-width: 699px) {
    .map-card {
            grid-column: 1 / span 2;
            grid-row: 3 / span 2;
            padding: 0;
            position: relative;
    }
    .kontakt .grid {
        grid-template-rows: repeat(5, 1fr);
        grid-template-columns: 1fr 1fr;
    }
    .kontakt .grid .card:last-child {
        grid-column: 1 / span 2;
        grid-row: 1 / span 1;
    }
}



/*-------------- STOPKA ----------------*/

section.stopka {
    background-color: var(--hover);
    position: relative;
}
.stopka * {
    color: #fff;
}
.stopka .photo {
    border-radius: 0;
    position: absolute;
    top: 0;
    z-index: 0;
}

.stopka .grid {
    grid-template-columns: auto auto;
    grid-template-rows: auto;
    column-gap: 0;
    row-gap: 0;
    position: relative;
    z-index: 1;
    padding: 0 var(--small-vertical-margins);
}
.stopka .card:not(.horizontal-divider) {
    padding: var(--small-horizontal-margins) var(--small-vertical-margins);
}
.stopka .card img {
    margin-top: 0.5rem;
}
.stopka .card .flex {
    justify-content: space-between;
}
.stopka .card .flex img {
    filter: invert();
    -webkit-filter: invert();
    margin-top: 0.5rem;
}
.stopka .card .flex:not(.menu-list) a {
    width: min-content;
}

.stopka .card.title {
    white-space: nowrap;
}
.stopka .footer-menu {
    grid-row: 2 / span 1;
}
.stopka .footer-menu ul {
    height: 100%;
}

.stopka .horizontal-divider {
    display: none;
    grid-column: 1 / span 3;
    margin: 0 calc(-1 * var(--small-vertical-margins));
}
.stopka .horizontal-divider.two {
    display: block;
    grid-row: 4 / span 1;
}

.stopka .card.copyright {
    grid-column: 1 / span 2;
    grid-row: 3 / span 1;
}
.stopka .card.copyright p {
    min-width: 150px;
}
.stopka .typy-realizacji {
    grid-column: 2 / span 1;
    grid-row: 2 / span 1;
}

.stopka .grid .fake {
    display: none;
}

.stopka .grid .credit {
    grid-column: 1 / span 3;
}
.stopka .grid .credit a p {
    font-weight: 500;
}
.stopka .grid .credit a p span {
    font-weight: 700;
}
.stopka .grid .credit a img {
    height: 1rem;
}

@media screen and (min-width: 500px) and (max-width: 849px) {
    .stopka .grid {
        grid-template-columns: fit-content min-content min-content;
    }
    .stopka .footer-menu {
        grid-row: 1 / span 4;
    }
    .stopka .horizontal-divider.two {
        display: block;
        grid-row: 5 / span 1;
    }
    .stopka .card.copyright {
        grid-column: 1 / span 1;
        grid-row: 4 / span 1;
        max-width: 200px;
    }
    .stopka .typy-realizacji {
        grid-column: 3 / span 1;
        grid-row: 1 / span 4;
    }
}
@media screen and (min-width: 700px) and (max-width: 849px) {
    .flex {
        flex-direction: column;
    }
}
@media screen and (min-width: 850px) {
    .stopka .grid {
        grid-template-columns: auto max-content min-content;
        padding: 0;
    }
    .stopka .footer-menu {
        grid-column: 2 / span 1;
        grid-row: 1 / span 1;
    }
    .stopka .footer-menu .flex {
        align-items: center;
    }

    .stopka .horizontal-divider {
        display: block;
        grid-row: 2 / span 1;
        margin: 0;
    }
    .stopka .horizontal-divider.two {
        display: none;
    }
    .stopka .typy-realizacji {
        grid-column: 2 / span 1;
        grid-row: 3 / span 1;
    }
    .stopka .card.copyright {
        grid-column: 1 / span 1;
        grid-row: 3 / span 1;
        max-width: 500px;
        padding-right: 0;
    }
}
@media screen and (min-width: 850px) and (max-width: 1599px) {
    .stopka .grid .fake {
        display: block;
    }
    .stopka .grid .credit {
        grid-column: 1 / span 3;
    }
}
@media screen and (min-width: 1600px) {
    .stopka .grid {
        grid-template-columns: 1fr 3fr 1fr;
    }
    .stopka .card:not(.horizontal-divider) {
        padding: var(--small-horizontal-margins) var(--big-gap);
    }
    .stopka .grid .credit {
        grid-column: 3 / span 1;
        grid-row: 3 / span 1;
    }
    .stopka .grid .credit p {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 0.3rem;
    }
    .stopka .grid .credit a img {
        height: 2.5rem;
        width: 2.5rem;
    }
}


/*-------------- TO TOP ----------------*/

.to-top {
    position: fixed;
    z-index: 5;
    width: 50px;
    height: 50px;
    bottom: 30px;
    right: 30px;
    background-color:var(--transparent-black);
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.to-top img {
    transform: scale(150%) rotate(180deg);
    -webkit-transform: scale(150%) rotate(180deg);
    margin-bottom: 2.5px;
}
.to-top:hover, .to-top:focus {
    background-color: var(--hover);
}
.to-top:active {
    background-color: var(--active);
}
.to-top:hover img {
    filter: var(--filter-to-hero);
    -webkit-filter: var(--filter-to-hero);
}


/*! --------- PODSTRONA REALIZACJE --------*/

section.start.start-podstrona {
    position: relative;
    height: 600px;
    min-height: auto;
}
.start-podstrona, .start-podstrona .start-bg {
    max-height: 600px !important;
    min-height: auto;
}
.start-podstrona .overlay {
    height: 600px;
}

.start-podstrona .container {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.start-podstrona .container .flex {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--small-gap);
}
.start-podstrona .container .flex button {
    margin: 0;
}

.start-podstrona .start-bg {
    position: absolute;
    overflow: hidden;
    top: 0;
    width: 100vw;
}

.start-podstrona h3 {
    font-weight: 400;
}


/* --------- REALIZACJE MAIN --------*/

.realizacje-main .wrapper {
    padding: var(--big-horizontal-margins) 0;
    margin-top: -1rem;
}
.realizacje-main .wrapper > *:not(:last-child) {
    margin-bottom: var(--big-gap);
}
.realizacje-main h3 {
    font-weight: 500;
    text-align: center;
}
.realizacje-main p {
    max-width: 800px;
}
.realizacje-main .container, .realizacje-main .container .wrapper {
    padding-bottom: 0;
}
.realizacje-main .container {
    padding: var(--big-horizontal-margins) var(--small-vertical-margins);
}

.realizacje-flex {
    justify-content: stretch;
    gap: var(--small-gap);
    flex-wrap: wrap;
}
.realizacje-col {
    flex-basis: calc(33.33% - var(--small-gap));
    position: relative;
}
.realizacje-col .thumb {
    display: block;
    height: 100%;
    width: 100%;
}
.realizacje-flex img.photo {
    border-radius: var(--small-corners);
}

.realizacje-main #mieszkaniowe, .realizacje-main #uslugowe {
    background-color: var(--light-grey);
}

.baner-osiedla {
    background-color: #13250D;
    margin-bottom: var(--small-gap) !important;
    display: flex;
    gap: 0;
    flex-direction: column;
}
.baner-osiedla .baner {
    border-radius: 0;
    object-fit: contain;
    height: auto;
    width: 100%;
}
.baner-osiedla h2 {
    font-size: 2rem;
    line-height: 2.6rem;
    color: #fff;
    width: 100%;
}
.baner-osiedla .flex {
    padding: var(--big-padding);
    justify-content: center;
    align-items: center;
    height: 100%;
    gap: 1rem;
    flex-direction: row;
}
.baner-osiedla .flex img {
    height: 5rem;
    filter: invert();
    -webkit-filter: invert();
}

@media screen and (min-width: 600px){
    .realizacje-flex {
        flex-direction: row !important;
        margin-right: calc(-1 * var(--small-gap));
    }
    .baner-osiedla h2 {
        font-size: 3.2rem;
        line-height: 4.1rem;
    }
}
@media screen and (min-width: 900px) {
    .baner-osiedla {
        height: 200px;
        flex-direction: row;
        justify-content: stretch;
    }
    .baner-osiedla .baner {
        height: 100%;
        width: auto;
    }
}
@media screen and (min-width: 600px) and (max-width: 999px) {
    .realizacje-col {
        flex-basis: calc(50% - var(--small-gap));
    }
}
@media screen and (min-width: 1000px) {
    .baner-osiedla {
        height: 250px;
    }
    .realizacje-col {
        flex-basis: calc(33.33% - var(--small-gap));
    }
}
@media screen and (min-width: 1400px) {
    .baner-osiedla h2 {
        line-height: 4.5rem;
    }
}
@media screen and (min-width: 1500px) {
    .baner-osiedla {
        height: 300px;
    }
    .baner-osiedla .flex img {
        height: 10rem;
    }
}

/*-------------- Image preview popup ----------------*/

.popup-container {
    background-color: rgba(0, 0, 0, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    z-index: 70;
    transform: scale(100%);
    opacity: 1;
    transition: all 150ms ease-in-out;
}

.popup-container .flex {
    align-items: center;
    justify-content: center;
    height: 100%;
    flex-direction: row !important;
}

.popup-container.hidden, .popup-container .hidden {
    pointer-events: none;
    opacity: 0;
}

.popup-container.hidden .flex .flex{ 
    transform: scale(75%);
}

.popup-container .flex > * {
    box-sizing: border-box;
}

.popup-container .flex .flex {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    width: max-content;
    height: max-content;
    max-height: 85vh;
}
  
.popup-container > img {
    height: 5rem;
    width: auto;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 1rem; 
    position: fixed;
    z-index: 50;
    text-align: center;
    box-shadow: #000 0px 0px 10px;
}
.popup-container .arrow-left, .popup-container .arrow-right {
    margin: 0;
    top: 85%;
    transform: translateY(-50%);
    /* filter: invert();
    -webkit-filter: invert(); */
}
.popup-container .arrow-left {
    transform: translateY(-50%) rotate(180deg);
    left: 0;
}
.popup-container .arrow-right {
    text-align: right;
    right: 0;
}
.popup-container .close-icon-popup {
    right: 0;
    top: 0;
    padding: 1rem;
}
.popup-container > img:hover {
    background-color: var(--hero);
    transition: all 150ms ease-in;
}
.popup-container > img:active, .popup-container > img:loading {
    background-color: var(--active);
}
.popup-container > img:focus {
    outline: rgb(255, 183, 0) 2px solid;
    transition: none;
}

.enlarged-image {
    position: relative;
}
.enlarged-image img{
    object-fit: contain;
    margin-bottom: -4px;
    box-shadow: #000 0px 0px 10px;
    max-height: 85vh;
    max-width: 100%;
}

@media screen and (min-width: 900px) {
    .popup-container .arrow-left, .popup-container .arrow-right {
        margin: 40px;
        top: 50%;
        transform: translateY(calc(-50% - 40px));
    }
    .popup-container .arrow-left {
        transform: translateY(-50%) rotate(180deg);
    }
    .popup-container .close-icon-popup {
        right: 40px;
        top: 40px;
    }
}