@charset "UTF-8";

:root,
[data-bs-theme=light] {
	--font: 'Figtree', sans-serif;
	--font2: 'CashMarket Rounded', sans-serif;

	--primary-color: hsl(221 100% 24%);
	--primary-color-light: hsl(221 100% 44%);
	--primary-color-dark: hsl(221 100% 14%);

	--xxl: 5rem;
	--xl: 3.75rem;

	--bs-primary: hsl(221 100% 24%);
	--bs-primary-rgb: 0, 39, 122;

	--bs-light: hsl(195, 54%, 87%);
	--bs-light-rgb: 220, 236, 246;

	--bs-dark: var(--bs-primary);
	--bs-dark-rgb: var(--bs-primary-rgb);

	--bs-body-color: var(--bs-primary);

	--link-hover: hsl(2, 99%, 63%);
	--link-hover-rgb: 254, 73, 67;

	--bs-link-color: var(--bs-primary);
	--bs-link-color-rgb: var(--bs-primary-rgb);
	--bs-link-decoration: underline;
	--bs-link-hover-color: var(--link-hover);
	--bs-link-hover-color-rgb: var(--link-hover-rgb);

	--h1: clamp(2.35rem, 3.3vw, 3.5rem);
	--h2: clamp(1.9rem, 2.8vw, 2.75rem);
	--h3: clamp(1.55rem, 2.4vw, 2.3rem);
	--h4: clamp(1.3rem, 2vw, 1.85rem);
	--h5: clamp(1.2rem, 1.7vw, 1.5rem);
	--h6: clamp(1.1rem, 1.3vw, 1.25rem);
	--lead: clamp(1rem, 1.1vw, 1.1rem);

	--affix-height: 80px;
}

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

a {
	transition: color 200ms, text-decoration-color 200ms;
}

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

@view-transition {
	navigation: auto;
}

@keyframes fade-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes fade-out {
	from {
		opacity: 1;
	}

	to {
		opacity: 0;
	}
}

::view-transition-old(root) {
	animation: 800ms ease-in forwards fade-out;
}

::view-transition-new(root) {
	animation: 400ms ease-in forwards fade-in;
}

html {
	scrollbar-gutter: stable;
	scroll-behavior: smooth;
	scroll-padding-top: var(--affix-height);
	font-size: 18px;
}

body {
	font-family: var(--font);
	line-height: 1.5;
	text-wrap-style: pretty;
}

.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(--font2);
	margin-bottom: 1rem;
	font-weight: bold;
	line-height: 1.1;
}

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;
	text-wrap-style: balance;
}

h2,
.h2 {
	font-size: var(--h2) !important;
	text-wrap-style: balance;
}

h3,
.h3 {
	font-size: var(--h3) !important;
	text-wrap-style: balance;
}

h4,
.h4 {
	font-size: var(--h4) !important;
	text-wrap-style: balance;
}

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

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

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

.lead,
p {
	text-wrap: pretty;
}

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

#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: 1.875rem;
	--bs-navbar-active-color: white;
	--bs-navbar-nav-link-padding-x: 1rem;
	transition: padding 200ms, box-shadow 200ms;
}

.navbar.affix {
	--bs-navbar-padding-y: .15rem;
	background-color: white;
	border-bottom: 1px solid #f4f4f4;
	/*box-shadow: 0 0 2rem hsl(0 0% 0% / .15);*/
}

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

.godlo-img,
.koscian-img {
	height: 80px;
	transition: height 200ms;
}

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

.affix .godlo-img,
.affix .koscian-img {
	height: 50px;
}

.navbar-nav .nav-link {
	color: var(--bs-body-color);
	font-weight: 600;
	font-size: var(--h6);
	font-family: var(--font2);
	opacity: 1;

	transition: color 200ms, opacity 200ms;

	&:hover,
	&:focus,
	&.active,
	&.open {
		color: var(--link-hover);
	}
}

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

.dropdown-item {
	font-size: clamp(1rem, 1.5vw, 1.125rem);
	color: var(--bs-body-color);
	font-family: var(--font2);
	padding: 0.25rem 1.25rem;
	border-radius: 3rem;
	transition: color 200ms, background-color 200ms;
}

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

.breadcrumb-item+.breadcrumb-item::before {
	color: RGBA(var(--bs-dark-rgb), var(--bs-link-opacity, 1)) !important;
}

