@charset "UTF-8";

:root,
[data-bs-theme=light] {
	--font: 'Inter', system-ui, sans-serif;

	--primary-color: hsl(220, 100%, 30%);
	--primary-color-light: hsl(220, 100%, 40%);
	--primary-color-dark: hsl(220, 100%, 20%);

	--bs-link-color: hsl(220, 100%, 30%);
	--bs-link-color-rgb: 0, 51, 153;
	--bs-link-decoration: underline;
	--bs-link-hover-color: hsl(220, 100%, 40%);
	--bs-link-hover-color-rgb: 0, 68, 204;

	--xxl: 7.5rem;
	--xl: 3.75rem;

	--bs-primary: var(--primary-color);
	--bs-primary-rgb: 0, 51, 153;

	--bs-light: hsl(228 22% 95%);
	--bs-light-rgb: 239, 241, 245;

	--bs-dark: black;
	--bs-dark-rgb: 0,0,0;

	--bs-body-color: black;

	--h1: 	clamp(2.44375rem, 3.8vw, 3.8125rem);
	--h2: 	clamp(1.95625rem, 3vw, 3.05rem);
	--h3: 	clamp(1.5625rem, 2.4vw, 2.44375rem);
	--h4: 	clamp(1.25rem, 2vw, 1.95625rem);
	--h5: 	clamp(1.15rem, 1.5vw, 1.5625rem);
	--h6: 	clamp(1.1rem, 1.2vw, 1.25rem);
	--lead: var(--h6);
}

body {
	font-family: var(--font);
}

a {
	text-decoration: none;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
	font-family: var(--font);
	margin-bottom: 1rem;
	font-weight: bold;

	em {
		font-style: normal;
		color: var(--primary-color);
	}
}

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

.container-fluid {
	padding-inline: 3vw;
}

@media (min-width: 1536px) {
	.container {max-width: 1470px;}
}

.inset-0 {inset: 0;}

.p-xxl {padding: var(--xxl);}
.p-xl {padding: var(--xl);}
.px-xxl {padding-inline: var(--xxl)}
.px-xl {padding-inline: var(--xl)}

.pt-xxl {padding-top: var(--xxl);}
.pb-xxl {padding-bottom: var(--xxl);}
.py-xxl {
	padding-top: var(--xxl);
	padding-bottom: var(--xxl);
}
.mt-xxl {margin-top: var(--xxl);}
.mb-xxl {margin-bottom: var(--xxl);}
.my-xxl {
	margin-top: var(--xxl);
	margin-bottom: var(--xxl);
}

.pt-xl {padding-top: var(--xl);}
.pb-xl {padding-bottom: var(--xl);}
.py-xl {
	padding-top: var(--xl);
	padding-bottom: var(--xl);
}
.mt-xl {margin-top: var(--xl);}
.mb-xl {margin-bottom: var(--xl);}
.my-xl {
	margin-top: var(--xl);
	margin-bottom: var(--xl);
}


/*  navbar  */

.navbar {
    --bs-navbar-padding-x: 0;
    --bs-navbar-padding-y: 1.875rem;
    --bs-navbar-active-color: white;
    --bs-navbar-nav-link-padding-x: 1.5rem;
		--bs-navbar-brand-padding-y: 0;
    --bs-navbar-brand-margin-end: 0;

	transition: padding 200ms, box-shadow 200ms;

	&.affix {
		--bs-navbar-padding-y: .5rem;
		background-color: hsl(0 0% 0% / .8);
		box-shadow: 0 0 2rem hsl(0 0% 0% / .15);
	}
}

.navbar-brand-image {
	height: 50px;
	transition: height 200ms;
}

.affix .navbar-brand-image {height: 30px;}

.nav-link {
	color: white;
}


.dropdown-menu {
	border: 0;
	padding: .5rem .25rem;
	border-radius: 0;
	box-shadow: 0 1rem 2.5rem -.5rem hsl(0 0% 0% / .25);
	background-color: hsl(0 0% 100%);
}

.dropdown-item {
	padding: .5rem .75rem;
	border-radius: .25rem;
	transition: color 200ms, background-color 200ms;

	img {height: 2rem; display: block;}

	&:hover,
	&:focus,
	&.active {
		color: var(--primary-color);
		background-color: var(--bs-light);
	}
}

.dropdown-item:has(img) {
	display: flex;
	align-items:center;
	justify-content: flex-start;
	gap: 0.5rem;
}

.dropdown-toggle::after {
	display: inline-block;
	margin-left: .35rem;
	vertical-align: .15em;
	content: "";
	width: .5rem;
	height: .5rem;
	background-image: url(../img/drop.svg);
	background-repeat: no-repeat;
	background-size: contain;
	border: 0;
}


/*  header  */

.home header {
	min-height: 500px;
}

.home .swiper__image {min-height: 500px;}

.slogan {
	margin-top: 110px;
}


.swiper__image {
	height: 100vh;
	object-position: left;
}

header .position-absolute {
	background-image: linear-gradient(to bottom, hsl(0 0% 0% / .8), transparent 50%);
}

.home header .swiper {
	position: relative;
	isolation: isolate;
}

.home header .swiper::after {
	content: "";
	position: absolute;
	inset:0;
	z-index: 1;
	background-image: linear-gradient(to left, hsl(0 0% 0% / .8), transparent 60%);

}


/*  main content */

