:root {
    --font: "Nunito Sans", Arial, sans-serif;
    --font-size: 14px;

    --light-grey: #F2F2F2;
    --sky-blue: #23A7EB;
    --to-sky-blue: invert(70%) sepia(88%) saturate(3763%) hue-rotate(170deg) brightness(96%) contrast(92%);
    --to-light-sky-blue: invert(70%) sepia(27%) saturate(774%) hue-rotate(169deg) brightness(104%) contrast(104%);
    --blue: #163873;
    --dark-blue: #0F244B;
    --transparent-dark-blue: rgba(29, 50, 87, 0.75);
    --scrollbar: 0px;

    --transition: all 150ms ease-in;

    --xl-spacing: 8rem;
    --l-spacing: 5rem;
    --m-spacing: 3rem;
    --s-spacing: 1rem;
    --xs-spacing: 0.5rem;
    --padding: 10px 20px;

    --border: 1px solid #fff;
    --divider: 4px;
}

*{
    font-family: var(--font);
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings: "wdth" 100, "YTLC" 500;
    font-size: var(--font-size);
    font-weight: 400;
    line-height: normal;
    color: #000;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scrollbar-gutter: stable;
  }
  
html, body {
    width: 100%; 
    overflow-x: hidden;
    scroll-behavior: smooth;
    background-color: transparent;
} 
body {
    animation: fadeInAnimation ease 2s;
    animation-iteration-count: 1;
    overflow: visible;
    overflow-x: hidden;
}
@keyframes fadeInAnimation {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
div, section {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    scroll-margin-top: 150px !important;
}

/* headers */
h1, h1 *, h2, h2 *, h3, h3 *, strong {
    font-weight: 900;
}
h1::after, h2::after, h3::after {
    content: '';
    display: block;
    height: var(--divider);
    width: 75px;
    background-color: var(--sky-blue);
    margin: var(--s-spacing) 0;
}
h1, h1 * {
    font-size: 2.986rem;
    line-height: 3.5rem;
}
h2, h2 * {
    font-size: 1.728rem;
    color: var(--blue);
}
h3, h3 * {
    font-size: 1.44rem;
    color: var(--blue);
}
h4 {
    margin-bottom: var(--xs-spacing);
}
h4, h4 * {
    text-transform: uppercase;
    color: var(--blue);
}

@media screen and (max-width: 399px) {
    :root {
        --m-spacing: 2rem;
    }
    h1, h1 * {
        font-size: 2.074rem;
        line-height: 2.5rem;
    }
}
@media screen and (min-width: 1000px) {
    :root {
        --divider: 5.5px;
        --s-spacing: 1.5rem;
    }
    h1, h1 * {
        font-size: 3.815rem;
        line-height: 4.4rem;
    }
    h2, h2 * {
        font-size: 1.953rem;
    }
    h3, h3 * {
        font-size: 1.953rem;
    }
    h4, h4 * {
        font-size: 1.25rem;
    }
}
@media screen and (min-width: 1600px) {
   :root {
    --font-size: 16px;

    --xl-spacing: 9rem;
    --l-spacing: 6rem;
    --m-spacing: 4rem;
    --s-spacing: 2rem;
    --xs-spacing: 0.5rem;
    --padding: 10px 20px;
    }   
}

/* other text */
a {
    text-decoration: none;
    color: #fff;
    transition: var(--transition);
    cursor: pointer;
}
a:hover, a:focus  {
    color: #aae3ff;
}
a:active, a:loading {
    color: var(--sky-blue);
}
a:hover img {
    transform: scale(125%);
    filter: saturate(40%) brightness(150%);
    transition: var(--transition);
}
ul, li {
    list-style: none;
}

/* buttons */
button {
    border: none;
    padding: 0;
    margin: 0;
    background-color: transparent;
    cursor: pointer;
}
button:not(.container-btn) {
    background-color: var(--sky-blue);
    color: #fff;
    outline: none;
    border: none;
    padding: var(--padding);
    margin-top: var(--s-spacing);
    display: flex;
    align-items: center;
    white-space: nowrap;
    transition: all 300ms ease-out;
}
button:not(.container-btn):hover, button:not(.container-btn, .inactive):focus  {
    background-color: #5fbceb;
    transform: scale(110%);
}
button:not(.container-btn):active, button:not(.container-btn):loading {
    background-color: #005681;
}
button.ghost-btn {
    background-color: transparent;
    outline: var(--sky-blue) solid 2px;
    outline-offset: -2px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
button.ghost-btn:hover, button.ghost-btn:focus  {
    background-color: #a4e1ff42;
}
button.ghost-btn:active, button.ghost-btn:loading {
    background-color: #3582a879;
}
button:not(.container-btn) img {
    margin-left: var(--xs-spacing);
}
div:not(.to-top) button.container-btn:hover {
    transform: scale(110%);
    filter: saturate(40%) brightness(150%);
    transition: var(--transition);
}
.container-btn img {
    margin-bottom: -15%;
}
button.call-btn img {
    margin-left: 0;
    margin-right: var(--xs-spacing);
    filter: saturate(0%) brightness(200%);
}

/* Sekcje */
section {
    padding: var(--xl-spacing) 0;
    margin: 0 auto;
}
section, footer {
    position: relative;
}


/* containers */
.wrapper, .container {
    margin: 0 auto;
}
.wrapper {
    max-width: 1200px;
}
.container {
    padding: var(--m-spacing);
    max-width: 800px;
}
.container > * {
    margin: 0 auto;
}
.flex {
    display: flex;
    align-items: center;
    gap: var(--s-spacing);
}
.flex-col {
    flex-basis: 50%;
}
img.flex-col{
    width: 100%;
}
.tile {
    flex-basis: 16.66%;
    min-height: 16.66vw;
    position: relative;
}
.tile:hover, .img-cell:hover img {
    transition: all 150ms ease-out;
    transform: scale(105%);
}
.tile:hover {
    filter: brightness(150%) !important;
    -webkit-filter: brightness(150%) !important;
    z-index: 2;
}
.img-cell:hover img{
    opacity: 0.7;
    z-index: -1;
}
.tile a.flex {
    justify-content: center;
    align-items: center;
    min-height: 16.66vw;
    width: 100%;
    padding: 0 var(--s-spacing);
}
.tile * {
    text-align: center;
    color: #fff;
    margin-bottom: 0;
    overflow-y: hidden;
}

/* grid */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
}
.cell {
    height: calc(100vw - var(--scrollbar));
    width: 100%;
    overflow: hidden;
}
.cell > img, .cell > a > img, .cell > a > picture, .cell > a > picture img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.img-cell a:hover img {
    filter: none;
}
@media screen and (min-width: 600px) and (max-width: 899px) {
    .cell {
        height: calc(50vw - var(--scrollbar) / 2);
    }
}
@media screen and (min-width: 600px) and (max-width: 1365px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (min-width: 900px) and (max-width: 1365px) {
    .cell {
        height: calc(33.33vw - var(--scrollbar) / 3);
    }
}
@media screen and (min-width: 1366px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .cell {
        height: calc(25vw - var(--scrollbar) / 4);
    }
}

/* alignment */
.margins {
    margin: 0 var(--m-spacing);
}
.center > * {
    text-align: center;
}
.center > *:not(h2, h3) {
    display: flex;
    flex-direction: column;
    gap: 0;
    justify-content: center;
    align-items: center;
}
.center h1::after, .center h2::after, .center h3::after {
    margin: var(--s-spacing) auto;
}
.background {
    position: absolute;
    top: 0;
    z-index: -1;
    overflow-y: visible;
    width: calc(100vw - var(--scrollbar) + 6px);
}
.background picture, .background .pic {
    width: calc(100vw - var(--scrollbar) + 10px);
    margin-left: -3px;
    height: 100vh;
    min-height: 800px;
    object-fit: cover;
    filter: blur(2px) !important;
    -webkit-filter: blur(2px) !important;
}
@media screen and (min-width: 1200px) and (max-width: 1365px) {
    section.start .margins, section.about .margins, section.contact-cta .margins, section.why-us .margins {
        margin: 0 var(--xl-spacing);
    }
}
@media screen and (min-width: 1366px) {
    .margins {
        margin: 0 auto;
    }
}

/* images */
img.photo {
    height: 100%;
    width: 100%;
    object-fit: cover;
    position: relative;
}
.thumb {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: inherit;
    height: auto;
}
.logo {
    height: 50px; 
    width: auto;
}
a:hover img.logo {
    transform: none;
}
.icon {
    width: 1rem;
    height: auto;
}
.m-icon {
    width: 1.728rem;
}
.soc-med {
    gap: 1rem;
    margin-left: -0.3rem;
}
.soc-med img {
    filter: var(--to-sky-blue);
}
.soc-med a:hover img {
    filter: var(--to-light-sky-blue);
}
@media screen and (min-width: 800px) {
    .logo {
        height: 80px; 
    }
}
@media screen and (min-width: 1000px) {
    .m-icon {
        width: 1.953rem;
    }   
}
@media screen and (min-width: 1600px) {
    .m-icon {
        width: 2.5rem;
    }   
}

/* interaction appearance */
.hidden {
    display: none;
}
.inactive {
    opacity: 0.5 !important;
    filter: grayscale() !important;
    -webkit-filter: grayscale() !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
    transform: none !important;
}
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    /* opacity: 0.5; */
    background-color: rgba(0, 26, 73, 0.85);
    height: 100%;
    width: 100%;
    padding: var(--m-spacing);
}

/* carousel */
.carousel-container {
    position: relative;
    width: 100%;
}
.slider {
    overflow: visible;
    align-items: end;
    width: max-content;
}
.slide {
    position: relative;
}
/* carousel nav */
nav.carousel-nav {
    justify-content: center;
    width: 100%;
    margin-top: var(--m-spacing);
}
nav.carousel-nav * {
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}
nav.carousel-nav img {
    background-color: var(--sky-blue);
    padding: 15px;
    height: 50px;
    margin-bottom: -4px
}
@media screen and (min-width: 1366px) {
    nav.carousel-nav img {
        padding: 20px;
        height: 64px;
    }
}

/* dropdowns */
#dropdown {
    position: relative;
}
#dropdown-content {
    opacity: 0;
    transform: scaleY(0%);
    transform-origin: top;
    -webkit-transform: scaleY(0%);
    -webkit-transform-origin: top;
    position: absolute !important;
    transition: opacity 200ms ease-in;
    top: 2rem;
    padding: var(--xs-spacing) var(--s-spacing);
    width: max-content;
    z-index: 10;
}
#dropdown-content > * {
    position: relative;
}
#dropdown-content.visible  {
    opacity: 1;
    transform: scaleY(100%);
}
#dropdown-content.visible > * {
    opacity: 1;
}
#dropdown-btn {
    transition: all 300ms ease-out;
}
#dropdown-btn.unrolled {
    transform: rotate(180deg);
}
.top-bar ul:not(.mobile-nav) #dropdown-content {
    padding: var(--s-spacing);
    background-color: var(--sky-blue);
}
.top-bar ul:not(.mobile-nav) #dropdown-content li:not(:last-child) {
    margin-bottom: 0.7rem;
}
.top-bar ul.mobile-nav #dropdown {
    flex-direction: column;
}
.top-bar ul.mobile-nav #dropdown-content {
    padding: 0;
    top: var(--xs-spacing);
}
footer #dropdown-content {
    background-color: transparent;
    top: 0.2rem;
    margin-left: 0.7rem;
    padding-bottom: 0;
}
footer #dropdown-content li {
    background: url(./img/icons/diamond.svg) no-repeat 0px 0px transparent;
    background-size: 5%;
    background-position: 0% 50%;
    margin: 0;
    padding: 0px 0px 0px 1.4rem;
    vertical-align: middle;
}
footer #dropdown-content li:not(:last-child) {
    margin-bottom: var(--s-spacing);
}
footer #dropdown-content li:first-child {
    margin-top: 0.3rem;
}
footer #dropdown-content li:last-child {
    margin-bottom: var(--xs-spacing);
}
footer #dropdown-content.visible, .mobile-nav #dropdown-content.visible {
    position: relative !important;
}

