@charset "UTF-8";

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

	--primary-color: hsl(179 44% 55%);
	--primary-color-light: hsl(179 44% 65%);
	--primary-color-dark: hsl(179 44% 45%);
	--primary-color-opacity: hsl(179 44% 55% / .24);

	--xxl: 7.5rem;
	--xl: calc(var(--xxl)/2);

	--bs-primary: hsl(179 44% 55%);
	--bs-primary-rgb: 90, 191, 189;

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

	--bs-dark: hsl(240 8% 10%);
	--bs-dark-rgb: 23, 23, 28;

	--bs-body-color: hsl(240 8% 10%);

	--bs-link-color: var(--primary-color);
	--bs-link-color-rgb: 90, 191, 189;
	--bs-link-hover-color: var(--primary-color-dark);
	--bs-link-hover-color-rgb: 64, 165, 164;

	--h1: clamp(2.44375rem, 4vw, 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.125rem, 1.5vw, 1.5625rem);
	--h6: clamp(1.1rem, 1.2vw, 1.25rem);
	--lead: var(--h6);
}

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

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

body {
	font-family: var(--font);
	padding-top: 164px;
	font-weight: 500;
}

.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 {
	& .container {
		padding: 0;
		max-width: 100%;
	}
}

@media (min-width: 1680px) {
	.container {
		max-width: 1644px;
	}
}

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

.pb-2xxl {
	padding-bottom: calc(2*var(--xxl));
}

.py-xxl {
	padding-top: var(--xxl);
	padding-bottom: var(--xxl);
}

.mt--xxl {
	margin-top: calc(-1 * 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: 3.125rem;
	--bs-navbar-active-color: white;
	--bs-navbar-nav-link-padding-x: 1rem;
	transition: padding 200ms, box-shadow 200ms;
	background-color: white;
}

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

.navbar-brand {
	margin: 0;
	padding: 0;
}

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

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

.navbar-nav .nav-link {
	color: var(--bs-body-color);

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

	& .badge {
		margin-left: 0.25em;
		font-size: 0.75rem;
		font-weight: normal;
		color: var(--bs-body-color);
		background-color: var(--primary-color-opacity) !important;
	}
}

.dropdown-menu {
	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 {
	padding: 0.25rem .5rem;
	border-radius: .25rem;
	transition: color 200ms, background-color 200ms;
}

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

/*  MARK: header  */

@media (min-width: 992px) {
	header .grid {
		display: grid;
		grid-template-columns: repeat(12, 1fr);

		& .text-bg-dark {
			grid-column: 1 / 6;
			grid-row: span 2;
		}

		& .slides,
		& .bg-light {
			grid-column: 6/13;
		}

		& .swiper,
		& .swiper-slide img {
			height: 55vh;
		}
	}
}


/*  MARK: main content */

.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 {
	color: var(--bs-body-color) !important;
	--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);
}

.icon.rounded-circle {
	width: 44px;
	height: 44px;
	flex-shrink: 0;
}

#firma a {
	text-decoration: none;
	color: var(--bs-body-color);
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	transition: color 200ms;

	&::after {
		content: '';
		display: block;
		width: 36px;
		height: 8px;
		background-image: url(../img/arrow-right.svg);
		background-size: contain;
		background-repeat: no-repeat;
		transition: transform 200ms;
	}

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

		&::after {
			transform: translateX(3px);
		}
	}
}

#realizacja {

	& .swiper-pagination {
		margin: 0;
		padding: 0;
		position: relative;
		inset: auto;
		width: auto;
	}

	& .swiper-button-prev,
	& .swiper-button-next {
		position: relative;
		inset: auto;
		margin: 0;
		padding: 0;

		width: 42px;
		height: 42px;
		border-radius: 50%;
		background-image: url(../img/prevnext.svg);
		background-size: contain;
		background-repeat: no-repeat;
		flex-shrink: 0;
		transition: transform 300ms;

		&::before,
		&::after {
			display: none;
		}
	}

	& .swiper-button-prev {
		&:active {
			transform: scale(.8);
		}
	}

	& .swiper-button-next {
		transform: rotate(180deg);

		&:active {
			transform: rotate(180deg) scale(.8);
		}
	}

	& .swiper {
		margin-inline: 20px !important;
	}
}

#realizacja .swiper-slide a img {
	aspect-ratio: 4/3;
	transition: transform 600ms cubic-bezier(0.165, 0.84, 0.44, 1);
}

#realizacja .swiper-slide a:hover img {
	transform: scale(1.1);
}


.umow-sie {
	top: var(--xxl);
	left: 50%;
	transform: translateX(-50%);
	animation: tada 1s 350ms forwards;
	opacity: 0;
	transition: opacity 600ms;
}

