* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #747A96;
  background-color: #fff;
}

a {
    text-decoration: none;
    color: #747A96;
}

h1, h2, h3, h4, h5, h6 {
  color: #5777ba;
}

p {
    display: block;
    margin-block-start: 0.5em;
    margin-block-end: 0.5em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
    color: #747A96;
    line-height: 1.5;
    text-align: justify;
}

ol {
  display: block;
  list-style-type: decimal;
  padding-inline-start: 40px;
  unicode-bidi: isolate;
}

/* Главное наполнение страницы */

.main-container {
  padding: 70px 0 30px 0;
  width: 100%;
}

.content-container {
  padding: 0 52px;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 68vh;
}

.content-container li {
  padding: 4px 0;
}

.content-container hr {
  width: 100%;
  overflow: visible;
  margin: 0 0 20px 0;
  border: 0;
  border-top: 1px solid #e5e9ed;
}

.content-container a {
  color: #5777ba;          /* основной цвет ссылки */
  font-weight: bold;        /* выделение */
  text-decoration: none;
  transition: color 0.3s, text-decoration 0.3s;
}

.content-container a:hover {
  color: #2d465e;           /* цвет при наведении */
  text-decoration: underline;
}

/* Фрейм метаданных*/

.content-container iframe{
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 90vh;
  border: none;
  z-index: 1;
}

/* Выпадающий контейнер с текстом */

.more-container {
  max-width: 100%
}

.more-text {
  display: none; /* скрыто по умолчанию */
  margin-top: 5px;
}

.toggle-btn {
  background: none;
  border: none;
  color: #5777ba;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  padding: 0;
  float: right;
}

.toggle-btn:hover {
  text-decoration: underline;
}

@media screen and (min-width: 1200px) {
  .content-container{
    padding: 0 140px;
  }
}

/* стили для iframe */

iframe {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 73vh;
  border: none;
  z-index: 1;
}


/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 14px;
  background-color: #f8f9fa;
  margin-right: 40px;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.active {
  color: #5777ba;
  font-weight: bold;
}

.navmenu {
  display: flex;
  gap: 24px;
  flex-wrap: wrap; /* Чтобы переносилось на новую строку при малых экранах */
  padding: 0 12px;
}

.navmenu a {
    padding: 8px 0;
    transition: color 0.3s;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.navmenu a:hover {
    color: #5777ba;
}

/* всплывающее меню */

.navmenu .icon {
  display: none;
}

.language img {
  display: block;
  margin-left: 24px;
}

@media screen and (max-width: 1200px) {
  .navmenu a {display: none;}
  .navmenu a.icon {
    display: block;
    padding: 4px 8px;
  }
  .navmenu .icon i {
  font-size: 32px;
  }
}

@media screen and (max-width: 1200px) {
  .navmenu.responsive {
    position: relative;
    gap: 0;
    padding: 0;
  }
  .navmenu.responsive .icon {
    display: none;
    right: 0;
    top: 0;
  }
  .navmenu.responsive a {
    float: none;
    display: block;
    text-align: right;
    width: 100%;
    padding: 12px 12px;
  }
  .navmenu.responsive .language img {
    display: inline;
    margin: 0;
  }
}

/* Footer */
footer {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  justify-self: center;
  justify-content: center;
  padding: 0 12px;
  background-color: #f8f9fa;
  color: #747A96;
  font-family: Arial, sans-serif;
}

.footer_container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 12px;
  gap: 16px;
}

.footer_container a {
  color: #5777ba;          /* основной цвет ссылки */
  font-weight: bold;        /* выделение */
  text-decoration: none;
  transition: color 0.3s, text-decoration 0.3s; /* плавный переход при ховере */
  align-items: center;
}

.footer_container a:hover {
  color: #2d465e;           /* цвет при наведении */
  text-decoration: underline; /* подчеркивание при наведении */
}