.contacts__top {
  margin-bottom: 64px;
}

.contacts__text {
  width: 400px;
}

.contacts__text h6 {
  margin-bottom: 16px;
}

.contacts__text p {
  margin-bottom: 16px;
}

.contacts__text p:last-child {
  margin-bottom: 0;
}

.contacts__list {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (1fr)[2];
  grid-template-columns: repeat(2, 1fr);
}

.contacts__ico {
  width: 32px;
  height: 32px;
  border-radius: 12px;
}

.contacts__item {
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
}

.contacts__item a {
  color: var(--text);
  -webkit-transition: 0.4s;
  -o-transition: 0.4s;
  transition: 0.4s;
}

.contacts__item a:hover {
  color: var(--text2);
}

.contacts__buttons {
  margin-top: auto;
}

.contacts__buttons .button {
  width: 284px;
  max-width: 100%;
}

.contat_map {
  margin-bottom: 40px;
}

.contat_map__tities {
  width: 100%;
  gap: 32px;
}

.contat_map__city {
  flex: 1;  
}

.contat_map__address_block {
  width: 320px;
  position: relative;
}

.contat_map__address_scroll {
  padding-right: 24px;
  height: 536px;
  overflow: hidden auto;
  margin-left: -6px;
  padding-left: 6px;
  margin-bottom: -2px;
  padding-bottom: 20px;
}

.contat_map__address_scroll .simplebar-track.simplebar-vertical {
  right: 3px;
}

.contat_map__address_scroll::after {
  content: "";
  display: block;
  width: calc(100% + 12px);
  height: 32px;
  position: absolute;
  bottom: 0;
  left: -6px;
  background: -webkit-gradient(linear, left bottom, left top, from(rgb(255, 255, 255)), to(rgba(255, 255, 255, 0)));
  background: -o-linear-gradient(bottom, rgb(255, 255, 255) 0%, rgba(255, 255, 255, 0) 100%);
  background: linear-gradient(0deg, rgb(255, 255, 255) 0%, rgba(255, 255, 255, 0) 100%);
}

.address__popup .contat_map__address_list {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

.contat_map__address_item {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--border);
  cursor: pointer;
}

.contat_map__address_item.active {
  -webkit-box-shadow: 0px 8px 16px -8px rgba(160, 189, 221, 0.15);
          box-shadow: 0px 8px 16px -8px rgba(160, 189, 221, 0.15);
  border-color: var(--white);
}

.contat_map__address_item.city-hide {
  display: none;
}

.contat_map__address_item.active .contat_map__address_title {
  color: var(--element);
}

.popup .contat_map__address_item {
  width: 100%;
}

.contat_map__address_title {
  -webkit-transition: 0.4s;
  -o-transition: 0.4s;
  transition: 0.4s;
}

.contat_map__map_list {
  height: 536px;
  border: 1px solid var(--border);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}

.contat_map__map_item {
  display: none;
  width: 100%;
  height: 100%;
}

.contat_map__map_item.active {
  display: block;
}

.contat_map__map_button {
  display: none !important;
}

.employees-big-image {
  margin-bottom: 64px;
  border-radius: 32px;
}

.employees {
  margin-bottom: 40px;
}

.employees__list {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (1fr)[3];
  grid-template-columns: repeat(3, 1fr);
}

.employee {
  padding: 16px;
  border-radius: 24px;
  border: 1px solid var(--border);
  position: relative;
}

.employee__photo {
  width: 102px;
  height: 102px;
  border-radius: 16px;
}

.employee__text {
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
}

.employee__text a {
  color: inherit;
  -webkit-transition: 0.4s;
  -o-transition: 0.4s;
  transition: 0.4s;
}

.employee__text a:hover {
  color: var(--element);
}

.employee__popup {
  position: absolute;
  left: 8px;
  bottom: 110px;
  z-index: 1;
  width: 100%;
  max-width: 310px;
  height: 240px;
  background: url(../img/icons/employees-popup.svg) center center/contain no-repeat;
  color: #fff;
  text-align: center;
  padding: 22px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  line-height: 150%;
  -webkit-filter: drop-shadow(-3px 3px 0px var(--border));
          filter: drop-shadow(-3px 3px 0px var(--border));
  opacity: 0;
  visibility: hidden;
  -webkit-transition: 0.4s;
  -o-transition: 0.4s;
  transition: 0.4s;
  pointer-events: none;
}

.employee:hover .employee__popup {
  opacity: 1;
  visibility: visible;
}

.employee__popup__text {
  -webkit-transform: translateY(-20px);
      -ms-transform: translateY(-20px);
          transform: translateY(-20px);
  max-height: 80%;
  overflow: auto;
}

.employee__arrow img {
  margin: 0 !important;
}

.employee__rezume {
  line-height: 1;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
}

.employee__rezume a {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

.contat_map__yandex {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;  
}

@media (max-width: 1400px) {
  .employees__list {
    -ms-grid-columns: (1fr)[2];
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1023px) {
  .contacts__top {
    margin-bottom: 48px;
  }

  .contacts__text {
    width: 100%;
  }

  .contacts__buttons {
    margin-top: 36px;
  }

  .contat_map {
    padding: 0;
    background: none;
    -webkit-box-shadow: none;
            box-shadow: none;
    margin-bottom: 28px;
  }

  .contat_map__address_block {
    -ms-flex-negative: 0;
        flex-shrink: 0;
    width: calc(100% + 64px);
    margin-left: -32px;
    -webkit-box-ordinal-group: 2;
        -ms-flex-order: 1;
            order: 1;
  }

  .contat_map__address_scroll {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    height: auto;
    overflow: auto hidden;
    padding: 0 32px 24px;
  }

  .contat_map__address_scroll::after {
    display: none;
  }

  .contat_map__address_list {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    height: auto;
    padding: 0 32px 0;
    margin: 0 -32px;
  }

  .contat_map__address_item {
    width: 296px;
    -ms-flex-negative: 0;
        flex-shrink: 0;
  }

  .employees-big-image {
    margin-bottom: 48px;
  }

  .employees__list {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .contacts__top {
    margin-bottom: 32px;
  }

  .contacts__list {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }

  .contacts__buttons {
    margin-top: 12px;
  }

  .contacts__buttons .button {
    width: 100%;
  }

  .contat_map__address_block {
    -webkit-box-ordinal-group: 1;
        -ms-flex-order: 0;
            order: 0;
    width: 100%;
    margin: 0;
  }

  .contat_map__address_scroll {
    overflow: hidden;
    padding: 0;
  }

  .contat_map__address_scroll .contat_map__address_item {
    display: none;
  }

  .contat_map__address_scroll .contat_map__address_item.active {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }

  .contat_map__address_item {
    width: 100%;
  }

  .contat_map__map_button {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 2;
    width: calc(100% - 32px);
  }

  .employees-big-image {
    margin-bottom: 32px;
    border-radius: 16px;
  }

  .employee {
    padding: 8px;
    border-radius: 20px;
  }

  .employee__photo {
    width: 68px;
    height: 68px;
  }

  .contat_map__tities {
    gap: 16px;
  }

  .contat_map__city {
    flex: 100%;  
  }
}