/* ------------------ sekcje img ------------------ */
.ctn-block.typ-img {
	min-height: 100px;
}

.ctn-block.typ-img > img {
	min-height: 100px;
	object-fit: cover;
}

/* ------------------ sekcje customowe,  template sekcja-body ------------------ */
.sekcja-body .sec-title {
	padding: 1rem 1.5rem 0;
	text-transform: uppercase;
	text-decoration: none;
	font-size: 1.725rem;
	margin: 1rem 0 0;
	color: var(--black);
	font-weight: 700;
}

.sekcja-body a:hover .sec-title  {
	text-decoration: underline;
}

.sekcja-body .sec-block-title {
	color: var(--black);
}

.sekcja-body {
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	padding: 0;
}

.sekcja-body .ctn-block {
	width: 50%;
	margin-top: -15px;
	flex-grow: 333;
}

.sekcja-body .ctn-block img {
	height: 100%;
	width: 100%;
}

.sekcja-body .typ-winietka {
	padding: 0 5%;
	background-color: var(--bkg3);
	padding-top: 1.5rem;
	padding-bottom: 5rem;
}

/* .typ-baner (baner na stronie glownej) jest bezposrednim dzieckiem flex-a .sekcja-body.
   Flex-item bez okreslonej szerokosci ma domyslnie min-width:auto, co w polaczeniu
   z wewnetrznym slick.js (banertop/banners) powodowalo blad przegladarki: rozmiar
   liczony w petli az do absurdalnej wartosci (np. width: 1.67772e+07px).
   width:100% + min-width:0 wymusza normalna szerokosc 100% kontenera i naprawia bug. */
.sekcja-body .typ-baner {
	width: 100%;
	min-width: 0;
}

.sekcja-body .link {
	width: 50%;
	overflow: hidden;
	margin-left: 55%;
	margin-top: -5rem;
}

.sekcja-body > a {
	text-decoration: none;
	white-space: nowrap;
	margin-left: 1rem;
}

.sekcja-body a.more {
	text-decoration: none;
}

.sekcja-body .template {
	width: 100%;
	display: flex;
	align-items: stretch;
	padding: 0 1rem 1rem;
	justify-content: space-between;
}

.sekcja-body .boks {
	display: inline-block;
	font-size: initial;
	width: 50%;
	margin: 0.5rem 0;
}

.sekcja-body .picture img {
	width: 100%;
	object-fit: cover;
	height: 18rem;
}

.sekcja-body .typ-doc-site .block {
	padding: 1.5rem;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sekcja-body .typ-doc-site .boks .picture {
}

.sekcja-body .typ-doc-site .model {
	color: var(--black);
	text-transform: capitalize;
	font-size: 1.5rem;
}

.sekcja-body .typ-doc-site .short {
	color: var(--text3);
	line-height: 1rem;
	font-size: 14px;
}

.cust_sekcja-boczna {
	width: 100%;
	float: left;
	max-width: 300px;
}

.cust_sekcja-wspolpraca {
	min-width: 500px;
}

.cust_sekcja-wspolpraca .d-flex {
	justify-content: space-between;
}

.cust_sekcja-wspolpraca .item {
	width: 32%;
}

#sekcja-50 {
	padding-top: 2rem;
}

.item-picture {
	display: flex;
	padding: 1rem;
	height: 100%;
}

.item-picture img {
	width: 100%;
	object-fit: contain;
	max-height: 100%;
	border-radius: 1rem 1rem 0 0;
}

.boks {
	display: inline-block;
	vertical-align: top;
	width: 33%;
	margin: 0.5rem;
	background-color: var(--bkg1);
}

.boks .i-text {
	padding: 0.5rem 0.75rem;
	margin-top: 2px;
	display: flex;
	align-items: center;
}

.boks .i-text a {
	font-weight: 700;
	color: var(--text3);
	text-decoration: none;
	cursor: pointer;
	line-height: 1.2;
	font-size: 0.925rem;
}

.boks .i-text a:hover {
	color: var(--link1);
}

/* .boks .picture {
	height: 14rem;
	overflow: hidden;
}

.boks .picture img {
	width: 100%;
	object-fit: contain;
	height: 14rem;
} */

.boks .line {
	width: 100%;
	height: 1px;
	background-color: var(--color6);
	margin-bottom: 1rem;
}

.boks .prepos a {
	float: right;
	text-transform: uppercase;
	font-weight: bold;
	color: var(--text4);
}

.boks .link {
	text-align: right;
}

.boks .link a {
	padding: 0.75rem 3.5rem;
}

.boks .i-bot {
	position: absolute;
	bottom: -50px;
	right: 20px;
}

.menu-mid {
	width: 100%;
}

