.office {
  padding-top: 114px;
  padding-bottom: 100px;
}

@media screen and (max-width: 1200px) {
  .office {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

.office-map {
  display: none;
  overflow: hidden;
  width: 100%;
  height: 100vh;
  max-height: 768px;
  border-radius: 4px;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
}

@media screen and (max-width: 1200px) {
  .office-map {
    height: 427px;
    width: 100%;
    max-height: unset;
  }
}

.office-map.is-open {
  display: block;
  -webkit-animation: fadeIn 1000ms linear;
          animation: fadeIn 1000ms linear;
}

.office-map .contacts-control {
  max-width: 280px;
}

.office-map .contacts-control .contacts-control__icon {
  margin-right: 10px;
  width: 17px;
  height: 17px;
}

.office-map [class*="copyrights"] {
  display: none !important;
}

.office-map [class*="-balloon"] {
  -webkit-box-shadow: none;
          box-shadow: none;
  -webkit-transform: translateY(-15px);
          transform: translateY(-15px);
}

.office-map [class*="balloon__tail"] {
  -webkit-transform-origin: top left !important;
          transform-origin: top left !important;
  -webkit-transform: translateX(5px) translateY(-15px) rotate(-45deg) !important;
          transform: translateX(5px) translateY(-15px) rotate(-45deg) !important;
}

.office-map [class*="balloon__layout"] {
  border-radius: 4px;
  -webkit-box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.05);
          box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.05);
}

.office-map [class*="balloon__content"] {
  padding: 20px;
  -webkit-transform: none;
          transform: none;
}

.office-map [class*="balloon__close"] {
  -webkit-transform: none;
          transform: none;
}

.office-switch {
  display: block;
  position: relative;
  width: 100%;
  padding: 15px 30px;
  color: #0a2896;
  -webkit-transition: 62ms linear;
  transition: 62ms linear;
  border-radius: 4px;
  text-align: left;
}

.office-switch::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: 4px;
  border: 2px solid #0084ff;
  background-color: #fff;
  z-index: 0;
}

.office-switch::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: 4px;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#0047d0), to(#007be8));
  background-image: linear-gradient(to bottom, #0047d0, #007be8);
  z-index: 1;
  opacity: 0;
  -webkit-transition: 62ms linear;
  transition: 62ms linear;
}

.office-switch span {
  position: relative;
  -webkit-transition: 62ms linear;
  transition: 62ms linear;
  z-index: 2;
}

@media screen and (hover: hover) and (pointer: fine) {
  .office-switch:hover {
    color: #fff;
  }
  .office-switch:hover::after {
    opacity: 1;
  }
}

.office-switch:active {
  -webkit-filter: brightness(0.75);
          filter: brightness(0.75);
}

.office-switch.is-on {
  color: #fff;
}

.office-switch.is-on::after {
  opacity: 1;
}

.office-panel {
  padding: 20px 30px;
}

@media screen and (max-width: 1200px) {
  .office-panel {
    padding: 20px 0;
  }
}

.contacts-control {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  text-align: left;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
}

.contacts-control__icon {
  margin-right: 20px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  width: 24px;
  height: 24px;
  -webkit-transform: translateY(3px);
          transform: translateY(3px);
}

@media screen and (max-width: 1200px) {
  .contacts-control__icon {
    -webkit-transform: none;
            transform: none;
  }
}

.contacts-control__copy {
  margin-left: 20px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  width: 24px;
  height: 24px;
  -ms-flex-item-align: center;
      align-self: center;
  color: #606981;
}

@media screen and (max-width: 1200px) {
  .office-info {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
  }
  .office-info .office-switch {
    padding: 13px;
    -webkit-box-ordinal-group: 0;
        -ms-flex-order: -1;
            order: -1;
    width: calc(50% - 4px);
    text-align: center;
  }
  .office-info .office-switch:first-child {
    margin-right: 8px;
  }
  .office-info .office-panel {
    display: none;
    width: 100%;
  }
  .office-info .office-panel.is-open {
    display: block;
    -webkit-animation: fadeIn 0.3s linear;
            animation: fadeIn 0.3s linear;
  }
  .office-info .btn {
    width: 100%;
    max-width: 375px;
    text-align: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
  }
}
