.home-contact {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 600px at 12% 12%, rgba(245, 230, 8, 0.16) 0%, rgba(245, 230, 8, 0) 72%),
    linear-gradient(136deg, #d7176a 0%, #ff267a 54%, #eb1e73 100%);
  color: #f6f5f5;
}

.home-contact::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 32%;
  background: linear-gradient(180deg, rgba(121, 16, 86, 0.78) 0%, rgba(108, 13, 76, 0.7) 100%);
  pointer-events: none;
}

.home-contact__grid {
  position: relative;
  z-index: 1;
  width: min(1280px, 94%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(0, 2fr);
}

.home-contact__side {
  position: sticky;
  top: 104px;
  align-self: start;
  padding: 84px 1.2vw;
  border-right: 1px solid rgba(246, 245, 245, 0.18);
}

.home-contact__kicker {
  margin: 0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.home-contact__title {
  margin: 16px 0 0;
  font-size: clamp(1.6rem, 2.9vw, 2.6rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.home-contact__main {
  padding: 84px 4vw 92px;
}

.home-contact__lead {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 700;
}

.home-contact__intro {
  margin: 18px 0 0;
  max-width: 72ch;
  line-height: 1.72;
  color: rgba(246, 245, 245, 0.92);
}

.home-contact__form {
  margin-top: 28px;
  max-width: 760px;
}

.home-contact__field + .home-contact__field {
  margin-top: 14px;
}

.home-contact__field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(246, 245, 245, 0.78);
}

.home-contact__field input,
.home-contact__field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(246, 245, 245, 0.42);
  border-radius: 0;
  background: transparent;
  color: #f6f5f5;
  padding: 12px 0;
  font: inherit;
}

.home-contact__field input:focus,
.home-contact__field textarea:focus {
  outline: none;
  border-bottom-color: #f5e608;
}

.home-contact__field textarea {
  resize: vertical;
  min-height: 150px;
}

.home-contact__submit {
  margin-top: 24px;
  width: 100%;
  max-width: 360px;
  height: 52px;
  border: 1px solid rgba(246, 245, 245, 0.52);
  background: transparent;
  color: #f6f5f5;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.24s ease, border-color 0.24s ease, color 0.24s ease;
}

.home-contact__submit:hover,
.home-contact__submit:focus-visible {
  background: rgba(245, 230, 8, 0.96);
  border-color: rgba(245, 230, 8, 0.96);
  color: #26101e;
}

@media (max-width: 1024px) {
  .home-contact::before {
    width: 100%;
    height: 0;
    inset: 0;
    opacity: 0;
  }

  .home-contact__grid {
    grid-template-columns: 1fr;
  }

  .home-contact__side {
    position: static;
    padding: 56px 8vw 18px;
    border-right: 0;
  }

  .home-contact__title {
    margin-top: 14px;
    line-height: 0.96;
  }

  .home-contact__main {
    padding: 4px 8vw 64px;
  }

  .home-contact__intro {
    margin-top: 14px;
    max-width: 34ch;
    line-height: 1.68;
  }

  .home-contact__form {
    margin-top: 24px;
  }

  .home-contact__field + .home-contact__field {
    margin-top: 14px;
  }

  .home-contact__field label {
    margin-bottom: 7px;
  }

  .home-contact__field input,
  .home-contact__field textarea {
    padding: 11px 0;
  }

  .home-contact__submit {
    margin-top: 22px;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .home-contact__side {
    padding: 52px 10vw 16px;
  }

  .home-contact__main {
    padding: 4px 10vw 56px;
  }
}