#sekcja-61 {
	clear: both;
}

#sekcja-61 .sekcja-body {
	width: 100%;
	float: left;
	max-width: 300px;
	padding: 1rem;
	background: var(--bkg1);
	margin: 1rem 0;
}

#sekcja-61 .sekcja-body .link {
	width: 100%;
	margin: 0;
}

#sekcja-61 h3 {
	width: 100%;
	line-height: 4rem;
}

#sekcja-63 {
	clear: both;
}

#sekcja-63 .sekcja-body {
	width: 100%;
	float: left;
	max-width: 300px;
	padding: 1rem;
	background: var(--bkg1);
	margin: 1rem 0;
}

#sekcja-63 .sekcja-body .link {
	width: 100%;
	margin: 0;
}

#sekcja-63 h3 {
	width: 100%;
	line-height: 4rem;
}

/* news */
.cust_sekcja-aktualnosci {
	background: #fff;
	width: calc(100% - 330px);
}

.cust_sekcja-szkolne-sprawy {
	margin-top: 1.5rem;
	background: #fff;
	width: calc(100% - 330px);
}

/* public orders */
.cust_sekcja-zamowienia {
	margin-top: 1.5rem;
	background: var(--bkg1);
	width: calc(100% - 330px);
}

.cust_sekcja-zamowienia .typ-doc-site {
	display: flex;
	flex-wrap: wrap;
}

.sekcja-body a.more {
	font-size: 1.225rem;
	font-weight: 700;
	color: var(--text1);
}

.sekcja-body a.more:hover {
	color: var(--link1);
}

.cust_sekcja-wspolpraca-zagranica {
	margin-top: 1rem;
	background: #fff;
	width: calc(100% - 330px);
}

.cust_sekcja-wspolpraca-zagranica .typ-doc-site {
	display: flex;
	flex-wrap: wrap;
}

.cust_sekcja-nagrody h2 {
	font-size: 1.525rem;
	font-weight: 700;
	padding-bottom: 1rem;
	display: block;
	width: 100%;
}

.cust_sekcja-nagrody .typ-doc-link {
	display: block;
}

.cust_sekcja-nagrody .typ-img {
	padding-bottom: 1rem;
}

.cust_sekcja-nagrody .typ-doc-link a {
	color: var(--text1);
	text-decoration: none;
	font-weight: 700;
	font-size: 0.925rem;
	text-transform: uppercase;
	padding: 0.25rem 0.5rem;
	display: block;
}

.cust_sekcja-nagrody .typ-doc-link a:hover {
	background: var(--bkg6);
	color: var(--white);
}

.cust_sekcja-zajecia h2 {
	font-size: 1.525rem;
	font-weight: 700;
	display: block;
	width: 100%;
	padding-bottom: 1rem;
}

.menu-mid {
	border: 0;
	background-color: var(--white);
	font-size: 1rem;
	padding: 1.5rem;
	text-transform: uppercase;
	width: 100%;
	max-width: 300px;
	line-height: 1.425rem;
}

.menu-mid ul {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
}

.menu-mid ul li a {
	text-decoration: none;
	color: var(--text1);
}

.menu-mid ul li.level1 > a {
	padding: 0.5rem 0.75rem;
	background: var(--bkg6);
	color: var(--white);
	font-weight: 700;
	font-size: 1.225rem;
	display: block;
}

.menu-mid ul li.level2:first-of-type {
	padding-top: 0.725rem;
}

.menu-mid ul li.level2 {
	padding: 0.225rem;
}

.menu-mid ul li.level2 a {
	/* line-height: 1.5rem;  */
	font-weight: 700;
	font-size: 0.825rem;
	white-space: pre-line;
	padding: 0;
}

.menu-mid ul li.level2 a:hover {
	color: var(--bkg6);
}

.cust_sliderowa {
	padding: 0 0 2rem 0;
}

/* wiadomosci */
#sekcja-7 {
	margin-top: 4rem;
}

#first-news a {
	display: flex;
	color: var(--text1);
	text-decoration: none;
	align-items: stretch;
	transition: all 350ms;
}

#first-news time {
	font-size: 0.825rem;
	color: var(--text3);
}

#first-news .left {
	width: 50%;
	padding-right: 2rem;
	display: flex;
	justify-content: center;
	flex-direction: column;
}

#first-news .left .title {
	margin-bottom: 1rem;
}

#first-news .left .title time {
	color: var(--text3);
}

#first-news .left .text {
	font-size: 0.875rem;
}

#first-news a .right {
	width: 50%;
	box-shadow: 0 0.225rem 1rem rgba(0, 0, 0, 0.2);
	border-radius: 5rem 0 0 0;
	overflow: hidden;
	height: 400px;
}

