body {
  background-color: var(--bg);
}

/* header */

.toggle-menu {
  display: flex;
  align-items: center;
  margin-top: -2px;
}

.navi {
    position: fixed;
    top: 0;
    width: 100vw;
    height: 80px;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
    background-color: var(--bg);
    z-index: 998;
}

#menu-header-menu {
  display: flex;
  gap: 0 3rem;
  margin-bottom: 0;
}

#menu-header-menu li {
  list-style: none;
}

#menu-header-menu li a {
  text-decoration: none;
  color: black;
  font-size: 1.2rem;
  font-weight: 900;
  transition: var(--basic-transition);
}

#menu-header-menu li a:hover {
  color: var(--primary);
}

.navi__imgs {
  gap: 0 3rem;
  padding-left: 1rem;
  align-items: center;
}

.navi__menu {
  margin-right: 1rem;
}

.navi__menu button {
    border: none;
    background-color: transparent;
    align-items: center;
}

.navi__menu button p {
  margin-bottom: 0;
  font-size: 1.25rem;
}


.navi__img img{
  height: 50px;
  width: auto;
}

.navi__img .jsw {
  height: 45px;
}

.navi__img .bip {
  height: 55px;
}

/* side menu */
.side__menu {
  position: fixed;
  top: 0;
  right: -375px;
  width: 375px;
  padding-top: 120px;
  background-color: var(--bg);
  z-index: 997;
  height: 100vh;
  transition: var(--basic-transition);
}

.side__menu li {
  list-style: none;
  margin-bottom: .5rem;
}

.side__menu li a {
  text-decoration: none;
  color: var(--black-text);
  transition: var(--basic-transition);
  font-weight: 700;
  font-size: 1.25rem;
}

.side__menu li a:hover {
  text-decoration: none;
  margin-left: 20px;
  color: var(--primary);
}


.showSide {
  right: 0;
}

/* home */
.home {
  /* background-color: black; */
  width: 100vw;
  height: 100vh;
  position: relative;
}

.home .btn {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10%;
}

.fullscreen-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -100;
}

.fullscreen-bg video {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
}

/* projekt */

.projekt__content {
/* 	MESSY CLEANUP OF LAZY CSS @MP
	  padding: 10% 0 5%; */
  padding: 2% 0 2%;
}

.projekt__content .h6 {
  line-height: 150%;
}

.projekt__btn {
  position: absolute;
  bottom: 10%;
  left: 8%;
}

.projekt__bg {
  width: 100vw;
  height: auto;
}

/* funkcje */
.funkcje  {
/* MESSY CLEANUP OF LAZY CSS @MP
  padding-top: 70px; */
  padding-top: 0px;
/*   min-height: 80vh; */
}

.funkcje .h1{
  padding-top: 3%;
  padding-bottom: 2%;
}

.funkcje .btn {
  margin: 3% auto 5%;
  display: flex;
  justify-content: center;
}

.funkcje .accordion-item {
  border: 1px solid var(--black-text) !important;
}

.acc__img {
  width: 80px;
  height: 60px;
  object-fit: contain;
  margin-right: 5px;
}

.accordion-button {
  font-weight: 700;
}

.accordion-button,
.accordion-body {
  background-color: var(--bg);
}

.accordion-body {
  padding: 2% 5%;
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary);
  color: white;
  border-color: var(--black-text);
  box-shadow: none;
}

.accordion-button:not(.collapsed)::after,
.accordion-button:not(.collapsed) .acc__img {
  filter: contrast(100) invert(1) grayscale(100%);
}

.accordion-button:focus {
  border-color: none;
}

/* cel */

.cel {
/*   padding-top: 60px; */
}

.cel__content {
/*   padding: 5% 15% 2%; */
	  padding: 0% 15% 5%;
}

.cel__content .h1 {
  margin-bottom: 8%;
}

.cel__content .btn {
  margin-top: 15%;
}

