/*!
Theme Name: Instytut
Theme URI: 
Template: kadence
Author: lukedi
Author URI: https://lukedi.pl/
Description: 
Version: 1.0.0
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kadence-child
*/

/* Theme customization starts here
-------------------------------------------------------------- */

#preloader{
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 100%;
    z-index: 99999;
    display: flex;
}
#preloader:before,
#preloader:after{
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
    z-index: -1;
    background-color: #000;
    -webkit-transition: all 0.3s ease 0s;
    -o-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
}
#preloader:after{
    left: auto;
    right: 0;
}
#preloader .loader_line{
    margin: auto;
    width: 1px;
    height: 250px;
    position: relative;
    overflow: hidden;
    -webkit-transition: all 0.8s ease 0s;
    -o-transition: all 0.8s ease 0s;
    transition: all 0.8s ease 0s;
}
.loader_line:before{
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 0%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
    background-color: #fff;
    -webkit-animation: lineheight 1000ms ease-in-out 0s forwards;
    -o-animation: lineheight 1000ms ease-in-out 0s forwards;
    animation: lineheight 1000ms ease-in-out 0s forwards;
}
.loader_line:after{
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 100%;
    background-color: #999999;
    -webkit-transform: translateY(-100%);
    -ms-transform: translateY(-100%);
    -o-transform: translateY(-100%);
    transform: translateY(-100%);
    -webkit-animation: lineround 1200ms linear 0s infinite;
    -o-animation: lineround 1200ms linear 0s infinite;
    animation: lineround 1200ms linear 0s infinite;
    animation-delay: 2000ms;
}

@keyframes lineheight{
    0%{
        height: 0%;
    }
    100%{
        height: 100%;
    }
}

@keyframes lineround{
    0%{
        -webkit-transform: translateY(-100%);
        -ms-transform: translateY(-100%);
        -o-transform: translateY(-100%);
        transform: translateY(-100%);
    }
    100%{
        -webkit-transform: translateY(200%);
        -ms-transform: translateY(200%);
        -o-transform: translateY(200%);
        transform: translateY(200%);
    }
}

/*hiding all*/
.preloaded .loader_line:after{
    opacity: 0;
}
.preloaded  .loader_line{
    opacity: 0;
    height: 100%!important;
}
.preloaded:before,
.preloaded:after{
    -webkit-animation: preloadedzero 300ms ease-in-out 500ms forwards;
    -o-animation: preloadedzero 300ms ease-in-out 500ms forwards;
    animation: preloadedzero 300ms ease-in-out 500ms forwards;
}
@keyframes preloadedzero{
    0%{
        width: 50%;
    }
    100%{
        width: 0%;
    }
}

.loader {
  position: absolute;
  background-image: url('img/logo.png');
  background-size: 100% auto;
  background-repeat: no-repeat;
  height: 240px;
  width: 240px;
  left: 50%;
  top: 50%;
  margin: 0;
  border-radius: 50%;
  transform: translateX(-50%) translateY(-50%);
  text-indent: -9999em;
  font-size: 10px;
  z-index: 9999;
  -webkit-animation: load .8s infinite linear;
  -moz-animation: load .8s infinite linear;
  ms-animation: load .8s infinite linear;
  o-animation: load .8s infinite linear;
  animation: load .8s infinite linear;
}
.fadeIn {
  -webkit-animation-name: fadeIn;
  animation-name: fadeIn;
}
.animated {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}



html:lang(pl-PL) .lang-en {
  display: none;
}
html:lang(en-GB) .lang-pl {
  display: none;
}

.h1, .h2, .h3, .h4 {
  font-family: var(--global-heading-font-family);
}
.h1 {
  font-size: 66px;
  line-height: 1.1;
  font-weight: 700;
}
.h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 400;
}
.h3 {
  font-size: 2rem;
  line-height: 1.3;
  font-weight: 400;
}
.h4 {
  font-size: 1.5rem;
  line-height: 1.3;
}

h1.highlight {
  font-size: 5.5rem;
}
h1.highlight strong {
  display: block;
  line-height: 1;
  font-weight: 400;
  font-size: 4rem;
}
.alt-title strong {
  font-weight: 500;
}

.o-1 img {
  opacity: .65;
}
.gray {
	filter: grayscale(1);
}
.sec.wp-block-kadence-advancedheading {
  font-family: var(--global-body-font-family);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 1px;
}

