.ec-contacts-hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #080d28;
  color: #ffffff;
}

.ec-contacts-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.ec-contacts-hero__bg img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(.15);
}

.ec-contacts-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(8, 13, 40, .94) 0%, rgba(8, 13, 40, .72) 44%, rgba(8, 13, 40, .3) 100%),
    linear-gradient(180deg, rgba(8, 13, 40, .34) 0%, rgba(8, 13, 40, .95) 100%);
}

.ec-contacts-hero__container,
.ec-contacts-main__container,
.ec-offices__container,
.ec-google-map__container {
  width: min(100% - var(--ec-container-offset) * 2, var(--ec-container));
  margin-left: auto;
  margin-right: auto;
}

.ec-contacts-hero__container {
  position: relative;
  z-index: 3;
  padding: 42px 0 72px;
}

.ec-contacts-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
  margin-bottom: 48px;
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
  line-height: 1.2;
}

.ec-contacts-breadcrumbs a {
  color: rgba(255, 255, 255, .72);
  transition: .25s ease;
}

.ec-contacts-breadcrumbs a:hover {
  color: #f26a21;
}

.ec-contacts-breadcrumbs span {
  color: #ffffff;
}

.ec-contacts-breadcrumbs a::after {
  content: "/";
  margin-left: 11px;
  color: rgba(255, 255, 255, .35);
}

.ec-contacts-hero__content {
  max-width: 850px;
}

.ec-contacts-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  color: #f26a21;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ec-contacts-hero__eyebrow::after {
  content: "";
  width: 72px;
  height: 1px;
  background: #f26a21;
}

.ec-contacts-hero__title {
  position: relative;
  display: block;
  width: fit-content;
  margin: 0 0 24px;
  padding-bottom: 12px;
  color: #ffffff;
  font-size: 62px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.ec-contacts-hero__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: #f26a21;
}

.ec-contacts-hero__text {
  max-width: 740px;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 18px;
  line-height: 1.62;
}

.ec-contacts-main {
  padding: 82px 0 88px;
  background: #ffffff;
  color: #080d28;
}

.ec-contacts-main__grid {
  display: grid;
  grid-template-columns: minmax(360px, .72fr) minmax(0, 1.28fr);
  gap: 28px;
  align-items: stretch;
}

.ec-contacts-card {
  position: relative;
  padding: 38px 34px;
  background: #080d28;
  color: #ffffff;
  overflow: hidden;
}

.ec-contacts-card::after {
  content: "";
  position: absolute;
  right: -92px;
  bottom: -92px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(242, 106, 33, .28);
  border-radius: 50%;
}

.ec-contacts-card__label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  color: #f26a21;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ec-contacts-card__label::after {
  content: "";
  width: 60px;
  height: 1px;
  background: #f26a21;
}

.ec-contacts-card__title {
  max-width: 360px;
  margin-bottom: 34px;
  color: #ffffff;
  font-size: 34px;
  line-height: 1.14;
  font-weight: 800;
  text-transform: uppercase;
}

.ec-contacts-card__items {
  position: relative;
  z-index: 2;
  display: grid;
}

.ec-contact-item {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.ec-contact-item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.ec-contact-item__label {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, .46);
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ec-contact-item__value {
  color: rgba(255, 255, 255, .88);
  font-size: 18px;
  line-height: 1.45;
  transition: .25s ease;
}

a.ec-contact-item__value:hover {
  color: #f26a21;
}

.ec-contacts-card__actions {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.ec-contacts-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  border: 1px solid #f26a21;
  background: #f26a21;
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
  text-align: center;
  transition: .25s ease;
}

.ec-contacts-card__btn:hover {
  background: transparent;
  color: #ffffff;
}

.ec-contacts-card__btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, .34);
  color: #ffffff;
}

.ec-contacts-card__btn--outline:hover {
  border-color: #f26a21;
  background: #f26a21;
}

.ec-contacts-form {
  padding: 38px 42px;
  border: 1px solid #dfe3ec;
  background: #ffffff;
}

.ec-contacts-form__title {
  position: relative;
  margin: 0 0 20px;
  padding-bottom: 18px;
  color: #080d28;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ec-contacts-form__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 220px;
  max-width: 100%;
  height: 2px;
  background: #f26a21;
}

.ec-contacts-form__text {
  max-width: 620px;
  margin: 0 0 34px;
  color: #5d6475;
  font-size: 15px;
  line-height: 1.6;
}

.ec-contact-form {
  display: grid;
  gap: 24px;
}

.ec-contact-form__input,
.ec-contact-form__textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(8, 13, 40, .42);
  border-radius: 0;
  padding: 0 0 14px;
  background: transparent;
  color: #080d28;
  font-size: 18px;
  line-height: 1.3;
  outline: none;
  transition: .25s ease;
}

.ec-contact-form__textarea {
  min-height: 132px;
  resize: vertical;
}

