@import url('./_config.css');

body {
	font-size: 0.875rem;
}

[x-cloak] {display: none !important;}

.h1 {font-size: var(--h1)}
.h2 {font-size: var(--h2)}
.h3 {font-size: var(--h3)}
.h4 {font-size: var(--h4)}
.h5 {font-size: var(--h5)}
.h6 {font-size: var(--h6)}

a:focus, button:focus {
	outline: 2px dashed var(--primary) !important;
	outline-offset: 2px;
}

/* navbar */

.navbar {
	background-color: #fff;
	position: sticky;
	top: 0; left: 0;
	width: 100%;
	z-index: 999;
}

.affix {position: fixed;}

.navbar-logo {
	margin: 45px 0;
	display: flex;
	align-items: center;
	color: var(--titleColor);
	line-height: 1.3;
	font-size: 0.9375rem;
	font-weight: 600;
	transition: all .2s ease;
}

.affix .navbar-logo {margin: 10px 0;}

.navbar-logo-image {
	height: 3.7rem;
	display: block;
	transition: all .2s ease;
}

.affix .navbar-logo-image {height: 45px;}

.navbar-logo-text {
	font-size: 0.8125rem;
}

.container {
	max-width: 90%;
	width: var(--containerWidth);
}


/* navbar-nav */

.navbar-nav {
	margin: 0;
	padding: 0;
	list-style: none;
	align-items: center;
}

.navbar-nav li {
	list-style: none;
	display: block;
	position: relative;
	margin: 0;
	padding: 0;
}

.navbar-nav > li:not(:first-child) {
	margin-left: 25px;
}

.navbar-nav > li > a {
	color: var(--titleColor);
	font-size: 0.8125rem;
	text-transform: uppercase;
	font-weight: 600;
	display: inline-flex;
	text-decoration: none;
	padding: 10px 0;
	transition: all .2s;
}

.navbar-nav > li > a:hover {
	color: var(--primary);
}

.navbar-nav > li > a:active {
	color: var(--secondary);
}

.nav-dropdown > a::after {
	filter: invert(20%) sepia(86%) saturate(3061%) hue-rotate(332deg) brightness(92%) contrast(92%);
}


.navbar-nav a::before {
	content: '';
	display: block;
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--secondary);
	transition: all .2s var(--easeOutBack);
}

.navbar-nav > li > a.nav-active {
	color: var(--primary);
}

.navbar-nav li:hover > a::before,
.navbar-nav a:hover::before,
.navbar-nav .nav-active::before {
	width: 100%;
}

.navbar-nav ul {
	position: absolute;
	display: none;
	top: 100%;
	left: 0;
	margin: 0;
	padding: 0;
	min-width: 17.5rem;
	background-color: white;
	box-shadow: 0 5px 15px hsla(0, 0%, 0%, .3);
}

.navbar-nav ul a {
	padding: 10px 15px;
	display: flex;
	color: var(--textColor);
	justify-content: space-between;
	text-decoration: none;
	/* border-bottom: 1px solid var(--borderColor); */
	transition: all .2s ease;
	line-height: 1.2;
}

.navbar-nav ul ul a {
	font-size: 0.8125rem;
}

.navbar-nav ul a::after {
	transform: rotate(-90deg);
}

.navbar-nav ul li:hover > a,
.navbar-nav ul a:hover {
	color: var(--primary);
	padding: 10px 10px 10px 20px;
}

@keyframes showDropdown {
	0% {opacity: 0; transform: translateY(-10px);}
	100% {opacity: 1; transform: translateY(0);}
}

@keyframes showNextDropdown {
	0% {opacity: 0; transform: translateX(-10px);}
	100% {opacity: 1; transform: translateX(0);}
}

.navbar-nav > li > .open,
.navbar-nav .nav-dropdown:hover > ul {
	display: block;
	animation: showDropdown .3s 1 forwards;
}

.navbar-nav .open .open,
.navbar-nav ul .nav-dropdown:hover > ul {
	display: block;
	animation: showNextDropdown .3s 1 forwards;
}

.navbar-nav ul ul {
	top: 0; left: 100%;
}



/* mobile menu */

.mobile-menu-toggler {
	width: 32px;
	height: 24px;
	padding: 0;
	border: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-end;
	position: relative;
	background: none;
	transition: all var(--fastSpeed) var(--easeOutBack);
	outline: none;
}

.mobile-menu-toggler span {
	display: block;
	height: 2px;
	width: 100%;
	background-color: var(--primary);
	transition: all var(--fastSpeed) var(--easeOutBack);
	transform-origin: right;
}

.mobile-menu-toggler span:last-child {
	width: 70%;
}

.mobile-menu-toggler.active-toggler span:first-of-type {
	transform: rotate(-45deg);
}

.mobile-menu-toggler.active-toggler span:last-child {
	transform: rotate(45deg);
	width: 100%;
}

.mobile-menu-toggler.active-toggler span:nth-of-type(2) {
	display: none;
}