.cel__content,
.cel__gallery {
  position: relative;
  top: 40%;
  transform: translateY(-50%);
}

.owl-item .item {
  height: 50vh;
}

/* .cel__gallery .active:nth-child(3n - 2) .item {
  height: 50vh !important;
} */

.owl-nav .owl-prev {
  display: none !important;
}

.owl-nav .owl-next {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
}

.owl-nav .owl-next img {
  width: 60px;
  transition: var(--basic-transition);
}

.owl-theme .owl-nav [class*=owl-]:hover {
  background: transparent;
}

.owl-theme .owl-nav [class*=owl-]:hover img {
  transform: scale(1.1);
  transform-origin: center;
}

.owl-dots {
  padding-top: 3%;
}

.owl-theme .owl-dots .owl-dot span {
  width: 1rem;
  height: 1rem;
  background-color: white;
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
  background-color: var(--primary);
}

.owl-carousel .owl-item img {
  height: 100%;
  object-fit: cover;
}

.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100vw; /* Full width */
  height: 100vh; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

.modal-content {
  margin: auto;
  display: block;
  width: auto;
  height: 85%;
  /* max-width: 75%; */
  object-fit: contain;
}

@-webkit-keyframes zoom {
  from {-webkit-transform:scale(1)}
  to {-webkit-transform:scale(2)}
}

@keyframes zoom {
  from {transform:scale(0.4)}
  to {transform:scale(1)}
}

.modal-content {
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}

.out {
  animation-name: zoom-out;
  animation-duration: 0.6s;
}

@media only screen and (max-width: 700px){
  .modal-content {
      width: 100%;
  }
}

/* konsorcjum */
.konsorcjum  {
/*   padding-top: 40px; */
}

.konsorcjum .h1 {
/*   padding: 5% 0; */
}

.konsorcjum__content {
  display: flex;
  justify-content: space-evenly;
  gap: 7%;
}

.konsorcjum__item {
  width: 33%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.konsorcjum__item img {
  height: 50px;
  width: auto;
  object-fit: contain;
  margin-bottom: 5%;
}

.konsorcjum__item p {
  font-weight: 700;
}

.konsorcjum .btn {
  display: block;
  margin: 5% auto;
}

.coal {
  display: none;
  background-repeat: no-repeat;
  width: 100vw;
  height: 300px;
  background-image: url("../img/kopalnia.webp");
  background-size: contain;
  background-position: center;
  margin-top: 3%;
}

/* aktualnosci */
#news > * > .row
{
/*     height: 1000px; */
    overflow: hidden;
	margin-top: 2%;
}

#news .wszystkie_news
{
    width: 100%;
    height: 700px;
    overflow-x: scroll;
    overflow-y: hidden;
}

#news .btns {
    text-align: left;
}

#news .btns a{
    width: 210px;
    margin-bottom: 1.5em;
}

#to_media { margin-left: 0;}

/* scroll bar */

    /* Works on Firefox */
    .wszystkie_news {
      scrollbar-width: thin;
      scrollbar-color: #EC7304 #f0f0f0;
      cursor: pointer;
    }

    /* Works on Chrome, Edge, and Safari */
    .wszystkie_news::-webkit-scrollbar {
      width: 8px;
      height: 8px;
      border-radius: 0;
    }

    .wszystkie_news::-webkit-scrollbar-track {
      background: #f0f0f0;
      margin-left: 500px;
      height: 8px;
    }

    .wszystkie_news::-webkit-scrollbar-thumb {
        background-color: #EC7304;
        border-radius: 0px;
        width: 8px;
        /* border: 3px solid #f0f0f0; */
    }

#news .wszystkie_news .scroll_aktulanosci
{

    width: 1800px;
    height: 750px;
    overflow-x: hidden;
    overflow-y: hidden;

}

#news .aktualnosc
{
    float: left;
    color: black;
    height: 750px;
    width: 400px;
    margin-right: 50px;
}

