@import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: serif;
  scroll-behavior: smooth;
}

:root {
  --fs-xl: 6rem;
  --fs-600: 4rem;
  --fs-500: 1.8rem;
  --fs-400: 1.2rem;
  --fs-300: 0.9rem;
}

body {
  height: 100vh;
  display: flex;
  flex-flow: column;
  /* gap: 2rem; */
  background-image: url(img/jpeg/back2.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: #eee;
}

/* p {
  font-size: var(--fs-400);
  max-width: 60ch;
} */

.merriweather-regular {
  font-family: "Merriweather", serif;
  font-weight: 500;
  font-style: normal;
}

.merriweather-light {
  font-family: "Merriweather", serif;
  font-weight: 350;
  font-style: normal;
}

.blur {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: #444;
  opacity: 85%;
}

/* NAGŁÓWEK I NAWIGACJA */
header {
  position: fixed;
  width: 100%;
  height: 4rem;
  display: flex;
  flex-flow: row;
  justify-content: space-between;
  background-color: #eee;
  box-shadow: 0px 3px 10px rgba(110, 110, 110, 0.9);
  z-index: 1;
}

.logo {
  display: flex;
  background-color: rgb(69, 166, 85);
  height: 4rem;
}

.logo img {
  height: 4rem;
}

.nav {
  background-color: inherit;
  display: flex;
  height: auto;
  gap: 2rem;
  margin-right: 2rem;
  align-items: center;
}

.nav-button,
.nav-button:visited,
.nav-button:hover {
  display: flex;
  background-color: inherit;
  align-items: center;
  font-size: var(--fs-400);
}

.link {
  text-decoration: none;
  /* text-transform: none; */
  color: #111;
  border: 0;
  cursor: pointer;
}

.dropdown > .link {
  height: 1.5rem;
  width: 2.25rem;
  box-shadow: 0 0 5px 2px rgba(110, 110, 110, 0.9);
  background-color: rgba(110, 110, 110, 0.9);
}

.dropdown > .link,
.link:hover {
  color: #45a655;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  display: flex;
  flex-flow: column;
  align-items: center;
  gap: 0.75rem;
  top: calc(100% + 0.5rem);
  left: -0.5rem;
  padding: 0.5rem;
  background-color: #ccc;
  border-radius: 0.25rem;
  box-shadow: 0 2px 5px rgba(253, 253, 253, 0.3);
  opacity: 0;
  pointer-events: none;
  /* transform: translateY(-10px); */
  transition: max-height 150ms ease-in-out;
}

.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu > .flag {
  display: block;
  height: 1.5rem;
  width: 2.25rem;
  cursor: pointer;
  /* box-shadow: 0px 0px 5px rgba(255, 255, 255, 0.8); */
}

.eng {
  background-image: url(img/jpeg/united-kingdom.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  /* height: 2rem; */
  /* width: 3rem; */
}

.dut {
  background-image: url(img/jpeg/netherlands.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* height: 2rem; */
  /* width: 3rem; */
}

.ger {
  background-image: url(img/jpeg/germany.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* height: 2rem;
  width: 3rem; */
}

.pol {
  background-image: url(img/jpeg/poland.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* height: 2rem;
  width: 3rem; */
}

.rus {
  background-image: url(img/jpeg/russia.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* height: 2rem;
  width: 3rem; */
}

.translate {
  background-image: url(img/vector/translate.svg);
  height: var(--fs-400);
  width: var(--fs-400);
}

@media (max-width: 999px) {
  .nav-button {
    display: none;
  }

  #lang {
    display: flex;
  }

  /* header {
    justify-content: center;
  } */
}

/* ZAWARTOŚĆ */
main {
  position: relative;
  top: 4rem;
  width: 100%;
  display: flex;
  flex-flow: column;
  /* gap: 2rem; */
}

.hero {
  display: flex;
  flex-flow: column;
  align-items: center;
  gap: 0.6rem;
  color: #eee;
  padding: 12rem 0 8rem 0;
}

.hero h2 {
  font-size: var(--fs-xl);
  text-align: center;
  display: block;
}

.hero p {
  font-size: var(--fs-500);
  text-align: center;
}

#o-nas {
  height: 4rem;
  width: 100%;
}

.about {
  display: flex;
  flex-flow: row;
  width: 100%;
}

.team {
  background-color: #eee;
  padding: 4rem;
  display: flex;
  flex-flow: column;
  gap: 2rem;
  width: 50%;
}

.text {
  font-size: var(--fs-400);
  max-width: 60ch;
  line-height: 2.3rem;
}

.team .hello,
.oferta .hello {
  font-weight: bold;
  font-size: var(--fs-500);
}

.oferta {
  background-color: #eee;
  padding: 4rem;
  display: flex;
  flex-flow: column;
  width: 50%;
  gap: 2rem;
}

.dlaczego {
  font-size: var(--fs-500);
  font-weight: bold;
  margin-top: 0.5rem;
}

.accordion {
  display: flex;
  flex-flow: column;
  gap: -0.25rem;
}

.accordion-title {
  padding: 1rem;
  box-shadow: 0px 5px 15px #bbb;
  border-radius: 2px;
  line-height: 1rem;
  color: #45a655;
  font-weight: bold;
  font-size: var(--fs-400);
}

.accordion-title::after {
  content: "\02795";
  font-size: 13px;
  color: #777;
  float: right;
  margin-left: 5px;
}

.accordion-title.active {
  background-color: #45a655;
  color: #eee;
}

.accordion-title.active::after {
  content: "\2796";
  font-size: 13px;
  color: #eee;
  float: right;
  margin-left: 5px;
}

.accordion-panel {
  opacity: 0;
  /* transform: translateY(10px); */
  padding: 0.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out, opacity 0.2s ease-out;
}

.accordion-panel p {
  font-weight: normal;
  color: #111;
}

.gallery {
  display: flex;
  flex-flow: column;
  align-items: center;
  gap: 4rem;
  /* background-color: #eee; */
  padding: 4rem 50px;
  margin-bottom: 3rem;
}

.gallery h2 {
  font-size: var(--fs-600);
  color: #eee;
  text-align: center;
}

.container {
  max-width: 1550px;
  position: relative;
  background-color: rgba(69, 166, 85, 1);
  border: 4px solid #45a655;
  border-radius: 3px;
}

.container i {
  top: 50%;
  height: 46px;
  width: 46px;
  line-height: 46px;
  font-size: 1.2rem;
  cursor: pointer;
  position: absolute;
  text-align: center;
  background-color: #eee;
  border-radius: 50%;
  transform: translateY(-50%);
}

.container i:first-child {
  left: -25px;
  display: none;
}

.container i:last-child {
  right: -25px;
}

.container .carousel {
  font-size: 0px;
  /* padding: 10px; */
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  scroll-behavior: smooth;
}

.carousel.dragging {
  cursor: grab;
  scroll-behavior: auto;
}

.carousel.dragging img {
  pointer-events: none;
}

.carousel img {
  /* display: inline-block; */
  height: 340px;
  margin-left: 5px;
  object-fit: cover;
  width: calc(100% / 4);
  overflow-clip-margin: border-box;
}

.carousel img:first-child {
  margin-left: 0px;
}

/* .wrapper {
  display: flex;
  flex-flow: row;
  width: 100%;
  justify-content: space-evenly;
}

.photo {
  display: flex;
  width: 350px;
  height: 350px;
  border: 3px solid #45a655;
  border-radius: 3px;
  overflow: hidden;
}

.photo img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.photo:hover {
  width: 350px;
  height: 350px;
  scale: 1.05;
  box-shadow: 5px 5px 10px #444;
  cursor: pointer;
} */

.modal {
  display: none; /* Hidden by default */
  justify-content: center;
  align-items: center;
  position: fixed; /* Stay in place */
  z-index: 2; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.8); /* Black w/ opacity */
}

.modal img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 5px solid #45a655;
  border-radius: 5px;
  /* width: 1000px; */
  max-width: 70%;
  max-height: 90%;
  object-fit: cover;
  aspect-ratio: 4/3 3/4;
  /* animation-name: zoom;
  animation-duration: 0.2s; */
}

.modal span {
  position: absolute;
  top: 0;
  right: 10px;
  font-size: var(--fs-600);
  font-weight: bolder;
  color: #eee;
  cursor: pointer;
  z-index: 2;
}

@keyframes zoom {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

footer {
  position: relative;
  margin-top: 4rem;
  display: flex;
  flex-flow: row;
  justify-content: space-around;
  align-items: center;
  background-color: #eee;
  padding: 0.5rem;
}

.dane {
  display: flex;
  flex-flow: column;
  gap: 0.5rem;
}

.kontakt {
  display: flex;
  flex-flow: column;
  gap: 0.5rem;
}

.social {
  display: flex;
  flex-flow: column;
  gap: 0.5rem;
}

.social i {
  font-size: 35px;
}

.facebook {
  height: 35px;
  width: 35px;
}

.facebook i {
  font-size: 35px;
  color: #111;
}

.instagram {
  background-image: url(img/vector/instagram.svg);
  background-size: cover;
  background-position: center;
  height: 35px;
  width: 35px;
}

.phone {
  background-image: url(img/vector/phone-solid.svg);
  height: 25px;
  width: 25px;
}

.envelope {
  background-image: url(img/vector/envelope-solid.svg);
  height: 25px;
  width: 25px;
}

.info {
  display: flex;
  flex-flow: row;
  align-items: center;
  gap: 1rem;
}

@media screen and (max-width: 1700px) {
  .carousel img {
    width: calc(100% / 3);
  }
}

@media screen and (max-width: 1366px) {
  /* .container {
    max-width: 90%;
    margin-bottom: 1rem;
  }

  .container:last-child {
    margin-bottom: 0;
  } */

  /* .wrapper {
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
  } */

  .about {
    flex-flow: column;
  }

  .team,
  .oferta {
    width: 100%;
    align-items: center;
  }
}

@media screen and (max-width: 900px) {
  .carousel img {
    width: calc(100% / 2);
  }
}

@media screen and (max-width: 576px) {
  .team,
  .oferta {
    padding: 2rem;
    gap: 1.2rem;
    align-items: flex-start;
  }

  .text {
    font-size: var(--fs-300);
    line-height: 1.5rem;
  }

  .hello,
  .dlaczego {
    line-height: 2.5rem;
    font-size: var(--fs-400);
  }

  .gallery h2 {
    font-size: var(--fs-500);
  }

  .carousel img {
    width: 100%;
  }

  footer {
    flex-flow: column;
    gap: 0.75rem;
  }

  .social {
    flex-flow: row;
    gap: 2rem;
  }

  .hero {
    padding: 5rem 0 2rem 0;
  }

  .hero h2 {
    font-size: var(--fs-600);
  }

  .hero p {
    font-size: var(--fs-400);
  }
}

@media screen and (max-width: 400px) {
}

/* @media screen and (max-width: 550px) {
  .carousel img {
    width: 100%;
  }
} */
