@charset "UTF-8";

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

	--primary-color: hsl(215 64% 40%);
	--primary-color-light: hsl(215 64% 50%);
	--primary-color-dark: hsl(235 53% 24%);

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

	--bs-primary: hsl(215 64% 40%);
	--bs-primary-rgb: 37, 91, 167;

	--bs-light: hsl(42 25% 92%);
	--bs-light-rgb: 240, 237, 230;

	--bs-dark: hsl(235 53% 24%);
	--bs-dark-rgb: 29, 34, 94;

	--bs-secondary-color: hsl(0 0% 50%);

	--bs-body-color: hsl(237 38% 34%);
	--bs-border-color: hsl(247 16% 89%);

	--orange: hsl(30 86% 56%);
	--pink: hsl(336 86% 56%);
	--green: hsl(177 100% 34%);

	--h1: clamp(2.075rem, 2.075rem + ((1vw - 0.2rem) * 1.333), 2.9875rem);
	--h2: clamp(1.725rem, 1.725rem + ((1vw - 0.2rem) * 1.333), 2.4875rem);
	--h3: clamp(1.4375rem, 1.4375rem + ((1vw - 0.2rem) * 1.333), 2.075rem);
	--h4: clamp(1.2rem, 1.2rem + ((1vw - 0.2rem) * 1.333), 1.725rem);
	--h5: clamp(1.15rem, 1.15rem + ((1vw - 0.2rem) * 1.333), 1.4375rem);
	--h6: clamp(1rem, 1rem + ((1vw - 0.2rem) * 1.333), 1.2rem);
	--lead: var(--h6);
}

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

body {
	font-family: var(--font);
	line-height: 1.5;
	background-color: white;
	/* padding-top: 196px; */
	padding-top: 230px;
}

.text-muted {
	opacity: 1 !important;
	color: hsl(0 0% 60%) !important;
}



.sub {
	padding-top: 230px;
}

.sub {
	--bs-body-color: var(--bs-dark);
}

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

.orange-bg {
	background-color: var(--orange);
}

.pink-bg {
	background-color: var(--pink);
}

.green-bg {
	background-color: var(--green);
}

.orange-bg,
.pink-bg,
.green-bg {
	color: white;
}

.semibold,
b,
strong {
	font-weight: 600 !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: 600;
	color: var(--bs-dark);
}

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);
	font-weight: 400;
}

.container-fluid {
	padding-inline: clamp(1rem, 1rem + ((1vw - 0.2rem) * 1.333), 5rem);
}

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

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

.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: .25rem;
	margin-bottom: .25rem;
}

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

/*  MARK: navbar  */

.navbar {
	--bs-navbar-padding-x: 0;
	--bs-navbar-padding-y: 0;
	--bs-navbar-active-color: var(--primary-color);
	--bs-navbar-nav-link-padding-x: 1rem;
	transition: box-shadow 200ms, transform 200ms;
	background-color: white;
}

.hidden-top.affix {
	transform: translateY(calc(-100% + 46px));
}

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

.affix.hidden-top .navbar-nav .nav-link {
	padding-top: 15px;
	padding-bottom: 15px;
}

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

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



.navbar-brand-text {
	font-size: clamp(1rem, 1rem + ((1vw - 0.2rem) * 1.333), 1.625rem);
	line-height: 1.2;
	color: var(--bs-dark);
	transition: font-size 200ms;
}

.navbar-icon {
	height: 24px;
}

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

/*
.affix .navbar-brand-text {
	font-size: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 1.333), 1.25rem);
}
	.affix {
	& .navbar-top .container {
		padding-top: 5px;
		padding-bottom: 5px;
	}
}
*/
.navbar-nav .nav-link {
	font-weight: 600;
	font-size: var(--h6);
	color: var(--bs-dark);
	transition: color 200ms;
	padding-top: 30px;
	padding-bottom: 30px;
	line-height: 1;
}

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

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

.navbar .container {
	position: relative;
}

.dropdown-menu {
	border: 0;
	min-width: 300px;
	padding: .5rem;
	border-radius: 4px;
	background-color: hsl(0 0% 100%);
	box-shadow: 0 0 1rem hsl(0 0% 0% / .15);
	opacity: 0;
}

.dropdown-menu.show {
	animation: fadeInDown 400ms ease forwards;
}

