.contact-modern {
  --contact-blue: #1769ff;
  --contact-dark: #0b1730;
  background:
    radial-gradient(circle at 12% 18%, rgba(45, 113, 255, 0.25), transparent 28%),
    radial-gradient(circle at 88% 84%, rgba(26, 199, 178, 0.14), transparent 25%),
    var(--contact-dark);
  color: #fff;
  overflow: hidden;
  padding: 104px 24px;
  position: relative;
}

.contact-modern::before {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  content: "";
  height: 520px;
  left: -280px;
  position: absolute;
  top: -280px;
  width: 520px;
}

.contact-modern * { box-sizing: border-box; }

.contact-modern__container {
  align-items: center;
  display: grid;
  gap: 84px;
  grid-template-columns: minmax(0, 0.88fr) minmax(480px, 1.12fr);
  margin: 0 auto;
  max-width: 1240px;
  position: relative;
  z-index: 1;
}

.contact-modern__eyebrow {
  color: #78a7ff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.contact-modern__content h2 {
  color: #fff;
  font-size: clamp(40px, 4.5vw, 62px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.04;
  margin: 0;
}

.contact-modern__intro {
  color: #b7c4d9;
  font-size: 17px;
  line-height: 1.75;
  margin: 26px 0 34px;
  max-width: 560px;
}

.contact-modern__methods {
  display: grid;
  gap: 12px;
}

.contact-method {
  align-items: center;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: #fff;
  display: grid;
  gap: 14px;
  grid-template-columns: 48px 1fr auto;
  padding: 14px 16px;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.contact-method:hover,
.contact-method:focus-visible {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(120, 167, 255, 0.55);
  color: #fff;
  outline: none;
  transform: translateX(4px);
}

.contact-method__icon {
  align-items: center;
  background: rgba(23, 105, 255, 0.2);
  border: 1px solid rgba(120, 167, 255, 0.25);
  border-radius: 11px;
  color: #8bb5ff;
  display: flex;
  font-size: 18px;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.contact-method small {
  color: #91a2ba;
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-method strong {
  color: #fff;
  display: block;
  font-size: 15px;
  font-weight: 650;
}

.contact-method__arrow {
  color: #7890b3;
  font-size: 13px;
}

.contact-modern__note {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.contact-modern__note-dot {
  background: #2bd19e;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(43, 209, 158, 0.12);
  flex: 0 0 8px;
  height: 8px;
}

.contact-modern__note p {
  color: #9eafc7;
  font-size: 13px;
  margin: 0;
}

.contact-modern__form-panel {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  padding: 38px;
}

.contact-form-modern__header { margin-bottom: 28px; }

.contact-form-modern { --contact-blue: #1769ff; }

.contact-form-modern__header p {
  color: var(--contact-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.contact-form-modern__header h3 {
  color: #10213f;
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 8px;
}

.contact-form-modern__header span {
  color: #66758d;
  font-size: 14px;
}

.contact-form-modern__grid {
  display: grid;
  gap: 19px 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-field { min-width: 0; }
.contact-field--full { grid-column: 1 / -1; }

.contact-field label {
  color: #263853;
  display: block;
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 7px;
}

.contact-field input,
.contact-field textarea {
  appearance: none;
  background: #f8fafc;
  border: 1px solid #dce4ef;
  border-radius: 10px;
  color: #122440;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  outline: none;
  padding: 13px 14px;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.contact-field textarea {
  min-height: 112px;
  resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder { color: #8b98aa; }

.contact-field input:focus,
.contact-field textarea:focus {
  background: #fff;
  border-color: #6b9eff;
  box-shadow: 0 0 0 3px rgba(23, 105, 255, 0.12);
}

.contact-form-modern__honeypot {
  height: 1px !important;
  left: -9999px !important;
  opacity: 0 !important;
  position: absolute !important;
  width: 1px !important;
}

.contact-form-modern__captcha {
  min-height: 78px;
  overflow: hidden;
}

.contact-form-modern__actions {
  align-items: center;
  display: flex;
  gap: 18px;
}

.contact-form-modern__actions button {
  align-items: center;
  appearance: none;
  background: var(--contact-blue);
  border: 0;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(23, 105, 255, 0.22);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
  gap: 10px;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.contact-form-modern__actions button:hover,
.contact-form-modern__actions button:focus-visible {
  background: #0c59e9;
  box-shadow: 0 14px 30px rgba(23, 105, 255, 0.3);
  outline: none;
  transform: translateY(-2px);
}

.contact-form-modern__actions p {
  color: #8491a4;
  font-size: 11px;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 1050px) {
  .contact-modern__container {
    gap: 52px;
    grid-template-columns: minmax(0, 0.8fr) minmax(450px, 1.2fr);
  }
}

@media (max-width: 900px) {
  .contact-modern { padding: 82px 24px; }

  .contact-modern__container {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .contact-modern__content {
    max-width: 680px;
  }
}

@media (max-width: 580px) {
  .contact-modern { padding: 64px 18px; }
  .contact-modern__content h2 { font-size: 40px; }
  .contact-modern__form-panel { padding: 26px 20px; }
  .contact-form-modern__grid { grid-template-columns: 1fr; }
  .contact-field--full { grid-column: auto; }

  .contact-form-modern__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-form-modern__actions button { width: 100%; }

  .contact-form-modern__captcha .g-recaptcha {
    transform: scale(0.86);
    transform-origin: left top;
  }
}
