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

h1, h2, h3, h4, h5, h6 {
	font-weight: var(--titleWeight);
	line-height: 1.25;
	margin: 30px 0 20px;
	color: var(--titleColor);
}
b, strong {font-weight: var(--boldWeight)}

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

.text-white * {
	color: white;
}

p {
	margin-top: 0;
	margin-bottom: .5em;
}

p:first-of-type {margin-top: 0;}
p:last-of-type {margin-bottom: 0;}





/*
			N A V B A R
*/

.navbar {
	background-color: transparent;
	position: fixed;
	top: 30px;
	width: 100%;
	z-index: 999;
	transition: all .3s;
}

.affix {
	top: 0;
	background-color: hsl(0, 0%, 0%, .85);
	backdrop-filter: blur(3px);
}

.navbar-logo {
	margin: 45px 0;
	transition: all .3s;
}

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

.navbar-logo-image {
	display: block;
	height: 48.8px;
	transition: all .3s;
}

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

.affix .btn {
	padding: .7em 1.5em;
}


/*
			N A V B A R   N A V
*/

.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) {
	padding-left: var(--navMargin);
}

.navbar-nav a {
	will-change: auto;
}

.navbar-nav > li > a {
	color: hsl(0, 0%, 100%);
	font-size: 1rem;
	display: inline-flex;
	text-decoration: none;
	padding: 10px 0;
	transition: all .2s;
	outline: none;
	position: relative;
	overflow: hidden;
}

.nav-dropdown > a::after {
	filter: invert(1);
}


.navbar-nav a::before {
	content: '';
	display: block;
	position: absolute;
	bottom: 0;
	left: -101%;
	width: 100%;
	height: 2px;
	will-change: transform;
	background-color: var(--primary);
	transition: all .2s var(--ease);
}


.navbar-nav a:focus::before,
.navbar-nav a:hover::before,
.navbar-nav .nav-active::before {
	left: 0;
}

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

.navbar-nav ul {
	position: absolute;
	display: none;
	top: 100%;
	left: var(--navMargin);
	margin: 0;
	padding: 10px;
	min-width: 250px;
	background-color: white;
	box-shadow: 0 10px 30px hsla(0, 0%, 0%, .2);
}

.navbar-nav ul a {
	padding: 10px 15px;
	display: flex;
	font-size: 0.875rem;
	line-height: 1.3;
	color: var(--textColor);
	justify-content: space-between;
	text-decoration: none;
	overflow: hidden;
	transition: all .3s var(--ease);
}

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

.navbar-nav ul a::before {
	content: '>';
	font-family: monospace;
	font-weight: bold;
	font-size: 1rem;
	width: auto;
	height: auto;
	display: block;
	transform: translateX(0) !important;
	visibility: visible;
	background: none;
	position: absolute;
	top: 8px;
	left: 0;
	opacity: 0;
	color: var(--primary);
}

.navbar-nav ul a:hover::before {
	transform: translateX(10px) !important;
	opacity: 1;
}
.navbar-nav ul a:hover {
	padding-left: 25px;
	padding-right: 5px;
}

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

.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 div {
	display: block;
	height: 2px;
	width: 32px;
	background-color: white;
	transition: all var(--fastSpeed) var(--easeOutBack);
	transform-origin: right;
}

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

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

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

.mobile-menu-toggler.active-toggler div: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: 300px;
	/* background-color: hsla(0, 0%, 0%, 0.8);
	backdrop-filter: blur(10px); */
	background-color: var(--primary);
	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 {
	color: var(--primary);
	background-color: #fff;
}







/*
			H E A D E R
*/

header .wrap {
	border-radius: 150px 0;
	overflow: hidden;
	width: calc(100% - 60px);
	height: calc(100vh - 60px);
	margin: 30px 30px 0;
}

header .absolute {
	background-color: hsl(0, 0%, 0%, .55);
	padding-top: 100px;
}

header video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

header h1 {
	margin-bottom: 30px;
	line-height: 1.3;
}

.scroll {
	width: 100px;
	height: 100px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--primary);
	border-radius: var(--borderRadius);
	position: absolute;
	bottom: -30px;
	z-index: 100;
	left: calc(50% - 50px);
}

.scroll img {
	animation: updown 2s linear infinite forwards;
}





/*
			M A I N   S E C T I O N S
*/


.btn {
	font-size: 1rem;
	font-weight: normal;
	line-height: 1;
	padding: 1.5em 2em;
	border-radius: var(--borderRadius);
	transition: all .3s;
}

.btn:hover {
	background-color: var(--primaryLight);
}
.btn:focus {
	background-color: var(--primaryDark);
}

.btn.black {
	background-color: black;
}

.btn.black:hover {
	background-color: #222;
}

#poznaj a {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	color: black;
	line-height: 1.3;
	transition: color .3s;
}

#poznaj .circle {
	border: 5px solid black;
	aspect-ratio: 1/1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 192px;
	margin-bottom: 30px;
	position: relative;
	transition: all .5s var(--ease);
}

#poznaj a:hover .circle {
	transform: rotate(-90deg);
}