@keyframes fadeInDown {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.dropdown-item,
.dropdown-menu .dropdown-toggle {
	padding: .5rem .75rem;
	border-radius: 4px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: .5rem;
	color: var(--bs-dark);
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active,
.dropdown-item.show,
.dropdown-menu .dropdown-toggle:hover,
.dropdown-menu .dropdown-toggle:focus,
.dropdown-menu .dropdown-toggle.active,
.dropdown-menu .dropdown-toggle.show {
	color: var(--primary-color);
	background-color: var(--bs-light);
	border-bottom-color: var(--primary-color);

	&::after {
		opacity: 1;
		/* transform: translateX(0); */
	}
}

.dropdown-menu .dropdown-menu {
	top: 0;
	left: 100%;
}

.dropdown-menu .dropdown-toggle {
	text-decoration: none;

	&::after {
		transition: transform 200ms;
		transform: rotate(-90deg);
	}
}

.navbar-top .container {
	padding-top: 30px;
	padding-bottom: 30px;
	transition: padding 200ms;
}

.navbar-bottom .container {
	border-top: 1px solid var(--bs-border-color);
}

p {
	margin-top: 0;
	margin-bottom: .5rem;
}

.navbar-top {
	& .dropdown-toggle::after {
		display: none;
	}

	& a:not(.btn) {
		color: var(--bs-dark);
		text-decoration: none;
		transition: color 200ms;

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

	& button {
		border: 0;
		padding: 0;
		background-color: transparent;
	}
}

.dropdown-item {
	white-space: normal;
	line-height: 1.2;
}

.navbar-search .form-control {
	width: 25vw;
	padding: 0.875rem;
	font-size: 1.125rem;

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



/*  MARK: header  */

.header-search {
	width: 100%;
	height: 430px;
	background-image: url(../img/search-bg.png);
	background-repeat: no-repeat;
	background-size: cover;
	color: white;

	& h2 {
		color: white;
	}

	& .form-control {
		color: black;
		background-color: transparent;
		border: 0;
		border-bottom: 1px solid hsl(0 0% 0% / .5);
		font-size: var(--h3);
		filter: grayscale(1) invert(1);
		border-radius: 0;

		&::placeholder {
			color: black;
			opacity: 1;
			transition: opacity 200ms;
		}

		&:hover::placeholder {
			opacity: .5;
		}

		&:focus::placeholder {
			opacity: .3;
		}
	}

	& button {
		filter: grayscale(1) invert(1);
		background-color: transparent;
		border: 0;
		padding: 0.5rem 1rem;
		border-bottom: 1px solid hsl(0 0% 0% / .5);

		& img {
			transition: transform 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
		}

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

	& p a {
		color: white;
		text-decoration: underline;
		transition: opacity 200ms;

		&:hover,
		&:focus {
			opacity: 0.8;
		}
	}
}

/*  MARK: main content */

.legimi {
	background-image: url(../img/lp-bg.webp);
	background-size: 60%;
	background-position: 70% 70%;
	background-repeat: no-repeat;
	background-color: #22194d;
}

.legimi h2 {
	color: white;
}

.btn {
	--bs-btn-padding-x: 1.875rem;
	--bs-btn-padding-y: 1rem;
	--bs-btn-font-size: var(--h6);
	--bs-btn-font-weight: 600;
	--bs-btn-line-height: 1.3;
}

.btn-primary {
	color: white !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);

	* {
		color: white !important;
	}
}

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

p:last-child {
	margin-bottom: 0;
}

.card-body {
	padding: clamp(1rem, 1rem + ((1vw - 0.2rem) * 1.333), 40px);
}

.orange-bg,
.pink-bg,
.green-bg {
	& .card-title-link {
		color: white;
		text-decoration: none;
		transition: opacity 200ms;

		&:hover,
		&:focus {
			opacity: 0.8;
			color: white;
		}
	}
}

.card-title-link {
	color: var(--bs-dark);
	text-decoration: none;
	transition: color 200ms;

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

.card {
	border: 0 !important;
}

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

.card-img-top img {
	height: auto;
	aspect-ratio: 16/9;
	object-fit: cover;
	transition: transform 600ms cubic-bezier(0.19, 1, 0.22, 1);
}

.card[x-data]:hover,
.card-img-top:hover img {
	transform: scale(1.05);
}

.tag.badge {
	font-weight: 500;
	font-size: 1rem;
	background-color: white !important;
	color: var(--bs-dark) !important;
	border: 1px solid var(--bs-border-color);
}

.tag.btn {
	border-color: var(--bs-border-color);
	padding: .5rem 1rem;
	font-weight: normal;

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

.btn:has(img) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
}

#news .swiper,
#wydarzenia .swiper {
	padding-bottom: 3.5rem;

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

	& .swiper-wrapper {
		align-items: stretch !important;
	}
}

#news .swiper-pagination,
#wydarzenia .swiper-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.25rem;
}

#news .swiper-pagination-bullet,
#wydarzenia .swiper-pagination-bullet {
	width: 0.75rem;
	height: 0.75rem;
	background-color: hsl(0 0% 0% / .5);
	transition: background-color 200ms, width 200ms, height 200ms;
}

#news .swiper-pagination-bullet-active,
#wydarzenia .swiper-pagination-bullet-active {
	background-color: var(--primary-color);
	width: 1rem;
	height: 1rem;
}

#news .swiper,
#wydarzenia .swiper {
	overflow: visible;
}