/* Animations */
#to-animate {
    animation-fill-mode: backwards;
}
h1.animate .line, h2.animate .line, h3.animate .line, h4.animate .line {
    animation-name: fadein-scaleup;
    animation-duration: 600ms;
    animation-timing-function: ease-in;
}
h4.animate .line {
    animation-duration: 600ms;
    animation-name: fadein;
}
h1.animate::after, h2.animate::after, h3.animate::after {
    animation-name: lenghten;
    animation-duration: 600ms;
    animation-timing-function: ease-out;
}
.fadein-scaleup-anim.animate {
    animation-duration: 600ms;
    animation-timing-function: ease-in;
}
.grow-anim.animate, button.animate {
    animation-name: grow;
    animation-duration: 600ms;
    animation-timing-function: ease-in;
}
section.start button.animate#to-animate {
    animation-name: grow-slow;
    animation-duration: 1200ms;
}
.fadein-anim.animate {
    animation-name: fadein;
    animation-duration: 1000ms;
    animation-timing-function: ease;
}
#to-animate.animate.second, #to-animate.animate.second * {
    animation-delay: 150ms;
}
@keyframes fadein {
    0% {
        opacity: 0;
    }
    10% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
@keyframes fadein-scaleup {
    0% {
        transform: scaleY(75%) translateY(20%);
        transform-origin: bottom;
        opacity: 0;
    }
    10% {
        opacity: 0;
    }
    100% {
        transform: scaleY(100%) translateY(0%);
        opacity: 1;
    }
}
@keyframes lenghten {
    0% {
        width: 0px;
        opacity: 0;
    }
    10% {
        width: 0px;
        opacity: 0.5;
    }
    100% {
        width: 75px;
        opacity: 1;
    }
}
@keyframes grow-slow {
    0% {
        transform: scale(0%);
        opacity: 0;
    }
    71% {
        transform: scale(90%);
        opacity: 0;
    }
    100% {
        transform: scale(100%);
        opacity: 1;
    }
}
@keyframes grow {
    0% {
        transform: scale(90%);
        opacity: 0;
    }
    10% {
        transform: scale(90%);
        opacity: 0;
    }
    100% {
        transform: scale(100%);
        opacity: 1;
    }
}

/** ------------- GÓRNA BELKA NAWIGACJI ------------ */
.top-bar {
    background-color: var(--transparent-dark-blue);
    position: fixed;
    top: 0;
    z-index: 20;
    width: 100%;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.top-bar > div:last-child*:not(a) {
    color: #fff;
}
.top-bar > div > .flex {
    padding: 5px 0;
    justify-content: space-between;
}
/* pierwszy rząd */
.top-bar > div:first-child {
    padding: 8px 0;
    background-color: #fff;
}
.top-bar .shorthand * {
    white-space: nowrap;
}
.top-bar .shorthand a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--sky-blue);
    font-weight: 700;
}
.top-bar .shorthand a:hover {
    color: #7cd3ff;
    transition: var(--transition)n;
}
.top-bar .lang {
    gap: 0;
}
.top-bar .lang * {
    color: #fff;
}
.top-bar .lang p {
    margin-left: 0.3rem;
    margin-right: 0.2rem;
}
/* drugi rząd */
nav li .flex {
    gap: 0.2rem;
}
#offer-dropdown:hover img {
    filter: saturate(40%) brightness(140%);
    transition: var(--transition);
}
/* mobile menu */
.nav-bg {
    display: none;
    opacity: 0;
}
.top-bar .close-icon {
    display: none;
    position: relative;
    z-index: 30;
}

