.contact-section,
.contact-section * {
  box-sizing: border-box;
  font-family: var(--font-main, Arial, sans-serif);
}

.contact-section {
  position: relative;
  z-index: 4;
  scroll-margin-top: 24px;
  padding: clamp(86px, 10vw, 160px) clamp(18px, 4.5vw, 72px);
  overflow: hidden;
  background: #050505;
  color: #f4f4f1;
}

.contact-section::before {
  position: absolute;
  top: 0;
  right: clamp(18px, 4.5vw, 72px);
  left: clamp(18px, 4.5vw, 72px);
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  content: "";
}

.contact-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 0 clamp(40px, 7vw, 120px);
  align-items: end;
  max-width: 1480px;
  margin: 0 auto clamp(58px, 7vw, 112px);
}

.contact-intro > p {
  grid-column: 1 / -1;
  margin: 0 0 clamp(24px, 3vw, 42px);
  color: rgba(244, 244, 241, 0.46);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-intro h2 {
  margin: 0;
  font-size: clamp(4rem, 8vw, 8.8rem);
  font-weight: 300;
  line-height: 0.81;
  letter-spacing: -0.08em;
}

.contact-intro > div {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-bottom: 0.5em;
}

.contact-intro > div p {
  max-width: 520px;
  margin: 0;
  color: rgba(244, 244, 241, 0.64);
  font-size: clamp(0.92rem, 1.1vw, 1.1rem);
  line-height: 1.58;
}

.contact-intro > div span {
  color: rgba(244, 244, 241, 0.38);
  font-size: 0.66rem;
  line-height: 1.5;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  max-width: 1480px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-panel-copy,
.contact-form {
  padding: clamp(28px, 4vw, 60px);
}

.contact-panel-copy {
  display: flex;
  flex-direction: column;
  min-height: 630px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  background: #080808;
}

.contact-panel-copy > p {
  margin: 0;
  color: rgba(244, 244, 241, 0.42);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-panel-copy h3 {
  margin: auto 0 32px;
  font-size: clamp(2.5rem, 4.6vw, 5.6rem);
  font-weight: 300;
  line-height: 0.88;
  letter-spacing: -0.065em;
}

.contact-panel-copy > span {
  max-width: 360px;
  color: rgba(244, 244, 241, 0.48);
  font-size: 0.76rem;
  line-height: 1.55;
}

.contact-email {
  width: fit-content;
  margin-top: 18px;
  border-bottom: 1px solid rgba(244, 244, 241, 0.42);
  padding-bottom: 4px;
  color: #f4f4f1;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  transition: border-color 180ms ease, opacity 180ms ease;
}

.contact-email:hover,
.contact-email:focus-visible {
  border-color: #f4f4f1;
  opacity: 0.72;
}

.contact-form-message a {
  border-bottom: 1px solid currentColor;
  color: #f4f4f1;
}

.contact-form {
  background: #0a0a0a;
}

.contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 20px;
}

.contact-fields label {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-fields label > span {
  color: rgba(244, 244, 241, 0.46);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-fields input,
.contact-fields select,
.contact-fields textarea {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0;
  outline: 0;
  padding: 12px 0;
  resize: vertical;
  background: transparent;
  color: #f4f4f1;
  font: inherit;
  font-size: 0.9rem;
  transition: border-color 180ms ease;
}

.contact-fields select {
  cursor: pointer;
  color-scheme: dark;
}

.contact-fields input:focus,
.contact-fields select:focus,
.contact-fields textarea:focus {
  border-color: #f4f4f1;
}

.contact-field-wide {
  grid-column: 1 / -1;
}

.contact-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 28px 0 0;
  cursor: pointer;
  color: rgba(244, 244, 241, 0.54);
  font-size: 0.7rem;
  line-height: 1.45;
}

.contact-consent input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: #f4f4f1;
}

.contact-submit {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 330px);
  min-height: 62px;
  margin: 38px 0 0 auto;
  border: 1px solid #f4f4f1;
  border-radius: 0;
  padding: 0 15px 0 22px;
  cursor: pointer;
  background: #f4f4f1;
  color: #050505;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 200ms ease, color 200ms ease, opacity 200ms ease;
}

.contact-submit:hover,
.contact-submit:focus-visible {
  background: transparent;
  color: #f4f4f1;
}

.contact-submit:disabled {
  cursor: wait;
  opacity: 0.58;
}

.contact-submit-arrow {
  position: relative;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.contact-submit-arrow::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
}

.contact-submit-arrow::after {
  position: absolute;
  top: 50%;
  left: calc(50% + 4px);
  width: 6px;
  height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  content: "";
  transform: translate(-50%, -50%) rotate(45deg);
}

.contact-form-message {
  min-height: 22px;
  margin-top: 18px;
  color: rgba(244, 244, 241, 0.72);
  font-size: 0.76rem;
  line-height: 1.5;
}

.contact-form-message.is-success {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.contact-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 900px) {
  .contact-intro {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }

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

  .contact-panel-copy {
    min-height: 360px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
}

@media (max-width: 620px) {
  .contact-section {
    padding: 82px 16px;
  }

  .contact-section::before {
    right: 16px;
    left: 16px;
  }

  .contact-intro {
    margin-bottom: 48px;
  }

  .contact-intro h2 {
    font-size: clamp(3.5rem, 17vw, 5.3rem);
  }

  .contact-panel-copy,
  .contact-form {
    padding: 28px 18px;
  }

  .contact-panel-copy {
    min-height: 320px;
  }

  .contact-fields {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-field-wide {
    grid-column: auto;
  }

  .contact-submit {
    width: 100%;
  }
}
