@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: auto;
}

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: 1200px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 20px;
}

/* header */
.header {
  background-color: #004a6c;
}

.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: #ddd;
}

.menu ul li:active,
.menu ul li:hover {
  color: #87888d;
}

/* hero */

.background-hero {
  background-image: url("./img/hero-bckg.webp");
  height: 700px;
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  width: 100%;
  position: relative;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 20px;

  background-color: #004a6c;
  color: #ddd;
  padding: 40px;
  width: 40%;
  position: absolute;
  right: 0;
  top: 200px;
}

.hero-text h1 {
  font-size: 56px;
}

.hero-text p {
  font-size: 20px;
  text-transform: uppercase;
}

/* about */

.about {
  margin: 100px 0;
}

.about-container {
  display: flex;
  gap: 40px;
}
.about-item img {
  min-width: 350px;
  width: 100%;
}

.about-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
  justify-content: space-between;
}

.about-item-text {
  border: solid 2px #004a6c;
  padding: 20px 50px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-item-text h3 {
  font-size: 46px;
}

.about-item-text p {
  line-height: 1.8;
}

.button {
  display: inline-block; /* Займає лише ширину тексту */

  background-color: transparent;
  border: solid 2px #ddd;
  color: #ddd;
  font-size: 18px;
  font-family: "Montserrat", serif;
  margin: 0;
  padding: 10px 20px;
  cursor: pointer; /* Курсор у вигляді pointer */
}

.button:hover {
}

/* advantages */
.advantages {
  background-color: #537383;
  padding: 100px 0;
}

.advantages h2 {
  font-size: 48px;
  text-transform: uppercase;
  text-align: center;
  padding-bottom: 70px;
}

.advantages-block {
  display: flex;
  gap: 50px;
}
.advantages-text {
  display: flex;
  flex-direction: column;
  gap: 70px;
}

.advantages-circle {
  display: flex;
  gap: 20px;
  align-items: start;
}

.advantages-circle img {
  max-width: 20px;
}

/* komfort */

.komfort {
  margin: 100px 0;
}

.komfort h2 {
  font-size: 48px;
  text-transform: uppercase;
  text-align: center;
  padding-bottom: 70px;
}
.komfort-block {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.komfort-item {
  display: flex;
  gap: 40px;
}

.komfort-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  background-color: #537383;
  padding: 50px;
  gap: 40px;
}

.komfort-text h3 {
  font-size: 35px;
}

.komfort-img {
  flex: 1;
}

.komfort-img img {
  max-width: 800px;
  width: 100%;
  height: 100%;
}

/* why-us */
.why-us {
  background-color: #537383;
  margin-bottom: 0;
}

.why-us-container {
  display: flex;

  padding: 100px 0;
}

.img {
  flex: 1;
}
.img img {
  max-width: 1000px;
  width: 100%;
  height: 100%;
}
.why-us-text-item {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.why-us-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
  background-color: #fff;
  color: #000;
  padding: 40px;
}

.why-us-text h3 {
  font-size: 38px;
  text-transform: uppercase;
}

.why-us-text-img {
  background-color: #537383;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0; /* Запобігає розтягуванню */
  align-self: flex-start;
}

.why-us-text-img img {
  width: 40px;
  height: auto;
  object-fit: cover;
}

.why-us-text-two {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.why-us-text-two p {
  line-height: 1.6;
}

.why-us-text-two h5 {
  font-size: 22px;
}

/* history-block */
.history {
  position: relative;
  padding: 50px 0; /* Dostosuj padding według potrzeb */
}

.history::before {
  content: "";
  position: absolute;
  top: 0;
  left: 30%;
  width: 300px; /* Szerokość paska */
  height: 100%;
  background-color: #537383;
  transform: translateX(-50%); /* Wyśrodkowanie */
  z-index: -1;
}

.history-block {
  display: flex;
  gap: 40px;
  margin: 100px 0;
}
.histiry-img {
  flex: 1;
}
.histiry-img img {
  min-width: 400px;
  width: 100%;
}

.history-text {
  flex: 1;
  max-width: 800px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.history-text h3 {
  font-size: 48px;
}
.history-text p {
  line-height: 1.8;
}
.history-text img {
  max-width: 200px;
  width: 100%;
}

/* partner-text */

.partner-text {
  background-color: #004a6c;
  padding: 100px 0;
}

.partner-text-block h2 {
  font-size: 58px;
}
.partner-text-block {
  display: flex;
  flex-direction: column;
  gap: 40px;
  color: #ddd;
}

/* contact */

.contact-block-container {
  display: flex;
  align-items: center;
  background-color: #537383;
  height: 900px;
  overflow: hidden;
}

.contact-info {
  flex: 1;
  height: 900px;
}

.contact-img {
  height: 100%;
}

.contact-block-container img {
  min-width: 400px;
  height: 100%;
}

.contact-info-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px;
}

.contact-info-text h3 {
  font-size: 48px;
}

/* footer */

.footer-content {
  background-color: #004a6c;

  padding-top: 20px;
  padding-bottom: 20px;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ddd;
}

.footer img {
  width: 70px;
}

.coop {
  text-align: center;
  font-size: 18px;
  color: #ddd;
}

/* 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 */

/* map */
.contact-form-map {
  max-width: 100%;
}

.map iframe {
  width: 100%;
}

.contact-form {
  flex: 1;
  background-color: #004a6c;
  padding: 40px;
  color: #ddd;
  width: 430px;
}

.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 */

.background-hero-o_nas {
  background-image: url("./img/about-bckg.webp");
  height: 700px;
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  width: 100%;
  position: relative;
}
/* katalog */
.background-hero-katalog {
  background-image: url("./img/katalog-bckg.webp");
  height: 700px;
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  width: 100%;
  position: relative;
}

.hero-text-katalog {
  display: flex;
  flex-direction: column;
  gap: 20px;

  background-color: #004a6c;
  color: #ddd;
  padding: 40px;
  width: 60%;
  position: absolute;
  right: 0;
  top: 200px;
}

.hero-text-katalog h1 {
  font-size: 56px;
}

.hero-text-katalog p {
  font-size: 20px;
  text-transform: uppercase;
}

.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) {
  .about-container {
    flex-direction: column;
    gap: 20px;
  }

  .about-item-text h3 {
    font-size: 26px;
  }
  .advantages h2 {
    font-size: 30px;
  }
  .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;
  }

  .hero-text {
    min-width: 330px;
  }
}

