/* Menu srodek */

.menu-srodek {
  padding: 96px 0px 104px;
  background: url(../grafika/tlo_programy.jpg) center top no-repeat;
  background-attachment: fixed;
  background-size: cover;
}

@media all and (min-width: 320px) and (max-width: 1023px) {
  .menu-srodek {
    display: none;
  }
}

.menu-srodek-tytul {
	width: clamp(320px, 100%, 1232px);
	font-family: var(--tytul-font);
  font-size: var(--tytul-font-size);
  line-height: var(--tytul-line-height);
  font-weight: var(--tytul-font-weight);
	color: #000;
	text-decoration-color: transparent;
	padding: 0px 0px 0px;
	margin: 0px auto 0px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px 0px;
  background: rgba(0, 0, 0, 0.01);
}
.menu-srodek-tytul::after	{
	content: "";
	width: 56px;
	height: 2px;
	margin: 0px 0px 80px;
	background: #eb0000;
}
.menu-srodek-1-poziom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  width: clamp(320px, 100%, 1232px);
  padding: 0px;
  margin: 0px auto 0px;
  position: relative;
  list-style: none;
}

.menu-srodek-1-poziom > li {
 flex: 0 1 calc(100% / 6 - 26.7px);
 max-width: calc(100% / 6 - 26.7px);
 list-style: none;
 position: relative;
 padding: 0px 0px 0px;
 margin: 0px 0px 0px 0px;
 background: #292929;
}
.menu-srodek-1-poziom > li > a, .menu-srodek-1-poziom > li > button {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 0px 0px 0px;
  margin: 0px 0px;
  display: flex;
  flex-direction: column;
  gap: 0px 0px;
  font-family: var(--main-font);
  font-size: 1.4rem;
  line-height: 1.8rem;
  font-weight: 400;
  text-align: center;
  color: #fff;
  text-decoration-color: transparent;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-srodek-1-poziom>li>a[target="_blank"]:after {
  content: url(../grafika/link_zewn.png);
  position: absolute;
  right: 12px;
  top: 12px;
  opacity: 0;
}

.menu-srodek-1-poziom > li > * > span {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px 12px;
  margin: 0px 0px;
  font-family: var(--main-font);
  font-size: 1.4rem;
  line-height: 1.8rem;
  font-weight: 400;
  text-align: center;
  color: #fff;
}

/*Ikony w 1-poziomie*/

.menu-srodek-1-poziom li img {
  width: 100%;
  aspect-ratio: 1.79 / 1.12;
}
.menu-srodek-1-poziom li.menu-ikona a, .menu-srodek-1-poziom li.menu-ikona button {
  position: relative;
  padding: 20px 20px 16px;
  margin: 0px 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px 0px;
  font-family: var(--menu-b-font);
  font-size: 1.6rem;
  line-height: 2rem;
  font-weight: 600;
  text-align: center;
  color: #fff;
  text-decoration-color: transparent;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-srodek-1-poziom li.menu-ikona span.menu-ikona-mini {
 width: clamp(30px, 100%, 58px);
 height: 42px;
 display: flex;
 align-items: center;
 justify-content: center;
 padding: 0px;
 margin: 0px 0px 0px 0px;
}
.menu-srodek-1-poziom li.menu-ikona a img, .menu-srodek-1-poziom li.menu-ikona button img {
  max-width: 100%;
  height: auto;
}

.menu-srodek-1-poziom li.menu-ikona .menu-ikona-tekst {
 width: 100%;
 display: flex;
 align-items: center;
 justify-content: center;
 gap: 0px 0px;
 padding: 0px;
 font-family: var(--menu-b-font);
 font-size: 1.6rem;
 line-height: 2rem;
 font-weight: 600;
 text-align: center;
 color: #2d2d2d;
 position: relative;
}

/*Moduły w 1-poziomie*/

.menu-srodek-1-poziom li.menu-modul {
 display: none !important;
}


/*strzałki przy rozwijkach */
.menu-srodek-rozwijka>span span {
  display: block;
}

.menu-srodek-1-poziom > li.liaktywna {
  background: #b50202;
}

.menu-srodek-1-poziom > li:hover {
  opacity: .65;
}
.menu-srodek-1-poziom > li:hover > a[target="_blank"]:after {
  opacity: .65;
}
