html, body {
  height: 100%;
  margin: 0;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: Montserrat, Helvetica, Arial, sans-serif;
}

header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 20;
}

main {
  flex: 1;
  width: 80%;
  max-width: 1200px;
  min-width: 800px;
  margin: 20px auto;
}

.grid-container {
  max-width: 1200px;
  min-width: 800px;
  width: 80%;
  color: rgb(20, 120, 140);
  margin: 0 auto;
  display: grid;
  align-items: center;
  grid-template-columns: 25% auto;
  grid-gap: 1px;  
}

/* header */
.logo {
  grid-column: 1 / 2;
  max-height:118px;
}
.logo img {
  max-width:100%;
  max-height:118px;
}
.tytul {
  grid-column: 2 /3;
  text-align: center;
  font-size: 15pt;
  color: rgb(0, 98, 145);
  font-weight: 600;
  vertical-align: middle;
  line-height: 1.4;
  max-height:118px;
}

/*pasek nawigacji */
.nav {
  grid-column: 1 / 3;
  background-color: rgb(0, 98, 145);
  margin-top: 2px;
  position: sticky;
  top: 0; 
}

.nav ul,
.nav li {
  margin: 0;
  padding: 0;
  list-style: none;
  transition: .8s;
}

.nav li {
  float: left;
  display: inline;
  position: relative;
  text-shadow: 0 -1px 0 #000;
}

.nav li:first-child {
  border-left: none
}

.nav a {
  display: block;
  line-height: 40px;
  padding: 0 25px;
  text-decoration: none;
  color: #eee;
}

.nav a:hover {
  background-color: rgb(40, 80, 140);
}

/* main */

p {
	text-align: justify;
	line-height: 1.5;
	font-size: 18px;
	padding: 0 5px;
}

h2, h3 {
  color: rgb(0, 98, 145);
}

h2 a, h3 a {
  color: rgb(0, 98, 145);
  text-decoration: none;
}

h2 a:hover, h3 a:hover {
  text-decoration: none;
  color: rgb(40, 80, 140);
}

ol li::marker {
	color: rgb(0, 98, 145); 
}

ol li {
	font-size: 18px;
	line-height: 1.5;
	padding: 0 5px;
}

/*footer */

.footer {
  max-width: 1200px;
  min-width: 800px;
  width: 80%;
  background-color: white;
  margin: 10px auto 0 auto;
  padding: 10px 0;
  text-align: center;
}

.footer ul {
  list-style-type: none;
  padding: 0;
  margin: 0
}

.footer li {
  display: inline-block;
  margin: 0 20px;
}

.footer img {
  height: 90px;
  width: auto;
  vertical-align: middle;
}
