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

h1, h2, h3, h4, h5, h6 {font-weight: var(--titleWeight)}
b, strong {font-weight: var(--boldWeight)}

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

.btn {
	padding: 1.3em 2.3em;
	line-height: 1.1;
	text-transform: uppercase;
	justify-content: center;
	text-align: center;
	font-weight: bold;
}

body {
	background-color: hsl(33 88% 45%);
	background-image: url(/assets/img/bg.webp);
	background-repeat: no-repeat;
	background-position: center top;
}




/*
			N A V B A R
*/

.navbar {
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 999;
}

.navbar-logo {
	margin: 0;
}

.navbar-logo-image {
	display: block;
	height: 187.5px;
	transition: height 200ms;
}

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



/*
			H E A D E R
*/


header h1 {
	margin: 13.5rem 0 4rem;
	font-weight: normal;
}

header h1 span {
	font-size: .875rem;
	margin-bottom: 2rem;
	display: inline-block;
}


.klimatyzator .absolute {
	top: -3rem;
	right: -3rem;
}





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

[data-hidden] {display: none;}


.downloads a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
	box-sizing: border-box;
	padding: 15px 30px;
	text-decoration: none;
	color: var(--textColor);
	transition: all var(--fastSpeed);
	box-shadow: 0 0 30px hsl(0, 0%, 0%, .1);
}

.downloads a:hover {
	color: var(--primary);
	transform: translateY(-2px);
	box-shadow: 0 15px 20px -5px hsl(0, 0%, 0%, .2);
}

.downloads a img:not(.download-icon) {
	height: 52px;
	border-radius: 0;
}

.download-icon {
	height: 18px;
	display: block;
	margin-left: 30px;
	border-radius: 0;
	filter: grayscale(1);
}

.downloads .size {
	opacity: .6;
	font-size: 0.875rem;
}

.downloads .text {
	flex-grow: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-left: 30px;
}

.downloads strong {
	font-weight: 400;
	line-height: 1.3;
	display: block;
	padding-right: 30px;
}

form {
	width: 100%;
}

fieldset {
	border: 0;
	padding: 0;
	margin: 0;
}

label {
	margin-top: 10px;
	margin-bottom: 5px;
	font-size: 1.125rem;
}

label p {
	margin: 0;
}

label a {
	text-decoration: none;
	color: var(--primary);
}

label p,
label li {
	font-size: 0.875rem;
	line-height: 1.5;
}

label li {
	margin-bottom: 0.5em;
}

input,select,textarea {
	width: 100%;
	box-sizing: border-box;
	padding: .8rem 1rem;
	border: 2px solid white;
}

[type="checkbox"],
[type="radio"] {
	width: auto;
	flex-shrink: 0;
}

[type="checkbox"] {
	appearance: none;
	width: 1rem;
	height: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	flex-shrink: none;
	padding: 0;
	margin-top: 11px !important;
	transition: all .3s;
	-webkit-transition: all .3s;
	-moz-transition: all .3s;
	-ms-transition: all .3s;
	-o-transition: all .3s;
}

[type="checkbox"]:checked {
	background-color: white;
}

[type="checkbox"]:checked::after {
	content: '\2713';
	display: block;
	color: var(--secondary);
	font-family: monospace;
	font-size: .875rem;
}

textarea {
	height: 15rem;
}

.ok {
	border-color: var(--borderColor);
}

.error {
	border-color: red;
}

.error-msg {
	color: red;
	font-size: 1rem;
	margin-top: 5px;
}

.star {
	color: red;
	font-family: sans-serif;
}

#alert {
	display: block;
	box-sizing: border-box;
	width: 100%;
	padding: 0.5rem 1rem;
	color: white;
	font-weight: bold;
}

#alert.success {
	background-color: rgb(0, 133, 22);
}


#alert.danger {
	background-color: rgb(165, 0, 0);
}



label {font-weight: bold;}
label p {font-weight: normal;}


form button {
	margin-top: 1rem;
}


#letnia-oferta img.circle {
	border: 2px solid white;
}