/* header */
.site-branding a.brand {
  background: rgba(255, 255, 255, .87);
  padding: 20px 10px 20px;
  border-radius: 0 0 .5rem .5rem;
}
.popup-drawer .drawer-header .menu-toggle-close.drawer-toggle {
  color: var(--global-palette4);
}

/* slider */
.slider .kb-blocks-advanced-slider-init[data-slider-dots="true"] {
  margin-bottom: 0;
}
.slider .kb-splide .splide__pagination {
  bottom: 25px !important;
}
.slider .kb-splide .splide__arrow {
  width: 3rem;
  border-radius: 50%;
}


.animate svg{
	animation: jumpInfinite 1.5s infinite;
}
@keyframes jumpInfinite {
  0% {
    margin-bottom: 0;
  }
  50% {
    margin-bottom: 20px;
  }
  100% {
    margin-bottom: 0;
  }
}

.lang-item-en a,
.lang-item-pl a {
  display: inline-block;
  width: auto;
}
.lang-item-en a img,
.lang-item-pl a img {
  display: none;
}
.lang-item-en a::before,
.lang-item-pl a::before  {
  content: '';
  width: 32px;
  height: 32px;
  display: block;
  background-size: 100% 100%;
  border-radius: 50%;
  border: 3px solid #efefef;
}
.lang-item-en a::before {
  background-image: url('data:image/svg+xml,<svg viewBox="0 0 4167 4167" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2"><path d="M4166.67 2083.33C4166.67 933.51 3233.16 0 2083.34 0S.01 933.51.01 2083.33s933.51 2083.33 2083.33 2083.33 2083.33-933.51 2083.33-2083.33z" fill="none"/><clipPath id="a"><path d="M4166.67 2083.33C4166.67 933.51 3233.16 0 2083.34 0S.01 933.51.01 2083.33s933.51 2083.33 2083.33 2083.33 2083.33-933.51 2083.33-2083.33z"/></clipPath><g clip-path="url(%23a)"><circle cx="2083.33" cy="2083.33" r="2083.33" fill="none"/><clipPath id="b"><circle cx="2083.33" cy="2083.33" r="2083.33"/></clipPath><g fill-rule="nonzero" clip-path="url(%23b)"><path d="M-2078.79 2.27V4164.4h8324.25V2.27h-8324.25z" fill="%2300247d"/><path d="M-2078.79 2.27v466.07l3229.98 1615-3229.98 1614.98v466.08h933l3229.12-1612.82 3229.1 1612.82h933.02v-466.08L3015.47 2083.33 6245.45 468.34V2.27h-933.01L2083.33 1615.1-1145.78 2.27h-933.01z" fill="%23fff"/><path d="M-2079.05 316.18l3848.92 1921.65-3848.92 1928.83h621.43l3845.7-1933.6 3857.65 1933.6v-313.1L2388.08 1927.13 6245.73 0h-641.84L1769.86 1922.9-2079.04 0v316.2z" fill="%23cf142b"/><path d="M1389.65 2.27v1387.37h-3468.43v1387.37h3468.43v1387.37h1387.37V2777.01h3468.43V1389.64H2777.02V2.27H1389.65z" fill="%23fff"/><path d="M1667.12 2.27v1664.85h-3745.91v832.43h3745.91V4164.4h832.42V2499.55h3745.91v-832.43h-3745.9V2.27h-832.43z" fill="%23cf142b"/></g></g></svg>');
}
.lang-item-pl a::before {
  background-image: url('data:image/svg+xml,<svg fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" version="1.1" viewBox="0 0 36 36" xmlns="http://www.w3.org/2000/svg"><path d="m4166.7-2047.3c0-1149.8-933.51-2083.3-2083.3-2083.3s-2083.3 933.51-2083.3 2083.3 933.51 2083.3 2083.3 2083.3 2083.3-933.51 2083.3-2083.3z" fill="none"/><clipPath id="a"><path d="m4166.7 2083.3c0-1149.8-933.51-2083.3-2083.3-2083.3s-2083.3 933.51-2083.3 2083.3 933.51 2083.3 2083.3 2083.3 2083.3-933.51 2083.3-2083.3z"/></clipPath><g transform="matrix(.00864 0 0 .00864 -8.64e-5 0)" clip-path="url(%23a)"><circle cx="2083.3" cy="2083.3" r="2083.3" fill="none"/><clipPath id="b"><circle cx="2083.3" cy="2083.3" r="2083.3"/></clipPath><g clip-path="url(%23b)"><path d="m-1250 0h6666.7v4166.7h-6666.7z" fill="%23fff"/><path d="m-1250 2083.3h6666.7v2083.3h-6666.7z" fill="%23dc143c"/></g></g></svg>');
}