#news .container,
#wydarzenia .container {

	&::before {
		content: '';
		display: block;
		width: 150px;
		height: 100%;
		background-image: linear-gradient(to left, hsl(0 0% 100% / 0), white);
		position: absolute;
		top: 0;
		left: 0;
		z-index: 2;
		pointer-events: none;
	}

	&::after {
		content: '';
		display: block;
		width: 150px;
		height: 100%;
		background-image: linear-gradient(to right, hsl(0 0% 100% / 0), white);
		position: absolute;
		top: 0;
		right: 0;
		z-index: 2;
		pointer-events: none;
	}

	& .swiper-button-prev,
	& .swiper-button-next {
		width: 48px;
		height: 48px;
		border-radius: 50%;
		background-image: url(../img/prev.svg);
		padding: 0;
		box-shadow: 0 0 1rem hsl(0 0% 0% / .15);

		transition: transform 200ms;

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

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

	& .swiper-button-next {
		background-image: url(../img/next.svg);
	}

	& .swiper-button-prev:hover {
		transform: translateX(-3px);
	}

	& .swiper-button-next:hover {
		transform: translateX(3px);
	}
}

#news .container {
	&::before {
		background-image: linear-gradient(to left, hsl(0 0% 100% / 0), var(--bs-light));
	}

	&::after {
		background-image: linear-gradient(to right, hsl(0 0% 100% / 0), var(--bs-light));
	}
}

#news .swiper h3 {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

#news .swiper .card-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#news .card[x-data] {
	cursor: pointer;
	transition: transform 600ms cubic-bezier(0.165, 0.84, 0.44, 1);

	&:hover,
	&:focus {
		transform: scale(1.02);
	}
}

.enlarge {
	height: 64px !important;
	width: 64px !important;
	background: #041e5869;
	padding: 16px;
	backdrop-filter: blur(12px);
	border-radius: 50%;
	top: 50%;
}

.biblioteka-images {
	width: 100%;
	aspect-ratio: 1/1;

	& .biblioteka-image-wrapper-1,
	& .biblioteka-image-wrapper-2,
	& .biblioteka-image-wrapper-3 {
		border-radius: .75rem;
		overflow: hidden;
	}
}

.biblioteka-image-wrapper-1 {
	position: relative;
	z-index: 1;
	width: 63.33%;
	height: auto;
	aspect-ratio: 1/1;
}

.biblioteka-image-1,
.biblioteka-image-2,
.biblioteka-image-3 {
	width: 100%;
	height: auto;
	aspect-ratio: 1/1;
}

.biblioteka-image-wrapper-2 {
	position: absolute;
	top: 5%;
	right: 5%;
	z-index: 2;
	width: 26.67%;
	height: auto;
	aspect-ratio: 1/1;
}

.biblioteka-image-wrapper-3 {
	position: absolute;
	bottom: 0;
	right: 0;
	z-index: 3;
	width: 63.33%;
	height: auto;
	aspect-ratio: 1/1;
}

p:has(.btn:only-child) {
	margin-top: 1.5rem;
}

#banery a {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 286/132;

	& img.position-relative {
		width: 100%;
		height: 100%;
		object-fit: cover;
		transition: transform 600ms cubic-bezier(0.165, 0.84, 0.44, 1);
	}

	& span+img {
		transition: transform 300ms;
	}

	&:hover,
	&:focus {
		& img.position-relative {
			transform: scale(1.1);
		}

		& span+img {
			transform: rotate(45deg);
		}
	}

	& .position-absolute {
		padding: 1.5rem;
		background-image: linear-gradient(to right, transparent 60%, hsl(235 53% 24% / .8));

		& > span:first-child {
			flex: 1 1 auto; /* pozwala tekstowi się kurczyć i zawijać w flexie */
			min-width: 0;    /* potrzebne żeby flex-item mógł się zwężać */
		}


		& .h5 {
			color: white;
			margin: 0;
			white-space: normal;
			display: inline;
			line-height: 1.55;
			padding: .1em .25em;
			border-radius: .5rem;
			background-color: hsl(235 53% 24% / .6);
			backdrop-filter: blur(.25rem);
			box-decoration-break: clone;
			-webkit-box-decoration-break: clone;
		}
	}
}