@media screen and (max-width: 349px) {
    .top-bar .shorthand p {
        display: none;
    }
}
@media screen and (max-width: 599px) {
    .top-bar .shorthand div:nth-child(2) {
        display: none;
    }
}
@media screen and (max-width: 699px) {
    .nav-bg {
        position: fixed;
        top: 0;
        width: 100vw;
        height: max-content;
        background-color: var(--dark-blue);
    }
    .top-bar nav > ul {
        position: absolute;
        top: 50%;
        height: 100vh;
        width: 100vw;
        z-index: 22;
        opacity: 0;
        display: none;
    }
    .mobile-nav {
        display: flex;
        padding: 60px 0;
        height: 100%;
        width: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--xs-spacing);
    }
    .mobile-nav h3 {
        text-align: center;
        color: #fff;
    }
    .mobile-nav li {
        padding: var(--xs-spacing);
        width: 100%;
        text-align: center;
    }
    .mobile-nav .flex {
        justify-content: center;
        gap: 0.2rem;
    }
}
@media screen and (min-width: 700px) {
    .top-bar nav > ul {
        display: flex;
        gap: var(--s-spacing);
        position: relative;
    }
    .top-bar .menu-icon {
        display: none;
    }
}
@media screen and (max-width: 749px) {
    .top-bar .soc-med > * {
        display: none;
    }
}

