.contact-page {
  background: #07090d;
}

.contact-page-body .top-bar .brand {
  text-decoration: none;
  color: #0f1219 !important;
}

.contact-page-body .menu-toggle {
  background: #0f1219;
  color: #ffffff;
}

.contact-page-body .menu-toggle:hover {
  background: #05070d;
}

.contact-page-body .contact-link {
  border-color: #0f1219;
  color: #0f1219;
  background: transparent;
}

.contact-page-body .contact-link:hover {
  background: #0f1219;
  color: #ffffff;
  border-color: #0f1219;
}

.contact-page-body.header-on-footer .top-bar .brand {
  color: #f3f6fc !important;
}

.contact-page-body.header-on-footer .top-bar {
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.contact-page-body.header-on-footer .menu-toggle {
  background: #f3f6fc;
  color: #0b0d12;
}

.contact-page-body.header-on-footer .menu-toggle:hover {
  background: #ffffff;
}

.contact-page-body.header-on-footer .contact-link {
  border-color: rgba(255, 255, 255, 0.58);
  color: #f3f6fc;
  background: rgba(255, 255, 255, 0.08);
}

.contact-page-body.header-on-footer .contact-link:hover {
  background: #ffffff;
  color: #0b0d12;
  border-color: #ffffff;
}

.contact-hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  padding: clamp(130px, 17vh, 220px) 3.5vw clamp(66px, 10vh, 120px);
  background: #000000;
  color: #eef2fa;
  overflow: hidden;
}

.contact-hero-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.contact-kicker {
  margin: 0;
  font-family: "JetBrains Mono", "Roboto Mono", monospace;
  font-size: clamp(11px, 0.85vw, 13px);
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(238, 242, 250, 0.7);
}

.contact-title {
  margin: clamp(14px, 2.5vh, 24px) 0;
  font-size: clamp(86px, 18vw, 300px);
  line-height: 0.78;
  letter-spacing: -0.06em;
  font-weight: 700;
  text-transform: lowercase;
}

.contact-lead {
  margin: 0;
  max-width: 60ch;
  font-size: clamp(16px, 1.45vw, 24px);
  line-height: 1.45;
  color: rgba(238, 242, 250, 0.82);
}

.contact-hero-robot {
  position: absolute;
  right: clamp(-40px, -3vw, 22px);
  top: 33%;
  width: clamp(420px, 40vw, 700px);
  transform: translateY(-50%);
  z-index: 4;
  pointer-events: auto;
  animation: works-side-robot-float 8.2s cubic-bezier(0.42, 0, 0.58, 1) infinite;
  transform-origin: 50% 60%;
}

.contact-hero-robot-media,
.contact-hero-robot-xray {
  display: block;
  width: 100%;
  height: auto;
}

.contact-hero-robot-media {
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.62));
}

.contact-hero-robot-xray {
  position: absolute;
  inset: 0;
  clip-path: circle(0px at 0 0);
  pointer-events: none;
}

.contact-form-section {
  position: relative;
  z-index: 220;
  background: #f5f6f9;
  border-top: 1px solid rgba(15, 18, 25, 0.12);
  padding: clamp(56px, 9vh, 110px) 3.5vw clamp(76px, 12vh, 130px);
}

.contact-form-section--top {
  border-top: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: clamp(110px, 14vh, 170px);
  padding-bottom: clamp(44px, 8vh, 90px);
}

.contact-form-shell {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 3vw, 50px);
}

.contact-form-intro {
  display: grid;
  align-content: start;
  gap: 12px;
}

.contact-form-label {
  margin: 0;
  font-family: "JetBrains Mono", "Roboto Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(15, 18, 25, 0.62);
}

.contact-form-title {
  margin: 0;
  font-size: clamp(34px, 4.8vw, 78px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: lowercase;
  color: #0f1219;
}

.contact-form-copy {
  margin: 0;
  max-width: 36ch;
  font-size: clamp(14px, 1vw, 17px);
  line-height: 1.55;
  color: rgba(16, 18, 22, 0.8);
}

.contact-form {
  background: #ffffff;
  border: 1px solid rgba(15, 18, 25, 0.12);
  border-radius: 18px;
  padding: clamp(20px, 2.4vw, 34px);
  display: grid;
  gap: 14px;
}

.contact-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

.contact-field.is-hidden {
  display: none;
}

.contact-input-with-icon {
  position: relative;
}

.contact-input-with-icon input {
  padding-right: 40px;
}

.contact-input-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.75;
}

