footer {
  background-color: rgba(255,255,255,0.6);
  width: 100%;
  text-align:center;
  margin: 130px 0 0;
  padding: 15px 25px 30px;
}

.footer-content {
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  color: #073776;
  font-size: 16px;
  text-align:left;
}

.footer-section {
  height: 184px;
  border-right: 3px solid white;
  padding-right: 15px;
  margin-right: 15px;
}

.footer-section h4 {
  margin: 0 0 10px 0;
  font-size: 25px;
  font-weight: 600;
}

.footer-section.social {
  flex-grow: unset;
  display: flex;
  justify-content: center;
  flex-direction: row;
  align-items: center;
}

.footer-section.social a {
  display: block;
  width: 45px;
  height: 45px;
  font-size: 36px;
  line-height: 45px;
  text-align: center;
  border-radius: 7px;
  margin-right: 10px;
}

.footer-section.social a:last-child {
  margin-right: 0;
  margin-bottom: 0;
}

.footer-section.social .fb {
  background-color: #3b5998;
  color: white;
}

.footer-section.social .yt {
  background-color: white;
  color: #d02525;
}

#menu-dokumenty {
	margin: 20px 0 0 0;
	padding: 0;
	list-style-type: none;
	display: flex;
	justify-content: space-between;
	flex-direction: column;
	height: 136px;
}

.footer-section.partneri {
  flex-grow: 1;
  max-width: 550px;
}

.footer-section.partneri h4 {
  text-align: center;
}

.footer-section.partneri .partneri-list {
  /*display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-content: center;*/
  display: flex;
  justify-content: space-between;
  height: 123px;
  overflow: hidden;
}

.footer-section.partneri .arrow-button {
  display: inline-block;
  width: 26px;
  text-align: center;
  margin: auto 0;
}

.footer-section.partneri .arrow-button span {
  color: #073776;
}

.footer-section.partneri .arrow-button.left span {
  transform: rotate(180deg);
}

.footer-section.partneri .partneri-grid {
  display: grid;
  overflow: hidden;
  grid-auto-flow: column;
  grid-auto-columns: 160px;
}

.footer-section.partneri .partneri-grid-overflow {
  overflow: hidden;
  width: 0;
  flex-grow: 1;
}

.footer-section.partneri .partner {
  float: left;
  display: inline-block;
  width: 160px;
  height: 123px;
  font-size: 15px;
  text-align: center;
  vertical-align: top;
}

.footer-section.partneri img {
  display: block;
  height: 80px;
  margin: 0 auto;
  vertical-align: top;
}

.footer-section.kontakt {
  display: block;

  border-right: 0;
  padding-right: 0;
  margin-right: 0;
}

.footer-section.kontakt h4 {
  display: block;
  text-align: left;
}

.footer-section.kontakt .text {
  font-size: 14px;
  display: inline-block;
}

.footer-section.kontakt .image-container {
  display: inline-block;
  margin-right: 10px;
  vertical-align: top;
}

.footer-section.kontakt img {
  height: 146.5px;
  vertical-align: baseline;
}

.footer-section.kontakt .text {
  height: 146.5px;
}

.footer-section.kontakt .name {
  line-height: 1.6;
}

.footer-section.kontakt .contact {
  margin: 3px 0 0;
}

@media (max-width: 1325px) and (min-width: 1155px) {
  .footer-section.social {
    flex-direction: column;
  }

  .footer-section.social a {
    margin-bottom: 10px;
    margin-right: 0;
  }
}

@media (max-width: 1154px) {
  .footer-section.social {
    width: 100%;
    border: 0;
    margin: 0 0 7px;
    padding: 0;
    height: 45px;
  }
}

@media (max-width: 1076px) {
  .footer-section.partneri {
    order: 4;
    border: 0;
    margin: 0 0 7px;
    padding: 0;
  }

  .footer-section.dokumenty {
    text-align: right;
  }

  .footer-section.kontakt {
    margin-bottom: 25px;
  }
}

@media (max-width: 1076px) and (min-width: 740px) {
  .footer-section.dokumenty {
    flex-basis: 345px;
  }

  .footer-section.kontakt { 
    flex-basis: 330px;
  }
}

@media (max-width: 611px) {
  .footer-content {
    font-size: 14px;
    display: block;
  }

  .footer-section {
    height: 140px;
  }

  .footer-section.dokumenty {
    display: block;
    border-right: 0;
    margin-right: 0;
    padding-right: 0;
    text-align: center;
    margin-bottom: 20px;
  }

  #menu-dokumenty {
    height: 105.7px !important;
  }

  .footer-section h4 { 
    font-size: 22px;
  }

  .footer-section.kontakt {
    text-align: center;
    margin: 0 auto;
  }

  .footer-section.kontakt h4 {
    text-align: center;
  }

  .footer-section.kontakt img,
  .footer-section.kontakt .text {
    height: 105px;
    text-align: left;
  }

  .footer-section.kontakt .text {
    font-size: 13px;
  }

  #menu-dokumenty {
    margin: 0;
	  height: 105px;
  }

  .footer-section.partneri {
    height: unset;
    text-align: center;
  }

  .footer-section.partneri span {
    display: block;
  }
  
  .footer-section.partneri img {
    height: 60px;
  }
}

@media (max-width: 537px) {
  .footer-section.kontakt h4,
  .footer-section.dokumenty h4 {
    text-align: center;
  }

  .footer-section.dokumenty {
    border-right: 0;
    margin-right: 0;
    padding-right: 0;
    text-align: center;
    margin-bottom: 20px;
  }

  .footer-section {
    height: unset;
  }
}

@media (max-width: 327px) {
  .footer-section.kontakt .image-container,
  .footer-section.kontakt .text {
    display: block;
  }

  .footer-section.kontakt .name {
    text-align: center;
    display: block;
  }

  .footer-section.kontakt .email-label,
  .footer-section.kontakt .phone-label {
    text-align: right;
  }

  .footer-section.kontakt .image-container {
    text-align: center;
    margin-right: 0;
  }
}

@media screen and (max-width: 265px) {
  .footer-section.partneri .partneri-list {
    justify-content: center;
  }  
}
