BODY {
  min-height: 100%;
  background: #ffffff;
  font-size: 16px;
  line-height: 1.5;
  font-family: Arial, Verdana, sans-serif;
  color: #4f4f4f;
  padding-bottom: 0px;
}

TD,
TH {
  padding: 8px;
}

IMG,
EMBED,
OBJECT,
VIDEO {
  max-width: 100%;
  height: auto !important;
}

IFRAME {
  max-width: 100%;
}

H1 {
  clear: both;
  font-size: 22px;
  padding-top: 0px;
  padding-bottom: 15px;
  margin: 0px;
  text-align: left;
}

HR {
  margin: 0px;
  padding: 0px;
  border: 0px;
  height: 1px;
  background-color: #cccccc;
}

INPUT,
SELECT {
  vertical-align: middle;
  border: 1px solid #cccccc;
  background-color: #ffffff;
  color: #000000;
  padding: 6px;
}

TEXTAREA {
  border: 1px solid #cccccc;
  background-color: #ffffff;
  color: #000000;
  padding: 6px;
}

INPUT:focus,
INPUT:active,
TEXTAREA:focus,
TEXTAREA:active,
SELECT:focus,
SELECT:active {
  border: 1px solid #666666;
}

INPUT[type="submit"],
INPUT[type="submit"]:hover,
INPUT[type="submit"]:focus,
.btn-primary,
.btn-primary.active,
.btn-primary:active,
.btn-primary:hover,
.open > .dropdown-toggle.btn-primary {
  cursor: pointer;
  vertical-align: middle;
  margin-bottom: 2px;
  margin-top: 2px;
  border: 0px none;
  background: #275899;
  border: 1px solid #275899;
  color: #ffffff;
  padding: 6px;
  transition: all 0.2s ease-in-out;
}

INPUT[type="submit"]:hover,
.btn-primary.focus,
.btn-primary:focus {
  opacity: 0.8;
}

.bootstrap-select {
  width: 100%;
}

INPUT[type="checkbox"].styled,
INPUT[type="radio"].styled {
  margin: 0px;
  margin-right: 10px;
  border: 1px solid #275899;
  width: 15px;
  height: 15px;
  outline: 0px none;
  padding: 1px;
}

LABEL {
  font-weight: normal;
}

A {
  color: #275899;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

A:hover {
  color: #3d73cf;
  text-decoration: none;
}

A:focus {
	outline: #c23b37 dotted 2px;
}

#menu1,
#menu1 * {
  margin: 0;
  padding: 0;
  list-style: none;
}

#g_menu {
  max-width: 100%;
  margin: auto;
}

#menu1 {
  display: block;
  margin: 0px;
  padding: 0px;
}

#menu1 LI {
  position: relative;
  white-space: nowrap;
}

#menu1 UL LI {
  width: 240px;
  white-space: normal;
  text-align: left;
}
/* poprawka przy większej ilości artykułów */
#menu1 UL {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1;
  display: none;
  max-height: min(70vh, 480px);
  overflow-x: hidden;
  overflow-y: auto;
  box-shadow: 3px 3px 14px rgba(0, 0, 0, 0.1);
}

#menu1 > LI {
  float: left;
}

#menu1 UL UL {
  top: 0;
  left: 100%;
}

#menu1 LI:hover > UL,
#menu1 LI:focus-within > UL,
#menu1 LI.sfHover > UL {
  display: block;
  z-index: 99;
}

#menu1 A {
  display: block;
  text-decoration: none;
}

#menu1 A.item1 {
  border-right: 1px solid #5fadeb;
  color: #ffffff;
  background: #0e76c9;
  padding-left: 20px;
  padding-right: 20px;
  height: 40px;
  line-height: 40px;
  font-size: 16px;
  text-transform: uppercase;
  transition: all 0.2s ease-in-out;
}

#menu1 LI:last-child A.item1 {
  border-right: 0px none;
}

#menu1 A.item1:hover,
#menu1 A.item1:focus,
#menu1 LI.sfHover A.item1,
#menu1 LI.sfHover A.current,
#menu1 LI.current A.item1 {
  color: #ffffff;
  background: #1478c7;
}