#first-news a .image {
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	width: 100%;
	height: 100%;
	transition: all 350ms;
}

#first-news a:hover .left .h2 {
	text-decoration: underline;
}

/* @media (max-width: 768px) {
  #first-news a {
	flex-direction: column;
  }
  #first-news a > .left,
  #first-news a > .right {
	width: 100%;
  }
  #first-news .left {
	order: 2;
	margin-top: 1rem;
  }
} */

#caruselle-news {
	margin: 6rem 0 0;
}

#caruselle-news .swiper-slide {
	height: auto;
}

/* ------------------ wiadomosci karuzela ------------------ */

.cards {
	display: flex;
	flex-wrap: wrap;
	/* margin: 0 -0.5rem; */
}

.cards article {
	width: 33%;
	margin: 0.75rem 0;
}

.cards .card {
	margin: 0.5rem;
	justify-content: space-between;
	height: 100%;
}

.cards .card > * {
	margin: 1rem;
}

.cards .card .card-title {
	font-weight: bold !important;
	/* padding: 1rem 0 0; */
	font-size: 1.125rem;
	margin: 0 0 1rem;
}

.cards .card .card-title.down {
	padding: 1rem 0 0;
	margin: 0;
}

.cards .card .card-title > small {
	display: block;
	font-size: 0.925rem;
	font-weight: normal;
	padding-top: 0.5rem;
}

.cards .card .card-picture {
	overflow: hidden;
}

.cards .card > a {
	color: var(--text1);
	overflow: hidden;
	text-decoration: none;
}

.cards .card > a * {
	transition: all 0.2s;
}

.cards .card > a:hover .card-img-top,
.cards .card > a:focus .card-img-top {
	/* transform: scale(1.15); */
}

.cards .card > a:hover .card-title {
	color: var(--link1);
}

.cards .card .card-img-top {
	height: 200px;
	object-fit: cover;
}

.cards .card .card-body {
	padding: 0;
	position: relative;
	z-index: 1;
}

.cards .card .card-text {
	font-size: 0.925rem;
	color: var(--text3);
}

.cards .card time {
	display: block;
	text-transform: uppercase;
	font-size: 0.725rem;
	padding: 0.5rem 0 0;
	background: var(--white);
}

.cards .card .card-footer {
	background: none;
}

@media (max-width: 1200px) {
	.cards article {
		width: 50%;
	}
}

@media (max-width: 992px) {
	.cards article {
		width: 100%;
	}
}

@media (max-width: 576px) {
	.cards article {
		width: 100%;
	}
}

/* bullets */
.swiper-pagination-bullet {
	width: 50px !important;
	height: 5px !important;
	border-radius: 2px !important;
	margin: 0 2px;
}

.swiper-pagination {
	width: 100%;
	position: relative !important;
}

.swiper-pagination-bullet-active {
	background: var(--color5) !important;
}

/* menu_flex.tpl */
.menu-flex .ul-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: stretch;
}

.menu-flex .ul-nav li[data-level="1"] {
	align-items: stretch;
	flex-grow: 1;
}

.menu-flex .ul-nav li[data-level="1"]:not(:last-of-type) > ul {
	border-right: 1px solid var(--border1);
	height: 100%;
}

.menu-flex .ul-second {
	margin: 0 1rem;
}

.menu-flex .ul-second li {
	padding: 0.625rem 0.5rem;
	line-height: 1rem;
}

.menu-flex .ul-second li a {
	text-decoration: none;
	color: var(--text4);
}

.menu-flex .ul-second li a:hover {
	text-decoration: none;
	color: var(--text4);
}

/* 
@media (max-width: 768px) {
  .menu-flex .ul-nav {
	flex-direction: column;
  }
  .menu-flex .ul-nav li[data-level="1"]:not(:last-of-type) > ul { 
	border-right: none;
	border-bottom: 1px solid var(--border1); 
	height: 100%; 
	padding: 0 0 1rem 0;
	margin-bottom: 1rem;
  }
}

 */

@media (max-width: 992px) {
	.cust_sekcja-boczna {
		width: 100%;
		float: none;
		clear: both;
		display: block;
		max-width: 100%;
		margin-bottom: 1.5rem;
	}

	.menu-mid {
		max-width: 100%;
	}

	.cust_sekcja-aktualnosci,
	.sekcja-body {
		width: 100%;
		/* margin-top: 1.5rem; */
	}
}

@media (max-width: 768px) {
	.sekcja-body.cust_sekcja-aktualnosci .template,
	.sekcja-body.cust_sekcja-szkolne-sprawy .template {
		flex-direction: column;
	}

	.boks {
		display: inline-block;
		vertical-align: top;
		width: 100%;
	}
}