.arrow {
    display: none;
}

#news .dane
{

    background-color: #FAFBFC;
    border: 1px solid #f0f0f0;
    height: 350px;
}

.news__header p {
    padding-right: 4em;
    font-weight: 300;
}

#news .aktualnosc a
{
    width: 140px;
    font-size: 0.8rem;
    float: right;
    margin-top: 3em;
    margin-right: 2%;
}

#news .aktualnosc h1
{
    color: #f0f0f0;
    text-decoration: none;
    font-size: 5vw;
    width: 150px;
    border-width: 0 0 3px 0;
    border-style: solid;
    border-color: rgba(240, 240, 240, 0);
    font-weight: bold;
    margin: 0 0 50px 0;
}

#news .aktualnosc .teksty
{
    padding: 10%;
    height: 220px;
}

#news .aktualnosc .data
{
    font-weight: normal;
    font-size: 10pt;
    color: #272D34AD;
}

#news .aktualnosc .opis
{
    line-height: 100%;
    font-size: 10pt;
    font-weight: 400;
}

#news .aktualnosc img
{
    width: 100%;
    height: 250px;
    object-fit: cover;
}

#news .opisy
{
    padding-left: 5%
}

#news .naglowek {
    font-size: 1.25rem;
}

#news .d-flex {
    margin-bottom: 2%;
}

#news .btns {
/*     margin-top: 80%; */
}

.btns-mobile {
    display: none;
}

/* 1 potomek */

#news .aktualnosc:nth-child(1) {
  transform: scale(1.15);
  transform-origin: center;
}

#news .aktualnosc:nth-child(1) h1
{
    color: black;
    border-color: black;
}

#news .aktualnosc:nth-child(1) .dane
{
    background-color: white;
}

/* finansowanie */
.finansowanie {
  background-color: white;
  padding: 2% 0;
}

.finansowanie .d-flex {
  gap: .5rem;
  justify-content: space-between;
  padding: 0 4%;
}

.finansowanie .d-flex .finansowanie__img {
  height: 120px;
  width: auto;
}

.finansowanie__opis p{
  padding-top: 20px;
  font-weight: 700;
}

/* kontakt */
#formularz .formularz
{
  background-color: var(--black-text);
  padding: 6em;
}

#formularz .col-xl-7 {
    padding-left: 0;
    padding-right: 0;
}

.formualrz__bg {
  background-image: url("../img/wegiel.webp");
}

#formularz input[type="text"],
#formularz input[type="email"],
#formularz input[type="tel"],
#formularz textarea
{
    width: 100%;
    border-width: 0 0 1px 0;
    border-style: solid;
    border-color: white;
    color: white;
    background-color: var(--black-text);
    padding: 0;
    margin: 0;
    font-weight: 300;
    font-size: 1rem;
    padding-bottom: 5px;
}

#formularz textarea
{
    height: 150px;
}

#formularz .col-6 input
{
    margin: 0 !important;
    width: 80%;
}

#formularz input[type="checkbox"]
{
    margin: 10px;
}

#formularz h3
{
    color: white;
    text-align: left;
    font-weight: 600;
    font-size: 2.25rem;
}

#formularz .tekst
{
    margin-left: auto;
    margin-right: auto;
}

#formularz label
{
    width: 100%;
    color: white;
    margin: 0;
    margin-top: 0;
    padding: 0;
    font-weight: 400;
    font-size: 1rem;
}

#formularz .wpcf7-list-item {
    margin-left: 0;
    margin-right: 2em;
}

#formularz input[type="submit"] {
    width: 170px;
    margin-top: 1em;
    padding: .3em 3em;
    background-color: white;
    border: 1px solid white;
    border-radius: 0;
    color: #3A4D64;
    font-weight: 600;
    font-size: .8rem;
    transition: all .4s ease-in-out;
}

#formularz input[type="submit"]:hover {
    background-color: transparent;
    color: white;
}

