.sub .navbar {
	position: sticky;
}

.sub {
	background: url(/assets/img/headbg.png) right top no-repeat;
}

.sub::before {
	content: "";
	display: block;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: -1;
	background-color: hsl(0 0% 100% / 0.3);
}

aside,
.sub main {
	padding: calc(var(--sectionPadding) / 2) 0;
}

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

aside h4 {
	font-size: var(--h5);
	margin-top: 0;
}

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;
	text-decoration: none;
	border-left: 2px solid var(--borderColor);
	transition: all 0.2s;
	color: hsl(0 0% 20%);
	word-wrap: break-word;
}

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

aside .nav a:hover {
	padding-left: 30px;
	padding-right: 20px;
}

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

aside .card + .card {
	margin-top: 30px;
}

aside .card a {
	text-decoration: none;
}

.gallery a {
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gallery img {
	display: block;
	/* width: 100%; */
	object-fit: contain;
	object-position: center;
	transition: all var(--normalSpeed) var(--ease);
}

.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);
	box-shadow: 0 0 30px hsl(0, 0%, 0%, 0.1);
	background: white;
}

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

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

.download-icon {
	height: 18px;
	display: block;
	margin-left: 30px;
	border-radius: 0;
	filter: grayscale(1);
}

.downloads .size {
	opacity: 0.6;
	font-size: 0.875rem;
}

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

.downloads strong {
	font-weight: 400;
	line-height: 1.3;
	display: block;
	padding-right: 30px;
}

[type="checkbox"] + label {
	margin-top: 0;
	line-height: 1.3;
	font-size: 0.75rem;
}

[type="checkbox"] + label a {
	color: var(--secondary);
	/* background-color: var(--primary); */
}

#main a {
	background-color: var(--primary);
}

#praca .grid {
	gap: 10px;
}

#praca .card {
	background: var(--bgLight);
	border-radius: var(--borderRadius);
	transition: 1s cubic-bezier(0.075, 0.82, 0.165, 1);
	height: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-direction: row;
	padding: 1.5em;
}

#praca a:hover {
	text-decoration: none;
}

#praca .card .card-body {
	padding-right: 1rem;
	margin-top: 0;
	transition: 1s cubic-bezier(0.075, 0.82, 0.165, 1);
}

#praca .card h6 {
	margin: 0px;
}

#praca .card:hover {
	padding-left: 2em;
}

#praca .card:hover .card-body {
	padding-right: 0.5em;
}

#praca .card .btn-sm {
	display: block;
	text-align: center;
}

#praca .card .link {
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.725rem;
	filter: brightness(0);
	transition: 1s cubic-bezier(0.075, 0.82, 0.165, 1);
}

#praca .card:hover .link {
	filter: brightness(1);
}

aside#praca .card {
	padding: 1em;
	flex-direction: column;
	align-items: flex-start;
}

aside#praca .card {
	margin-bottom: 0px;
}

#main p a.mobile,
#main p a.tel,
#main p a.email {
	background-color: transparent;
	display: flex;
	align-items: center;
}

#main p a.mobile:hover,
#main p a.tel:hover,
#main p a.email:hover {
	color: var(--secondary);
}

p .mobile::before,
p .tel::before,
p .email::before {
	content: "";
	display: block;
	width: 20px;
	height: 20px;
	margin-right: 10px;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
}

p .mobile::before,
p .tel::before {
	background-image: url(/assets/img/phone-dark.svg);
}

p .email::before {
	background-image: url(/assets/img/mail-dark.svg);
}

/*

			M E D I A
			Q U E R I E S

*/

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

	table th,
	table td {
		padding: 0.5em;
		font-size: 0.875rem;
		line-height: 1.3;
	}
}

@media screen and (max-width: 599px) {
	.download-icon,
	.downloads .size {
		display: none;
	}

	.downloads a {
		padding: 15px;
	}

	.downloads .text {
		margin-left: 15px;
	}

	.downloads strong {
		padding-right: 0;
		font-size: 0.875rem;
	}

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

	.lead {
		font-size: 1.125rem;
		line-height: 1.5;
	}

	.bg-light.p-60,
	.bg-light.p-40 {
		padding: 20px;
	}
}

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