*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  outline: none;
  list-style: none;
  border: 0 none;
  user-select: none;
}

html {
  overflow-x: hidden;
}

hr {
  background-color: #a0a0a0;
  height: 1px;
}

.separator_footer {
  margin-top: 8rem;
}

a {
  text-decoration: none;
  color: unset;
  transition: color 0.5s;
  cursor: pointer;
}

a:hover {
  color: #00aeef;
}
.section_active {
  color: #00aeef;
}
.main_container {
  width: min(1200px, 90%);
  margin: 2.5rem auto;
}

.main_container img {
  width: 100%;
  border-radius: 0.1rem;
}
.block_news img {
  width: 70%;
}
.main_title {
  padding: 5rem 0 1rem;
  text-align: center;
}
section,
article {
  margin: 4rem auto;
  width: 100%;
}

.main_block {
  gap: 4rem 2rem;
}
.main_block_3 {
  gap: 3rem 0rem;
}

.table_contact article:nth-child(n + 2) {
  border-top: 1px #a0a0a0 solid;
  padding-top: 2rem;
}

.table_contact article {
  margin: 0 auto 2rem;
}
article ul:nth-child(3) {
  margin-top: 3rem;
}

.table_contact ul {
  display: grid;
  gap: 1rem 1rem;

  grid-template-columns: 1fr;
}

.table_contact ul.row_5 {
  grid-template-rows: repeat(5, 1fr);
}

.table_contact ul.row_6 {
  grid-template-rows: repeat(6, 1fr);
}
.table_contact ol:nth-child(1) {
  font-weight: 700;
}

.block_grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
}

.block_grid_3 {
  display: grid;
  grid-template-columns: calc(40% - 0.8rem) calc(20% + 1.6rem) calc(
      40% - 0.8rem
    );
}

.item_expand {
  grid-column: span 2;
}
.item_expand_3 {
  grid-column: span 4;
}
.item_1 {
  grid-column: 1 / 2;
}
.item_3 {
  grid-column: 3 / 4;
}
.item_second {
  grid-column: 2;
}
.block_grid2 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.item_expand2 {
  grid-column: span 6;
}

.item_second2 {
  grid-column: span 3;
}
.item_third2 {
  grid-column: span 2;
}
.item_text_1 {
  margin-top: -1.7rem;
}

.button_to_top {
  opacity: 0;
  height: 1.5rem;
  width: 1.5rem;
  visibility: hidden;
  position: fixed;
  cursor: pointer;
  display: inline-flex;
  right: 0.5rem;
  bottom: 5rem;
  outline: 0;
  background-color: transparent;
  background-image: url("../images/arrow.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 10;
  -webkit-transition: opacity 0.5s ease-in-out;
  transition: opacity 0.5s ease-in-out;
}

.show {
  opacity: 1;
  visibility: visible;
}
.hide {
  opacity: 0;
}
.block_img1 {
  overflow: hidden;
}
.border_img {
  border-bottom: 1px solid white;
}
.services_img {
  margin-top: 1rem;
}
@media only screen and (max-width: 800px) {
  section,
  article {
    margin: 3rem auto;
  }
  .table_contact article {
    margin: 3rem auto;
  }

  .table_contact article:nth-child(n + 2) {
    padding-top: 3rem;
  }
  article ul:nth-child(3) {
    margin-top: 3rem;
  }

  .table_contact article:nth-child(1) {
    margin-top: -0.5rem;
  }

  .table_contact .item_expand {
    grid-column: span 2;
  }
  .block_grid,
  .block_grid_3 {
    grid-template-columns: 1fr;
  }

  .main_block {
    gap: 3rem 2rem;
  }
  .main_block_3 {
    gap: 3rem 0rem;
  }

  .item_expand,
  .item_expand_3,
  .item_second,
  .item_3 {
    grid-column: auto;
  }

  .main_block .item_text {
    margin-top: -1.2rem;
  }
}