/* Strzałka do góry */
.to-top {
    position: fixed;
    bottom: var(--s-spacing);
    right: var(--s-spacing);
    transform: rotate(-90deg);
    z-index: 10;
}
.to-top img {
    padding: 1rem;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background-color: var(--sky-blue);
}

/** ------------- SEKCJE STRONY GŁÓWNEJ ------------ */

/* ------------- SEKCJA START ------------ */
section.start {
    position: relative;
    height: 90vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
section.start * {
    color: #fff;
}
section.start .background {
    transform: none;
}
section.start button {
    margin-top: 0;
}
section.start .wrapper > .flex {
    justify-content: space-between;
    width: 100%;
    margin-top: 45px;
}  
section.start .wrapper {
    width: 100%;
}
section.start .wrapper > .flex .flex {
    flex-wrap: wrap;
    margin-top: var(--s-spacing);
}
section.start .hero p, section.start .hero h1{
    max-width: 600px;
}
section.start h1.animate::after {
    animation-duration: 1200ms;
}
/* kafelki usług */
.flex.offer-tiles {
    display: none;
}
@media screen and (min-width: 600px) {
    .flex.offer-tiles {
        display: flex;
        width: calc(100vw - var(--scrollbar));
        gap: 0;
        position: relative;
        z-index: 1;
        flex-wrap: wrap;
        overflow: visible;
    } 
    .offer-tiles * {
        overflow: visible;
    }
    .offer-tiles .tile {
        flex-basis: 33.33%;
        min-height: 9rem;
    }
    .offer-tiles a {
        height: 100%;
        width: 100%;
    }
    .offer-tiles h4 {
        display: inline;
        /* font-weight: 600; */
    }
    .offer-tiles .tile {
        background: linear-gradient(rgba(0, 26, 73, 0.85), rgba(0, 26, 73, 0.85)), 
        url(./img/tile-chlodnictwo.png);
        background-size: cover;
        background-position: 50% 50%;
    }
    .offer-tiles .tile:nth-child(2) {
        background: linear-gradient(rgba(0, 26, 73, 0.85), rgba(0, 26, 73, 0.85)), 
        url(./img/tile-cieplownictwo.png);
        background-size: cover;
        background-position: 50% 50%;
    }
    .offer-tiles .tile:nth-child(3) {
        background: linear-gradient(rgba(0, 26, 73, 0.85), rgba(0, 26, 73, 0.85)), 
        url(./img/tile-montaz.png);
        background-size: cover;
        background-position: 50% 50%;
    }
    .offer-tiles .tile:nth-child(4) {
        background: linear-gradient(rgba(0, 26, 73, 0.85), rgba(0, 26, 73, 0.85)), 
        url(./img/tile-prefabrykacja.png);
        background-size: cover;
        background-position: 50% 50%;
    }
    .offer-tiles .tile:nth-child(5) {
        background: linear-gradient(rgba(0, 26, 73, 0.85), rgba(0, 26, 73, 0.85)), 
        url(./img/tile-spawanie.png);
        background-size: cover;
        background-position: 50% 50%;
    }
    .offer-tiles .tile:nth-child(6) {
        background: linear-gradient(rgba(0, 26, 73, 0.85), rgba(0, 26, 73, 0.85)), 
        url(./img/tile-serwis.png);
        background-size: cover;
        background-position: 50% 50%;
    }
}

@media screen and (min-width: 800px) {
    section.start .wrapper > .flex {
        margin-top: 120px;
      }
}
@media screen and (min-width: 1200px) {
    .flex.offer-tiles {
        flex-wrap: nowrap;
    }
    .offer-tiles .tile {
        flex-basis: 16.66%;
        min-height: calc(16.66vw - var(--scrollbar) / 6);
    }
}

/* ------------- SEKCJA O FIRMIE --------------- */
section.about {
    background-color: var(--light-grey);
}
section.about .flex-col {
    height: min-content;
}  
section.about .flex  {
    gap: var(--s-spacing);
}
section.about .flex-col p:not(:first-child) {
    margin-top: 1rem;
}
section.about .flex-col .flex button.second img {
    transform: rotate(-90deg);
}
@media screen and (min-width: 1200px) {
    section.about > .flex  {
        gap: var(--l-spacing);
    }
}
@media screen and (max-width: 799px) {
    section.about > .flex {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: var(--m-spacing);
    }
    section.about > .flex img {
        max-width: 350px;
    }
} 

/* ------------- SEKCJA OFERTA -------------- */
section.oferta {
    padding-bottom: 0;
}
section.oferta > .container  {
    margin-bottom: var(--l-spacing);
}
section.oferta .grid .cell:nth-child(1) *, section.oferta .grid .cell:nth-child(4) *,
section.oferta .grid .cell:nth-child(8) *, section.oferta .grid .cell:nth-child(9) * {
    color: #fff;
}
section.oferta .grid .cell:nth-child(1), section.oferta .grid .cell:nth-child(9) {
    background-color: var(--blue);
}
section.oferta .grid .cell:nth-child(8) {
    background-color: var(--dark-blue);
}
section.oferta .grid .cell:nth-child(3), section.oferta > .flex > .flex-col:last-child {
    background-color: var(--light-grey);
}
section.oferta .img-cell {
    filter: grayscale();
    -webkit-filter: grayscale();
}
section.oferta > .flex {
    gap: 0;
}
section.oferta > .flex > .flex-col {
    width: 100%;
    overflow: hidden;
}
section.oferta .flex-col > a > picture, section.oferta .flex-col > a > picture img {
    width: 100%;
    object-fit: cover;
}
section.oferta .flex-col .container {
    max-width: none;
    align-items: center;
    height: 100%;
}
section.oferta .doradztwo-flex {
    display: flex;
    flex-direction: column;
    gap: var(--xs-spacing);
}

@media screen and (max-width: 599px) {
    section.oferta .img-cell {
        display: none;
    }
    section.oferta > .flex {
        display: block;
    }
    section.oferta > .flex > .flex-col, section.oferta .cell,
    section.oferta .flex-col > a > picture, section.oferta .flex-col > a > picture img {
        height: min-content !important;
    }
}
@media screen and (max-width: 899px) {
    section.oferta > .flex > .flex-col.img-cell  {
        display: none;
    }
    section.oferta > .flex {
        display: block;
    }
}
@media screen and (min-width: 900px) {
    section.oferta > .flex, section.oferta > .flex > .flex-col,
    section.oferta .flex-col > a > picture, section.oferta .flex-col > a > picture img  {
        height: 40vw;
    }
}
@media screen and (min-width: 1100px) and (max-width: 1365px) {
    section.oferta > .flex, section.oferta > .flex > .flex-col,
    section.oferta .flex-col > a > picture, section.oferta .flex-col > a > picture img {
        height: 33.33vw;
    }
}
@media screen and (min-width: 1366px) {
    section.oferta > .flex, section.oferta > .flex > .flex-col,
    section.oferta .flex-col > a > picture, section.oferta .flex-col > a > picture img {
        height: 25vw;
    }
    section.oferta .doradztwo-flex {
        flex-direction: row;
        gap: var(--s-spacing);
    }
}

/* ------------- SEKCJA DLACZEGO MY -------------- */
section.why-us h4, section.why-us h4 *  {
    font-weight: 800;
}
section.why-us .wrapper > div{
    margin-top: var(--l-spacing);
}
section.why-us > .wrapper > div > .flex {
    gap: var(--m-spacing);
    align-items: flex-start;
}
section.why-us .flex-col .flex {
    gap: var(--s-spacing);
    overflow: hidden;
    height: min-content;
    align-items: flex-start;
}
section.why-us .flex.second{
    margin-top: var(--m-spacing);
}
section.why-us .l-icon {
    height: 4rem;
}
@media screen and (max-width: 599px) {
    section.why-us > .wrapper > div > .flex {
        flex-direction: column;
        gap: var(--m-spacing);
    }
}
@media screen and (max-width: 999px) {
    section.why-us .flex-col .flex {
        flex-direction: column;
    }
    section.why-us .medal-icon {
        margin-left: -0.4rem;
    }
    section.why-us .icon-container {
        background-color: var(--light-grey);
        width: 100%;
        padding: var(--s-spacing);
        display: flex;
        justify-content: center;
    }
}

/* ------------- SEKCJA REALIZACJE -------------- */
section.realizacje {
    background-color: var(--dark-blue);
}
section.realizacje * {
    color: #fff;
}
section.realizacje h2 {
    margin-bottom: var(--l-spacing);
}
section.realizacje > .flex > .container {
    padding: 0;
}
section.realizacje > .flex {
    justify-content: center;
}
section.realizacje > .flex > a > button {
    margin-top: var(--s-spacing);
}
/* karuzela sekcji realizacje */
#realizacje-carousel .slider {
    gap: 0;
}
#realizacje-carousel .slide {
    width: calc(100vw - var(--scrollbar));
    height: calc(100vw - var(--scrollbar));
}
#realizacje-carousel .overlay {
    padding: var(--m-spacing);
    justify-content: center;
    opacity: 0;
    transform: scale(90%);
    transition: all 300ms ease-out;
}
#realizacje-carousel .slide:hover .overlay {
    opacity: 1;
    transform: scale(100%);
}
#realizacje-carousel .overlay h3::after {
    display: none;
}
#realizacje-carousel .overlay a {
    display: flex;
    justify-content: center;
    width: 100%;
}
#realizacje-carousel .cell > picture, #realizacje-carousel .cell > picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.realizacje-slider {
    transition: transform ease-out 300ms;
}

