/* RESET */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  line-height: 1.5;
  background-color: rgb(211, 176, 89);

  /* Layout strony */
  height: 100vh;
  display: grid;
  /* grid-template-rows: auto 1fr auto; */

  display: flex;
  flex-direction: column;
}

main {
  /*background-image:
   linear-gradient(rgba(0,0,0,1),rgba(0,0,0,0)),
   url("../img/onas.png");*/
  background-size: cover;
  background-position: center;
  color: white;
}

.header{
  margin: 0px;
  font-size: 1rem;
  padding: 12px 16px;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  /*background-image:*/
   /*linear-gradient(to right,rgba(0,0,0,0.5),rgba(0,0,0,0)),*/
   /*url("../img/banner.png");*/
  background-size: cover;
  background-position: center;
}

.footer {
  margin: 0px;
  font-size: 1rem;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  text-align: center;
  padding: 12px 16px;
}

.header img {
  max-height: 80px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav a {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.03em;
  align-items: bottom;
}

.main {
  padding: 16px;
  margin: 10px;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.header h1 {
  margin: 0px;
  font-size: 4rem;
  color: #7C4D21;
  font-weight: bold;
}

h2 {
  margin: 0px;
  font-size: 3rem;
}

.brand {
  text-align: center;
}

.slogan {
  margin: 0px;
  font-size: 1rem;
  /*font-weight: bold;*/
}

li {
  margin: 10px;
  font-size: 2rem;  
  font-weight: bold;
}

.index{
 flex:1;
 overflow-y: auto;
 background-image:
  linear-gradient(to right,rgba(0,0,0,0.7),rgba(0,0,0,0)),
  url("../img/onas.webp");
 background-size: cover;
 background-position: center;
 color: white;
 margin: 10px;
}

.produkcja{
 flex:1;
 overflow-y: auto;
  background-image:
  linear-gradient(to right,rgba(0,0,0,0.7),rgba(0,0,0,0)),
  url("../img/produkcja.webp");
 background-size: cover;
 background-position: center;
 color: white;
 margin: 10px;
}

.pellet{
 flex:1;
 overflow-y: auto;
 background-image:
  linear-gradient(to right,rgba(0,0,0,0.7),rgba(0,0,0,0)),
  url("../img/pellet.webp");
 background-size: cover;
 background-position: center;
 color: white; 
 margin: 10px;
}

.kontakt{
 flex:1;
 overflow-y: auto;
 background-image:
  linear-gradient(to right,rgba(0,0,0,0.7),rgba(0,0,0,0)),
  url("../img/kontakt.webp");
 background-size: cover;
 background-position: center;
 color: white; 
 margin: 10px;
}

@media (max-width: 1024px) {

  .header {
    flex-direction: column;
    text-align: center;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .header h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  li {
    font-size: 1.5rem;
  }
}

/* TELEFONY */
@media (max-width: 768px) {

  .header {
    padding: 10px;
  }

  .header h1 {
    font-size: 2rem;
  }

  .slogan {
    font-size: 0.8rem;
  }

  .nav {
    flex-direction: column;
    gap: 10px;
  }

  .nav a {
    font-size: 1rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  li {
    font-size: 1.1rem;
  }

  .header img {
    max-height: 60px;
  }
}

/* MAŁE TELEFONY */
@media (max-width: 480px) {

  .header h1 {
    font-size: 1.6rem;
    letter-spacing: 2px;
  }

  h2 {
    font-size: 1.2rem;
  }

  li {
    font-size: 1rem;
  }

  .footer {
    font-size: 0.75rem;
  }
}