#marki a img {
	width: 100%;
	height: auto;
	aspect-ratio: 3/2;
	object-fit: contain;
}

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

#placowki img {
	transition: transform 300ms;
}

#placowki .bg-white {
	border: 1px solid white;
	transition: border-color 200ms;
}

#placowki .bg-white:hover,
#placowki .bg-white:focus {
	border-color: var(--primary-color);
	& img {
		transform: translateX(3px);
	}
}





/*  MARK: stopka */

footer h2 {
	color: white !important;
	margin-bottom: 1.5rem !important;
}

footer table td {
	background-color: transparent !important;
	color: white !important;
	border-color: hsl(0 0% 100% / .25);
}

footer .accordion-item {
	background-color: transparent !important;
	border: 0 !important;
	color: white !important;
}

footer .accordion-button {
	background-color: transparent !important;
	color: white !important;
	border-radius: 0 !important;
	border-bottom: 1px solid hsl(0 0% 100% / .25);
}

footer .accordion-button::after {
	filter: grayscale(1) brightness(0) invert(1);
}


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

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


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

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

/*  MARK: sub content  */

.sub {
	background-color: white !important;
}

#breadcrumb a {
	color: var(--bs-secondary-color);
	text-decoration: none;
	transition: color 200ms;

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

#breadcrumb .breadcrumb-item.active {
	color: var(--bs-dark);
}

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

aside .list-group-item {
	margin: 0 !important;
	border: 0 !important;
	padding: 0 !important;

	& a {
		display: block;
		padding-top: 0.5rem;
		padding-bottom: 0.5rem;
		padding-inline: 0 !important;
		line-height: 1.3;
		color: var(--bs-dark);
		text-decoration: none;
		transition: color 200ms, transform 200ms;
	}

	& a:hover,
	& a:focus {
		color: var(--bs-dark);
		transform: translateX(3px);
	}

	& ul {
		padding-left: 1em;
		margin: 0;
		border-left: 1px solid var(--bs-border-color);
	}
}

aside .active,
aside li.active>a {
	background-color: transparent !important;
	color: var(--primary-color) !important;
}



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

.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;
	padding: .5rem .75rem !important;
	border: 1px solid hsl(0 0% 90%);
	border-radius: .15rem;
	transition: color 200ms, border-color 200ms;
	background-color: hsl(0 0% 96%) !important;

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

	& img:first-child {
		width: 24px !important;
	}

	& .size {
		color: hsl(0 0% 66%) !important;
	}
}

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

.form-control,
.form-check-input {
	border-radius: .25rem;
	background-color: var(--bs-light);
	border-color: var(--bs-light);
	color: var(--bs-dark);
	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-check-input+label {
	margin: 5px 0 0 15px;
}

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

textarea {
	min-height: 12em !important;
}

.error-msg {
	color: red;
}

aside .nav-link {
	padding-left: 0;
	padding-right: 0;
	color: var(--bs-dark);
	transition: color 200ms, transform 200ms;

	&:hover,
	&:focus {
		color: var(--primary-color);
		transform: translateX(3px);
	}

	&.active {
		color: var(--primary-color);
	}
}

aside .nav-item+.nav-item>.nav-link {
	border-top: 1px solid var(--bs-border-color);
}

.news-header-img {
	aspect-ratio: 16/10;
}

#galeria_bez_miniatur img {
	border-radius: .75rem;
}

.news-aside {
	border-left: 1px solid var(--bs-border-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: 64px;
	height: 64px;
	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;
}

article img {
	max-width: 100%;
	height: auto;
	display: block;
}

main {
	overflow: hidden;
}

.card.shadow {
	box-shadow: 0 0.25rem 3.75rem hsl(219 36% 15% / .12) !important;
}

.no-wrap {
	white-space: nowrap;
}

.breadcrumb-wrapper::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	z-index: 2;
	height: 100%;
	width: 3rem;
	background-image: linear-gradient(to right, transparent, var(--bs-light) 80%);
	pointer-events: none;
	touch-action: none;
}

#breadcrumb {
	padding-bottom: 0 !important;
	overflow-x: auto;
}

.breadcrumb {
	padding-bottom: 1rem;
	flex-wrap: nowrap;
	width: max-content;
	font-size: 0.75rem;
	padding-right: 1.5rem;
}