@media screen and (min-width: 600px) and (max-width: 899px) {
    #realizacje-carousel .slide {
        width: calc(50vw - var(--scrollbar) / 2);
        height: calc(50vw - var(--scrollbar) / 2);
    }
    section.realizacje .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (min-width: 900px) and (max-width: 1365px) {
    #realizacje-carousel .slide {
        width: calc(33.33vw - var(--scrollbar) / 3);
        height: calc(33.33vw - var(--scrollbar) / 3);
    }
    section.realizacje .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media screen and (min-width: 1366px) {
    #realizacje-carousel .slide {
        width: calc(25vw - var(--scrollbar) / 4);
        height: calc(25vw - var(--scrollbar) / 4);
    }
    section.realizacje .grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* karuzela z partnerami / obsługiwanymi firmami */
#partners-carousel .slide {
    background-color: #23A7EB;
}

/* ------------- SEKCJA O MEDIACH SPOŁECZNOŚCIOWYCH -------------- */
section.soc-med-cta {
    background-color: var(--light-grey);
}
section.soc-med-cta .wrapper.flex.center {
    flex-direction: column;
    gap: var(--xs-spacing);
}
section.soc-med-cta .soc-med {
    flex-direction: row;
    gap: var(--s-spacing)
}
section.soc-med-cta .soc-med img {
    filter: invert(70%) sepia(88%) saturate(3763%) hue-rotate(170deg) brightness(96%) contrast(92%);
}
section.soc-med-cta .soc-med a:hover img {
    filter: invert() brightness(1000%);
}
section.soc-med-cta .embeds {
    margin-top: var(--m-spacing);
}
section.soc-med-cta .embeds img {
    object-fit: contain;
    flex-basis: 33.33%;
    width: 100%;
}

