:root {
  --main-transition: 200ms ease;
  --secondary-transition: 400ms ease;
  --header-height: 187px;
}
a{text-decoration:none;}


#aside-floater{
  position:fixed;
  right:20px;
  bottom:20px;
  display: block;
  -webkit-box-shadow: 0px 21px 44px 0px rgba(91, 91, 91, 0.28);
  -moz-box-shadow: 0px 21px 44px 0px rgba(91, 91, 91, 0.28);
  box-shadow: 0px 21px 44px 0px rgba(91, 91, 91, 0.28);
}

header{
  backdrop-filter: blur(8.3px);
  -webkit-backdrop-filter: blur(8.3px);
  background: rgba(248, 248, 248, 0.95);
}

/* header */
header{
  position:fixed;
  top:0;
  width:100%;
  z-index:999999999999999;
  }

.search-row{width:100%;}
  .main-nav a:hover{text-decoration:none!important;}
  .main-nav li{opacity:1; transition:var(--secondary-transition);}
  .main-nav ul:hover>li:not(:hover) {
  opacity:.5;  transition:var(--secondary-transition);
}


.main-nav ul{row-gap: 0.65em!important;}

@media (max-width:1366px){
  .main-nav{justify-content:center!important;}
}
@media (max-width:450px){
  .wp-block-search{max-width:40%;}
  .small-mobile-hidden img{
    width:75px!important;
  }
  .small-mobile-hidden p a{
  font-size:0.7rem;
   }
}
@media (max-width:768.5px){
  .hero-image-desktop{
    display:none!important;
  }
  .wp-block-table table{
    white-space: nowrap;
    overflow-x: auto;
    width: max-content!important;
  }
}

.wp-block-table tr:first-child td{
  background: #034c8d!important;
    color: white;
}

.wp-block-table tr td:nth-child(2){
background:var(--wp--preset--color--primary);
color:white;
}
.wp-block-table tr:not(:first-child){
background:#fff;
}

@media (min-width:768.5px){
  .hero-image-mobile{
    display:none!important;
  }
}

header #upper-row, header #lower-row{ width:100%;}
/* upper row grid responsive */


@media (min-width:1024.5px){
.mobile-nav{display:none!important;}
.mobile-logo-hidden{display:none;}

}

@media (max-width:1024.5px){
  #upper-row {
    display:grid;
    grid-template-columns: 60px 1fr!important;
  }
  .desktop-logo-hidden{display:none;}
  #modal-1-content, .secondary-nav{
display:none!important;
  }
  #lower-row{
    display:none;
  }
  .header-spacer{height:calc(var(--header-height) - 30px)!important;}
}


.mobile-nav ul{row-gap: 0; margin:1em;}
.mobile-nav ul, .mobile-nav ul li{width:100%;}
.mobile-nav ul li{padding: 0.5em 0; border-bottom:1px solid #e3e3e3;}
.mobile-nav ul li a{text-align: center;}

.wp-block-navigation__submenu-container{padding:0px!important; 

}
.secondary-nav ul{row-gap: 0.5rem;}

#upper-row {
  display:grid;
  grid-template-columns: 1fr 160px 1fr;
}

/*search remove werid cross*/

.wp-block-search__input::-webkit-search-cancel-button {
  display: none;
}
.wp-block-search__input{
outline:none;
-webkit-box-shadow: 0 0 0px 1000px white inset;
min-width:1.5em;
}

/* --- modal ---*/
.has-modal-open{
  position: fixed;
  left: 0;
  top: 0;
  padding: 0px!important;
  height: 100vh;
  width: 100%;
}


.has-modal-open{
  margin-top:1.5rem;
  padding: 10px;
}


.wp-block-navigation__responsive-container-close{right:10px; top:10px!important;}

.panel figure, .panel figure img{max-height: calc(100vh - var(--header-height) - 1rem); border-radius:1rem; transition: 200ms ease;}
.panel figure img{object-fit:contain; width:min-content;}

.panel .panel-half-1 figure img{object-position:right; float:right;}
.panel .panel-half-2 figure img{object-position:left; float:left;}

.panel figure:hover{opacity:.92; transition: 200ms ease;}
/* link animation */

.wp-block-navigation-item a, .oferta-lista-stron a{
  position: relative;
  transition:var(--main-transition);
  text-decoration: none!important;
}
.wp-block-navigation-item a:before, .oferta-lista-stron a:before{
  content: '';
  position: absolute;
  width: 100%;
  height: 2%;
  border-radius: 2px;
  background: var(--wp--preset--color--primary);
  bottom: -0.5em;
  left: 0;
  transform-origin: right;
  transform: scaleX(0);
  transition: transform .3s ease-in-out;
}
.wp-block-navigation-item a:hover, .oferta-lista-stron a:hover{color:var(--wp--preset--color--primary)!important;}
.wp-block-navigation-item a:hover:before, .oferta-lista-stron a:hover:before{  
  transform-origin: left;
  transform: scaleX(1);
}

/* h1 entry */
h1{
  display: flex;
  gap: 20px;
  flex-direction: column;
  align-items: center;
}
h1:after{
  display:block;
  content:"";
  width:120px;
  height:2px;
  background-color:var(--wp--preset--color--primary);
}

/* underline-left */

.underline-left{
  flex-direction: column;
  display: flex;
  gap: 0.5em;
}

.underline-left:after{
  display:block;
  content:"";
  width:60px;
  height:1px;
  background-color:var(--wp--preset--color--primary);

}

