@charset "UTF-8";

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

	--primary-color: hsl(233 98% 18%);
	--primary-color-light: hsl(233 98% 35%);
	--primary-color-dark: hsl(233 98% 9%);

	--xxl: 9.375rem;
	--xl: 4.6875rem;

	--bs-primary: hsl(160 58% 25%);
	--bs-primary-rgb: 1, 11, 91;

	--bs-light: hsl(60 5% 96%);
	--bs-light-rgb: 245, 245, 244;

	--bs-dark: var(--primary-color);
	--bs-dark-rgb: 1, 11, 91;

	--bs-body-color: hsl(229 43% 23%);

	--bs-link-color: hsl(233 98% 18%);
	--bs-link-color-rgb: 1, 11, 91;
	--bs-link-decoration: underline;
	--bs-link-hover-color: hsl(233 98% 38%);
	--bs-link-hover-color-rgb: 2, 24, 192;

	--h1: clamp(2.75rem, 2.75rem + ((1vw - 0.2rem) * 1.333), 4.29375rem);
	--h2: clamp(2.2rem, 2.2rem + ((1vw - 0.2rem) * 1.333), 3.43125rem);
	--h3: clamp(1.75625rem, 1.75625rem + ((1vw - 0.2rem) * 1.333), 2.75rem);
	--h4: clamp(1.40625rem, 1.40625rem + ((1vw - 0.2rem) * 1.333), 2.2rem);
	--h5: clamp(1.25rem, 1.25rem + ((1vw - 0.2rem) * 1.333), 1.75625rem);
	--h6: clamp(1.1rem, 1.1rem + ((1vw - 0.2rem) * 1.333), 1.40625rem);
	--lead: var(--h6);

	--body-top-offset: 168px;
}

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

:focus-visible {
	outline: 2px dashed var(--primary-color);
	outline-offset: 2px;
}

html {
	scroll-padding-top: 70px;
}

html:has(.sub) {
	scroll-padding-top: 120px;
}



body {
	padding-top: var(--body-top-offset);
	font-family: var(--font);
	line-height: 1.7;
	font-size: clamp(1rem, 1rem + ((1vw - 0.2rem) * 1.333), 1.125rem);
}

@media (min-width: 1200px) {
	body {
		padding-right: 0 !important;
		overflow: visible !important;
	}

}

.font-size-12px {
	font-size: .75rem;
}

.font-size-14px {
	font-size: .875rem;
}

.font-size-16px {
	font-size: 1rem;
}

.font-size-18px {
	font-size: 1.125rem;
}

.font-size-20px {
	font-size: 1.25rem;
}

.font-size-22px {
	font-size: 1.375rem;
}

.font-size-24px {
	font-size: 1.5rem;
}

.font-size-26px {
	font-size: 1.625rem;
}

.font-size-28px {
	font-size: 1.75rem;
}

.font-size-30px {
	font-size: 1.875rem;
}

.font-size-32px {
	font-size: 2rem;
}

.font-size-34px {
	font-size: 2.125rem;
}

.font-size-36px {
	font-size: 2.25rem;
}

.font-size-38px {
	font-size: 2.375rem;
}

.font-size-40px {
	font-size: 2.5rem;
}

.font-size-42px {
	font-size: 2.625rem;
}

.font-size-44px {
	font-size: 2.75rem;
}

.font-size-46px {
	font-size: 2.875rem;
}

.font-size-48px {
	font-size: 3rem;
}

.font-size-50px {
	font-size: 3.125rem;
}

.icon {
	width: var(--icon-size, 72px);
}

.icon-72px,
[src*="_72px"] {
	width: 72px;
}

.icon-48px,
[src*="_48px"] {
	width: 48px;
}

.icon-32px,
[src*="_32px"] {
	width: 32px;
}

.icon-16px,
[src*="_16px"] {
	width: 16px;
}

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

h1 em,
h2 em,
h3 em,
h4 em,
h5 em,
h6 em,
.h1 em,
.h2 em,
.h3 em,
.h4 em,
.h5 em,
.h6 em {
	font-style: normal;
	color: var(--primary-color);
}

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