#masthead .header-navigation[class*="header-navigation-style-underline"] .header-menu-container > ul > li > a::after {
  bottom: 5px;
  height: 1px;
}
.mobile-navigation ul.has-collapse-sub-nav ul.sub-menu {
  padding: .5em 5px;
  -webkit-transform: translateX(0) !important;
  -moz-transform: translateX(0) !important;
  -ms-transform: translateX(0) !important;
  -o-transform: translateX(0) !important;
  transform: translateX(0) !important;
}
.mobile-navigation ul.has-collapse-sub-nav ul.sub-menu .menu-item a {
  font-family: var(--global-body-font-family);
  font-weight: 400;
  font-size: 1rem;
}

.wp-block-kadence-icon.bottom {
  position: absolute;
  bottom: 0;
}

.p-a {
  position: absolute !important;
}
.t-50 {
  bottom: 50px;
}

.wp-block-kadence-testimonials .kt-blocks-carousel .splide__arrow--prev,
.wp-block-kadence-testimonials .kt-blocks-carousel .splide__arrow--next {
  top: auto;
  bottom: 0;
  background: transparent;
}
.opinie.wp-block-kadence-testimonials .kt-blocks-carousel .splide__arrow--next {
  right: 50%;
  transform: translateX(32px);
}
.opinie.wp-block-kadence-testimonials .kt-blocks-carousel .splide__arrow--prev {
  left: 50%;
  transform: translateX(-32px);
}
.wp-block-kadence-testimonials .kt-blocks-carousel .splide__arrow--prev svg,
.wp-block-kadence-testimonials .kt-blocks-carousel .splide__arrow--next svg {
  fill: var(--global-palette4);
}
.wp-block-kadence-testimonials .kt-blocks-carousel .splide__arrow--prev:hover,
.wp-block-kadence-testimonials .kt-blocks-carousel .splide__arrow--next:hover,
.wp-block-kadence-testimonials .kt-blocks-carousel .splide__arrow--prev:focus,
.wp-block-kadence-testimonials .kt-blocks-carousel .splide__arrow--next:focus {
  background: transparent;
}

.price-box .h3.wp-block-kadence-advancedheading {
  border-bottom: 1px solid;
  padding-bottom: .625rem;
}
.price-box .wp-block-list {
  font-family: var(--global-heading-font-family);
  font-size: 1.5rem;
  list-style: none;
  padding: 0 .5rem;
}
.price-box .wp-block-list li {
  display: flex;
  justify-content: space-between;
}
.price-box .wp-block-list li strong {
  font-weight: normal;
}

/* footer */
.footer-html {
  margin-top: 6px;
}
.site-footer-section {
  justify-content: center;
}
.footer-widget-area-inner .menu {
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-widget-area-inner .menu a {
  font-style: normal;
  font-weight: 300;
  font-size: 14px;
  text-transform: uppercase;
  padding-left: calc(4em / 2);
  padding-right: calc(4em / 2);
  padding-top: 0.5em;
  padding-bottom: 0.5em;
}

@media(max-width: 991px) {
	.h1 {
	  font-size: 36px;
    line-height: 1.1;
    letter-spacing: 0;
	}
  .h2 {
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: 0;
  }
  .h3 {
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: 0;
  }
	.h4 {
	  font-size: 22px;
	  line-height: 1.2;
	}
  .slider.slider.wp-block-kadence-slider {
    max-width: 100%;
  }
  .slider .kb-splide .splide__arrow--prev {
    left: -1rem;
  }
  .slider .kb-splide .splide__arrow--next {
    right: -1rem;
  }
  h1.highlight {
    font-size: 4rem;
    line-height: 1.1;
  }
  h1.highlight strong {
    font-size: 3rem;
    margin-top: 1rem;
  }

	.d-none {
		display: none;
	}
  .footer-widget-area .wp-block-kadence-image img {
    margin: 0 auto;
  }
	.footer-widget-area-inner .menu {
	  flex-wrap: wrap;
	}
	.footer-widget-area-inner .menu a {
	  padding-left: calc(2em / 2);
	  padding-right: calc(2em / 2);
	}
}