#formularz input::placeholder,
#formularz textarea::placeholder {
    color: #ececec;
}

#formularz iframe
{
    border:0;
    width: 100%;
    height: 100%;
    filter: grayscale(100%);
}

/* stopka */


footer
{
    background-color: #131313;
    color: white;
}

footer img
{
    width: 50%;
    margin-top: 50px;
    object-fit: contain;
}

.footer__imgs {
  position: relative;
  left: 4%;
}


footer .contact
{
    font-size: 11pt;
    color: white;
    margin-top: 50px;
    line-height: 1rem;
    padding-left: 60px;
}

footer .contact p
{
  margin-bottom: 6px;
  font-weight: 300;
}

footer .contact2
{
    padding-left: 0;
}

footer .news {
    margin-top: 50px;
}

footer .news a{
    margin-right: 15px;
}

footer .fw-bold {
    font-size: 1.2rem;
}

footer i
{
    margin-left: -.3em;
    font-size: 1.8rem;
}

footer .copyright
{
    padding-top: 100px;
    padding-bottom: 10px;
    text-align: center !important;
    font-size: 9pt !important;
}

.col-lg-4 {
  font-weight: 300;
}

footer a
{
    color: white;
    text-decoration: none;
    font-weight: 300;
    transition: var(--basic-transition);
}

footer a:hover {
  color: var(--primary);
}

.owl-stage {
  margin-left: -3px;
}

.wpcf7-response-output {
  color: #ffb900;
}

.wpcf7 form.sent .wpcf7-response-output {
  color: #46b450;
}

/* @media only screen and (max-width: 1200px) { } */

@media (-webkit-device-pixel-ratio: 1.25) {
  
  .projekt__btn {
    bottom: 3%;
  }

  .funkcje .h1 {
/*     padding-top: 12%; */
  }

  .cel__content,
  .cel__gallery {
/*     padding-top: 14%; */
  }

  .konsorcjum .h1 {
/*     padding-top: 14%; */
  }

  .konsorcjum__content {
/*     padding-bottom: 10%; */
  }

  #news .aktualnosc .teksty {
    padding: 5%;
  }

  #news .dane {
    height: 290px;
  }

  #news .aktualnosc a {
    margin-top: 1em;
  }

  #news .aktualnosc:nth-child(1) {
    transform: scale(1.05);
  }

  .aktualnosc img {
    height: 210px;
  }


}


@media (-webkit-device-pixel-ratio: 1.5) {
  
  .navi__img img {
    height: 40px;
  }

  .navi__img .jsw {
    height: 35px;
  }

  .navi__img .bip {
    height: 45px;
  }

  html {
    font-size: 12px;
  }

  .projekt__btn {
    bottom: 2%;
  }

  .funkcje .h1 {
/*     padding-top: 12%; */
  }

  .cel__content,
  .cel__gallery {
/*     padding-top: 16%; */
  }

  .konsorcjum .h1 {
/*     padding-top: 14%; */
  }

  .konsorcjum__content {
    padding-bottom: 5%;
  }

  #news .aktualnosc .teksty {
    padding: 5%;
  }

  #news .dane {
    height: 290px;
  }

  #news .aktualnosc a {
    margin-top: 1em;
  }

  #news .aktualnosc:nth-child(1) {
    transform: scale(1.05);
  }

  .aktualnosc img {
    height: 210px;
  }

  #formularz .formularz {
    padding-top: 7em;
  }

}


/* @MP Szybkie nadpisanie css, aby jakoś ogarnąć overflow przycisku przy zbyt długiej sekcji opis. Kolejny "popis" wykonawcy łatany na ślinę*/
#news .dane {
  background-color: #FAFBFC;
  border: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 350px;
  overflow: hidden; 
}

#news .aktualnosc:nth-child(1) .dane {
  background-color: white;
}

#news .aktualnosc .btn-otl {
  margin-top: auto;
}