/* ------------- SEKCJA ZACHĘCAJĄCA DO KONTAKTU -------------- */
section.contact-cta {
    overflow: hidden;
}
section.contact-cta .flex  {
    justify-content: space-between;
    gap: var(--m-spacing);
}
section.contact-cta .flex > div {
    max-width: 800px;
}
section.contact-cta h2, section.contact-cta h2 * {
    color: var(--sky-blue);
}
section.contact-cta h2::after {
    display: none;
}
section.contact-cta button {
    margin-top: 0;
    padding: 20px 30px;
    background-color: var(--blue);
    text-transform: uppercase;
}
section.contact-cta .background {
    filter: grayscale();
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    object-position: 0% 100%;
    filter: blur(3px);
}
@media screen and (max-width: 699px) {
    section.contact-cta .flex {
        flex-direction: column;
        justify-content: center;
    }
    section.contact-cta .flex * {
        text-align: center;
    }
    section.contact-cta .flex h3::after {
        margin: var(--s-spacing) auto;
    }
}
@media screen and (min-width: 1000px) {
    section.contact-cta h2 {
        font-size: 3.052rem;
        font-weight: 900;
        color: var(--sky-blue);
    }
    section.contact-cta button {
        margin-top: 0;
        padding: 20px 40px;
        background-color: var(--blue);
        font-size: 1.25rem;
        text-transform: uppercase;
    }
}