.ec-contact-form__input::placeholder,
.ec-contact-form__textarea::placeholder {
  color: rgba(8, 13, 40, .48);
}

.ec-contact-form__input:focus,
.ec-contact-form__textarea:focus {
  border-color: #f26a21;
}

.ec-contact-form__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 6px;
}

.ec-contact-form__note {
  max-width: 360px;
  margin: 0;
  color: #777b86;
  font-size: 12px;
  line-height: 1.45;
}

.ec-contact-form__submit {
  flex: 0 0 auto;
  min-width: 210px;
  min-height: 48px;
  border: 1px solid #080d28;
  background: #080d28;
  color: #ffffff;
  padding: 13px 28px;
  font-size: 14px;
  line-height: 1;
  letter-spacing: .04em;
  cursor: pointer;
  transition: .25s ease;
}

.ec-contact-form__submit:hover {
  border-color: #f26a21;
  background: #f26a21;
}

.ec-offices {
  padding: 0 0 88px;
  background: #ffffff;
  color: #080d28;
}

.ec-offices__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 34px;
}

.ec-offices__title {
  position: relative;
  margin: 0 0 18px;
  padding-bottom: 18px;
  color: #080d28;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ec-offices__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 250px;
  max-width: 100%;
  height: 2px;
  background: #f26a21;
}

.ec-offices__text {
  max-width: 720px;
  margin: 0;
  color: #5d6475;
  font-size: 15px;
  line-height: 1.6;
}

.ec-offices__status {
  flex: 0 0 auto;
  padding: 16px 18px;
  border: 1px solid #dfe3ec;
  color: #080d28;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.ec-offices__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: stretch;
}

.ec-office-map {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 32%, rgba(242, 106, 33, .14), transparent 22%),
    radial-gradient(circle at 78% 62%, rgba(12, 55, 130, .4), transparent 34%),
    linear-gradient(135deg, #121936 0%, #080d28 100%);
}

.ec-office-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: .7;
  pointer-events: none;
}

.ec-office-map__top {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px 0;
}

.ec-office-map__title {
  color: #ffffff;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
}

.ec-office-map__subtitle {
  margin-top: 7px;
  color: rgba(255, 255, 255, .62);
  font-size: 13px;
  line-height: 1.45;
}

.ec-office-map__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(242, 106, 33, .42);
  color: #f26a21;
  background: rgba(255, 255, 255, .04);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ec-office-map__badge::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #f26a21;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(242, 106, 33, .14);
}

.ec-office-map__area {
  position: relative;
  height: 360px;
  margin: 16px 30px 0;
}

.ec-office-map__shape,
.ec-office-map__shape-glow {
  position: absolute;
  inset: 18px 20px 4px;
  mask-image: url("../img/ua.svg");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-image: url("../img/ua.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.ec-office-map__shape {
  background: linear-gradient(135deg, rgba(18, 75, 166, .95), rgba(7, 31, 80, .95));
  filter: drop-shadow(0 24px 44px rgba(0, 0, 0, .38));
}

.ec-office-map__shape-glow {
  background: rgba(242, 106, 33, .22);
  filter: blur(20px);
  opacity: .55;
}

.ec-office-map__route {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.ec-office-map__route line {
  stroke: rgba(242, 106, 33, .38);
  stroke-width: 1;
  stroke-dasharray: 7 8;
  animation: ecOfficeRouteMove 9s linear infinite;
}

@keyframes ecOfficeRouteMove {
  to {
    stroke-dashoffset: -120;
  }
}

.ec-office-marker {
  position: absolute;
  z-index: 6;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.ec-office-marker__dot {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: #f26a21;
}

.ec-office-marker__dot::before,
.ec-office-marker__dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(242, 106, 33, .52);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ecOfficePulse 2.4s infinite;
}

.ec-office-marker__dot::after {
  animation-delay: .8s;
}

.ec-office-marker__label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 13px);
  transform: translateX(-50%) translateY(8px);
  padding: 8px 11px;
  background: rgba(8, 13, 40, .94);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: .25s ease;
}

.ec-office-marker:hover .ec-office-marker__label,
.ec-office-marker.is-active .ec-office-marker__label {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.ec-office-marker.is-active .ec-office-marker__dot {
  background: #ffd34e;
}

@keyframes ecOfficePulse {
  0% {
    width: 16px;
    height: 16px;
    opacity: .9;
  }

  100% {
    width: 52px;
    height: 52px;
    opacity: 0;
  }
}

.ec-office-map__cities {
  position: relative;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 0 30px 30px;
}

.ec-office-city {
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .72);
  padding: 9px 13px;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: .25s ease;
}

.ec-office-city:hover,
.ec-office-city.is-active {
  border-color: #f26a21;
  background: #f26a21;
  color: #ffffff;
}

.ec-office-details {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  background: #080d28;
  color: #ffffff;
}

