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

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

aside, main {
	padding: calc(var(--sectionPadding) / 2) 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;
	border-left: 2px solid var(--borderColor);
	transition: all .2s;
	text-decoration: none;
	color: var(--textColor);
}

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


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

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

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

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

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

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


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

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



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



.gallery a {
	overflow: hidden;
	border-radius: 12px;
}

.gallery img {
	display: block;
	width: 100%;
	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;
	border-radius: 12px;
	text-decoration: none;
	color: var(--textColor);
	transition: all var(--fastSpeed);
	box-shadow: 0 0 30px hsl(0, 0%, 0%, .1);
}

.downloads a:hover {
	color: var(--primary);
	transform: translateY(-2px);
	box-shadow: 0 15px 20px -5px hsl(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;
}

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

.downloads .text strong {
	line-height: 1.1;
	font-weight: normal;
}

form {
	width: 100%;
}

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

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

label p {
	margin: 0;
}

input,select,textarea {
	width: 100%;
	box-sizing: border-box;
	padding: .8rem 1rem;
	border-radius: 6px;
	border: 2px solid var(--borderColor);
}

[type="checkbox"],
[type="radio"] {
	width: auto;
	flex-shrink: 0;
}

textarea {
	height: 16.2rem;
}

.ok {
	border-color: var(--borderColor);
}

.error {
	border-color: red;
}

.error-msg {
	color: red;
	font-size: 1rem;
	margin-top: 5px;
}

.star {
	color: red;
	font-family: sans-serif;
}

#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 footer {
	border-top: 1px solid var(--bgLight);
} */

.sub #news .card:first-child {
	grid-column: auto;
}

.sub #news .card:first-child .caption {
	justify-content: flex-end;
}

.sub #news .card:first-child .card-title {
	line-height: 1.1;
    font-size: var(--h5);
    margin: 10px 0 0;
	font-weight: normal;
}

.sub #news .card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.sub #news .card p {display: none;}

main+aside .card {
	display: block;
	cursor: pointer;
}

main+aside .card-image {
	overflow: hidden;
	width: 100px;
	border-radius: 12px;
}

main+aside .card-image img {
	transition: all var(--normalSpeed) var(--ease);
}

main+aside .card-image:hover img {
	transform: scale(1.1);
}

main+aside .card-title {margin-top: 0;}

aside .card-title--link {
	color: var(--titleColor);
	text-decoration: none;
	font-size: var(--h6);
}

table {
	margin: 60px 0;
	/*box-shadow: 0 0 40px hsl(0deg 0% 0% / 5%);*/
	box-shadow: 0 0 0 12px #f4f4f4;
	-moz-border-radius: 12px;
    -webkit-border-radius: 12px;
    border-radius: 12px;
	overflow: hidden;
}

table td {
	padding: 1.5rem;
	border: none;
	border-bottom: 1px solid #f4f4f4;
	transition: 1s cubic-bezier(0.075, 0.82, 0.165, 1);
}
table h5 {
	margin-top: 0px;
	margin-bottom: 5px;
}

table tr {
	border-bottom: #f4f4f4;
}

table tr:last-of-type td {
	border-bottom: none;
}

table tr:hover td {
	background: #f4f4f4;
}

table p {
	margin-top: 5px;
	font-size: .875rem;
}

aside h4 {
	margin-top: 0px;
}

.thumbnail {
	max-width: 50%;
	height: auto;
	float: right;
	margin-left: 60px;
	margin-bottom: 60px;
}

.hero {
	margin: 30px 0;
	width: 100%;
	height: 400px;
	overflow: hidden;
	border-radius: 12px;
}

.hero img {
	object-fit: cover;
	object-position: center;
	width: 100%;
	height: 100%;
}






@media screen and (max-width: 1000px) {
	aside:not(main+aside) {display: none;}

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


@media screen and (max-width: 590px) {
	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)}

	.download-icon, .size {display: none;}

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

	.downloads a {
		padding: 15px;
	}

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

	.downloads .text strong {
		font-size: .875rem;
	}

}