:root {
  --body-background-color: #ffffff;
  --block-background-color: #f4f8ff;
  --header-color: #4279f7;

  --link-color: #ffffff;
  --link-hover-color: #5a49f0;
  --button-color: #d64d17b8;

  --h1-color: #91ff3a;
  --h2-color: #ff8400b8;
}
body {
  background-color: var(--body-background-color);
}
.header-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: 40% 40%;
  filter: blur(5px);
  filter: brightness(30%); /* Зменшення яскравості та блюр */
}
/* Header Styles */
.header {
  background-color: var(--header-color); /* Dark background color */
  padding: 20px 40px; /* Padding for spacing */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Light shadow for depth */
  /* position: static; */
  top: 0;
  width: 100%;
  z-index: 100;
}

/* Main Menu */
.main-menu {
  list-style-type: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.main-menu li {
  margin: 0 20px; /* Space between menu items */
}

.main-menu a {
  text-decoration: none;
  color: var(--link-color);
  font-size: 18px; /* Text size */
  font-weight: bold; /* Make text bold */
  text-transform: uppercase; /* Uppercase text for a cleaner look */
  transition: color 0.3s, transform 0.3s; /* Smooth transition for hover effects */
}

/* Hover Effect */
.main-menu a:hover {
  color: var(--link-hover-color); /* Blue color on hover */
  transform: scale(1.1); /* Slight scaling effect */
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-menu {
    flex-direction: column; /* Stack items vertically on smaller screens */
    align-items: center;
  }

  .main-menu li {
    margin: 10px 0; /* Space out the items vertically */
  }

  .main-menu a {
    font-size: 16px; /* Slightly smaller font on mobile */
  }
}
.main-header {
  position: relative;
}
.main-header {
  margin-bottom: 20px;
  /* position: absolute; */
  /* top: 27%; */
  /* left: 50%; */
  /* transform: translate(-50%, -90%); */
  font-size: 44px;
  font-weight: bold;
  color: var(--h1-color);
  text-align: center;
}
.main-header-text1 {
  position: relative;
  /* position: absolute; */
  /* top: 50%; */
  /* left: 50%; */
  /* transform: translate(-50%, -70%); */
  font-size: 30px;
  font-weight: bold;
  color: rgb(255, 255, 255);
  text-align: center;
}
.section1 {
  display: flex; /* Apply flex layout */
  align-items: center; /* Align items vertically in the center */
  justify-content: space-between; /* Space out items evenly */
  gap: 20px; /* Add space between the flex items */
  padding: 60px 40px; /* Add padding inside the section */
  margin: 60px 0; /* Add vertical space outside the section */
  background-color: var(
    --block-background-color
  ); /* Optional: Light background for visibility */
  border: 1px solid #ddd; /* Optional: Border for definition */
  border-radius: 8px; /* Optional: Rounded corners */
}

.section1 div {
  flex: 1; /* Allow the div to grow and take available space */
  margin-right: 10px; /* Add spacing between div and img */
}

.section1 p {
  padding: 5px; /* Add padding inside the <p> for spacing */
  color: #333; /* Optional: Text color */
  margin-top: 10px;
  font-size: 16px;
}

.section1 img {
  width: 450px; /* Set a fixed width for the image */
  height: auto; /* Maintain aspect ratio */
  object-fit: cover; /* Ensure the image is properly scaled */
  margin-left: 10px; /* Add space between image and div */
  padding: 5px; /* Optional: Add padding inside the image box */
  border: 1px solid #ccc; /* Optional: Light border around image */
  border-radius: 4px; /* Optional: Slightly rounded corners */
}
.main-wrapper {
  max-width: 1200px;
  padding: 20px;
  margin: 0 auto;
}
h2 {
  font-size: 28px;
  font-weight: bold;
  color: var(--h2-color);
}
.section1-second {
  order: 2;
}

/* Section for Cards */
.section-cards {
  display: flex; /* Apply flex layout */
  justify-content: space-between; /* Distribute space evenly between cards */
  gap: 20px; /* Add space between cards */
  padding: 60px 40px; /* Add padding inside the section */
  margin: 60px 0; /* Vertical space outside the section */
  background-color: var(
    --block-background-color
  ); /* Optional: Light background for visibility */
}

.card {
  background-color: #fff; /* White background for the card */
  width: 30%; /* Each card takes 30% of the container width */
  padding: 20px; /* Padding inside the card */
  border: 1px solid #ddd; /* Border for card */
  border-radius: 8px; /* Rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  text-align: center; /* Center-align text inside the card */
  transition: transform 0.3s ease; /* Smooth transition for hover effect */
}

.card:hover {
  transform: scale(1.05); /* Slight scale effect on hover */
}

.card-image {
  width: 100%; /* Full width for image */
  height: auto; /* Maintain aspect ratio */
  object-fit: cover; /* Ensure image scales properly */
  border-radius: 8px; /* Rounded corners for the image */
}

.card-text {
  font-size: 16px;
  color: #555;
  margin: 15px 0;
}

@media (max-width: 768px) {
  .section-cards {
    flex-direction: column; /* Stack cards vertically on smaller screens */
    align-items: center; /* Center the cards */
  }

  .card {
    width: 80%; /* Make cards take up more space on mobile */
    margin-bottom: 20px; /* Add space between stacked cards */
  }
}

.section1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px;
  background-color: var(--block-background-color);
  gap: 30px;
}

