@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

html,
body {
  font-family: "Montserrat", serif;
  font-size: 18px;
  box-sizing: border-box;
  margin: 0 auto;
  overflow-x: hidden;
}

li,
ul,
a {
  list-style: none;
  list-style-type: none;
  text-decoration: none;
  color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
  padding: 0;
}

.container {
  margin-top: 100px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* header */
.container-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.logo img {
  width: 70px;
}

.menu ul {
  display: flex;
  flex-direction: row;
  gap: 30px;
  color: #000;
}

.menu ul li:active,
.menu ul li:hover {
  color: #2ed6d0;
}

/* hero */

.background-hero {
  background-image: url("./img/hero-bckg.webp");
  height: 600px;
  background-size: 70%;
  background-position: left;
  background-repeat: no-repeat;
  background-attachment: fixed;
  width: 100%;
}

.container-hero {
  display: flex;
  height: 600px;
}

.none-block {
  flex: 1;
}

.hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-text_color {
  background-color: #fff;
  padding: 30px;
}

.hero-text_color h1 {
  color: #2ed6d0;
  font-size: 48px;
  text-transform: uppercase;
}

.hero-text_color p {
  font-style: italic;
}

/* about */

.about {
  margin-top: 100px;
  position: relative;
  width: 100%;
  height: 350px; /* Висота для прикладу */
  display: flex;
  align-items: center;
}
.about::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 20%;
  height: 100%;
  background-color: #2ed6d0;
  z-index: 1;
}

.about-block {
  display: flex;
  gap: 50px;
  background-color: #fff;
  padding: 50px 100px 50px 30px;
  width: 75%;
  justify-content: center;
}

.about-item {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.button, .button-form {
  display: inline-block; /* Займає лише ширину тексту */
  max-width: 200px;
  background-color: transparent;
  border: none;

  font-size: 18px;
  font-family: "Montserrat", serif;
  margin: 0;
  padding: 0;
  text-decoration: underline;
  text-decoration-style: double; /* Подвійне підкреслення */
  
  text-underline-offset: 5px; /* Відступ між текстом і лініями */
  cursor: pointer; /* Курсор у вигляді pointer */
}
.button {
    color: #2ed6d0;
  text-decoration-color: #2ed6d0; /* Колір ліній */
}

.button-form {
  color: #000;
  text-decoration-color: #000; /* Колір ліній */
}

.button:hover {
}

/* why us */
.why-us {
  display: flex;
  margin: 100px 0;
  position: relative; /* Додаємо position: relative */
  width: 100%;
}

.why-us::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50px;
  width: 60%;
  height: 100%;
  background-color: #2ed6d0;
  z-index: -10; /* Це працюватиме тільки після position: relative в .why-us */
}

.why-us img {
  max-width: 600px;
  width: 100%;
  z-index: 10;
  position: relative; /* Додаємо позиціонування для з`явлення z-index */
}

.why-us_item {
  flex: 1;
  padding: 50px 0;
  display: flex;
  flex-direction: column;
}

.end {
  align-items: end;
}

.why-us_text-r {
  margin-left: 70px;
}

.why-us_text {
  background-color: #fff;
  width: 50%;
  z-index: 100;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: -60px;
  position: relative; /* Додаємо позиціонування для з`явлення z-index */
}

.why-us_text p {
  font-style: italic;
}
/* advantages */
.advantages {
  background-image: url("./img/img3.webp");
  height: 500px;
  background-position: center left;
  background-size: 100%;
  background-repeat: no-repeat;
}
.advantages-text {
  background-color: #fff;
  padding: 40px;
  width: 50%;
  margin-top: -70px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 100px;
}

.advantages-text h2 {
  font-size: 48px;
}

/* misija */
.misija {
  display: flex;
  gap: 50px;
  margin-bottom: 100px;
  margin-top: 200px;
}

.misija-text {
  flex: 1;
}
.misija-text_img {
  background-color: #2ed6d0;
  padding: 80px 0 0 80px;
}
.misija-text_img img {
  max-width: 450px;
  width: 100%;
  margin-bottom: -50px;
}

.misija-img {
  position: relative;
  width: 80%;

  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.misija-img::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 80%;
  height: 100%;
  background-color: #2ed6d0;
  z-index: 1;
}

.misija-img img {
  position: static;
  max-width: 675px;
  z-index: 100;
}

.misija-img h2 {
  z-index: 100;
  font-size: 78px;
  text-transform: uppercase;
}