#letnia-oferta p.flex {
	line-height: 1.5;
}

#dofinansowanie .relative::before,
#kredyt .relative::before {
	content: '';
	display: block;
	border-radius: 50%;
	background-color: var(--secondaryTransp);
	width: 35%;
	aspect-ratio: 1/1;

	position: absolute;
	z-index: 20;
	bottom: -2rem;
	left: 0;
}

#kredyt .relative::before {
	left: auto;
	right: 0;
}




/*
			F O O T E R
*/

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

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


footer {
	background-color: var(--secondaryDark);
	color: white;
}

footer hr {
	opacity: .2;
	background-color: #fff;
	margin: 0;
}

footer a {
	color: #fff;
	text-decoration: none;
	transition: color 200s;
}

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


footer h5 {
	margin: 1.5rem 0;
}

footer p {margin: 0;}


.sub,
body:not(:has(header)) {
	background-image: none;
	padding-top: 300px;
}

.sub main,
body:not(:has(header)) main {
	padding-bottom: var(--sectionPadding);
}

.sub main a,
body:not(:has(header)) main a {
	color: white;
	text-decoration: underline;
}

h1 + h4 {
	text-align: left !important;
}




/*
			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);}
}



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

@media (max-width: 1300px) {
	h1, .h1 {font-size: var(--h2);}

	body {
		background-position: center -55px;
	}
}



@media (max-width: 1199px) {

	body {
		background-position: center -10px;
	}

	.relative img {
		margin-top: 3rem;
	}

	footer .md\:w-2-12 + .md\:w-2-12 {margin-top: 2rem;}

	footer .py-40 {
		flex-direction: column;
	}

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


@media (max-width: 920px) {
	#letnia-oferta .flex-nowrap img {display: none;}
}


@media (max-width: 788px) {
	body {
		background-position: center top;
		background-size: 2000px auto;
	}

	header h1 {
		margin: 13.5rem 0 3rem;
		font-weight: normal;
	}
}

@media (max-width: 775px) {
	header h1 {margin-bottom: 1rem; margin-top: 12rem;}
}

@media (max-width: 720px) {
	h1, .h1 {font-size: var(--h3);}
	h2, .h2 {font-size: var(--h4);}
	h3, .h3 {font-size: var(--h5);}
	h4, .h4 {font-size: var(--h6);}

	header h1 {
		margin-bottom: 3rem;
	}

	body {
		background-size: 1640px auto;
	}

	.klimatyzator .max-w-full {
		max-width: 505px;
	}
}


@media (max-width: 640px) {
	.navbar-logo-image {height: 130px;}

	header h1 {margin-top: 180px; margin-bottom: 2rem;}

	body {
		background-size: 1565px auto;
	}
}

@media screen and (max-width: 599px) {
	.download-icon, .downloads .size {display: none;}

	.downloads a {
		padding: 15px;
	}

	.downloads .text {
		margin-left: 15px;
	}

	.downloads strong {
		padding-right: 0;
		font-size: 0.875rem;
	}

	.downloads a img:not(.download-icon) {
		height: 30px;
	}

	h1, .h1 {
		font-size: var(--h4);
	}

	header h1 {
		margin-top: 175px;
		margin-bottom: 1rem;
	}

	.klimatyzator .max-w-full {
		max-width: 400px;
	}

	body {
		background-size: 1332px auto;
	}

}


@media (max-width:479px) {
	body {
		background-size: 1098px auto;
	}

	header h1 span {
		margin-bottom: 1.4rem;
	}

	header h1 {font-size: 1.5rem; margin-top: 150px; margin-bottom: 0;}

	.klimatyzator .absolute {
		top: -1rem;
		right: -1rem;
		width: 90px;
	}

	.klimatyzator .max-w-full {
		max-width: 330px;
	}

	main {
		padding-top: 2rem !important;
	}
}


@media (max-width: 378px) {
	body {
		background-size: 1167px auto;
	}
}



@media (max-width: 372px) {
	body {
		background-size: 1140px auto;
	}

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

	header h1 {margin-top: 7.1rem;}
}
