@charset "utf-8";

.offices_list {
  box-sizing: border-box;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px 80px;
  opacity: 0;
  animation: showUp 1.2s cubic-bezier(0.21, 0.42, 0.23, 1) forwards 0.4s;
}
.offices_list_wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.offices_list_item {
  width: calc(25% - 18px);
  transition: transform 0.15s ease;
}
.offices_list_item_link {
  position: relative;
}
.offices_list_item_img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 5px;
}
.offices_list_item_name {
  width: 100%;
  position: absolute;
  top: 50%;
  left: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  transform: translateY(-50%);
}

@media screen and (max-width: 1040px) {
  .offices_list_item {
    width: calc(33.3333% - 16px);
  }
}

@media screen and (max-width: 760px) {
  .offices_list_item {
    width: calc(50% - 12px);
  }
}

@media screen and (min-width: 641px) {
  .offices_list_item:hover {
    transform: scale(1.04, 1.04);
  }
}

@media screen and (max-width: 640px) {
  .offices_list {
    padding: 48px 20px 40px;
  }
}

@media screen and (max-width: 480px) {
  .offices_list {
    padding: 40px 20px;
  }
  .offices_list_wrapper {
    gap: 8px;
  }
  .offices_list_item {
    width: calc(50% - 4px);
  }
  .offices_list_item_name {
    font-size: 15px;
  }
}

@media screen and (max-width: 370px) {
  .offices_list_item_name {
    font-size: 14px;
  }
}
