body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
}

.container {
  width: 100%;
  background-color: #fff;
}

header {
  color: #000;
  display: flex;
  padding: 8px;
  justify-content: space-between; /* Размещаем logoeye слева, nav справа */
  align-items: center;
}

.logoeye {
  display: flex;
  align-items: center;
  height: 50px; /* Задаем высоту 50px */
}

.logoeye img {
  height: 100%; /* Заполняем высоту контейнера */
  margin-right: 10px;
}

.logoeye h1 {
  font-size: 1.3rem;
  font-family: "Montserrat", sans-serif;
  letter-spacing: .09rem;
}

.hero {
  position: relative; /* Необходимо для позиционирования псевдоэлемента */
  background: url("../assets/111.jpg") 100% no-repeat; /* Добавляем фон */
  background-size: cover; /* Масштабируем фон */
  color: #fff;
  padding: 30px;
  overflow: hidden; /* Предотвращает выход псевдоэлемента за границы, если это необходимо */
  display: flex; /* Используем flexbox для размещения изображения и текста */
  align-items: center; /* Центрируем элементы по вертикали */
  justify-content: flex-end; /* Размещаем текст справа */
  height: 300px;
}


.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(128, 128, 128, 0.4); /* Полупрозрачный черный цвет */
  z-index: 1; /* Помещаем фон под текст */
}

.hero-text {
  z-index: 2; /* Помещаем текст поверх фона */
  text-align: center; /* Выравниваем текст справа */
  width: calc(100% - 60%);
}

.hero h2 {
  font-size: 2rem;
  color: #9AE4E4;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.06rem;
}

