* {
  padding: 0;
  margin: 0;
  text-decoration: none;
  list-style: none;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

nav .header {
  background-color: #f1f1f1;
  padding: 50px 10px;
  color: black;
  text-align: center;
  font-size: 90px;
  font-weight: bold;
  position: relative;
  top: 0px;
  width: 100%;
  transition: 0.2s;
  height: 80px;
}
label.logo {
  left: 450px;
  color: white;

  padding: 0 100px;
  font-weight: bold;
}
.obraz {
  margin: 5px;
  max-width: 140px;
}
nav ul {
  float: right;
  margin-right: 20px;
}

.fas {
  color: black;
}

nav ul li {
  position: relative;
  top: -20px;
  display: inline-block;
  line-height: 80px;
  margin: 0 5px;
}

nav ul li a {
  color: goldenrod;
  font-size: 17px;
  padding: 7px 13px;
  border-radius: 3px;
  text-transform: uppercase;
}

a.active {
  background-color: green;
}

.btn {
  color: black;
}
.checkbtn {
  font-size: 30px;
  color: white;
  float: right;
  line-height: 80px;
  margin-right: 40px;
  cursor: pointer;
  display: none;
}
#check {
  display: none;
}

@media (max-width: 952px) {
  label.logo {
    font-size: 30px;
    padding-left: 50px;
  }
  nav ul li p {
    font-size: 16px;
  }
}

@media (max-width: 858px) {
  .checkbtn {
    display: block;
  }
  .btn {
    color: black;
  }

  ul {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: #2c3e50;
    top: 70px;
    left: -100%;
    text-align: center;
    transition: all 0.5s;
  }

  nav ul li {
    display: block;
    margin: 50px 0;
    line-height: 30px;
  }

  nav ul li p {
    font-size: 20px;
  }

  a.active {
    background: none;
    color: #0082e6;
  }

  #check:checked ~ ul {
    left: 0;
  }
}