.misija-text_img-p {
  margin-top: 100px;
  padding-left: 80px;
  width: 500px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* photo */

.photo {
  background-color: #2ed6d0;
  margin-top: 200px;
  margin-bottom: 100px;
}

.container-photo {
  display: flex;
  justify-content: center;
}

.container-photo img {
  margin-top: -70px;
  margin-bottom: -70px;
  max-height: 800px;
}

/* cel */

.cel {
  display: flex;
  gap: 20px;
  margin-top: 200px;
}

.cel-text-desc {
  width: 80%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cel-img {
  flex: 1;
  background-color: #2ed6d0;
  padding: 60px 0 60px 40px;
  display: flex;
  justify-content: end;
  margin-right: 50px;
}
.cel-img img {
  width: 500px;
  margin-right: -50px;
}

.cel-text {
  flex: 1;
  padding: 66px;
  max-width: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.cel-text-img {
  display: flex; /* Встановлюємо флекс-контейнер */
  justify-content: space-between; /* Встановлюємо відстань між картинками */
  box-sizing: border-box; /* Ураховуємо відступи і межі */
}

.cel-text-img img {
  max-width: 45%; /* Картинки не виходять за межі контейнера */
  height: auto; /* Пропорції зберігаються */
  object-fit: cover; /* Забезпечує правильне відображення картинок без спотворення */
  box-sizing: border-box; /* Враховуємо відступи та межі */
}

/* contact */
.container-contact {
  position: relative;
  padding: 100px 0;
}

.container-contact::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background-color: #2ed6d0;
  z-index: -1;
}
.contact {
  margin-top: 10px;
  display: flex;
  gap: 50px;
  max-width: 100%;
  width: 100%;
}

.contact-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
  justify-content: center;
  width: 70%;
}

.contact-info-text_color {
  color: #2ed6d0;
  font-weight: 600;
}

.contact-img {
  flex: 1;
}

.contact-img img {
  max-width: 600px;
  width: 100%;
}

/* footer */

.footer-content,
.header-color {
  background-color: #2ed6d0;

  padding-top: 20px;
  padding-bottom: 20px;
}
.header-color ul {
  color: #000;
}
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer img {
  width: 70px;
}

.coop {
  text-align: center;
  font-size: 18px;
}

/* polisy */
.policy-container {
  margin-top: 100px;
}
.policy-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 50px;
  padding-bottom: 50px;
}

.policy-text ol > li {
  padding-top: 15px;
  padding-bottom: 15px;
}

.policy-text ul > li {
  list-style-type: disc;
}

/* contact */
.contact-block {
  position: relative;
}

.contact-block::after {
  content: "";
  position: absolute;
  top: 200px;
  bottom: 200px;
  width: 100%;
  background-color: #2ed6d0;
  z-index: -100;
}
.contact-block-container {
  display: flex;
  width: 80%;
  margin: 0 auto;
  margin-top: 100px;
}
.contact-text {
  background-color: #fff;
  margin: 150px -100px 150px 0;
  width: 50%;
  padding: 50px;
  z-index: 100;
  box-shadow: 5px 5px 20px 0 rgba(0, 0, 0, 0.4);
  text-align: center;
}

.contact-info-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

/* map */
.contact-form-map {
  max-width: 100%;
  margin-top: 50px;
}

.map iframe {
  width: 100%;
}

.contact-form {
  flex: 1;
  background-color: #2ed6d0;
  padding: 40px;

  margin-top: 70px;
}

.contact-form-map {
  margin-bottom: -10px;
}

.form {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-block {
  display: flex;
  gap: 5px;
  width: 100%;
}

.input__name {
  flex: 1;
}

.input__email {
  flex: 1;
}

.input,
.message {
  padding: 20px;
  border-radius: 10px;
  border: none;
}

textarea,
input::placeholder {
  font-family: "Montserrat", serif;
  font-size: 18px;
}
/* o nas */
.history {
}
.contact {
  margin-top: 100px;
}

.background-hero-o_nas {
  background-image: url("./img/img6.webp");
  height: 600px;
  background-size: 70%;
  background-position: left;
  background-repeat: no-repeat;
  background-attachment: fixed;
  width: 100%;
}
/* katalog */
.background-hero-katalog {
  background-image: url("./img/img5.webp");
  height: 600px;
  background-size: 70%;
  background-position: left;
  background-repeat: no-repeat;
  background-attachment: fixed;
  width: 100%;
}

.katalog-products-container {
  width: 70%; /* Встановлюємо ширину контейнера для всіх продуктів */
  margin: 0 auto; /* Центруємо контейнер */
}

.katalog-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 колонки */
  gap: 100px; /* Відступи між товарами */
  margin-bottom: 100px;
  margin-top: 100px;
}

