:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #000;
  color: #f4f4f4;
}

button, input, textarea { font: inherit; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 580px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 16px 24px 72px;
}

.logo {
  display: block;
  width: min(100%, 400px);
  height: auto;
  margin: 0 auto -30px;
}

.contact-form {
  display: grid;
  gap: 20px;
  width: 100%;
}

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

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field label {
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #555;
  border-radius: 0;
  background: #080808;
  color: #fff;
  font-size: 16px;
  outline: none;
}

.field input { min-height: 50px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field textarea:focus { border-color: #fff; }
.field input:disabled,
.field textarea:disabled { color: #aaa; }

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.turnstile-slot { margin: 0 auto; }

#contact-submit {
  min-height: 55px;
  padding: 15px 20px;
  border: 1px solid #f4f4f4;
  border-radius: 0;
  background: #f4f4f4;
  color: #000;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
#contact-submit:hover:not(:disabled) { background: #ccc; border-color: #ccc; }
#contact-submit:disabled { opacity: 0.58; cursor: not-allowed; }

.form-status { margin: 0; font-size: 14px; line-height: 1.5; }
.form-status:not(:empty) { padding: 12px 14px; border: 1px solid #555; }
.form-status[data-state="error"]:not(:empty) { border-color: #c88686; color: #ffb2b2; }

@media (max-width: 520px) {
  .page { padding: 10px 18px 56px; }
  .logo { width: min(100%, 360px); margin-bottom: -24px; }
  .field-row { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 350px) {
  .page { padding-right: 8px; padding-left: 8px; }
}