.dropdown-toggle::after {
	width: 0.4rem;
	height: 0.4rem;
	border: 0;
	border-right: 2px solid var(--primary-color);
	border-bottom: 2px solid var(--primary-color);
	transform: rotate(45deg);
}

/*  MARK: header  */

.home header {
	height: 750px;
	background-color: var(--bs-light);
	background-image: url(../img/header-bg.svg);
	background-attachment: fixed;

	&::after {
		content: '';
		display: block;
		position: absolute;
		bottom: -1px;
		left: 0;
		z-index: 10;
		width: 100%;
		height: 188px;
		background-image: url(../img/header-bottom.svg);
		background-repeat: no-repeat;
		background-position: center bottom;
	}

	h1 {
		margin-top: 100px;
	}
}

.sub header {
	position: relative;

	&::after {
		content: '';
		background: white;
		position: absolute;
		bottom: 0;
		width: 100%;
		height: var(--xxl);
		left: 0;
		z-index: -1;
	}
}

.baloons {
	margin-right: -70px;
}

.dragon {
	margin-left: -50px;
}

/*  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: 400;
	--bs-btn-line-height: 1.25;
	--bs-btn-border-radius: .25rem;
	font-family: var(--font2);
}

.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: transparent;
	--bs-btn-hover-color: var(--primary-color-light);
	--bs-btn-hover-border-color: var(--primary-color-light);
	--bs-btn-active-bg: transparent;
	--bs-btn-active-color: var(--primary-color-dark);
	--bs-btn-active-border-color: var(--primary-color-dark);
}

th,
td {
	color: var(--bs-body-color) !important;
	border-radius: 0 !important;
}

#grupy .col:nth-child(even) {
	margin-top: 40px;
}

#grupy a .icon {
	width: 100%;
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	isolation: isolate;

	&::after {
		content: '';
		display: block;
		border-radius: 50%;
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		z-index: -1;
		width: 80%;
		aspect-ratio: 1;
		background-color: hsl(75 68% 44% / .24);
		transition: width 600ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
	}
}

#grupy a img {
	width: 100%;
	object-fit: cover;
	transition: transform 800ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#grupy a:hover,
#grupy a:focus {
	color: var(--primary-color-light);

	.icon::after {
		width: 70%;
	}

	img {
		transform: scale(1.1);
	}
}

#grupy a {
	text-decoration: none;
	color: var(--primary-color);
	transition: color 200ms;
}


.card[x-data] {
	cursor: pointer;
	border: 0;

	&:hover {

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

		.card-title-link {
			color: var(--link-hover);
			text-decoration-color: var(--link-hover);
		}
	}
}

.card-img,
.card-img-top {
	position: relative;
	background-image: url(../img/after1.svg);
	background-size: contain;
	background-repeat: no-repeat;
}

.mask {
	mask-image: url(../img/clip1.svg);
	mask-repeat: no-repeat;
	mask-size: 100%;

	img {
		width: 100%;
		display: block;
		aspect-ratio: 600/400;

		transition: transform 600ms cubic-bezier(0.165, 0.84, 0.44, 1);
	}
}

#news .card:nth-child(even) .card-img,
#news .col:nth-child(even) .card-img-top {
	.mask {
		mask-image: url(../img/clip2.svg);
	}
}

#news .card:nth-child(4n + 1) .card-img,
#news .col:nth-child(4n + 1) .card-img-top {
	background-image: url(../img/after1.svg);
}

#news .card:nth-child(4n + 2) .card-img,
#news .col:nth-child(4n + 2) .card-img-top {
	background-image: url(../img/after2.svg);
}

#news .card:nth-child(4n + 3) .card-img,
#news .col:nth-child(4n + 3) .card-img-top {
	background-image: url(../img/after3.svg);
}

#news .card:nth-child(4n + 4) .card-img,
#news .col:nth-child(4n + 4) .card-img-top {
	background-image: url(../img/after4.svg);
}

#news .card-text {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: 1rem;
}

#news .card-text p {
	margin-bottom: 0;
}

.card-title-link {
	color: var(--primary-color);
	text-decoration-color: transparent;
	transition: color 200ms, text-decoration-color 200ms;

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

.text-muted {
	color: var(--primary-color) !important;
	opacity: .8;
}

aside .p-5 {
	background-image: url(../img/aside-bg.svg);
	background-repeat: no-repeat;
	background-size: 100% 100%;

	ul {
		padding-left: 0;
		margin-bottom: 0;

		li {
			list-style: none;
			line-height: 1.3;
			padding-left: 34px;
			position: relative;

			&::before {
				content: '';
				display: block;
				width: 24px;
				height: 24px;
				background-image: url(../img/check1.svg);
				background-repeat: no-repeat;
				background-size: contain;

				position: absolute;
				top: -2px;
				left: 0;
			}
		}

		li:nth-child(4n + 2)::before {
			background-image: url(../img/check2.svg);
		}

		li:nth-child(4n + 3)::before {
			background-image: url(../img/check3.svg);
		}

		li:nth-child(4n + 4)::before {
			background-image: url(../img/check4.svg);
		}

		li+li {
			margin-top: 0.75rem;
		}
	}
}

aside .list-group-item {
	padding: 0;

	a {
		text-decoration: none;
		color: var(--bs-dark);
		font-size: var(--h6);
		display: block;
		padding: 0.5rem 0;
		transition: color 300ms, transform 300ms;

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

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

/* rozklad dnia */