.ec-office-details__label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  color: #f26a21;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ec-office-details__label::after {
  content: "";
  width: 50px;
  height: 1px;
  background: #f26a21;
}

.ec-office-details__title {
  margin-bottom: 20px;
  color: #ffffff;
  font-size: 42px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
}

.ec-office-details__address {
  margin-bottom: 24px;
  color: rgba(255, 255, 255, .76);
  font-size: 16px;
  line-height: 1.55;
}

.ec-office-details__link {
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, .86);
  font-size: 15px;
  line-height: 1.35;
  transition: .25s ease;
}

.ec-office-details__link:hover {
  color: #f26a21;
}

.ec-office-details__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 22px;
  padding: 13px 24px;
  border: 1px solid #f26a21;
  background: #f26a21;
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
  transition: .25s ease;
}

.ec-office-details__btn:hover {
  background: transparent;
  color: #ffffff;
}

.ec-google-map {
  padding: 0 0 88px;
  background: #ffffff;
}

.ec-google-map__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 30px;
}

.ec-google-map__title {
  position: relative;
  margin: 0;
  padding-bottom: 18px;
  color: #080d28;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ec-google-map__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 220px;
  max-width: 100%;
  height: 2px;
  background: #f26a21;
}

.ec-google-map__link {
  color: #080d28;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  transition: .25s ease;
}

.ec-google-map__link::after {
  content: " →";
  color: #f26a21;
}

.ec-google-map__link:hover {
  color: #f26a21;
}

.ec-google-map__frame {
  height: 520px;
  overflow: hidden;
  border: 1px solid #dfe3ec;
  background: #080d28;
}

.ec-google-map__frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  filter: grayscale(.15);
}

@media (max-width: 1199px) {
  .ec-contacts-main__grid {
    grid-template-columns: 360px minmax(0, 1fr);
  }

  .ec-offices__grid {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

@media (max-width: 991px) {
  .ec-contacts-hero {
    min-height: 420px;
  }

  .ec-contacts-hero__container {
    padding: 34px 0 58px;
  }

  .ec-contacts-hero__title {
    font-size: 46px;
  }

  .ec-contacts-main {
    padding: 58px 0;
  }

  .ec-contacts-main__grid {
    grid-template-columns: 1fr;
  }

  .ec-offices {
    padding-bottom: 58px;
  }

  .ec-offices__head {
    display: block;
  }

  .ec-offices__status {
    width: fit-content;
    margin-top: 22px;
  }

  .ec-offices__grid {
    grid-template-columns: 1fr;
  }

  .ec-office-map__area {
    height: 320px;
  }

  .ec-google-map {
    padding-bottom: 58px;
  }
}

@media (max-width: 575px) {
  .ec-contacts-hero {
    min-height: 390px;
  }

  .ec-contacts-breadcrumbs {
    margin-bottom: 34px;
    font-size: 12px;
  }

  .ec-contacts-hero__title {
    font-size: 34px;
  }

  .ec-contacts-hero__text {
    font-size: 15px;
  }

  .ec-contacts-main {
    padding: 44px 0;
  }

  .ec-contacts-card {
    padding: 30px 22px;
  }

  .ec-contacts-card__title {
    font-size: 26px;
  }

  .ec-contact-item__value {
    font-size: 16px;
  }

  .ec-contacts-form {
    padding: 30px 22px;
  }

  .ec-contacts-form__title {
    font-size: 28px;
  }

  .ec-contacts-form__title::after {
    width: 170px;
  }

  .ec-contact-form__input,
  .ec-contact-form__textarea {
    font-size: 16px;
  }

  .ec-contact-form__bottom {
    display: grid;
  }

  .ec-contact-form__submit {
    width: 100%;
  }

  .ec-offices {
    padding-bottom: 44px;
  }

  .ec-offices__title {
    font-size: 28px;
  }

  .ec-offices__title::after {
    width: 170px;
  }

  .ec-office-map {
    min-height: 0;
  }

  .ec-office-map__top {
    display: block;
    padding: 22px 18px 0;
  }

  .ec-office-map__badge {
    margin-top: 16px;
  }

  .ec-office-map__area {
    height: 250px;
    margin: 12px 18px 0;
  }

  .ec-office-map__cities {
    padding: 0 18px 22px;
  }

  .ec-office-city {
    font-size: 11px;
    padding: 8px 10px;
  }

  .ec-office-details {
    padding: 28px 22px;
  }

  .ec-office-details__title {
    font-size: 34px;
  }

  .ec-google-map {
    padding-bottom: 44px;
  }

  .ec-google-map__head {
    display: block;
  }

  .ec-google-map__title {
    font-size: 28px;
  }

  .ec-google-map__title::after {
    width: 170px;
  }

  .ec-google-map__link {
    display: inline-flex;
    margin-top: 20px;
  }

  .ec-google-map__frame {
    height: 380px;
  }
}