:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --bg-2: #111316;
  --surface: rgba(22, 24, 28, 0.86);
  --surface-strong: rgba(28, 30, 35, 0.98);
  --line: rgba(244, 242, 236, 0.12);
  --line-strong: rgba(244, 242, 236, 0.22);
  --text: #f6f3ec;
  --muted: #a8a098;
  --muted-strong: #d4cec4;
  --gold: #d6bd7b;
  --gold-strong: #f0d99a;
  --green: #7fb7a2;
  --steel: #7f9cad;
  --danger: #f29b91;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(140deg, rgba(214, 189, 123, 0.09), transparent 32rem),
    linear-gradient(220deg, rgba(127, 183, 162, 0.11), transparent 30rem),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-header {
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.34));
}

.top-links,
.site-footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.top-links a,
.site-footer a {
  transition: color 160ms ease;
}

.top-links a:hover,
.site-footer a:hover {
  color: var(--text);
}

.main-layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  padding: 36px 0 48px;
}

.intro-panel {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mark-wrap {
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
}

.mark-wrap img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 100%;
  margin: 0;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.subtitle {
  max-width: 540px;
  margin: 24px 0 0;
  color: var(--muted-strong);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.55;
}

.globe-visual {
  position: absolute;
  right: 0;
  bottom: 24px;
  width: min(260px, 54vw);
  aspect-ratio: 1;
  border: 1px solid rgba(214, 189, 123, 0.28);
  border-radius: 50%;
  opacity: 0.36;
  pointer-events: none;
}

.globe-visual::before,
.globe-visual::after,
.globe-visual span {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(246, 243, 236, 0.18);
}

.globe-visual::before {
  transform: scaleX(0.42);
}

.globe-visual::after {
  transform: scaleY(0.42);
}

.globe-visual span:nth-child(1) {
  inset: 17%;
  border-color: rgba(127, 183, 162, 0.22);
}

.globe-visual span:nth-child(2) {
  inset: 34%;
  border-color: rgba(127, 156, 173, 0.22);
}

.globe-visual span:nth-child(3) {
  inset: 50%;
  border: 0;
  border-top: 1px solid rgba(246, 243, 236, 0.2);
  border-radius: 0;
}

.form-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

form {
  display: grid;
  gap: 20px;
  padding: clamp(22px, 4vw, 36px);
}

.form-row {
  display: grid;
  gap: 16px;
}

.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 8px;
}

label span {
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-weight: 700;
}

label em {
  color: var(--muted);
  font-style: normal;
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(9, 11, 14, 0.72);
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

input,
select {
  min-height: 48px;
  padding: 0 14px;
}

textarea {
  min-height: 190px;
  max-height: 420px;
  resize: vertical;
  padding: 14px;
  line-height: 1.5;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 52%,
    calc(100% - 12px) 52%;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(214, 189, 123, 0.7);
  background: rgba(9, 11, 14, 0.9);
  box-shadow: 0 0 0 4px rgba(214, 189, 123, 0.12);
}

::placeholder {
  color: rgba(168, 160, 152, 0.72);
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-meta {
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.status-message {
  margin: 0;
  line-height: 1.45;
}

.status-message[data-type="success"] {
  color: var(--green);
}

.status-message[data-type="error"] {
  color: var(--danger);
}

.submit-button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  color: #15130d;
  background: linear-gradient(135deg, var(--gold-strong), var(--gold));
  font-weight: 850;
  cursor: pointer;
  transition:
    transform 160ms ease,
    filter 160ms ease,
    opacity 160ms ease;
}

.submit-button:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.76;
}

.button-loader {
  width: 18px;
  height: 18px;
  display: none;
  border: 2px solid rgba(21, 19, 13, 0.28);
  border-top-color: #15130d;
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

.submit-button[data-loading="true"] .button-loader {
  display: inline-block;
}

.site-footer {
  padding: 22px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 860px) {
  .page-shell {
    width: min(100% - 24px, 680px);
  }

  .main-layout {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding-top: 18px;
  }

  .intro-panel {
    min-height: auto;
    padding: 34px 0 4px;
  }

  .globe-visual {
    right: -64px;
    bottom: -10px;
    width: 220px;
  }
}

@media (max-width: 620px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.4rem);
  }

  .form-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}