.rozklad-dnia table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 5px;
	border: none;
	font-size: 1.25rem;
}

th,
td {
	padding: 2rem;
	border: none;
	text-align: left;
	border-radius: 1rem;
	overflow: hidden;
}

th {
	background-color: #fff;
	font-weight: bold;
	text-transform: uppercase;
	text-align: center;
}

/* Pierwsza kolumna każdego wiersza */
.rozklad-dnia tbody tr td:first-child {
	font-weight: bold;
	text-align: center;
	white-space: nowrap;
}

tbody tr:nth-child(1) {
	background-color: #fca5a5;
}

tbody tr:nth-child(2) {
	background-color: #fdba74;
}

tbody tr:nth-child(3) {
	background-color: #fde047;
}

tbody tr:nth-child(4) {
	background-color: #86efac;
}

tbody tr:nth-child(5) {
	background-color: #7dd3fc;
}

tbody tr:nth-child(6) {
	background-color: #c4b5fd;
}

tbody tr:nth-child(7) {
	background-color: #d8b4fe;
}

tbody tr:nth-child(8) {
	background-color: #fbcfe8;
}

tbody tr:nth-child(9) {
	background-color: #fda4af;
}

tbody tr:nth-child(10) {
	background-color: #fdba74;
}


@media (max-width: 767.98px) {
	.rozklad-dnia thead {
		display: none;
	}

	.rozklad-dnia table,
	.rozklad-dnia tbody,
	.rozklad-dnia tr,
	.rozklad-dnia td {
		display: block;
		width: 100%;
	}

	.rozklad-dnia tr {
		margin-bottom: 1rem;
		border-radius: 1rem;
		padding: 2rem;
	}

	.rozklad-dnia td {
		text-align: left;
		background: transparent !important;
		border-radius: 0;
		padding: 0;
	}

	/* Pierwsza kolumna na urządzeniach mobilnych */
	.rozklad-dnia tbody tr td:first-child {
		text-align: left;
		margin-bottom: 1rem;
	}
}


/*  MARK: stopka */

footer {
	background-image: url(../img/footer.webp);
	background-repeat: no-repeat;
	background-position: center top;

	height: 510px;
}

.copy {
	font-family: var(--font2);
	font-weight: 600;
	color: white;
}

footer a {
	text-decoration: none;
	color: white;
}

footer a:hover,
footer a:focus {
	color: white;
	text-decoration: underline;
}

footer .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  */

.logout.btn-danger {
	position: fixed;
	right: 0;
	top: 0;
	line-height: 1;
	padding: .75rem 1.15rem !important;
	border-radius: 0 0 0 .75rem;
	z-index: 99999;
}

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

.sub:not(:has(.has-lead)) {
	padding-top: 188px;
}

.has-lead {
	height: 650px;
	background-color: var(--bs-light);
	background-image: url(../img/header-bg.svg);
	background-attachment: fixed;

	&::after {
		content: '';
		display: block;
		position: absolute;
		bottom: -1px;
		left: 0;
		z-index: 10;
		width: 100%;
		height: 188px;
		background-image: url(../img/header-bottom.svg);
		background-repeat: no-repeat;
		background-position: center bottom;
	}
}

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

