html{
  scroll-behavior: smooth;
}
* {
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* layout */
.containerr {
  width: 90%;
  max-width: 1500px;
  margin: auto;
}
/* header */
.header {
  background: #111;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
	max-height: 20vh;
}
img{
  max-width: 150px;
  margin: 0;
  padding: 0;
  border-radius: 80%;
}
.logo{
  font-size: xx-large;
  letter-spacing: 2px;
}
.logo-box{
  display: flex;
  align-items: center;
  gap: 15px;
  float: left;
  margin-left: 5%;
}
.header .container {
  display: flex;
  flex: 1;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 1vh;
  width: 100%;
  box-sizing: border-box;
}
.nav{
  margin-right: 10%;
}
.nav a {
  color: white;
  margin-left: 30px;
  text-decoration: none;
  transition: 0.3s;
  font-size: x-large;
  align-self: left;
}
.nav a:hover {
  color: #aaa;
}

/* hero */
.hero {
  height: 80vh;
  background: url("section-main.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay {
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 40px;
  text-align: center;
  border-radius: 10px;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background: white;
  color: black;
  text-decoration: none;
  border-radius: 5px;
}

/* sections */
section {
    padding: 60px;
    margin-bottom: 5vh;
    scroll-margin-top: 80px;
}

#opis{
    font-size: x-large;
}
h2 {
  margin-bottom: 20px;
  font-size: xx-large;
}
p{
    font-size: x-large;
}
div{
    margin-top: 10px;
}
/* services */
.grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.card {
  flex: 1;
  min-width: 200px;
  padding: 20px;
  background: #f4f4f4;
  border-radius: 10px;
  justify-content: center;
  align-content: center;
  text-align: center;
}

/* footer */
footer {
  background: #111;
  color: white;
  text-align: center;
  padding: 20px;
}

.description{
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.left, .right{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.text{
  width: 50%;
  height: auto;
}

.imgg{
  width: 50%;
  height: auto;
  display: flex;
  justify-content: center;
}

.imgg img{
  width: 100%;
  max-width: 500px;
  border-radius: 0;
  padding: 10px;
  object-fit: cover;
}

.text p{
  text-align: justify;
  line-height: 1.8;
}
#desc3{
  border-radius: 0%;
  width: auto;
  max-width: 80%;
  padding: 10px;
}


@media (max-width: 768px) {

  section{
    padding: 30px 20px;
  }

  /* HEADER */

  .header {
    padding: 5px 0;
  }

  .header .container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px;
    gap: 10px;
  }

  /* LEWA STRONA */
  .logo-box {
    width: 50%;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
  }

  .logo-box img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    flex-shrink: 0;
  }

  .logo {
    font-size: 0.75rem;
    line-height: 1.1;
    letter-spacing: 0;
  }

  /* PRAWA STRONA */
  .nav {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    margin: 0;
  }

  .nav a {
    font-size: 0.7rem;
    margin: 0;
    line-height: 1.1;
  }


  /* HERO */
  .hero{
    height: 60vh;
    padding: 20px;
  }

  .overlay{
    padding: 20px;
  }

  .overlay h2{
    font-size: 1.8rem;
  }

  .overlay p{
    font-size: 1rem;
  }

  /* tekst */
  p{
    font-size: 1rem;
  }

  h2{
    font-size: 2rem;
    text-align: center;
  }

  #opis{
    font-size: 1.2rem;
  }

  /* about */
  .left,
  .right{
    flex-direction: column;
    gap: 20px;
  }

  .right{
    flex-direction: column-reverse;
  }

  .text,
  .imgg{
    width: 100%;
  }

  .text p{
    text-align: left;
  }

  .imgg img{
    max-width: 100%;
    height: auto;
  }

  #desc3{
    max-width: 100%;
    padding: 0;
  }

  /* services */
  .grid {
    flex-direction: column;
  }

  .card{
    min-width: unset;
  }

  /* kontakt */
  .contact p{
    font-size: 1rem;
  }

  footer{
    font-size: 0.9rem;
  }
}