.nav__menu a.is-active {
  color: var(--teal);
}

.contact-page {
  background:
    linear-gradient(180deg, #fff 0%, #f7fbfc 72%, #fff 100%);
}

.contact-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image: url("../images/optimized/inner-page-building-banner.webp");
  background-size: cover;
  background-position: center center;
}

.contact-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, .38) 46%, transparent 68%);
  transform: translateX(-100%);
  animation: contactHeroSweep 6s ease-in-out infinite;
  pointer-events: none;
}

.contact-hero h1 {
  position: relative;
  z-index: 1;
  width: var(--content-width);
  margin: 0 auto;
  color: #008e9f;
  font-size: 54px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 1px;
  animation: heroCopyIn .8s ease both;
}

.contact-main {
  width: var(--content-width);
  margin: 0 auto;
  padding: 72px 0 54px;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 92px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 38px;
}

.contact-info__item {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: start;
  gap: 24px;
  animation: contactItemIn .62s ease both;
  animation-delay: var(--contact-delay, 0ms);
}

.contact-info__item:nth-child(2) {
  --contact-delay: 90ms;
}

.contact-info__item:nth-child(3) {
  --contact-delay: 180ms;
}

.contact-info__item img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  transition: transform .3s ease, filter .3s ease;
}

.contact-info__item:hover img {
  filter: drop-shadow(0 10px 16px rgba(0, 152, 168, .2));
  transform: translateY(-3px);
}

.contact-info__item h2 {
  margin: 5px 0 12px;
  color: var(--teal);
  font-size: 18px;
  line-height: 1.2;
}

.contact-info__item a,
.contact-info__item p {
  margin: 0;
  color: #6f7d90;
  font-size: 14px;
  line-height: 1.9;
}

.contact-form {
  display: grid;
  gap: 26px;
  animation: contactFormIn .72s .12s ease both;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-form label {
  display: block;
}

.contact-form label span {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #dfe5e9;
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
  box-shadow: inset 0 1px 4px rgba(28, 45, 60, .08);
  color: #243548;
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.contact-form input {
  height: 54px;
  padding: 0 14px;
}

.contact-form textarea {
  min-height: 132px;
  resize: vertical;
  padding: 17px 14px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #8a95a7;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(0, 152, 168, .7);
  box-shadow: 0 0 0 4px rgba(0, 152, 168, .12), inset 0 1px 4px rgba(28, 45, 60, .06);
  transform: translateY(-1px);
}

.contact-form button {
  width: 124px;
  height: 42px;
  border: 0;
  border-radius: 23px;
  background: #0996a7;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.contact-form button:hover {
  background: #0baaba;
  box-shadow: 0 16px 28px rgba(0, 152, 168, .24);
  transform: translateY(-3px);
}

.contact-form button:disabled {
  background: #21b8c6;
  cursor: default;
  box-shadow: 0 12px 26px rgba(0, 152, 168, .2);
  animation: contactButtonSent .48s ease both;
}

.contact-map {
  width: var(--content-width);
  margin: 0 auto 74px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 26px 70px rgba(10, 31, 55, .18);
  animation: contactMapIn .72s .22s ease both;
}

.contact-map img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 1.2s ease, filter .35s ease;
}

.contact-map:hover img {
  filter: saturate(1.06);
  transform: scale(1.025);
}

@keyframes contactHeroSweep {
  0%,
  42% {
    transform: translateX(-100%);
  }

  72%,
  100% {
    transform: translateX(100%);
  }
}

@keyframes contactItemIn {
  from {
    opacity: 0;
    transform: translateX(-22px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes contactFormIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes contactMapIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes contactButtonSent {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.06);
  }

  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-hero::before,
  .contact-hero h1,
  .contact-info__item,
  .contact-form,
  .contact-form button:disabled,
  .contact-map {
    animation: none;
  }

  .contact-info__item img,
  .contact-form input,
  .contact-form textarea,
  .contact-form button,
  .contact-map img {
    transition: none;
  }
}

@media (max-width: 980px) {
  .contact-hero {
    min-height: 340px;
  }

  .contact-hero h1,
  .contact-main,
  .contact-map {
    width: calc(100% - 48px);
  }

  .contact-main {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 52px;
  }
}

@media (max-width: 640px) {
  .contact-hero {
    min-height: 280px;
    background-position: 68% center;
  }

  .contact-hero h1 {
    width: calc(100% - 36px);
    font-size: 38px;
  }

  .contact-main,
  .contact-map {
    width: calc(100% - 36px);
  }

  .contact-form__row {
    grid-template-columns: 1fr;
  }
}
