/* reset css */
*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}
@media screen and (max-width: 1200px) {
  html {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
  }
  html ::-webkit-scrollbar {
    display: none;
  }
}
@media screen and (max-width: 1200px) {
  html {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
  }
  html ::-webkit-scrollbar {
    display: none;
  }
}

body {
  overscroll-behavior-x: contain; /* blokira bounce horizontalno */
  touch-action: pan-y;
  box-sizing: border-box;
  width: 100vw;
  height: 100%;
  font-size: 1.8rem;
  font-family: "Times New Roman", times, sans-serif;
  line-height: 1.4;
  overflow-x: hidden !important;
  overflow-y: auto;
  backface-visibility: hidden;
  scroll-behavior: smooth;
}
body::-webkit-scrollbar {
  width: 1.5rem;
  height: 1.5rem;
  background-color: #885708;
  border-radius: 10rem;
}
/* title animation */

/* end title animation */
h1 {
  font-weight: 600;
  font-size: 6rem;
  color: rgb(146, 90, 16);
  margin: 2rem 0;
  word-wrap: break-word;
}
@media (max-width: 1600px) {
  h1 {
    font-size: 4rem;
    margin: 0 1.5rem;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 3rem;
    margin: 0 1.5rem;
  }
}
header {
  height: 20vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #b69781;
}
.left {
  position: fixed;
  top: 1rem;
  left: 1rem;
  height: 7rem;
  width: 7rem;
  object-fit: cover;
  border-radius: 50%;
  border: 0.4rem solid rgb(117, 41, 11);
}
@media only screen and (max-width: 768px) {
  .left {
    position: fixed;
    top: 1rem;
    left: 1rem;
    height: 5.5rem;
    width: 5.5rem;
    object-fit: cover;
  }
}
.right {
  position: fixed;
  top: 1rem;
  right: 1rem;
  height: 7rem;
  width: 7rem;
  object-fit: cover;
  border-radius: 50%;
  border: 0.4rem solid rgb(117, 41, 11);
}
@media only screen and (max-width: 768px) {
  .right {
    position: fixed;
    top: 1rem;
    right: 1rem;
    height: 5.5rem;
    width: 5.5rem;
    object-fit: cover;
  }
}

main {
  min-height: 75vh;
  background-color: #eecab1;
}
footer {
  height: 5vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #c49271;
}
label {
  color: rgb(82, 26, 5);
}
.services {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  grid-row-gap: 1rem;
  grid-column-gap: 1.5rem;
  align-items: center;
  padding: 2rem;
}
@media only screen and (max-width: 1600px) {
  .services {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}
@media only screen and (max-width: 1200px) {
  .services {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
@media only screen and (max-width: 768px) {
  .services {
    grid-template-columns: 1fr;
    margin: 0 2.5rem;
    padding: 0.5rem;
  }
}
a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}
a:hover {
  transform: scale(0.97);
}
/* .service-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
} */
.service-item img {
  display: block;
  height: 16rem;
  width: 25rem;
  object-fit: cover;
}
.title {
  display: blok;

  color: rgb(84, 45, 4);
}
@media only screen and (max-width: 768px) {
  .title {
    font-size: 2.2rem;
  }
}
.desc {
  display: blok;
  font-size: 2.2rem;
  color: rgb(45, 43, 43);
}
@media only screen and (max-width: 768px) {
  .desc {
    font-size: 1.8rem;
  }
}
p {
  text-indent: 2rem;
  word-wrap: break-word;
  text-align: center;
  font-size: 2rem;
  color: rgb(53, 29, 2);
}
.search {
  width: 35%;
  height: 4rem;
  border: 2px solid #271201;
  border-radius: 0.5rem;
  outline: none;
  font-size: 2.2rem;
  text-align: center;
}
.search::placeholder {
  color: #5f300a;
}
@media only screen and (max-width: 768px) {
  .search {
    height: 3rem;
    font-size: 2rem;
  }
}
.search:focus {
  border-bottom: 0.3rem solid #351c03;
}
@media only screen and (max-width: 768px) {
  .search {
    width: 70%;
  }
}
/* forma */
.form__section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
#kontaktForma {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 70%;
}
@media only screen and (max-width: 768px) {
  #kontaktForma {
    width: 90%;
  }
}
.form__name {
  width: 30%;
  height: 3rem;
  border: 2px solid #542106;
  border-radius: 0.5rem;
  outline: none;
}
.form__name:focus {
  border-bottom: 0.3rem solid #752d0c;
}
@media only screen and (max-width: 768px) {
  .form__name {
    width: 60%;
  }
}
.form__mail {
  width: 35%;
  height: 3rem;
  border: 2px solid #542106;
  border-radius: 0.5rem;
  outline: none;
}
.form__mail:focus {
  border-bottom: 0.3rem solid #814015;
}
@media only screen and (max-width: 768px) {
  .form__mail {
    width: 70%;
  }
}
.form__text {
  width: 40%;
  height: 18rem;
  border: 2px solid #542106;
  border-radius: 0.5rem;
  outline: none;
}
.form__text:focus {
  border-bottom: 0.5rem solid #834715;
}
@media only screen and (max-width: 768px) {
  .form__text {
    width: 80%;
    height: 14rem;
  }
}
.form__button {
  margin-top: 1.5rem;
  width: 20%;
  height: 3rem;
  cursor: pointer;
  background-color: rgb(89, 47, 8);
  color: white;
  font-size: 2rem;
  border-radius: 2rem;
  transition: 0.2s ease-in-out;
  margin-bottom: 1.5rem;
  border: none;
}
@media only screen and (max-width: 768px) {
  .form__button {
    width: 40%;
    font-size: 1.6rem;
  }
}
.form__button:hover {
  transform: scale(0.98);
  background-color: rgb(19, 19, 127);
}
.up {
  position: fixed;
  right: 2rem;
  bottom: 5rem;
  cursor: pointer;
  height: 4rem;
  width: 4rem;
  border-radius: 50%;
  border: 0.4rem solid rgb(117, 41, 11);
}
@media only screen and (max-width: 768px) {
  .up {
    height: 3.5rem;
    width: 3.5rem;
    right: 1rem;
    bottom: 5rem;
  }
}
.highlight {
  color: #800020;
  font-weight: bold;
}