/** ------------- STOPKA -------------- */
footer {
    background-color: var(--dark-blue);
    z-index: 2;
}
footer * {
    color: #fff;
}
footer .flex {
    justify-content: space-between;
    align-items: flex-start;
}

/* top row */
footer .footer-top {
    height: 50px;
    align-items: center;
    margin: 5px 0;
    margin-bottom: var(--m-spacing)
}
footer h2.footer-top {
    display: flex;
    align-items: center;
}
footer h2::after {
    display: none;
}
.footer-line {
    position: absolute;
    top: 60px;
    width: 100%;
    height: 1px;
    background-color: #fff;
    z-index: -1;
}

/* middle row */
footer ul li:not(:last-child) {
    margin-bottom: var(--s-spacing);
}
footer a {
    color: var(--sky-blue);
    display: flex;
}
footer nav li {
    margin-bottom: 0.5rem;
}
footer nav li.flex, footer nav li .flex, footer a, footer .footer-credit .flex .flex, footer #dropdown > .flex  {
    justify-content: left;
    align-items: center;
    gap: 0.7rem;
}
footer nav li > img, footer #dropdown img {
    height: 0.75rem !important;
}
footer #dropdown img:last-child {
    margin-left: -0.5rem;
}
footer nav li .flex {
    gap: 0.3rem;
}
.iframe-container {
    display: none;
}
/*! PLACEHOLDER */
footer .iframe-container img {
    max-height: 150px;
}
footer .footer-shorthand h4 {
    margin-bottom: 0.5rem;
    margin-top: var(--s-spacing);
}
footer .footer-shorthand p, footer .footer-shorthand a {
    margin-bottom: var(--xs-spacing);
}
footer .footer-shorthand a.address {
    white-space: initial;
    align-items: baseline;
    color: #fff;
}
/* botom row */
footer .footer-credit {
    margin-top: var(--m-spacing);
    padding: 14px 0;
    flex-direction: column;
} 
footer .footer-credit .flex .flex *{
    gap: 0.2rem;
    white-space: nowrap;
}
@media screen and (max-width: 399px) {
    footer .footer-credit::before {
        content: '';
        display: block;
        height: var(--divider);
        width: 75px;
        background-color: var(--sky-blue);
        margin-bottom: var(--s-spacing);
        margin-top: -0.5rem;
    }
    footer .footer-credit .flex .flex {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }
}
@media screen and (min-width: 400px) {
    footer .footer-credit p {
        white-space: nowrap;
    }
    /* bottom row (credit) */
    .footer-botom-line {
        bottom: calc(1.36rem * 3 + 28px + 0.8rem * 2);
        top: auto;
    }
}
@media screen and (max-width: 499px) {
    footer > .flex:nth-child(2) .logo {
        margin-bottom: var(--s-spacing);
    }
    footer > .flex:nth-child(2) {
        flex-direction: column;
    }
}
@media screen and (min-width: 500px) {
    footer > .flex:nth-child(2) {
        gap: var(--l-spacing);
    }
}
@media screen and (max-width: 699px) {
    footer .footer-credit > .flex:last-child {
        flex-direction: column;
    }
}
@media screen and (min-width: 700px) {
    .footer-botom-line {
        bottom: calc(1.36rem * 2 + 28px + 0.758rem);
    }
}
@media screen and (min-width: 800px) {
    .footer-top-line{
        top: 92px;
    }
    footer .footer-top {
        height: 90px;
    }
}
@media screen and (min-width: 900px) {
    .footer-botom-line {
        bottom: calc(1.36rem + 28px);
    }
    footer .footer-credit {
        flex-direction: row;
    } 
    .iframe-container {
        display: block;
    }
}

/* LENIS */

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: clip;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}