#contact {
  padding: 4rem 0;
}

#contact .contact-container {
  margin-top: 2rem;
  display: flex;
  gap: 8rem;
  align-items: center;
  justify-content: center;
}

.contact-container > * {
  flex: 1;
  width: 100%;
}

.page-content {
  background: var(--white);
  border: 1px solid #e1e1e1;
  padding: 2rem;
  border-radius: 1rem;
}

#contact .page-content input,
#contact .page-content textarea {
  border-color: #e1e1e1;
  width: 100%;
  max-width: 100%;
  resize: none;
}

.contacts {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: start;
  justify-content: center;
}

.contacts li {
  width: 100%;
}

.contacts li a {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.contacts li a div {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 8rem;
  height: 8rem;
  font-size: 2rem;
  padding: 3rem;
  border-radius: 100%;
  border: 1px solid var(--primary);
  color: var(--white);
  fill: var(--white);
  background-color: var(--primary);
}

.contacts li a span {
  font-size: 1.5rem;
}

h1 {
  font-size: 3rem;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

h1::before {
  content: "";
  width: 1rem;
  height: 3.75rem;
  background: var(--secondary);
  display: block;
  position: absolute;
  transform: rotateZ(45deg);
  left: 0;
  top: -0.25rem;
  z-index: -1;
}

h1::after {
  content: "";
  width: 1rem;
  height: 3.75rem;
  background: var(--white);
  display: block;
  position: absolute;
  transform: rotateZ(45deg);
  left: 1.3125rem;
  top: -0.25rem;
  z-index: -1;
}

@media (max-width: 768px) {
  h1 {
    margin: 0 2rem;
  }

  #contact .contact-container {
    flex-direction: column-reverse;
    gap: 3rem;
  }

  .contacts li a div {
    width: 3rem;
    height: 3rem;
    font-size: 1rem;
    padding: 1rem;
  }

  .contacts li a span {
    font-size: 1.25rem;
  }

  .contacts li a {
    gap: 0.5rem;
  }

  .contacts {
    gap: 1.5rem;
    margin-left: 3rem;
  }

  #contact {
    padding-bottom: 0;
  }

  .page-content {
    border-radius: 1rem 1rem 0 0;
  }
}