h2,
.h2 {
	font-size: var(--h2) !important;
}

h3,
.h3 {
	font-size: var(--h3) !important;
}

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

h5,
.h5 {
	font-size: var(--h5) !important;
}

h6,
.h6 {
	font-size: var(--h6) !important;
}

.lead {
	font-size: var(--lead);
}

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

@media (min-width: 1660px) {
	.container {
		max-width: 1620px;
	}
}

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

#main ol li ul {
	margin-top: 1rem;
	margin-bottom: 1rem;
}

#main ol li+li {
	margin-top: 1rem;
}

/*  MARK: navbar  */

.navbar {
	--bs-navbar-padding-x: 0;
	--bs-navbar-padding-y: 0;
	--bs-navbar-active-color: white;
	--bs-navbar-nav-link-padding-x: 1rem;
	transition: height 200ms, box-shadow 200ms;
	padding-right: 0 !important;
	background-color: white;

	height: var(--body-top-offset);
}

.navbar.affix {
	--bs-navbar-padding-y: 0;
	height: 70px;
	box-shadow: 0 0 2rem hsl(0 0% 0% / .15);
}

.navbar-toggler {
	border: 0;
	padding: 0;
	width: 2rem !important;
	height: 1.125rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-end;
	box-shadow: none !important;
}

.navbar-toggler-line {
	background-color: var(--primary-color);
	width: 2rem;
	height: 2px;
	transition: opacity 200ms, width 200ms, transform 200ms;

	&:last-child {
		width: 1rem;
	}
}

.navbar-toggler.clicked .navbar-toggler-line:nth-child(1) {
	transform: rotate(45deg) translateY(11px);
	width: 100%;
}

.navbar-toggler.clicked .navbar-toggler-line:nth-child(2) {
	opacity: 0;
}

.navbar-toggler.clicked .navbar-toggler-line:nth-child(3) {
	transform: rotate(-45deg) translateY(-11px);
	width: 100%;
}


.navbar-toggler:hover .navbar-toggler-line:last-child {
	width: 100%;
}

.navbar-brand {
	margin: 0;
	padding: 0;
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	transition: .5s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.navbar-brand-image {
	width: 300px;
}

.navbar-nav .nav-link {
	font-size: var(--h6);
	color: var(--bs-body-color);
	font-weight: 400;
	transition: color 200ms, padding-left 200ms;
	position: relative;


	&::before {
		content: '→';
		position: absolute;
		left: 0;
		top: .25em;
		font-family: monospace;
		font-size: 1.5rem;
		transform: translateX(-10px);
		opacity: 0;
		transition: opacity 200ms, transform 200ms;
		color: var(--primary-color);
	}

	&:hover,
	&:focus,
	&.active,
	&.show {
		color: var(--primary-color);
		padding-left: 1.5rem;

		&::before {
			opacity: 1;
			transform: translateX(0);
		}
	}
}

.dropdown-menu {
	position: absolute !important;
	top: 0;
	left: 0;
	border: 0;
	padding: .75rem;
	border-radius: 0;
	box-shadow: 0 1rem 2.5rem -.5rem hsl(0 0% 0% / .25);
	background-color: hsl(0 0% 100%);
}

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

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active {
	color: white;
	background-color: var(--primary-color);
}

.menu-item {
	transition: .5s cubic-bezier(0.075, 0.82, 0.165, 1);
	line-height: 1.15;
}

.menu-item:hover {
	opacity: 1 !important;
	color: var(--bs-link-color);
}

.offcanvas {
	/* height: fit-content !important; */
	height: 100dvh;
	/* opacity: 0;
	top: calc(var(--body-top-offset) - 30px) !important;
	transition: opacity 200ms, top 200ms;
	transform: none !important; */
}

/* .offcanvas.show {
	opacity: 1;
	top: var(--body-top-offset) !important;
}

.offcanvas-body {
	overflow: visible !important;
}

@media (min-width: 1200px) {
	.offcanvas-backdrop.show {
		opacity: 0;
		top: var(--body-top-offset);
		height: calc(100dvh - var(--body-top-offset));
	}
} */

.navbar-icons a {
	color: var(--bs-body-color);
	text-decoration: none;

	transition: color 200ms;

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



/*  MARK: header  */

.slogan {
	--gap: 0.3125rem;
}

.header__h1 {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--gap);
}

.header__h2 {
	display: inline-block;
	margin-top: var(--gap);
}

.header__span,
.header__h2 {
	color: white;
	padding-inline: .25em;
	background-color: rgba(var(--bs-primary-rgb), .72);
}

.swiper__image {
	height: 100vh;
}

header video {
	width: 115%;
}

/*  MARK: main content */


main:has(+ footer) {}


main:has(:last-child.bg-light)+footer {
	margin-top: 0 !important;
}

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

.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);
	--bs-btn-border-width: 2px;
}