.breadcrumb-item {
	display: inline;
	white-space: nowrap;
}




.book-card {
	position: relative;
}

/* Lewy border dla 1, 4, 8... kolumny */
.book-list .col:nth-child(4n+1) .book-card::before {
	content: "";
	position: absolute;
	top: 10px;
	bottom: 10px;
	left: -1px;
	width: 1px;
	background: #dee1e6;
}

/* Prawy border – jak masz wcześniej */
.book-card::after {
	content: "";
	position: absolute;
	top: 10px;
	bottom: 10px;
	right: -1px;
	width: 1px;
	background: #dee1e6;
}

@media (min-width: 380px) {

	.book-card::after,
	.book-list .col:nth-child(4n+1) .book-card::before {
		top: 20px;
		bottom: 20px;
	}
}


/*  MARK: RWD  */


/* tabela w kontakcie */


/* Mobile: karta zamiast tabeli */
@media (max-width: 767.98px) {
	.contact-table thead {
		display: none;
	}

	.contact-table tbody tr {
		display: block;
		margin-bottom: 1rem;
		border: 1px solid #dee2e6;
		/* obramowanie całej karty */
		border-radius: 0.5rem;
		padding: 1rem;
		background-color: #fff;
	}

	.contact-table.table-hover tbody tr:hover>* {
		--bs-table-bg-state: none;
		/* wyłącz hover */
	}

	.contact-table tbody tr td {
		display: block;
		width: 100%;
		text-align: left;
		padding: 0.25rem 0;
		border: none;
		/* usuń kreski między komórkami */
	}

	.contact-table tbody tr td::before {
		content: attr(data-label);
		font-weight: 600;
		display: block;
		margin-bottom: 0.25rem;
	}
}



@media (max-width: 1199px) {
	.navbar-nav .nav-link {
		color: white;
		padding-top: 10px;
		padding-bottom: 10px;

		&:hover,
		&:focus,
		&.active,
		&.show {
			color: hsl(0 0% 100% / .7);
		}
	}

	.dropdown-toggle::after {
		filter: invert(1)
	}

	.dropdown-menu {
		gap: 10px;
	}

	.katalog-link {
		color: white;
		text-decoration: none;
	}

	.bip-link {
		filter: brightness(0) invert(1);
	}

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

	.navbar-brand-text {
		font-size: clamp(1rem, 1rem + ((1vw - 0.2rem) * 1.333), 1.25rem);
	}

	.navbar-bottom .container {
		border-top: 0;
	}

	body {
		padding-top: 82px;
	}

	.sub {
		padding-top: 106px;
	}

	footer {
		text-align: center;

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

		& td:first-child {
			text-align: left;
		}

		& td:last-child {
			text-align: right;
		}
	}

	.madeby {
		text-align: center;
		justify-content: center;
	}

	footer .text-end {
		text-align: center !important;
	}

	footer .col-lg-3+.col-lg-3 {
		margin-top: 2rem;
	}

	.navbar-search .form-control {
		width: 100%;
		padding: 0.875rem;
		font-size: 1.125rem;
	}

	.offcanvas {
		height: 100dvh !important;
	}

	.hidden-top.affix {
		transform: translateY(0);
	}
}


@media (max-width: 991px) {
	#oferta .card-img-top img {
		height: auto;
		/* aspect-ratio: 16/10; */
		aspect-ratio: 21/9;
		object-position: top;
		object-fit: cover;
	}

	.godz-mobile,
	.katalog-mobile {

		& img {
			filter: brightness(0) invert(1);
		}

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

	.sub article {
		order: 1;
	}

	.sub aside {
		order: 2;

		& .list-group-item {
			padding-top: 0.25rem;
			padding-bottom: 0.25rem;
			border-top: 1px solid var(--bs-border-color) !important;

			&:last-child {
				border-bottom: 1px solid var(--bs-border-color) !important;
			}
		}
	}

	.card-body {
		padding: 2rem !important;
	}
}


@media (max-width: 767px) {
	#banery a {
		aspect-ratio: 21/4;
	}
}

@media (max-width: 575px) {

	:root {
		--xxl: 3rem;
	}

	.container-fluid,
	.container {
		padding-inline: 1.5rem;
	}

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

	.swiper-button-next,
	.swiper-button-prev {
		display: none !important;
	}

	#news .container,
	#wydarzenia .container {

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

	#marki .d-flex {
		flex-wrap: wrap;
	}

	#marki a {
		flex-basis: 33%;
	}

	.header-search {
		height: auto;
		padding-top: 30px;
		padding-bottom: 30px;
	}

}