.xactive #menu1 .sub A.item1::after {
  content: "\E9C1";
  display: block;
  float: right;
  margin-left: 10px;
  font-family: icomoon;
  width: 19px;
  height: 29px;
  line-height: 29px;
  text-align: center;
  color: #000000;
}

#menu1 A.item2 {
  color: #ffffff;
  background: #1478c7;
  font-weight: normal;
  font-size: 14px;
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid #5fadeb;
  border-top: 0px none;
  transition: all 0.2s ease-in-out;
}

#menu1 A.item2:hover,
#menu1 A.item2:focus {
  color: #ffffff;
  background: #0e76c9;
  transition: none;
}

#mobnav-btn {
  display: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  padding-top: 8px;
  background: none;
  border: none;
}

#mobnav-btn:hover,
#mobnav-btn:focus-visible {
  opacity: 0.8;
}

#mobnav-btn DIV {
  height: 100%;
  position: relative;
}

#mobnav-btn div SPAN {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: #000000;
  opacity: 1;
  left: 0;
  transition: 0.25s ease-in-out;
}

#mobnav-btn div span:nth-child(1) {
  top: 2px;
}

#mobnav-btn div span:nth-child(2) {
  top: 10px;
}

#mobnav-btn div span:nth-child(3) {
  top: 18px;
}

.xactive #mobnav-btn div span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.xactive #mobnav-btn div span:nth-child(2) {
  display: none;
}

.xactive #mobnav-btn div span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

#d_menu {
  clear: both;
  background: #f1f1f1;
}

#d_menu UL {
  list-style-type: none;
  display: table;
  padding: 0px;
  margin: auto;
}

#d_menu LI {
  list-style-type: none;
  display: block;
  padding: 0px;
  margin: 0px;
  float: left;
}

#d_menu A {
  display: block;
  height: 40px;
  line-height: 40px;
  padding-left: 20px;
  padding-right: 20px;
  font-size: 14px;
  color: #424242;
}

#d_menu A:hover,
#d_menu A:focus {
  color: #000000;
}

#top {
  padding-top: 10px;
}

#top1 {
  width: 1400px;
  max-width: 98%;
  margin: auto;
  display: flex;
  margin: auto;
  flex-wrap: nowrap;
  justify-content: space-between;
}

#top1_1 {
  float: left;
  text-align: left;
  padding-bottom: 10px;
}

#top1_2 {
  float: right;
  text-align: right;
  padding-bottom: 10px;
}

#top2 {
  clear: both;
  background: #2196f3;
  min-height: 40px;
}

MAIN {
  background: #f1f1f1;
  clear: both;
}

#maincontent {
  width: 1400px;
  max-width: 98%;
  margin: auto;
  text-align: left;
  background: #ffffff;
  padding-top: 30px;
  padding-bottom: 30px;
}

#foot {
  clear: both;
  background: #f8fbfd;
  padding-top: 15px;
  overflow-y: auto;
}

#foot0 {
  width: 1400px;
  max-width: 98%;
  margin: auto;
  font-size: 13px;
  color: #616c7e;
  display: flex;
  margin: auto;
  flex-wrap: wrap;
  justify-content: space-between;
}

#foot0 A {
  color: #616c7e;
}

#foot0 A:hover,
#foot0 A:focus {
  color: #000000;
}

#foot1 {
  float: left;
  text-align: left;
  padding-bottom: 15px;
}

#foot2 {
  float: left;
  text-align: center;
  padding-bottom: 15px;
}

#foot3 {
  float: right;
  text-align: right;
  padding-bottom: 15px;
}

#l_menu {
  clear: both;
}

#l_menu .l_item1 {
  color: #ffffff;
  background: #008288;
  display: block;
  padding: 8px;
  border-bottom: 1px solid #ffffff;
  font-size: 16px;
}

#l_menu .l_item1:hover,
#l_menu .l_item1:focus,
#l_menu .l_item1.active {
  opacity: 0.8;
}

#l_menu .l_item2 {
  color: #000000;
  background: #b3ebed;
  display: block;
  padding: 8px;
  border-bottom: 1px solid #ffffff;
  font-size: 15px;
  padding-left: 20px;
}

#l_menu .l_item2:hover,
#l_menu .l_item2:focus,
#l_menu .l_item2.active {
  opacity: 0.8;
}