/* underline-center */
.underline-center{
    display: flex;
    gap: 20px;
    flex-direction: column;
    align-items: center;
}
.underline-center:after{
  display:block;
  content:"";
  width:120px;
  height:2px;
  background-color:var(--wp--preset--color--primary);
}

/* footer */
@media(max-width:1024px){
.footer-outer-wrapper{
background-size: 960px!important;
    background-repeat: repeat-x;
    background-position: bottom;
}
}


footer .footer-wrapper {
  display: grid;
  grid-template-columns:1fr 1fr 1fr 1fr 1fr;
}

@media(max-width: 1024px) {
  footer .footer-wrapper {
      grid-template-columns:1fr 1fr 1fr;
      row-gap: 2.5em!important
  }
}

@media(max-width: 768px) {
  footer .footer-wrapper {
      grid-template-columns:1fr
  }
}

/* submenu container */
.wp-block-navigation__submenu-container{min-width:max-content!important;}
.wp-block-navigation__submenu-container li a span, .wp-block-navigation__submenu-container li a{
  font-size:0.9em!important;
}
.wp-block-navigation__submenu-container .wp-block-navigation-item a:before{display:none!important;}

/*breadcrumbs*/
.rank-math-breadcrumb p{
  display: flex;
    gap: 10px;
    justify-content: center;
}

.rank-math-breadcrumb a, .rank-math-breadcrumb span{  font-size:0.75em;
  text-align:center;}

  /* --- CF7 --- */
.wpcf7-form p label, .wpcf7-form p{
  color:var(--wp--preset--color--secondary);
}
.wpcf7 p{
margin:0!important;
width: 100%;

}
.wpcf7 form{
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap:1em;
font-family:"Montserrat";
}

.wpcf7 input[type="submit"]{
 padding:0.5em;
 color: #fff;
 background:var(--wp--preset--color--primary);
 font-size:1em;
 width:250px;
 margin-top:15px;
 border:none;
 cursor:pointer;
 font-family:"Montserrat";
 font-weight:500;
}

.wpcf7 input[type="submit"]:hover{
color:#fff;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="date"],
.wpcf7 textarea,
.wpcf7 input[type="tel"]{
  width: -webkit-fill-available;
padding:0.75em;
border: 1px solid #D5D5D5;
background-color: #E8EAF1;
border-radius:5px;
font-size:1em;
transition:300ms;
font-family:"Montserrat";
font-weight:500;
}

.wpcf7 input:focus, .wpcf7 textarea:focus{
  border:solid var(--wp--preset--color--primary);
  border-width:1px!important;
  outline:none;
  transition:300ms;
}
@media(min-width:768px){
.wpcf7 p:nth-child(2), .wpcf7 p:nth-child(3), .wpcf7 p:nth-child(4), .wpcf7 p:nth-child(5),.wpcf7 p:nth-child(6),.wpcf7 p:nth-child(7){
width:calc(50% - 0.5em)!important;
}
}

.wpcf7 p:nth-child(9){
font-size:12px;
gap: 6px;
display: flex;
}
.wpcf7 p:nth-child(10){
  display: flex;
  justify-content: center;
  align-items:center;
  flex-direction: column;
  }
.wpcf7-not-valid-tip{
font-size:12px;
}

.wpcf7-submit{
  border-radius:5px;
}

.wpcf7 form .wpcf7-response-output{
width:100%;
color:var(--wp--preset--color--third);
text-align:center;
border:none;
border:1px solid var(--wp--preset--color--gray)!important;
border-radius:5px;
}

/* lightbox*/

.wp-lightbox-overlay{
  z-index: 999999999999999!important;
}


/*submenu*/
.strefa-klienta .wp-block-navigation__submenu-container{
display: grid!important;
gap:0px;
grid-template-columns: 1fr 1fr;
border-top:1px solid rgba(0,0,0,.15);
border-left:1px solid rgba(0,0,0,.15);
border-right: 0px!important; border-bottom:0px!important;
}
.strefa-klienta .wp-block-navigation__submenu-container li{
  border-bottom:1px solid rgba(0,0,0,.15);
  border-right:1px solid rgba(0,0,0,.15);
}

.wp-block-video{margin:0!important;}

/* oferta lista stron */

.oferta-lista-stron{
  padding:0;
  list-style-type:none;
}
.oferta-lista-stron li{
  padding:0.75rem 0;
}
.oferta-lista-stron li:not(:last-child){
  border-bottom:1px solid #e3e3e3;}

/* show video button */
.show-video-button a{display:flex; gap:10px; justify-content: center;}
.show-video-button a:before{
  content: url('data:image/svg+xml;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xMCAyOC41Njc3IDUuMzUwNDIgMjcuOTcyNyAzLjEyMzI0WiIgZmlsbD0iI0ZGMDAwMCI+PC9wYXRoPg0KICAgICAgPHBhdGggZD0iTTExLjQyNTMgMTQuMjg1NEwxOC44NDc3IDEwLjAwMDRMMTEuNDI1MyA1LjcxNTMzVjE0LjI4NTRaIiBmaWxsPSJ3aGl0ZSI+PC9wYXRoPg0KICAgIDwvZz4NCiAgPC9zdmc+DQo8L3N2Zz4=');
  margin-top: 2px;
  width: 24px;
  display: block;
}

/*polylang language switcher*/
.polylang_langswitcher {padding:0px;}
.polylang_langswitcher select{
  border:0px;
  font-family:'Montserrat';
}
.polylang_langswitcher select:focus-visible{outline:0px!important}

.wp-block-search__button{padding:0px;}

/* mac os */

.wp-block-navigation__responsive-container-content li > * + * { margin: 0 0.5em 0 0.5em;}