.oferta-prev,
.oferta-next,
.news-prev,
.news-next {
	width: 55px;
	height: 16px;
	background-image: url(../img/prev.svg);
	background-repeat: no-repeat;
	background-position: center;
	transition: transform 200ms;
	display: block;

	&:active {
		transform: scale(0.8) !important;
	}
}

.oferta-prev:hover,
.oferta-next:focus,
.news-prev:focus,
.news-next:hover {
	transform: translateX(-2px);
}

.oferta-next,
.news-next {
	transform: rotate(180deg);

	&:active {
		transform: scale(0.8) rotate(180deg) !important;
	}
}

.oferta-next:hover,
.oferta-next:focus,
.news-prev:focus,
.news-next:hover {
	transform: translateX(2px) rotate(180deg);
}

#oferta .swiper-slide {
	padding-bottom: 60px;
}

#oferta .swiper-slide:nth-child(odd) .oferta-box {
	transform: translateY(60px);
}

.oferta-box .position-absolute {
	padding: clamp(20px, 20px + ((1vw - 0.2rem) * 1.333), 40px);
	background-image: linear-gradient(to top, var(--primary-color), transparent);
}

.oferta-box>img {
	width: 100%;
	height: auto;
	aspect-ratio: 313/600;
	object-fit: cover;
	transition: transform 600ms cubic-bezier(0.23, 1, 0.320, 1);
}

.oferta-box:hover img,
.oferta-box:focus img {
	transform: scale(1.1);
}

.oferta-swiper-wrapper {
	width: 72dvw;
}

.oferta-slide-title {
	font-size: var(--h6);
}


.news {
	padding-left: 60px;
	padding-top: 30px;
	padding-bottom: 30px;
	border-left: 1px solid var(--primary-color);
	text-decoration: none;
	color: var(--primary-color);

	transition: color 200ms;

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

#projekty p {
	font-size: var(--h5);
	line-height: 1.2;
}

#projekty p:nth-of-type(n+9) {
	display: none;
}

#projekty .show-all p:nth-of-type(n+9) {
	display: block;
	animation: fadeIn 300ms 1 forwards;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}

}

#projekty strong {
	display: block;
	clear: both;
	font-weight: 500;
	margin-bottom: 0.5rem;
}


/*  MARK: stopka */

.footer-social-media a {
	filter: brightness(0) invert(1);
}

footer .text-muted {
	color: white !important;
	opacity: .75;

	& a {
		opacity: 1;

		&:hover,
		&:focus {
			opacity: .75;
		}
	}
}

footer a {
	text-decoration: none;
	color: white;
	opacity: .75;
	transition: opacity 200ms;
}

footer a:hover,
footer a:focus {
	color: white;
	opacity: 1;
}

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

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

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

/*  MARK: sub content  */

.sub .swiper__image {
	height: 600px;
}

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

.gallery a {
	display: block;
	width: 100%;
	overflow: hidden;
}

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

.gallery a:hover img {
	transform: scale(1.1);
}

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