#poznaj .circle::before {
	content: '';
	display: block;
	width: 0;
	height: 0;
	border: 15px solid transparent;
	border-right-color: white;
	position: absolute;
	left: -26px;
	top: calc(50% - 15px);
	z-index: 200;
}

#poznaj .circle img {
	max-width: 90%;
	height: auto;
	display: block;
	transition: all .5s var(--ease);
}

#poznaj a:hover .circle img {
	transform: rotate(90deg);
}

#poznaj .circle.pink {border-color: var(--primary);}
#poznaj .circle.yellow {border-color: var(--yellow);}
#poznaj .circle.blue {border-color: var(--blue);}

#poznaj a strong {
	font-size: 1.5rem;
}

#poznaj .md\:w-4-12:first-child a:hover {color: var(--primary);}
#poznaj .md\:w-4-12:nth-child(2) a:hover {color: var(--yellow);}
#poznaj .md\:w-4-12:last-child a:hover {color: var(--blue);}


#dla-kogo {
	height: 800px;
	background: url(/assets/img/dla-kogo.jpg) left 30px center no-repeat;
}

#dla-kogo .circle {
	background: var(--primary);
	width: 100%;
	aspect-ratio: 1/1;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	padding: 10%;
}

#dlaczego-warto .flex.mb-80 .md\:w-7-12 {
	padding-right: 50px;
}

#dlaczego-warto .flex.mb-80:last-of-type {margin-bottom: 0;}

#dlaczego-warto .flex.mb-80:nth-child(odd) .md\:w-7-12,
#dlaczego-warto .flex:last-of-type .md\:w-7-12 {
	padding-right: 0;
	padding-left: 50px;
}

#dlaczego-warto .flex.mb-80:nth-child(odd),
#dlaczego-warto .flex:last-of-type {
	flex-direction: row-reverse;
}

#dlaczego-warto .flex.mb-80 img {
	border-radius: 50% 50% 50% 0;
	width: 100%;
	aspect-ratio: 1/1;
}


#dlaczego-warto .flex.mb-80:nth-child(odd) img,
#dlaczego-warto .flex:last-of-type img {
	border-radius: 50% 50% 0 50%;
}

#jak-dziala h4 {margin-bottom: 1rem;}

#sklep h4 {
	font-weight: normal;
}

#sklep h4 a {
	font-weight: bold;
	transition: opacity .3s;
}

#sklep h4 a:hover {
	opacity: .6;
}



#wycena {
	background: url(/assets/img/bottombg.jpg) center no-repeat;
	background-size: cover;
	margin-top: var(--sectionPadding);
}

#wycena h3 {
	font-weight: normal;
}

#wycena h3 em {
	font-weight: bold;
}

#wycena p {line-height: 1.5;}


.lead {
	line-height: 1.5;
}





/*
			F O O T E R
*/

.madeby {
	color: white;
	text-decoration: none;
	line-height: 1;
	display: inline-block;
}

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


footer {
	padding: 40px 0;
	background-color: black;
	color: white;
}

footer a {
	color: white;
	text-decoration: none;
	transition: color .2s;
}

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




/*
			K E Y F R A M E S
*/

@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);}
}

@keyframes updown {
	0% {transform: translateY(0)}
	25% {transform: translateY(5px)}
	50% {transform: translateY(0)}
	75% {transform: translateY(-5px)}
	100% {transform: translateY(0)}
}





/*

		M E D I A
		Q U E R I E S

*/

@media screen and (max-width: 1330px) {
	:root {
		--navMargin: 25px !important
	}
}

@media screen and (max-width: 1280px) {
	.btn {
		padding: 1em;
	}

	.navbar-logo-image {
		height: 40px;
	}

	header .wrap {
		border-radius: 100px 0;
		overflow: hidden;
		width: calc(100% - 30px);
		height: calc(100vh - 30px);
		margin: 15px 15px 0;
	}

	#dla-kogo {
		background-position: right 15px center;
	}
}

@media screen and (max-width: 1199px) {
	:root {
		--navMargin: 17px !important
	}
	.navbar-nav > li > a {font-size: 0.875rem;}

	.navbar .btn {
		font-size: 0.875rem;
		padding: .8em;
	}
	.navbar-logo-image {
		height: 30px !important;
	}

	.slogan h1 {
		font-size: var(--h2);
	}

	.slogan p {
		font-size: 1rem;
	}
}