.benefits-list-wrapp {
  /* max-width: 50%; */
}

.benefits-list {
  list-style-type: none;
  padding: 0;
}

.benefits-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  font-size: 16px;
}

body .benefits-list-img {
  width: 50px;
  height: 50px;
  margin-right: 15px;
}

.benefits-item p {
  font-size: 16px;
  color: #333;
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
}

img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.popup {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 20px;
  text-align: center;
  border-radius: 5px;
  transition: transform 0.5s ease-in-out;
}

.popup-content {
  max-width: 500px;
  margin: 0 auto;
}

.close-btn {
  background-color: #ff5722;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
  margin-top: 10px;
}

.close-btn:hover {
  background-color: #e64a19;
}

/* Footer Styles */
.footer {
  background-color: var(
    --header-color
  ); /* Той самий темний фон, що й у хедері */
  padding: 20px 40px; /* Відступи для футера */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Легке тіньове оформлення */
  position: relative;
  bottom: 0;
  width: 100%;
  text-align: center;
  color: #ecf0f1; /* Світлий колір тексту */
}

/* Main Menu */
.main-menu {
  list-style-type: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.main-menu li {
  margin: 0 20px; /* Простір між елементами меню */
}

/* Footer Text */
.footer-text {
  font-size: 14px;
  margin-top: 20px;
  color: var(--link-color);
  font-weight: normal;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-menu {
    flex-direction: column; /* Створення вертикального меню на менших екранах */
    align-items: center;
  }

  .main-menu li {
    margin: 10px 0; /* Простір між пунктами меню */
  }

  .main-menu a {
    font-size: 16px; /* Трошки менший шрифт на мобільних */
  }
}

/* Форма для підписки */
.subscribe-form {
  background-color: var(--block-background-color); /* Легкий фон */
  padding: 30px 40px; /* Відступи для внутрішнього простору */
  border-radius: 8px; /* Округлені кути */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Легке тіньове оформлення */
  max-width: 500px; /* Максимальна ширина форми */
  margin: 0 auto; /* Центрування форми */
  text-align: center; /* Центрування тексту */
}

.subscribe-form h3 {
  font-size: 24px;
  font-weight: bold;
  color: var(--h2-color);
  margin-bottom: 20px; /* Відступ від заголовка */
}

.subscribe-form input[type="text"],
.subscribe-form input[type="email"] {
  width: 100%; /* Повна ширина */
  padding: 10px 15px; /* Відступи всередині поля */
  margin: 10px 0; /* Простір між полями */
  border: 1px solid #ddd; /* Лінія навколо полів */
  border-radius: 4px; /* Округлені кути */
  font-size: 16px; /* Розмір шрифту */
}

.subscribe-form button {
  background-color: var(--button-color); /* Колір кнопки */
  color: #fff; /* Білий колір тексту */
  font-size: 1.2rem; /* Розмір шрифту */
  font-weight: bold;
  padding: 15px 30px; /* Відступи кнопки */
  border: 2px solid var(--button-color);
  border-radius: 50px; /* Округлені кути */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Легке тіньове оформлення */
  cursor: pointer;
  text-transform: uppercase; /* Великі літери */
  transition: all 0.3s ease;
  margin-top: 20px;
}

.subscribe-form button:hover {
  background-color: #fff;
  color: var(--button-color);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* Збільшення тіні при наведенні */
}

.subscribe-form button:active {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2); /* Зменшення тіні при натисканні */
}

/* Респонсив для форми */
@media (max-width: 768px) {
  .subscribe-form {
    padding: 20px; /* Менші відступи на малих екранах */
  }
  .subscribe-form input[type="text"],
  .subscribe-form input[type="email"] {
    font-size: 14px; /* Трошки менший шрифт на мобільних */
  }
  .subscribe-form button {
    font-size: 1rem; /* Трошки менший розмір шрифта кнопки */
  }
}

.form-hint {
  font-size: 12px;
  color: #535353;
  margin-top: 30px;
}

.main-header-block {
  align-items: center;
  display: flex;
  position: relative;
  min-height: 500px;
  padding: 50px 5px;
  background-image: url("/images/bg1.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 2;
}

.main-header,
.main-header-text1 {
  z-index: 5;
}
.dark {
  opacity: 0.5;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: #000000;
}

.mh-text-block {
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 887px) {
  .section1 {
    flex-direction: column;
    padding: 10px;
  }
}

@media (max-width: 585px) {
  .section-cards {
    padding: 10px;
  }
  .card {
    width: 100%;
  }
}
