.contact-section {
  position: relative;
  z-index: 2;
  padding: 110px 24px;
  background: linear-gradient(180deg, #030307, #070711);
}

.contact-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  width: min(calc(100% - 48px), 1120px);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(9, 9, 22, 0.68);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
  color: var(--ink);
  overflow: visible;
}

.corner-plus {
  position: absolute;
  z-index: 2;
  color: #fff;
  font-family: "DM Mono", monospace;
  font-size: 1.65rem;
  line-height: 1;
  text-shadow: 0 0 20px rgba(134, 134, 203, 0.6);
}

.corner-plus-top-left {
  top: -14px;
  left: -10px;
}

.corner-plus-top-right {
  top: -14px;
  right: -10px;
}

.corner-plus-bottom-left {
  bottom: -16px;
  left: -10px;
}

.corner-plus-bottom-right {
  right: -10px;
  bottom: -16px;
}

.contact-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 34px;
  padding: clamp(28px, 5vw, 52px);
}

.contact-copy .section-kicker {
  margin: 0;
  color: #aaaade;
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-copy h2 {
  max-width: 760px;
  margin: 12px 0 0;
  font-size: clamp(2.3rem, 5vw, 5.2rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.contact-copy > p {
  max-width: 690px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.65;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  text-decoration: none;
  transition: background 0.25s, transform 0.25s, border-color 0.25s;
}

.contact-info-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.09);
}

.contact-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(134, 134, 203, 0.18);
}

.contact-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-info-item strong,
.contact-info-item small {
  display: block;
}

.contact-info-item strong {
  font-size: 0.92rem;
}

.contact-info-item small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.contact-form-panel {
  display: flex;
  align-items: center;
  border-left: 1px solid var(--line);
  border-radius: 0 18px 18px 0;
  background: rgba(255, 255, 255, 0.055);
  padding: clamp(22px, 3vw, 34px);
}

.lead-form {
  display: grid;
  width: 100%;
  gap: 13px;
}

.lead-form label {
  color: #f4f4fb;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.lead-form input::placeholder,
.lead-form textarea::placeholder {
  color: rgba(200, 200, 214, 0.62);
}

.lead-form input:focus,
.lead-form textarea:focus {
  border-color: #aaaade;
  box-shadow: 0 0 0 3px rgba(134, 134, 203, 0.22);
  background: rgba(0, 0, 0, 0.34);
}

.lead-form textarea {
  min-height: 130px;
  resize: vertical;
}

.lead-form button {
  min-height: 52px;
  border: 1px solid #fff;
  border-radius: 10px;
  background: #fff;
  color: #08080f;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}

.lead-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 42px rgba(134, 134, 203, 0.34);
}

@media (max-width: 920px) {
  .contact-card {
    grid-template-columns: 1fr;
  }

  .contact-form-panel {
    border-top: 1px solid var(--line);
    border-left: 0;
    border-radius: 0 0 18px 18px;
  }

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

@media (max-width: 700px) {
  .contact-section {
    padding: 78px 18px;
  }

  .contact-card {
    width: 100%;
  }

  .contact-copy {
    padding: 24px;
  }

  .contact-copy h2 {
    font-size: clamp(2.2rem, 13vw, 4rem);
  }

  .contact-form-panel {
    padding: 20px;
  }
}