@media screen and (max-width: 1020px) {
	.navbar .btn {display: none;}

	header .wrap {
		border-radius: 50px 0;
	}

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

	[class*="md:w"]:not([class*="sm:w"]) {
		padding-left: 0;
		padding-right: 0;
	}

	#poznaj .md\:w-4-12 + .md\:w-4-12 {
		margin-top: 60px;
	}

	#dla-kogo {background-image: none; height: auto;}

	#dla-kogo .md\:w-6-12 {
		align-items: center;
		justify-content: center;
		display: flex;
	}

	#dla-kogo .circle {
		width: auto;
		padding: 5%;
		height: 70vh;
	}

	#dlaczego-warto .flex.mb-80 img,
	#dlaczego-warto .flex.mb-80:nth-child(odd) img, #dlaczego-warto .flex:last-of-type img {
		border-radius: 50%;
		width: auto;
		max-height: 70vh;
		margin: 30px auto;
	}

	#jak-dziala .md\:w-4-12 + .md\:w-4-12 {
		margin-top: 60px;
	}

	#jak-dziala img.rounded {
		width: auto;
		max-width: 100%;
		max-height: 300px;
		object-fit: cover;
		object-position: center;
		margin: 0 auto 30px;
	}

	#sklep h4 {
		font-size: var(--h6);
	}

	footer .last {
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}


	footer .bold {
		font-weight: normal;
		font-size: 0.875rem;
		letter-spacing: 1px;
	}

	.scroll {display: none;}

	#dlaczego-warto .md\:w-7-12 {text-align: center;}
	#dlaczego-warto .flex.mb-80 .md\:w-7-12 {padding-right: 0;}
	#dlaczego-warto .flex.mb-80:nth-child(odd) .md\:w-7-12, #dlaczego-warto .flex:last-of-type .md\:w-7-12 {padding-left: 0;}
}



@media screen and (max-width: 720px) {
	h2 {font-size: var(--h3)}
	h3 {font-size: var(--h4)}
	h4 {font-size: var(--h5)}
	h5 {font-size: var(--h6)}

	#dla-kogo .circle p {
		font-size: 0.875rem;
	}

	#sklep .flex-nowrap {
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	#sklep h4 {
		padding-right: 0;
		margin-bottom: 30px;
		text-align: center;
	}

	#wycena {
		padding: 50px 0;
	}
}

@media screen and (max-width: 630px) {
	.w-full {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
}

@media screen and (max-width: 590px) {
	.slogan h1 {
		font-size: var(--h3);
	}

	#dla-kogo .circle {
		height: 58vh;
	}

	#dlaczego-warto .flex.mb-80 img, #dlaczego-warto .flex.mb-80:nth-child(odd) img, #dlaczego-warto .flex:last-of-type img {
		max-height: 38vh;
	}

	footer .bold {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	footer .copy {margin-right: 0; margin-bottom: 15px;}
}


@media screen and (max-width: 460px) {
	:root {
		--sectionPadding: 60px !important
	}
	header .wrap {
		margin: 0;
		width: 100%;
		height: 100vh;
		border-radius: 0;
	}

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

	#dla-kogo .circle {
		height: auto;
		aspect-ratio: auto;
		border-radius: 12px;
	}

	#jak-dziala .mb-80 {margin-bottom: 30px;}

	#sklep .flex-nowrap {padding: 30px;}

	#wycena {
		padding: 30px 0;
	}

	#wycena .w-6-12 {
		width: 80%;
		max-width: 80%;
	}
}


@media screen and (max-width: 370px) {
	footer p {
		text-align: center;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	footer p a {
		margin: 0 0 15px 0 !important;
	}
}


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

.call-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    width: 70px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -5px 5px 15px hsl(0 0% 0% / .2);
    border: 2px solid var(--primary);
    transition: all 300ms;
}

.call-widget img {
    width: 60%;
    transition: all 300ms;
	transform: rotateY(180deg);
}


.call-popup {
	position: fixed;
	inset: 0;
	z-index: 9999;

	display: flex;
	align-items: center;
	justify-content: center;
	isolation: isolate;
}

.call-popup-wrapper {
	position: relative;
}

.call-popup-backdrop {
	position: fixed;
	inset: 0;
	z-index: -1;
	background-color: hsl(0 0% 0% / .5);
}

.call-popup-content {
	padding: clamp(1rem, 3rem, 2.5vw);
	background-color: white;
	width: 580px;
	max-width: 85vw;
	text-align: center;
}

.call-popup-content h3,
.call-popup-content h4 {
	text-align: center;
}

.call-popup-content h3 {
	color: var(--primary);
}

.call-popup-close {
	position: absolute;
	top: -1rem;
	right: -1rem;
	width: 2rem;
	height: 2rem;
	text-decoration: none;
	color: red;
	font-family: monospace;
	font-size: 1.7rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	background-color: white;
	transition: transform 200ms;
}

.call-popup-close:hover {
	transform: scale(1.03);
}

.call-popup-content  form .flex {
	flex-wrap: nowrap;
	align-items: stretch;
	margin: 1rem 0;
}

.call-popup-content input {
	padding: 1rem 2rem;
	background-color: #fff;
	border: 2px solid var(--borderColor);
	text-align: center;
	flex-grow: 1;

	border-radius: .5rem 0 0 .5rem;
	border-right: 0;
}

.call-popup-content button {
	flex-shrink: 0;
	padding-top: 0;
	padding-bottom: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 0 .5rem .5rem 0;
}

@media (max-width: 599px) {
	.call-popup-content  form .flex {
		flex-direction: column;
	}

	.call-popup-content button {
		padding-top: 1rem;
		padding-bottom: 1rem;
	}
}
