html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #f8f9fa;
  color: #333;
}

header {
  background-color: #007b5e;
  color: white;
  padding: 1rem 2rem;
  text-align: center;
  display: flex;
  justify-content: center;
  /* центрируем элементы по главной оси */
  align-items: center;
  /* выравниваем по вертикали */
  position: relative;
  /* для позиционирования логотипа */
}

/*.intro-section {
  max-width: 60vw;
  margin: 0 auto 0.2rem auto;
  padding: 1rem 2rem;
  background-color: white;
  border-left: 5px solid #007b5e;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
  */

.intro-section {
  max-width: 900px;
  margin: 0 auto 0.2rem auto;
  padding: 1rem 2rem;
  background-color: white;
  border-radius: 12px;
  border: 5px solid #007b5e;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 1rem 2rem;
  text-align: center;
  display: flex;
  gap: 1rem;
  justify-content: space-around;
  align-items: center;
  /* выравниваем по вертикали */
}

.intro-text {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #007b5e;
  font-weight: 500;
  text-align: center;
}

.intro-img {
  width: 4rem;
  height: 4rem;
}

h1 {
  margin: 0;
  font-size: 2.5rem;
}

h2 {
  font-size: 1.7rem;
}

h3 {
  font-size: 1.4rem;
}

h4 {
  font-size: 1.2rem;
}

h2,
h3,
h4 {
  color: #007b5e;
}

.logo {
  width: 4rem;
  height: 4rem;
}

.logo-container {
  position: absolute;
  /* вырываем логотип из потока */
  left: 1rem;
  /* отступ справа 1rem */
  border: 2px solid white;
  /* Белая рамка 2px */
  border-radius: 4px;
  /* Закругленные углы (опционально) */
  padding: 4px;
  /* Отступ между рамкой и логотипом */
  background-color: rgba(245, 241, 241, 0.479);
}

main {
  padding: 1rem 2rem;
}

.btn-HomeandAd-contaner {
  display: flex;
  justify-content: center;
  position: relative;
}

#homeButton {
  position: absolute;
  background-color: #007b5e;
  color: white;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

#homeButton:hover {
  background-color: #005f47;
}

#homeButton:active {
  transform: scale(0.95);
}

#homeButton:focus {
  outline: none;
}

.back-to-top {
  text-align: right;
  margin: 1rem 4rem 0 auto;
  /* auto слева сместит вправо */
  width: fit-content;
}

.back-to-top a {
  text-decoration: none;
  background-color: #007b5e;
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.back-to-top a:hover {
  background-color: #005f47;
}

.back-to-header {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.back-to-header.show {
  opacity: 1;
  visibility: visible;
}

@keyframes monkey-swing {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-10deg);
  }

  50% {
    transform: rotate(10deg);
  }

  75% {
    transform: rotate(-10deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

.monkey:hover {
  animation: monkey-swing 0.6s ease-in-out infinite;
}

.auto-swing {
  animation: monkey-swing 1.2s ease-in-out;
}

.monkey {
  width: 4rem;
  height: 4rem;
}

/* Стили для модального окна
________________________________________________________ */
.modal {
  display: none;
  /* Скрыто по умолчанию */
  position: fixed;
  /* Поверх всего */
  z-index: 1000;
  /* Поверх других элементов */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  /* Полупрозрачный черный фон */
  text-align: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  margin-top: 5vh;
  /* Отступ сверху */
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.clickable-image {
  cursor: zoom-in;
  /* Курсор "лупа" при наведении */
  transition: transform 0.2s;
}

.clickable-image:hover {
  transform: scale(1.02);
  /* Легкое увеличение при наведении */
}

/*____________________стили для модального окна end*/

.content,
.content1,
.content2,
.content3 {
  max-width: 70vw;
  width: 65vw;
  margin: auto;
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.content strong,
.content1 strong,
.content2 strong,
.content3 strong {
  color: #007b5e;
}

.table-wrapper {
  overflow-x: auto;
  margin-top: 2rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin: auto;
  font-size: 0.95rem;
}

.table thead {
  background-color: #007b5e;
  color: white;
}

.table th,
.table td {
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  text-align: left;
}

.table tr:nth-child(even) {
  background-color: #f4f4f4;
}

.info-card {
  margin-bottom: 2rem;
  border-radius: 8px;
  border-left: 5px solid #007b5e;
  padding-left: 2rem;
}

.link {
  color: #007b5e;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.link:hover {
  color: #005f48;
  text-decoration: underline;
}

.link-see {
  font-size: 1.5em;
  text-decoration: underline;
}