.downloads a:hover {
	color: var(--primary-color);
	border-color: var(--primary-color);
}

.form-control,
.form-check-input {
	border-radius: 0;
	padding: 0.75rem;

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

.form-check-input:checked {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
}

.form-control.error {
	border-color: red;
}

.error-msg {
	color: red;
}

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

.form-check {
	min-height: 2.5rem;
	padding-left: 2.5em;
}

.form-check .form-check-input {
	margin-left: -2.5em;
}



/*  MARK: RWD  */

@media (max-width: 1199px) {
	.offcanvas.show {
		top: 0 !important;
		left: auto !important;
		height: 100dvh !important;
		min-width: 300px;
		max-width: 100%;
	}

	.navbar-nav.gap-4 {
		gap: .15rem !important;
		height: 100%;
		text-align: center;
		align-items: stretch !important;
	}

	.dropdown-menu {
		position: static !important;
		box-shadow: none;
		border: 0;
		padding: 0;
		background-color: transparent;
	}

	.dropdown-item {
		text-align: center;
	}

	#ceo .p-xxl {
		padding: var(--xl);
	}

	footer .text-muted {
		font-size: .75rem;
	}

	.oferta-swiper-wrapper {
		width: 100%;
	}
}


@media (max-width: 991px) {
	:root {
		--xxl: 4rem;
	}

	.navbar-brand {
		margin: 0;
		padding: 0;
		position: relative;
		inset: auto;
		transform: none;
	}

	header .w-75 {
		width: 100% !important;
	}

	header .position-absolute {
		position: relative !important;
		inset: auto !important;
		transform: none !important;
	}

	header .overflow-hidden.w-75 {
		width: 100% !important;
		height: 400px !important;
		margin-top: -9.5em;
		position: relative;
	}

	header video {
		/* transform: rotate(-90deg); */
		object-fit: cover;
		object-position: right;
		height: 100%;
		width: 100%;
		position: absolute;
		top: 0;
		right: 0;
	}

	.oferta-box .position-absolute {
		padding: 25px;
	}

	footer .d-flex.gap-3:not(.footer-social-media) {
		gap: .25rem !important;
	}

	footer .d-flex.mt-4 {
		margin-top: 2rem !important;
	}

	aside.border-start {
		border-left: 0 !important;
		margin-top: 3rem;
	}

	textarea {
		height: 12.5em;
	}

	#ceo .order-2 {
		z-index: 2;
		margin-top: -2rem;
		margin-inline: 2rem;
		width: calc(100% - 4rem);
	}
}


@media (max-width: 575px) {
	:root {
		--body-top-offset: 95px;
	}

	header,
	main,
	footer {
		overflow: hidden;
	}

	.navbar-brand-image {
		width: 240px;
	}

	header .overflow-hidden.w-75 {
		margin-top: -10.5em;

    width: 100% !important;
    height: auto !important;
    position: relative;
    aspect-ratio: 1/1;
}

	.oferta-box img {
		aspect-ratio: 1;
	}

	.news {
		padding-left: 0;
		padding-top: 0;
		padding-bottom: 0;
		gap: 0 !important;
		border: 0;
	}

	/*
	#oferta .swiper-slide {
		padding-bottom: 0;
	}
	*/

	#oferta .swiper-slide:nth-child(odd) .oferta-box {
		transform: none;
	}

	#ceo .p-xxl {
		padding: 2rem;
	}

	#ceo .me-5 {
		margin-inline-end: .5em !important;
	}

	.offcanvas.show {
		min-width: 100% !important;
	}

	#projekty .row p {
		margin-bottom: 0 !important;
	}
}


@media (max-width: 435px) {
	.slogan h1 {
		display: block;
		padding-right: 3rem;
	}

	header .overflow-hidden.w-75 {
		opacity: .6 !important;
	}

	.navbar-icons.gap-3 {
		gap: 0.5rem !important;

		& img {
			height: 18px;
		}
	}

	.navbar-brand-image {
    width: 165px;
	}
}