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

.contact-modern {
  --contact-bg: #0c141a;
  --contact-panel: #f8faf9;
  --contact-text: #f4f7f6;
  --contact-muted: rgba(244, 247, 246, .7);
  --contact-ink: #121817;
  --contact-ink-muted: #63706d;
  --contact-line: #d6dfdc;
  --contact-green: #32cf7b;
  position: relative;
  min-height: calc(100dvh - 72px);
  overflow: hidden;
  color: var(--contact-text);
  background: var(--contact-bg);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.contact-modern::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 11, 15, .93) 0%, rgba(5, 11, 15, .82) 42%, rgba(5, 11, 15, .7) 66%, rgba(5, 11, 15, .88) 100%),
    url('/images/application-industrial.jpg') center / cover no-repeat;
  content: "";
}

.contact-modern::after {
  position: absolute;
  inset: 0;
  opacity: .22;
  pointer-events: none;
  background-image: repeating-linear-gradient(115deg, transparent 0 86px, rgba(255, 255, 255, .035) 87px 88px);
  content: "";
}

.contact-shell {
  position: relative;
  z-index: 1;
  width: min(1460px, calc(100% - 64px));
  margin: 0 auto;
  padding: 56px 0 68px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(520px, 640px);
  gap: clamp(56px, 7vw, 120px);
  align-items: center;
}

.contact-copy {
  max-width: 610px;
  padding: 28px 0;
}

.contact-kicker {
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--contact-green);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.contact-kicker::before {
  width: 32px;
  height: 2px;
  background: currentColor;
  content: "";
}

.contact-copy h1 {
  max-width: 590px;
  margin: 0;
  color: var(--contact-text);
  font-size: clamp(46px, 4.7vw, 76px);
  font-weight: 680;
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

.contact-intro {
  max-width: 560px;
  margin: 26px 0 0;
  color: var(--contact-muted);
  font-size: 17px;
  line-height: 1.7;
}

.contact-details {
  margin: 38px 0 0;
  padding: 0;
  display: grid;
  gap: 22px;
  list-style: none;
}

.contact-details li {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.contact-detail-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(50, 207, 123, .48);
  border-radius: 50%;
  color: var(--contact-green);
  background: rgba(50, 207, 123, .1);
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.contact-detail-label {
  display: block;
  margin-bottom: 4px;
  color: var(--contact-text);
  font-size: 14px;
  font-weight: 700;
}

.contact-detail-value,
.contact-detail-value a {
  color: var(--contact-muted);
  font-size: 14px;
  line-height: 1.65;
  text-decoration: none;
  transition: color .2s ease;
}

.contact-detail-value a:hover,
.contact-detail-value a:focus-visible {
  color: var(--contact-text);
  outline: none;
}

.contact-assurance {
  margin-top: 42px;
  padding-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.contact-assurance strong {
  display: block;
  color: var(--contact-text);
  font-size: 13px;
  line-height: 1.4;
}

.contact-assurance span {
  display: block;
  margin-top: 5px;
  color: rgba(244, 247, 246, .48);
  font-size: 11px;
  line-height: 1.5;
}

.contact-cms-copy {
  margin-top: 24px;
  color: var(--contact-muted);
  font-size: 13px;
  line-height: 1.7;
}

.contact-cms-copy:empty {
  display: none;
}

.contact-form-panel {
  scroll-margin-top: 88px;
  padding: clamp(34px, 4vw, 54px);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 7px;
  color: var(--contact-ink);
  background: rgba(250, 252, 251, .97);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .27);
}

.contact-form-kicker {
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #168753;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.contact-form-kicker::after {
  width: 34px;
  height: 2px;
  background: currentColor;
  content: "";
}

.contact-form-panel h2 {
  margin: 0;
  color: var(--contact-ink);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}

.contact-form-lead {
  max-width: 520px;
  margin: 14px 0 28px;
  color: var(--contact-ink-muted);
  font-size: 14px;
  line-height: 1.65;
}

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

.contact-field {
  display: grid;
  gap: 8px;
}

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

.contact-field label,
.contact-field-label {
  color: #4c5956;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid var(--contact-line);
  border-radius: 4px;
  color: var(--contact-ink);
  background: #fff;
  font: inherit;
  font-size: 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.contact-field input {
  height: 48px;
  padding: 0 14px;
}

.contact-field textarea {
  min-height: 128px;
  padding: 13px 14px;
  line-height: 1.55;
  resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #9aa4a1;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: #259d64;
  box-shadow: 0 0 0 3px rgba(37, 157, 100, .13);
  outline: none;
}

.contact-upload {
  position: relative;
  min-height: 66px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px dashed #bdcbc6;
  border-radius: 4px;
  color: #51605c;
  background: #f3f7f5;
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease;
  cursor: pointer;
}

.contact-upload:hover,
.contact-upload:focus-within {
  border-color: #259d64;
  background: #eef8f2;
  outline: none;
}

.contact-upload-copy {
  min-width: 0;
}

.contact-upload strong {
  display: block;
  color: var(--contact-ink);
  font-size: 13px;
}

.contact-upload small {
  display: block;
  margin-top: 3px;
  color: #75817e;
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.contact-upload-action {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 3px;
  background: #e1f1e8;
  color: #168753;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.contact-upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-privacy {
  margin: 20px 0 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #687572;
  font-size: 11px;
  line-height: 1.55;
}

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

.contact-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 22px;
  border: 0;
  border-radius: 4px;
  color: #062313;
  background: var(--contact-green);
  font-size: 14px;
  font-weight: 780;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}

.contact-submit:hover,
.contact-submit:focus-visible {
  background: #52de93;
  transform: translateY(-1px);
  outline: none;
}

.contact-submit:active {
  transform: translateY(1px);
}

.contact-copyright {
  position: relative;
  z-index: 1;
  min-height: 58px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(244, 247, 246, .5);
  background: #09100e;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 1100px) {
  .contact-shell {
    grid-template-columns: minmax(0, 1fr) minmax(470px, 560px);
    gap: 48px;
  }

  .contact-copy h1 {
    font-size: clamp(42px, 5vw, 62px);
  }

  .contact-assurance {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 860px) {
  .contact-modern::before {
    background:
      linear-gradient(180deg, rgba(5, 11, 15, .9) 0%, rgba(5, 11, 15, .8) 50%, rgba(5, 11, 15, .88) 100%),
      url('/images/application-industrial.jpg') center top / cover no-repeat;
  }

  .contact-shell {
    width: min(100% - 40px, 720px);
    padding: 48px 0 56px;
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .contact-copy {
    max-width: none;
    padding: 10px 0 0;
  }

  .contact-copy h1 {
    max-width: 680px;
    font-size: clamp(40px, 8vw, 60px);
  }

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

  .contact-assurance {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .contact-shell {
    width: min(100% - 28px, 720px);
    padding: 38px 0 44px;
  }

  .contact-copy h1 {
    font-size: 40px;
  }

  .contact-intro {
    font-size: 15px;
  }

  .contact-details {
    margin-top: 32px;
  }

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

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

  .contact-form-panel h2 {
    font-size: 30px;
  }

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

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

@media (prefers-reduced-motion: reduce) {
  .contact-modern *,
  .contact-modern *::before,
  .contact-modern *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