.product-item {
  border: 1px solid #004a6c;
  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: #004a6c;
}

.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: #ddd;
  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 для бургера, щоб він був поверх меню */
  }
  .hero-text h1 {
    font-size: 38px;
  }
  .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;
  }

  .about-block {
    flex-direction: column;
  }

  .katalog-list {
    flex-direction: column;
  }

  .why-us {
    flex-direction: column;
  }

  .advantages {
    height: auto;
  }

  .komfort h2 {
    font-size: 30px;
  }
  .komfort-item {
    flex-direction: column;
  }

  .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;
  }
  .background-hero {
    background-image: url("./img/hero-bckg.webp");
    height: 700px;
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    width: 100%;
    position: relative;
  }

  .background-hero-o_nas, .background-hero-katalog {
    height: 700px;
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    width: 100%;
    position: relative;
  }
  .katalog-container {
    margin-top: 30px;
    margin-bottom: 30px;
  }
  .histiry-img img {
    min-width: 330px;
  }

  .history-block {
    flex-direction: column;
  }
  .history-text h3 {
    font-size: 30px;
  }

  .partner-text-block h2 {
    font-size: 30px;
  }

  .hero-text-katalog h1 {
    font-size: 30px;
  }

  .hero-text-katalog {
    width: auto;
  }

  .contact-block-container {
    flex-direction: column;
  }
.contact-info-text {
  padding: 0;
}
  .contact-info-text h3 {
    font-size: 30px;
  }

  .contact-form  {
    width: auto;
  }

  .why-us-container {
    flex-direction: column;
  }
}