/* Адаптація для мобільних пристроїв */
@media (max-width: 768px) {
  .katalog-products {
    grid-template-columns: 1fr; /* 1 товар в ряд */
  }

  .photo {
    display: none;
  }
  body {
    overflow-x: hidden;
  }
  .contact-text {
    margin: 0;
    padding: 20px;
    width: 90%;
    font-size: 16px;
  }

  .advantages-text {
    width: 80%;
  }

  .why-us_text {
    width: 90%;
    margin: 0;
  }

  .contact-block-container {
    width: 100%;
  }
  .cel-text {
    gap: 20px;
  }

  .cel-text-desc {
    width: 100%;
  }

  .contact-img img {
    display: none;
  }
}

.product-item {
  border: 1px solid #2ed6d0;
  padding: 30px 15px;
  text-align: center;
  background: #f9f9f9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 20px;
  width: 100%;
  gap: 20px;
}

.product-item p {
  color: #2ed6d0;
}

.product-item img {
  width: 100%;
  height: auto;
}

/* terms */
.terms {
  margin-top: 100px;
  margin-bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* burger */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001; /* Додайте високий z-index для бургера */
  position: relative; /* Встановіть позицію для правильного розташування */
}

.burger span {
  width: 30px;
  height: 4px;
  background: #2ed6d0;
  margin: 5px 0;
  transition: 0.4s;
  border-radius: 4px; /* Додайте округлені краї для ліній */
}

/* Стилі для перетворення бургеру в хрестик */
.burger.open span:nth-child(1) {
  transform: rotate(45deg);
  position: relative;
  top: 9px; /* Легке коригування для симетрії */
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: rotate(-45deg);
  position: relative;
  top: -9px; /* Легке коригування для симетрії */
}

@media (max-width: 768px) {
  .burger {
    display: flex;
    padding: 20px;
    z-index: 1001; /* Високий z-index для бургера, щоб він був поверх меню */
  }

  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 0;
    right: 0;
    background: #eee;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000; /* Меню має бути під бургером */
  }

  .menu.active {
    display: flex;
  }

  .menu ul {
    color: #000;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-direction: column;
  }

  .menu ul li {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #ddd;
  }
}

/* mob */

@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .hero-text_color h1 {
    font-size: 30px;
  }
  .container {
    padding: 0 20px;
  }

  .hero {
    margin-top: 50px;
    margin-bottom: 50px;
  }
  .about-block {
    flex-direction: column;
  }

  .katalog-list {
    flex-direction: column;
  }

  .why-us {
    flex-direction: column;
  }

  .advantages {
    height: 200px;
  }

  .advantages-text h2 {
    font-size: 30px;
  }

  .whu-us__star {
    padding: 50px;
    font-size: 18px;
  }

  .advantages {
    flex-direction: column;
  }

  .misija {
    flex-direction: column;
    align-items: center;
  }

  .misija-text_img-p {
    width: 100%;
    padding: 0;
  }

  .contact {
    flex-direction: column;
  }
  .container-contact {
    padding: 0;
  }

  .section-photo {
    height: 300px;
  }
  .cel {
    flex-direction: column;
    margin-top: 100px;
  }

  .cel-text {
    width: 90%;
    padding: 20px;
  }
  .footer-links {
    font-size: 18px;
    display: flex;
    flex-direction: column;
    justify-content: end;
  }

  .contact {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .contact-block h1 {
    font-size: 30px;
    padding-top: 50px;
  }

  .contact-text p {
    width: 100%;
    font-size: 18px;
    text-align: start;
  }

  .contact-info {
    flex-direction: column;
    font-size: 18px;
    margin-bottom: 30px;
  }

  .contact-img img {
    min-width: 360px;
    width: 100%;
  }

  .contact-form-map {
    flex-direction: column;
  }
  .map {
    width: auto;
  }
  .input-block {
    flex-direction: column;
    gap: 20px;
  }

  .o-nas-block {
    flex-direction: column;
  }

  .galery {
    flex-direction: column;
  }
  .galery-text h2 {
    font-size: 30px;
  }
  .policy-container h2 {
    text-align: center;
  }

  .header-color {
    padding: 0;
  }

  .katalog-container {
    margin-top: 30px;
    margin-bottom: 30px;
  }
}
