/* h2 */
h2 {
  font-weight: 600;
  font-size: calc(20px + 16 * ((100vw - 370px) / (1920 - 370)));
  line-height: 140%;
  color: #243d3a;
  text-align: center;
}
/* h2 */
/* banner_text */
.banner_text p {
  font-weight: 400;
  font-size: 15px;
  line-height: 140%;
  color: #39464a;
}
/* banner_text */
/* block_team */
.block_team h2 {
  margin-bottom: 40px;
}
/* block_team */
/* certificates */
.certificates {
  width: 100%;
  padding: 0 15px;
}
.certificates .container {
  padding: 60px 0;
}
.certificates h2 {
  margin-bottom: 40px;
}
.certificates_items {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.certificates_item_wrap {
  width: calc(100% / 4 - 30px / 4);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0px 4px 20px rgb(4 4 4 / 8%);
}
.certificates_item_wrap span {
  position: absolute;
  left: 0px;
  bottom: 0px;
  width: 100%;
  padding: 5px 0px;
  background-color: rgb(62 99 95 / 80%);
  color: #fff;
  text-align: center;
  z-index: 1;
  font-size: 12px;
}
.certificates_item {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 2/3;
}
.certificates_items_mini {
  width: calc(100% / 4 - 30px / 4);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.certificates_item_mini_wrap {
  width: 100%;
  height: calc(50% - 5px);
  position: relative;
  cursor: pointer;
  box-shadow: 0px 4px 20px rgb(4 4 4 / 8%);
}
.certificates_item_mini_wrap span {
  position: absolute;
  left: 0px;
  bottom: 0px;
  width: 100%;
  padding: 5px 0px;
  background-color: rgb(62 99 95 / 80%);
  color: #fff;
  text-align: center;
  z-index: 1;
  font-size: 12px;
}
.certificates_item_mini {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 2/1.5;
}
.certificates_popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgb(62 99 95 / 80%);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 4;
  display: none;
}
.certificates_popup_active {
  display: flex;
}
.certificates_popup_img {
  height: fit-content;
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}
.certificates_popup_name {
  color: #fff;
  background-color: rgb(62 99 95 / 13%);
  margin-top: 15px;
  font-weight: 600;
}
.certificates_popup_close {
  position: absolute;
  top: 50px;
  right: 50px;
  width: 30px;
  height: 30px;
  font-size: 16px;
}
.certificates_popup_close svg {
  width: 100%;
  height: 100%;
  fill: #fff;
}
/* certificates */

@media screen and (max-width: 1100px) {
  .certificates_items {
    flex-wrap: wrap;
    gap: 20px;
  }
  .certificates_item_wrap {
    width: calc(100% / 3 - 40px / 3);
  }
  .certificates_items_mini {
    flex-direction: row;
    width: 100%;
  }
  .certificates_item_mini {
    aspect-ratio: 3/2;
  }
  .certificates_item_mini_wrap {
    width: calc(50% - 10px);
  }
  .certificates_item_mini_wrap {
    height: auto;
  }
}

@media screen and (max-width: 700px) {
  .certificates_popup_name {
    width: 80%;
    text-align: center;
  }
  .block_team h2 {
    margin-bottom: 30px;
  }
  .certificates_item_wrap {
    width: calc(50% - 15px / 2);
  }
  .certificates_items_mini {
    flex-direction: column;
    width: calc(50% - 15px / 2);
  }
  .certificates_item_mini_wrap {
    width: 100%;
    height: 50%;
  }
  .certificates_items {
    gap: 15px;
  }
  .certificates h2 {
    margin-bottom: 30px;
  }
  .certificates .container {
    padding: 50px 0;
  }
}
@media screen and (max-width: 600px) {
  .certificates_popup_close {
    width: 20px;
    height: 20px;
    top: 20px;
    right: 20px;
  }
}

@media screen and (max-width: 400px) {
  .certificates_item_wrap {
    width: 100%;
  }
  .certificates_items_mini {
    flex-direction: column;
    width: 100%;
  }
}