@keyframes tada {
	0% {
		transform: translateX(-50%) scale3d(1, 1, 1);
	}

	10%,
	20% {
		transform: translateX(-50%) scale3d(.9, .9, .9) rotate3d(0, 0, 1, -3deg);
	}

	30%,
	50%,
	70%,
	90% {
		transform: translateX(-50%) scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
	}

	40%,
	60%,
	80% {
		transform: translateX(-50%) scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
	}

	100% {
		opacity: 1;
		transform: translateX(-50%) scale3d(1, 1, 1);
	}
}

#kontakt a {
	text-decoration: none;
	transition: color 200ms;

	&+a {
		margin-top: 1.5rem;
		display: block;
	}

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

#realizacja .btn-light {
	padding: .5rem .75rem;
}

/*  MARK: stopka */

footer {
	--bs-body-color: hsl(0 0% 0% / .5);
	color: var(--bs-body-color);
}

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

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

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

.sub h1 .badge.bg-light,
.sub h3 .badge.bg-light {
	font-size: .875rem;
	background-color: var(--primary-color) !important;
}

.sub h1:has(.badge),
.sub h3:has(.badge) {
	display: flex;
	align-items: center;
	gap: 1rem;
}

@media (max-width: 1299px) {

	.sub h1:has(.badge),
	.sub h3:has(.badge) {
		flex-direction: column;
		align-items: flex-start;
	}
}

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

.has-grid-gallery .gallery.row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	margin: 0;

	& .col-6 {
		width: 100%;
		padding: 0;
		margin: 0;

		& a,
		& img {
			width: 100%;
			height: 100%;
		}
	}

	& .col-6:first-child {
		grid-column: span 2;
		grid-row: span 2;
	}

	& .col-6:nth-child(n+6) {
		display: none;
	}

	& .col-6:nth-child(5) {
		position: relative;

		&::before {
			content: 'Zobacz więcej zdjęć';
			inset: 0;
			display: flex;
			align-items: center;
			justify-content: center;
			position: absolute;
			z-index: 2;
			color: white;
			text-align: center;
			padding: 20px;
			background-color: hsl(0 0% 0% / .5);
			backdrop-filter: blur(.25rem);
			pointer-events: none;
			touch-action: none;
		}
	}
}


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

	& .h5 {
		font-size: 1rem !important;
		font-weight: 500;
	}
}

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

.form-control,
.form-check-input {
	border-radius: 0 !important;
}

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

.error-msg {
	color: red;
}

iframe[src*="maps"] {
	width: 100%;
	height: 500px;
	display: block;
}

.templ-contact .bg-light a {
	color: var(--bs-body-color);
	text-decoration: none;
	transition: color 200ms;

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

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

/*  MARK: RWD  */

@media (max-width: 1499px) {

	header .p-xxl,
	#kontakt .p-xxl {
		padding: var(--xl);
	}
}

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

	.navbar-nav .nav-link:has(.badge) {
		display: flex;
		flex-direction: column-reverse;
	}

	.bg-light.p-xxl {
		padding: var(--xl);
	}
}


@media (max-width: 1199px) {
	.navbar {
		--bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%235abfbd' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
		--bs-navbar-toggler-border-color: rgba(var(--bs-emphasis-color-rgb), 1);
		--bs-navbar-toggler-border-radius: 0;
	}

	.offcanvas-body {
		display: flex;
		flex-direction: column;
	}

	.navbar .btn {
		width: 100%;
		justify-content: center;
		margin-top: 2rem;
	}

	.navbar-nav .nav-link,
	.dropdown-item {
		text-align: center;
	}

	.umow-sie {
		top: 1.5rem;
		width: 120px;
	}
}

@media (max-width: 991px) {
	.umow-sie {
		display: none !important;
	}

	#kontakt .text-bg-dark,
	#kontakt .text-end {
		text-align: center !important;
	}

	#kontakt .text-end {
		margin-top: 1rem;
	}
}


@media (max-width: 575px) {
	:root {
		--xxl: 3rem;
	}

	body {
		padding-top: 86px;
	}

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

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

	.p-xxl {
		padding: 1.5rem !important;
	}

	.navbar {
		--bs-navbar-padding-y: 1.125rem;
	}

	#realizacja h2 {
		text-align: center;
	}

	#realizacja .swiper-button-prev,
	#realizacja .swiper-button-next {
		display: none;
	}

	#kontakt .h3 {
		font-size: var(--h5) !important;
	}

	footer .copy {
		flex-direction: column;
		align-items: center;
		text-align: center;
		display: flex;
	}

	footer .copy span {
		display: none;
	}
}