#lang_menu {
  list-style-type: none;
  display: block;
  padding: 0px;
  margin: 0px;
}

#lang_menu LI {
  display: block;
  padding: 0px;
  padding-left: 5px;
  padding-right: 5px;
  float: left;
  margin: 0px;
}

/* slider examle */

#slider {
  top: 0px;
  left: 0px;
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  margin: auto;
  flex-wrap: wrap;
  justify-content: center;
  background: #666666;
}

#slider_img {
  position: absolute;
  z-index: 2;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 480px;
  overflow: hidden;
}

.slider_el {
  width: 100%;
  height: 480px;
  overflow: hidden;
  background-position: top left;
  background-repeat: no-repeat;
}

#slider_naw {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  overflow: hidden;
}

#naw {
  display: block;
  padding: 0px;
  margin: 0px;
  list-style-type: none;
  float: left;
}

#naw LI {
  display: block;
  padding: 0px;
  margin: 0px;
  list-style-type: none;
  padding-left: 10px;
  float: left;
}

#naw LI A {
  display: block;
  float: left;
  width: 17px;
  height: 17px;
  overflow: hidden;
  background: url("../img/zm1.png") left top no-repeat;
}

#naw LI A.activeSlide,
#naw LI.activeSlide A {
  background-image: url("../img/zm2.png");
}

.nav-tabs {
  margin-bottom: 15px;
}

@media only screen and (max-width: 768px) {
  .form-horizontal .form-group {
    margin-left: 0px;
    margin-right: 0px;
  }

  #facebook_pan {
    background: #3b5998;
    float: none;
    padding: 0;
    position: static;
    right: auto;
    top: auto;
    width: 100%;
    z-index: 1;
  }

  #facebook_pan2 {
    margin-left: 0px;
    overflow: hidden;
  }

  #menu1 A.item1 {
    padding-left: 12px;
    padding-right: 12px;
    font-size: 15px;
  }

  #g_menu,
  #menu1 {
    overflow-y: auto;
    width: 100%;
    display: block;
  }

  #mobnav-btn {
    display: block;
    clear: both;
  }

  #menu1 {
    float: none;
    text-align: left;
    width: 100%;
    height: 0px !important;
    max-height: 0px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease-in-out;
  }

  HTML.xactive {
    /*overflow:hidden; */
  }

  .xactive #menu1 {
    overflow-y: auto;
    visibility: visible !important;
    max-height: 4000px;
    height: auto !important;
    opacity: 1;
  }

  .xactive .layer #menu1 {
    max-height: 100%;
  }

  .xactive #g_menu.layer {
    position: absolute;
    z-index: 10;
    top: 0px;
    padding-top: 50px;
    height: 100vh;
    overflow: hidden;
    background: #2196f3;
  }

  .xactive #mobnav-btn {
    position: absolute;
    z-index: 11;
    top: 10px;
    right: 10px;
  }

  #menu1 > LI {
    float: none;
    width: 100%;
    position: static;
    border-right: 0px none;
    background: #ffffff;
  }

  #menu1 UL {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 100%;
    transition: all 0.2s ease-in-out;
    display: block !important;
    height: 0px !important;
    max-height: 0px !important;
    overflow: hidden;
  }

  #menu1 .open UL {
    height: auto !important;
    max-height: 4000px !important;
  }

  #menu1 UL LI {
    width: 100%;
    white-space: normal;
    text-align: left;
  }

  #top1_1,
  #top1_2 {
    float: none;
    clear: both;
    width: auto;
    text-align: center;
  }

  #foot1,
  #foot2,
  #foot3 {
    float: none;
    clear: both;
    width: 100%;
    text-align: center;
  }
}

@media print {
  * {
    background: transparent !important;
    color: #000 !important; /* Black prints faster: h5bp.com/s */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]:after {
    content: " (" attr(href) ")";
  }

  abbr[title]:after {
    content: " (" attr(title) ")";
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  thead {
    display: table-header-group; /* h5bp.com/t */
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  img {
    max-width: 100% !important;
  }

  @page {
    margin: 0.5cm;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }

  DIV {
    max-width: 100%;
  }
}