.services {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-card {
  border-radius: 5px;
  height: 600px;
  display: flex;
}

.goal {
  margin-top: 5rem;
  margin-bottom: 7rem;
  margin-left: 2rem;
}

.goal p {
  font-size: 1.2rem;
  line-height: 2.2;
  font-family: "Open Sans", sans-serif;
  font-weight: 500;
}

.left-service-card {
  flex-grow: 1;
  padding: 1rem;
  text-align: center; /* Align all text to the left */
  height: 400px;
  background-color: #5B7065;
  display: flex;
  flex-direction: column;
  justify-content: space-around; /* Center content vertically */
  
}



.left-service-card ul {
  list-style-position: inside;
  text-align: left; /* Left-align the list */
  padding-left: 0;
  margin-left: auto;
  margin-right: auto;
  width: fit-content; /* Make the UL width fit its content */
  font-family: "Open Sans", sans-serif;
  font-weight: 500;
  font-size: 1.2rem;
  color: #FFF;
}

.left-service-card ul li {
  margin-bottom: 10px;  /* Add 10 pixels of space below each list item */
}

.left-service-card ul li::marker {
  color: #9AE4E4; /* Your desired color */
  font-size: 1.2em; /* Optional: Adjust size */
}

.left-service-card h3 {
  font-size: 2rem;
  color: #FFF;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.06rem;
}

.service-card .img1 {
  height: 100%; /* Ограничиваем максимальную высоту изображения высотой контейнера */
  width: auto;
  border-right: .5rem solid #5B7065;
  border-bottom: .5rem solid #5B7065;
  border-radius: 0 0 10px 0;
}

.service-card .img2 {
  height: 100%; /* Ограничиваем максимальную высоту изображения высотой контейнера */
  width: auto;
  border-left: .5rem solid #5B7065;
  border-bottom: .5rem solid #5B7065;
  border-radius: 0 0 0 10px;
}

.right-service-card {
  flex-grow: 1; /* Занимает оставшееся пространство */
  padding: 1rem; /* Отступ между текстом и изображением */
  text-align: center;
  height: 500px;

  background-color: #5B7065;
  font-family: "Open Sans", sans-serif;
  font-weight: 500;
  font-size: 1.2rem;
  color: #FFF;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}


.right-service-card h3 {
  font-size: 2rem;
  color: #FFF;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.06rem;
}

.contact {
  margin-top: 30px;
  padding: 20px;
  background-color: #333;
  color: #fff;
  text-align: center;
  font-family: "Open Sans", sans-serif;
}

.contact p {
  margin-bottom: 20px;
}

.contact a {
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 5px;
}

.contact a:hover {
  color: #9AE4E4;
  text-decoration: none;
}

footer {
  background-color: #fff;
  color: #000;
  text-align: center;
  padding: 10px;
  font-family: "Open Sans", sans-serif;
  font-weight: 500;
}

footer p {
  font-size: 0.85rem;
}

/* Initial styles to hide and position elements */
.goal,
.service-card {
  opacity: 0;
  transform: translateY(20px); /* Move elements down slightly */
  transition: opacity 0.5s ease, transform 0.5s ease; /* Smooth transition */
}

/* Class to add when element is in view */
.show {
  opacity: 1;
  transform: translateY(0); /* Move elements to their original position */
}

/* You might want to adjust the timing for different elements */
.goal:nth-of-type(1),
.service-card:nth-of-type(1) {
  transition-delay: 0.2s;
}

.goal:nth-of-type(2),
.service-card:nth-of-type(2) {
  transition-delay: 0.4s;
}


/* Media Queries */

/* For screens smaller than 768px (e.g., mobile phones) */
@media screen and (max-width: 1024px) {
header {
  flex-direction: row; /* Keep logo and nav in a row */
  justify-content: space-between; /* Space between logo and nav */
  padding: 5px 10px; /* Reduced padding */
  height: 50px; /* Further reduced header height */
}

.logoeye img {
  max-height: 40px; /* Smaller image on mobile */
  margin-right: 5px; /* Less spacing */
}

.logoeye h1 {
  font-size: 1rem; /* Even smaller text */
  letter-spacing: 0.03rem; /* Less letter spacing */
}


.hero {
padding: 20px;
height: auto; /* Allow height to adjust */
flex-direction: column; /* Stack text and image */
justify-content: center; /* Center content */
text-align: center;
}

.hero-text {
width: 100%; /* Full width on mobile */
}

.hero h2 {
font-size: 1.5rem; /* Smaller heading on mobile */
}

.service-card {
flex-direction: column; /* Stack text and image vertically */
height: auto; /* Allow height to adjust */
}

.left-service-card,
.right-service-card {
width: 100%; /* Full width on mobile */
height: auto; /* Allow height to adjust */
padding: 1rem;
}

.left-service-card h3 {
  font-size: .5rem;
}

.left-service-card ul {
  margin-top: 1rem;
}

.right-service-card h3 {
  margin-bottom: 1rem;
}

.service-card .img1,
.service-card .img2 {
  width: 100%; /* Full width on mobile */
  height: auto;
  border: none; /* Remove borders on mobile */
  border-radius: 5px; /* Consistent radius */
}

.goal {
  margin: 2rem 1rem; /* Adjust margins on mobile */
}

.goal p {
  font-size: 1rem; /* Smaller text on mobile */
  line-height: 1.6; /* Adjust line height for readability */
}

.left-service-card h3,
.right-service-card h3 {
  font-size: 1.5rem; /* Smaller heading on mobile */
}

.left-service-card ul,
.right-service-card ul {
    font-size: 1rem; /* Smaller list text on mobile */
  }
}

/* Media Query for Google Nest Hub Max (Landscape) */
@media screen and (min-width: 801px) and (max-width: 1280px) and (orientation: landscape) {
.service-card .img2 {
  height: 60%; /* Adjust image height for better fit */
  width: auto;
  border-left: 0.5rem solid #5b7065;
  border-bottom: 0.5rem solid #5b7065;
  border-radius: 0 0 0 10px;
}

.right-service-card {
  flex-grow: 1;
  padding: 2rem; /* Increase padding for better readability */
  text-align: center;
  height: 500px; /* Keep height consistent or adjust */
  background-color: #5b7065;
  font-family: "Open Sans", sans-serif;
  font-weight: 500;
  font-size: 1.1rem; /* Slightly smaller font size */
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.right-service-card h3 {
  font-size: 1.8rem; /* Slightly smaller heading */
  color: #fff;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.05rem; /* Slightly less letter spacing */
  }
}
 