:root {
    --color-black: #333;
    --color-background: #fff;
}

* { box-sizing: border-box; }
html { overflow-y: scroll; }
body { font-family: 'Lora', serif; }

a {
  color: #333;
  color: var(--color-black);
}

a:hover{
    color: #000;
    text-decoration: none;
}

ul { margin: 0; padding: 0; }

li { list-style: none; }

hr {
    background-color: #bdddec;
    margin: 0;
}

nav {
  background-color: #fff;
  background-color: var(--color-background);
  font-family: 'Montserrat', sans-serif;
  position: fixed;
  width: 100%;
}

.nav-bar { max-width: 80%; }
.nav-list__main {
    display: flex;
    justify-content: space-between;
}

html[data-useragent*='MSIE'] .nav-list__main {
  text-align: center;
}
html[data-useragent*='MSIE'] .nav-item {
  display: inline-block;
  width: inherit;
  min-width: 100px;
}

nav ul li { width: 100%; }

.nav-item { 
  font-size: 1.15rem;
  position: relative;
}

.nav-item > a { text-transform: uppercase; }

.nav-item a { 
    display: inline-block;
    padding: 15px 0;
    position: relative;
    text-align: center;
    width: 100%;
}

.nav-item a::after {
  background-color: #333;
  background-color: var(--color-black);
  bottom: 0;
  content: "";
  height: 2px;
  left: 50%;
  position: absolute;
  width: 0%;
  transition: 0.3s ease all;
}

.nav-item a:hover::after {
    left: 0%;
    width: 100%;
}

.nav-item a.hov::after {
    left: 0%;
    width: 100%;
}

.nav-twofold a:after,
.nav-twofold a:hover::after  {
  background-color: #333c;
  height: 1px;
}

.nav-list {
  display: none;
  font-size: 1rem;
  position: absolute;
  text-align: center;
  width: 100%;
}

.nav-item:hover .nav-list {
  display: block;
}

.nav-item li {
  background: #fff;
  background: var(--color-background);
  border-top: 1px solid #333;
  border-top: 1px solid var(--color-black);
  border-left: 1px solid #f3f3f3;
  border-right: 1px solid #f3f3f3;
}

.nav-item li:last-of-type {
  border-bottom: 1px solid #333;
  border-bottom: 1px solid var(--color-black);
}

.nav-item li a { padding: 5px 0; }

.nav-twofold {
  display: none;
}

.nav-twofold a { color: #333c; }

.lang-item {
  position: absolute;
  top: 18px;
  right: 15px;
  text-transform: uppercase;
}

.lang-item a {
  margin-right: 15px;
  width: 100%;
  transition: 0.3s ease all;
}

.lang-item a:hover {
    text-decoration: underline;
}

.main {
  align-items: center;
  height: 100vh;
  min-height: 100%;
  justify-content: center;
  padding-bottom: 20px;
  padding-top: 100px;
}

.no-grid {
  display: inline-block;
  margin-right: 20px;
  max-width: 48%;
}

@media (min-width: 1024px) { .no-grid { max-width: 30%; } }
.no-grid img { max-width: 100%; }

.grid {
   display: grid;
   grid-gap: 5px;
   grid-column-gap: 20px;
   grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
   grid-auto-rows: 20px;
}

.grid-content p {
  margin: 0;
  text-align: center;
}

.grid img {
  max-width: 100%;
}

.back {
  margin-bottom: 20px;
  margin-top: 50px;
  text-align: center;
}

.center {
  display: block;
  margin: 0 auto;
  text-align: center;
}

.center-table {
  display: table;
  height: 100%;
  width: 100%;
}

.center-cell {
  display: table-cell;
  padding-bottom: 100px;
  vertical-align: middle;
}

.naglowek { font-weight: bold; text-align: center; }
.tekst a { text-decoration: underline; }
.back a { text-decoration: none; }

.history {
  text-align: center;
  margin-top: 20px;
}

.history li {
  padding: 5px 0;
}