.contact-field span {
  font-family: "JetBrains Mono", "Roboto Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(15, 18, 25, 0.64);
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid rgba(15, 18, 25, 0.22);
  border-radius: 12px;
  background: #ffffff;
  color: #101216;
  padding: 12px 12px;
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  appearance: none;
}

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

.contact-field input:focus-visible,
.contact-field textarea:focus-visible {
  outline: 2px solid #101216;
  outline-offset: 1px;
}

.custom-select {
  position: relative;
}

.custom-select-trigger {
  width: 100%;
  min-height: 45px;
  border: 1px solid rgba(15, 18, 25, 0.22);
  border-radius: 12px;
  background: #ffffff;
  color: #101216;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
}

.custom-select-trigger:focus-visible {
  outline: 2px solid #101216;
  outline-offset: 1px;
}

.custom-select-value {
  display: block;
}

.custom-select:not(.has-value) .custom-select-value {
  color: rgba(16, 18, 22, 0.54);
}

.custom-select-caret {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid rgba(16, 18, 22, 0.72);
  border-bottom: 1.5px solid rgba(16, 18, 22, 0.72);
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s ease;
  flex: 0 0 auto;
}

.custom-select.is-open .custom-select-caret {
  transform: rotate(-135deg) translateY(-1px);
}

.custom-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
  border: 1px solid rgba(15, 18, 25, 0.22);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  display: none;
  max-height: 220px;
  overflow: auto;
}

.custom-select.is-open .custom-select-menu {
  display: block;
}

.custom-select-option {
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(15, 18, 25, 0.1);
  background: #ffffff;
  color: #101216;
  padding: 10px 12px;
  text-align: left;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}

.custom-select-option--with-icon {
  display: flex;
  align-items: center;
  gap: 6px;
}

.custom-select-option-icon {
  width: 14px;
  height: 14px;
  opacity: 0.78;
}

.custom-select-option:first-child {
  border-top: 0;
}

.custom-select-option:hover,
.custom-select-option.is-selected {
  background: rgba(15, 18, 25, 0.06);
}

.contact-form-actions {
  margin-top: 4px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-submit {
  min-height: 48px;
  border: 1px solid #0f1219;
  border-radius: 999px;
  background: #0f1219;
  color: #ffffff;
  padding: 0 20px;
  font-family: "JetBrains Mono", "Roboto Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.contact-submit:hover {
  opacity: 0.82;
}

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

.contact-mail-link {
  color: #101216;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  border-bottom: 1px solid rgba(16, 18, 22, 0.34);
}

.contact-mail-link:hover {
  opacity: 0.7;
}

.contact-form-status {
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
  border: 1px solid transparent;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-form-toast {
  position: fixed !important;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  width: min(92vw, 560px);
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) translateY(-12px);
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.contact-form-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.contact-form .contact-form-status:not(.contact-form-toast) {
  display: none !important;
}

.contact-form-status.is-sending {
  color: #374151;
  background: #f8fafc;
  border-color: #e5e7eb;
}

.contact-form-status.is-success {
  color: #166534;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.contact-form-status.is-error {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}

.contact-page .site-footer {
  background: #05070d;
  color: #eef2fa;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-page .site-footer-label {
  color: rgba(238, 242, 250, 0.62);
}

.contact-page .site-footer-text-link {
  color: #eef2fa;
}

.contact-page .site-footer-logo {
  color: #f3f6fc;
}

@media (max-width: 1000px) {
  .contact-form-shell {
    grid-template-columns: 1fr;
  }

  .contact-hero-robot {
    width: clamp(320px, 50vw, 520px);
    right: clamp(-36px, -5vw, 4px);
    top: 38%;
  }
}

@media (max-width: 640px) {
  .contact-hero {
    min-height: 72svh;
    padding-left: 20px;
    padding-right: 20px;
  }

  .contact-title {
    font-size: clamp(64px, 24vw, 128px);
  }

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

  .contact-hero-robot {
    width: clamp(260px, 72vw, 420px);
    top: 53%;
    right: -12px;
  }

  .contact-form-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .contact-form-section--top {
    min-height: auto;
    display: block;
  }

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