.mobile-nav {
	transition: transform var(--fastSpeed) var(--easeOutQuart);
	transform: translateX(-100%);
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	height: 100vh;
	max-width: 80vw;
	width: 18.75rem;
	background-color: hsla(0, 0%, 0%, 0.8);
	backdrop-filter: blur(10px);
	margin: 0;
	padding: 0;
	z-index: 99999;
	overflow-y: auto;
}

.mobile-nav.show {
	transform: translateX(0);
}

.mobile-nav ul,
.mobile-nav li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mobile-nav ul {
	background-color: hsla(0, 0%, 0%, .3);
}

.mobile-nav a {
	display: block;
	font-size: 1rem;
	text-decoration: none;
	font-weight: 700;
	color: white;
	box-sizing: border-box;
	padding: 10px 15px;
	border-bottom: 1px solid hsla(0, 0%, 100%, .2);
}

.mobile-nav ul a {
	font-size: 0.875rem;
	font-weight: normal;
	padding-left: 30px;
}

.mobile-nav ul ul a {
	padding-left: 45px;
}

.mobile-nav a:hover,
.mobile-nav a.active {
	background-color: var(--primary);
}

.affix {
	box-shadow: 0 0 20px hsla(0, 0%, 0%, .1);
}

a {text-decoration: none;}


h1, h2, h3, h4, h5, h6 {
	font-weight: 600;
	line-height: 1.3;
	color: var(--titleColor);
}

b, strong {
	font-weight: 600;
}

.has-dropdown {
	position: relative;
}

.has-dropdown .dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	padding: 20px;
	background-color: #fff;
	box-shadow: 0 5px 15px hsla(0, 0%, 0%, .3);
}

.has-dropdown form {
	display: flex;
	align-items: stretch;
	flex-wrap: nowrap;
}

.has-dropdown form button {
	padding: 0 30px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.has-dropdown--toggler {
	display: block;
	border-radius: 50%;
	outline-offset: 3px;
}

.btn {
	padding: 1.3rem 2.5rem;
	border-radius: 50px;
	font-weight: 600;
	font-size: 1rem;
	transition: all var(--fastSpeed) var(--easeOutExpo);
}

.btn:hover {
	color: white;
	filter: none;
	background-color: var(--primaryLight);
}

.btn:focus {
	filter: none;
	background-color: var(--primaryDark);
}

header {
	position: relative;
}

.header-top {
	background-color: hsla(0, 0%, 0%, .2);
}

header video {
	height: calc(100vh - 149px);
}

header h1 {
	font-size: 5.625rem;
	color: white;
}

#informacje, #news, #misja {
	padding: var(--sectionPadding) 0;
}

#informacje a {
	color: var(--titleColor);
	line-height: 1.2;
	font-size: 1.25rem;
}

#mapa iframe {
	width: 100%;
	height: 37.5rem;
	display: block;
}

.card-image {
	overflow: hidden;
	position: relative;
	width: 100%;
	display: block;
}

.card-image::after {
	content: '';
	display: block;
	width: 48px;
	height: 48px;
	position: absolute;
	top: 0;
	right: 0;
	z-index: 20;
	background: url(/assets/img/plus.svg) center no-repeat;
	background-size: contain;
}

.card-image img {
	display: block;
	width: 100%;
	position: relative;
	z-index: 1;
	transition: transform var(--fastSpeed) var(--easeOutCubic);
}

.card-image:hover img {
	transform: scale(1.1);
}

.card-body {
	text-align: center;
}

.card-date {
	font-style: italic;
	font-size: 0.875rem;
	color: hsl(0, 0%, 20%);
}

h2.card-title,
h3.card-title {
	font-size: 1.25rem;
	margin: 10px 0 0;
}

.card-title--link {
	color: var(--titleColor);
	transition: color .2s;
}

.card-title--link:hover {
	color: vaer(--primary);
}



h2 small,
h2 strong {
	display: block;
}

h2 small {
	color: var(--primary);
	font-size: 1rem;
	margin-bottom: 10px;
}

#misja h2 {
	margin-top: 0;
	margin-bottom: 30px;
}

#misja ul {
	padding: 0;
}

#misja ul li {
	list-style: none;
	position: relative;
	padding-left: 45px;
	margin-bottom: 20px;
}

#misja ul li::before {
	height: 36px;
	width: 36px;
	content: '';
	display: block;
	background: url(/assets/img/check.svg);
	position: absolute;
	top: -6px;
	left: 0;
}



#dane-kontaktowe {
	background-color: #fff;
	border-radius: 0 0 80px 0;
	overflow: hidden;
	box-shadow: 0 0 80px hsla(0, 0%, 0%, .15);
	position: relative;
	z-index: 50;
	margin-top: -130px;
}

.dane-text {
	margin-left: 100px;
}

.dane-image-logo span {
	line-height: 1.3;
	padding: 1rem;
	background-color: hsl(0 0% 0% / .4);
	border-radius: 1rem;
}





.madeby {
	color: var(--titleColor);
	text-decoration: none;
	line-height: 1;
	display: inline-block;
}