.gallery.masonry {
	column-count: 4;
	column-gap: 10px;

	div {
		margin-bottom: 10px;
	}
}

@media (width < 1300px) {
	.gallery.masonry {
		column-count: 3;
	}
}

@media (width < 1000px) {
	.gallery.masonry {
		column-count: 2;
	}
}

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

.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: var(--primary-color);
	border: 1px solid hsl(0 0% 90%);
	border-radius: .25rem;
	transition: color 200ms, border-color 200ms;

	.h5 {
		font-family: var(--font);
		font-weight: 400;
		font-size: 1rem !important;
		color: var(--primary-color);
	}
}

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

.form-control,
.form-select {
	border-radius: .25rem;
	padding: 0.75rem 1rem;
	transition: border-color 200ms;

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

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

.error-msg {
	color: red;
}

/* MARK: paginator */

.d-flex:has(.pagination) {
	justify-content: flex-start !important;
}

.pagination {
	display: flex;
	gap: .25rem;
}

.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: 64px;
	height: 64px;
	margin: 0;
	border-radius: .25rem;
	padding: 0;
	text-align: center;
	font-size: 1.125rem;
	color: var(--bs-body-color);
	border: 1px solid var(--bs-border-color);
	transition: all .2s;
	text-decoration: none;
}

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

.pagination input::placeholder {
	color: var(--bs-body-color);
	font-size: 16px;
	font-weight: 500
}

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

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

.aspect-ratio-1 {
	aspect-ratio: 1;
}

/*  MARK: RWD  */

@media (width < 1500px) {
	.navbar-brand-image {
		height: 100px;
	}

	.godlo-img,
	.koscian-img {
		height: 60px;
	}
}

@media (width < 1400px) {
	.navbar-brand-image {
		height: 88px;
	}

	.godlo-img,
	.koscian-img {
		height: 50px;
	}

	.navbar-nav .nav-link {
		font-size: .875rem;
	}

	.dropdown-item {
		font-size: clamp(.875rem, 1.5vw, 1rem);
	}

	.btn {
		--bs-btn-padding-x: 1.5rem;
		--bs-btn-padding-y: 1.25rem;
	}
}

@media (width < 1200px) {

	header {
		height: 1200px;
	}

}

@media (width < 992px) {
	header .col-lg-6 {
		text-align: center;

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

	header .container {
		height: auto !important;
		padding-top: var(--xxl);
	}

	header video.position-absolute {
		position: relative !important;
		height: auto !important;
		object-fit: cover !important;
		object-position: right -60px bottom 200px;
		aspect-ratio: 1;
	}

	.home header {
		height: 1050px;
		background-color: hsl(200 76.74% 91.57%);
		background-image: none;
	}

	footer {
		text-align: center;
	}

	.sub:not(:has(.has-lead)) {
		padding-top: 166px;
	}

	.sub header .container {
		padding-top: 0;
	}

	.sub header .col.py-xxl {
		padding-top: 0;
		padding-bottom: 2rem;
	}

	.sub header .lead.pb-xxl {
		padding-bottom: 0;
	}

	.sub header .col-xl-5 {
		display: flex;
		justify-content: center;
	}

	.sub header .image-mask {
		height: auto;
		max-width: 320px;
	}

	header {
		height: auto;
		padding-bottom: 180px;
	}
}

@media (width < 768px) {
	header video.position-absolute {
		object-position: right -40px bottom 150px;
	}

	#grupy .col:nth-child(even) {
		margin-top: var(--bs-gutter-y);
	}

	main {
		overflow: hidden;
	}
}


@media (width < 576px) {
	:root {
		--xxl: 3.5rem;
		--xl: 2rem;
	}

	header video.position-absolute {
		object-position: right -40px bottom 100px;
	}

	.home header {
		height: 980px;
	}

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

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

	header .d-flex {
		flex-direction: column;
	}

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


@media (width < 400px) {
	.navbar-brand-image {
		height: 60px;
	}

	header video.position-absolute {
		object-position: right -20px bottom 60px;
	}

	.home header {
		height: 930px;
	}

	.bg-success-subtle a {
		word-break: break-all;
	}
}