body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

/* HEADER */
.header {
  background: #fff;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  flex-wrap: wrap;
}

.logo img {
  max-width: 150px;
  height: auto;
}

.header-text {
  text-align: center;
  flex: 1;
}

.header-text h1 {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  color: #008067;
}

.header-text p {
  margin: 3px 0 0;
  font-size: 12px;
  color: #008067;
  line-height: 1.3;
  text-transform: uppercase;
}

.header-contacts {
  text-align: right;
  font-size: 13px;
}

.header-contacts a {
  color: #008067;
  text-decoration: none;
}

.header-contacts a:hover {
  text-decoration: underline;
}

/* Адаптив header */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .logo img {
    max-width: 100px;
  }

  .header-text h1 {
    font-size: 16px;
  }

  .header-text p {
    font-size: 11px;
  }

  .header-contacts {
    text-align: center;
  }
}

/* SECTION */
.section {
  padding: 20px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.section h2 {
  background: #4f9d8d;
  color: white;
  padding: 15px;
  margin-bottom: 20px;
  font-size: 18px;
}

.section p {
  line-height: 1.6;
}

.section img,
.lab-image {
  width: 100%;
  max-height: 270px;  /* увеличил с 250px */
  object-fit: cover;
  border-radius: 10px;
  margin: 20px auto;
  display: block;
}

/* Кнопки */
.btn {
  display: inline-block;
  background: #4f9d8d;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 15px;
  font-size: 16px;
  transition: 0.3s;
}

.btn:hover {
  background: #3b7a6c;
}

/* FEATURES */
/* ПК — сетка 3x2 */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.feature {
  text-align: center;
  padding: 15px;
}

.feature img {
  max-width: 80px;
  margin-bottom: 10px;
}

.feature p {
  font-size: 16px;
  line-height: 1.4;
}

/* Мобильная версия — свайп по одному знаку */
@media (max-width: 768px) {
  .features {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding: 10px 0;
  }

  .feature {
    flex: 0 0 100%;
    scroll-snap-align: center;
    box-sizing: border-box;
  }

  .feature img {
    max-width: 100px;
  }
}

/* FOOTER */
.footer {
  background: #f8f8f8;
  padding: 20px;
  border-top: 1px solid #ddd;
}

.footer-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.footer-logo-block {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  text-align: left;
}

.footer-logo-block img {
  max-width: 360px;
  height: auto;
}

.footer-text p {
  margin: 3px 0;
  font-size: 14px;
  color: #333;
}


@media (max-width: 768px) {
  .footer-logo-block {
    flex-direction: column;
    text-align: center;
  }

  .footer-logo-block img {
    max-width: 230px; /* мобилка — уменьшенный логотип */
    margin-bottom: 10px;
  }
}
html { zoom: 1.58; /* Увеличивает всё содержимое в 2 раза */ }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
 /* margin: 40px 0;*/
  text-align: center;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.feature img {
  width: 20px;
  height: 30px;
  padding: 15px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  margin-bottom: 15px;
  object-fit: contain;
}

.feature p {
  font-size: 15px;
  margin: 0;
  color: #333;
}

/* Мобильная версия — свайп по одному */
@media (max-width: 768px) {
  .features {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    padding: 10px;
  }

  .feature {
    flex: 0 0 100%;
    scroll-snap-align: center;
  }

  .feature img {
    width: 70px;
    height: 70px;
    padding: 18px;
  }
}
/* Скрываем попап по умолчанию */
#consultPopup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5); /* затемнение */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Контент попапа без анимации по умолчанию */
.popup-content {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  width: 600px;
  max-width: 90%;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  position: relative;
  transform: scale(1); /* стандартный масштаб */
  opacity: 1; /* видимость по умолчанию не меняем */
  transition: all 0.3s ease-out; /* анимация появление при открытии */
}
.popup-content.show {
  transform: scale(1);
  opacity: 1;
}
/* Крестик закрытия */
.popup-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 24px;
  cursor: pointer;
  color: #444;
}
.popup-close:hover {
  color: #000;
}

/* Анимация появления */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

/* Общие стили для попапа */
.popup-overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: auto; /* Чтобы был скролл, если не помещается */
}

/* Планшеты */
@media (max-width: 992px) {
  .popup-content {
    width: 500px;
  }
}

/* Мобильные */
@media (max-width: 768px) {
  .popup-content {
    width: 90%;
    max-height: 90vh;
    padding: 10px;      /* меньше padding */
    font-size: 14px;    /* уменьшенный шрифт */
    overflow-y: auto;
  }
}

@media (max-width: 480px) {
  .popup-content {
    width: 95%;
    max-height: 90vh;
    padding: 8px;
    font-size: 5px;
    overflow-y: auto;
  }
}

@media (max-width: 350px) {
  .popup-content {
    width: 98%;
    max-height: 85vh;
    padding: 6px;
    font-size: 11px;
    overflow-y: auto;
  }
}
/* Контактный блок */
.contact-box {
  background-color: #6ca18a;
  color: white;
  padding: 30px;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
}
.contact-box a {
  color: white;
  text-decoration: underline;
}
.contact-box a:hover {
  color: #f0f0f0;
}

/* Стили твоей кнопки */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #4f9d8d;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s;
}
.btn:hover {
  background-color: #3c7d6f;
}