.madeby small {
	float: left;
	margin: 4px 4px 0 0;
	font-size: 0.6875rem;
}


footer {
	background-color: #fff;
}

footer a {
	color: var(--primary);
	transition: color .2s;
}

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


/* megamenu */

.navbar-nav .megamenu {
	position: inherit;
}

.megamenu-dropdown {
	position: absolute;
	top: 60%;
	left: 0;
	width: 100%;
	display: none;
	background-color: #fff;
	padding-bottom: 30px;
	padding-top: 30px;
}

.megamenu:hover .megamenu-dropdown,
.megamenu.open .megamenu-dropdown {
	display: block;
	animation: showDropdown .3s 1 forwards;
}

.megamenu-dropdown .container {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px
}

.megamenu ul {
	position: relative;
	top: auto;
	left: auto;
	width: 100%;
	display: block;
	background-color: transparent;
	box-shadow: none;
	margin: 0;
	padding: 0;
}

.megamenu ul:first-child {
	grid-row: span 2;
}

.megamenu ul a {
	padding-left: 0 !important;
	padding-right: 0 !important;
	padding-top: 7px !important;
	padding-bottom: 7px !important;
}

.megamenu ul a::before {display: none;}

.megamenu ul .h6 {
	font-weight: bold;
	margin-top: 15px;
	margin-bottom: 5px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--borderColor);
}


.has-dropdown--toggler img {display: block;}

.has-dropdown input {
	padding: 1rem;
	border: 1px solid var(--borderColor);
	border-radius: 50px 0 0 50px;
	outline: none;
}

.has-dropdown button {
	border-radius: 0 50px 50px 0;
}

.has-dropdown .dropdown {
	border-radius: 50px;
}



#main a {
	text-decoration: underline;
}

main a:hover {
	color: var(--secondary);
}

main a:active {
	color: var(--primaryDark);
}

.ue-widget {
	position: fixed;
	top: 200px;
	right: 0;
	z-index: 999;
}

.rej-widget {
	position: fixed;
	top: 300px;
	right: 0;
	z-index: 999;
}

.fund-widget {
	position: fixed;
	top: 400px;
	right: 0;
	z-index: 999;
}







@media screen and (max-width: 1366px) {
	.navbar-logo span {letter-spacing: normal;}

	.navbar-nav > li:not(:first-child) {
		margin-left: 15px;
	}

	#informacje a {font-size: 1.15rem;}
}

@media screen and (max-width: 1280px) {
	.megamenu-dropdown .container {
		grid-template-columns: repeat(3, 1fr);
		gap: 15px;
	}

	.megamenu ul h6 {
		margin-top: 5px;
		margin-bottom: 5px;
		padding-bottom: 5px;
	}

	.megamenu ul a {
		padding-top: 5px !important;
		padding-bottom: 5px !important;
		line-height: 1.1;
		font-size: 0.8125rem;
	}
}

@media screen and (max-width: 1199px) {

	.navbar-logo {
		margin: 25px 0;
	}

	.navbar-logo span {
		font-size: 0.75rem;
		margin-left: 15px;
		max-width: 6.25rem;
	}

	.navbar a.mx-30 {margin: auto 15px;}

	.navbar-nav > li:not(:first-child) {margin-left: 15px;}

	.navbar-nav > li > a::after {display: none;}

	.megamenu-dropdown .container {
		grid-template-columns: repeat(3, 1fr);
		gap: 15px;
	}

	.megamenu ul h6 {
		margin-top: 5px;
		margin-bottom: 5px;
		padding-bottom: 5px;
	}

	.megamenu ul a {
		padding-top: 5px !important;
		padding-bottom: 5px !important;
		line-height: 1.1;
		font-size: 0.8125rem;
	}
}


@media screen and (max-width: 1023px) {
	.mobile-menu-toggler {margin-left: 20px;}

	.has-dropdown--toggler img {
		height: 42px;
	}

	header h1 {
		font-size: 3.625rem;
	}

	#dane-kontaktowe .flex {
		flex-direction: column;
		padding: 30px;
	}

	#dane-kontaktowe {
		margin-top: 60px;
	}

	.dane-text {
		margin-left: 0;
		width: 100%;
		text-align: center;
	}

	.dane-image {display: none;}


	table {display: block; width: 100%; overflow-x: auto;}
}



@media screen and (max-width: 414px) {
	.navbar a.mx-30 {
		margin: 0 10px 0 0;
	}

	.navbar-logo span {
		font-size: 0.58rem;
		margin-left: 10px;
		max-width: 4.375rem;
	}

	.navbar-logo-image {
		height: 2.9375rem;
	}

	.mobile-menu-toggler {
		margin-left: 10px;
	}

	h2 {font-size: clamp(var(--h4), var(--h3), 3vw);}

	.copy {
		font-size: .75rem;
		text-align: center;
	}

	.ue-widget,
	.rej-widget {
		img {
			width: 60px;
		}
	}

	.rej-widget {top: 360px;}

}



.toplayer__content {
	max-height: 80vh;
	overflow-y: auto;
}