.sub header .swiper-slide img {
	height: 350px;
	object-fit: cover;
	object-position: center;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 100px;
}

h2.h4 a {
	text-decoration: none;
	color: var(--titleColor);
}

main .container {
	padding: var(--sectionPadding) 0;
}

.sub h1 {
	margin-top: 0;
	margin-bottom: 30px;
}

aside .nav {
	margin: 0;
	padding: 0;
	width: 100%;
}

aside .nav li {
	margin: 0;
	padding: 0;
	list-style: none;
}

aside .nav a {
	display: block;
	box-sizing: border-box;
	width: 100%;
	line-height: 1.3;
	padding: 10px 25px;
	color: var(--titleColor);
	border-left: 2px solid #E0E2E6;
	transition: all .2s;
}

aside .nav a:hover,
aside .nav a.active,
aside .nav .active > a {
	border-left-color: var(--primary);
}

aside .nav a:hover {
	padding: 10px 20px 10px 30px;
}

aside .nav .active > a,
aside .nav a.active {
	color: var(--primary);
}



aside .card {
	margin-bottom: 30px;
}

aside .card-image {
	width: 100px;
	margin-right: 20px;
}

aside .card-image::after {display: none;}

aside .card-title {
	margin: 0 0 5px;
	line-height: 1.1;
}


.gallery a {
	overflow: hidden;
	border-radius: var(--borderRadius);
}

.gallery img {
	transition: all var(--fastSpeed) var(--easeOutBack);
}

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

.downloads a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
	box-sizing: border-box;
	padding: 15px 30px;
	text-decoration: none;
	color: var(--textColor);
	transition: all var(--fastSpeed);
	border-radius: var(--borderRadius);
	box-shadow: 0 0 20px hsla(0, 0%, 0%, .1);
}

.downloads a:hover {
	color: var(--primary);
	transform: translateY(-2px);
	box-shadow: 0 5px 15px -5px hsla(0, 0%, 0%, .2);
}

.downloads a img:not(.download-icon) {
	height: 52px;
}

.downloads .text {
	flex-grow: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-left: 30px;
	line-height: 1.2;
}

form {
	width: 100%;
}

fieldset {
	border: 0;
	padding: 0;
	margin: 0;
}

label {
	margin-top: 10px;
	margin-bottom: 5px;
	font-size: 1.125rem;
	color: black;
}

label p {
	margin: 0;
}

input,select,textarea {
	box-sizing: border-box;
	padding: .8rem 1rem;
	border: 2px solid var(--borderColor);
	color: black;
}

textarea {
	height: 15.6rem;
}

input[type="checkbox"] {
	position: relative;
	top: 5px;
}

.ok {
	border-color: #e2e2e2;
}

.error {
	border-color: rgb(184, 0, 0);
}

.error-msg {
	color: rgb(176, 0, 0);
	font-size: 1rem;
	margin-top: 5px;
}

.star {
	color: red;
}

#alert {
	display: block;
	box-sizing: border-box;
	width: 100%;
	padding: 0.5rem 1rem;
	color: white;
	font-weight: bold;
}

#alert.success {
	background-color: rgb(0, 133, 22);
}


#alert.danger {
	background-color: rgb(165, 0, 0);
}

.sub #news {
	padding: 0;
}

.sub aside h4 {
	margin-top: 0;
	margin-bottom: 30px;
}

.sub aside .card-body {
	text-align: left;
}

#main ol li::marker { color: var(--textColor) }

#main strong {
	color: var(--titleColor);
}

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

table.small th,
table.small td {
	padding: 0.5rem 1rem;
}

#form .container {
	padding: 0 0 var(--sectionPadding);
}

.kontaktowa #main .container {
	padding-bottom: 0;
}


ul.pagination {
	padding-left: 0;
}

ul.pagination a,
ul.pagination input {
	margin-left: 0;
	margin-right: 10px;
}

.pagination a, .pagination input {
	color: #676767;
	border: 1px solid #676767;
}

p {
	text-align: left !important;
}

th {text-align: left;}

label li + li {margin-top: 1em;}









@media screen and (max-width: 1023px) {
	.sub aside {
		order:999
	}

	.sub header .swiper-slide img {
		width: 100%;
		height: auto;
		max-height: 300px;
	}

	form .w-full {padding: 0 !important;}

	.sub h1 {font-size: var(--h2); line-height: 1.1;}
	.sub h2 {font-size: var(--h3);}
	.sub h3 {font-size: var(--h4);}
	.sub h4 {font-size: var(--h5);}

	#userwayAccessibilityIcon {
		left: calc(-10px + 100vw) !important;
		top: calc(100vh - 80px) !important;
	}
}

@media screen and (max-width: 599px) {
	.thumbnail.right {
		width: 100%;
		max-width: 666%;
		float: none;
		margin: 0 0 30px 0;
	}

	th, td {
		padding: 4px 5px;
	}

	table {
		max-width: 100%;
	}

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

	table.small th, table.small td {
		padding: 0.2rem;
		line-height: 1.3;
	}

	label {
		font-size: 1rem;
	}

	input, select, textarea {
		width: 100%;
	}

	label p, label li {
		font-size: 0.875rem;
		line-height: 1.3;
	}
}


@media screen and (max-width: 359px) {
	.sub h1 {font-size: var(--h4);}
	.sub h2 {font-size: var(--h5);}
	.sub h3 {font-size: var(--h6);}
	.sub h4 {font-size: var(--h6);}
}