.btn {
    --bs-btn-padding-x: 1.875rem;
    --bs-btn-padding-y: 1.25rem;
    --bs-btn-font-size: 1rem;
    --bs-btn-font-weight: 700;
    --bs-btn-line-height: 1.5;
}

.btn-primary {
    --bs-btn-bg: var(--primary-color);
    --bs-btn-border-color: var(--primary-color);
    --bs-btn-hover-bg: var(--primary-color-light);
    --bs-btn-hover-border-color: var(--primary-color-light);
    --bs-btn-active-bg: var(--primary-color-dark);
    --bs-btn-active-border-color: var(--primary-color-dark);
}

.btn-outline-primary {
    --bs-btn-color: var(--primary-color);
    --bs-btn-border-color: var(--primary-color);
    --bs-btn-hover-bg: var(--primary-color);
    --bs-btn-hover-border-color: var(--primary-color);
    --bs-btn-active-bg: var(--primary-color);
    --bs-btn-active-border-color: var(--primary-color);
}

#nasza-oferta a .position-absolute {
	background-image: linear-gradient(to top, hsl(0 0% 0% / .9), transparent 40%), url('../img/more.svg');
	background-repeat: no-repeat;
	background-position: 0 0, right 1.5rem top 1.5rem;
}

#nasza-oferta a img {
	aspect-ratio: 1;
	height: auto;
	width: 100%;
	transition: transform 600ms cubic-bezier(0.165, 0.84, 0.44, 1);
}

#nasza-oferta a:hover img {
	transform: scale(1.1);
}

.swiper--zaufali .swiper-wrapper {
	transition-timing-function: linear !important;
	align-items: stretch;
}

.swiper--zaufali .swiper-slide {
	height: auto !important;
}

.swiper--zaufali .swiper-slide a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

#baza-wiedzy a {
	text-decoration: none;
	color: var(--bs-body-color);
	transition: color 200ms;

	&:hover {color: var(--primary-color);}
}

.card-img-top {
	overflow: hidden;

	img {
		width: 100%;
		display: block;
		transition: transform 400ms cubic-bezier(0.165, 0.84, 0.44, 1);
	}
}

.card:hover {
	cursor: pointer;

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


/*  stopka  */

footer a {
	text-decoration: none;
	color: white;
	transition: color 200ms;

	&:hover,
	&:focus {
		color: var(--primary-color-light);
	}
}

.list-unstyled li + li {margin-top: 0.75em;}

.madeby {
	display: flex;
	align-items: center;

	small {
		font-size: 0.625rem;
		margin: 0.2em 0.2em 0 0;
	}
}


/*  sub content  */

.sub .swiper__image {
	height: 350px;
}

main:has(#sub-pages:last-of-type) {padding-bottom: 0;}

.container .container {
	max-width: 100%;
	width: 100%;
	padding: 0;
}

.gallery a {
	display: block;
	width: 100%;
	overflow: hidden;
	border-radius: 0.375rem;

	img {
		width: 100%;
		display: block;
		transition: transform 400ms cubic-bezier(0.19, 1, 0.22, 1);
	}

	&:hover img {
		transform: scale(1.1);
	}
}

.downloads a {
	text-decoration: none;
	color: black;
	border: 1px solid hsl(0 0% 90%);
	border-radius: .25rem;
	transition: color 200ms, border-color 200ms;

	&:hover {
		color: var(--primary-color);
		border-color: var(--primary-color);
	}
}

.form-control {
	border-radius: .25rem;

	&.error {border-color: red;}
}

.error-msg {color: red;}

aside a {
	color: var(--bs-body-color);
	text-decoration: none;
	transition: color 200ms;

	&:hover {
		color: var(--primary-color);
	}
}


/*  paginator  */

.pagination {
	display: flex
}

.pagination li {
	display: none
}

.pagination .active,
.pagination .insertPage,
.pagination li:first-child,
.pagination li:last-child {
	display: block
}

.pagination a,
.pagination input {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	margin: 0 5px;
	padding: 0;
	text-align: center;
	color: #bbb;
	border: 1px solid #e1e1e1;
	text-decoration: none;
	transition: all .2s
}

.pagination a:focus,
.pagination a:hover,
.pagination input:focus,
.pagination input:hover {
	color: var(--primary-color);
	border: 1px solid var(--primary-color)
}

.pagination input::placeholder {
	color: #bbb;
	font-size: 16px;
	font-weight: 500
}

.pagination .active a {
	border: 1px solid var(--primary-color);
	background: var(--primary-color);
	color: #fff;
	cursor: text
}

.pagination .insertPage+.insertPage {
	display: none
}

.dofinansowanie small {
	font-size: .75rem;
	line-height: 1.4;
	display: block;
}






/*  media query  */

@media (max-width: 1199px) {
	.btn {
    --bs-btn-padding-x: 1.5rem;
    --bs-btn-padding-y: 1.15rem;
	}
}


@media (max-width: 991px) {
	footer {
		text-align: center;
	}

	footer p.d-flex {justify-content: center;}

	.madeby {margin-top: 1rem;}

	main, footer {
		width: 100%;
		overflow: hidden;
	}
}


@media (max-width: 575px) {
	:root {
		--xxl: 3rem;
    --xl: 1.75rem;
	}
	.slogan p:not(:last-child) {display: none;}

	.swiper__image {
    object-position: left 27% top 0;
	}

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