:root {
  --navy: #1C2B3A;
  --navy-deep: #121D28;
  --gold: #C99A3D;
  --gold-soft: #E4C57E;
  --cream: #FAF7F1;
  --ink: #23303D;
  --sage: #6B8F71;
  --rust: #A63D40;
  --line: #DCD4C4;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100%;
}

.wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--cream);
  padding: 44px 24px 56px;
  position: relative;
  overflow: hidden;
}

.lang-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 4px;
}

.lang-toggle button {
  border: none;
  background: transparent;
  color: rgba(250,247,241,0.7);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}

.lang-toggle button.active {
  background: var(--gold);
  color: var(--navy-deep);
}

.mark {
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
}

.hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 34px;
  line-height: 1.15;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.hero p.tagline {
  margin: 0;
  color: var(--gold-soft);
  font-size: 15px;
  font-weight: 500;
}

.card-area {
  flex: 1;
  padding: 24px;
  margin-top: -32px;
}

.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(28,43,58,0.14);
  padding: 8px;
  max-width: 420px;
  margin: 0 auto;
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.tabs button {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #9AA3AC;
  padding: 16px 0 12px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.tabs button.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

form {
  padding: 4px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

label {
  font-size: 13px;
  font-weight: 600;
  color: #6B7580;
  margin-bottom: -8px;
}

input {
  font-family: inherit;
  font-size: 16px;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  outline: none;
}

input:focus {
  border-color: var(--gold);
  background: #fff;
}

.field-hidden { display: none; }

button.primary {
  margin-top: 6px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-deep);
  background: var(--gold);
  border: none;
  border-radius: 10px;
  padding: 15px;
  cursor: pointer;
}

button.primary:disabled {
  opacity: 0.6;
}

.switcher {
  text-align: center;
  font-size: 14px;
  color: var(--navy);
  text-decoration: underline;
  cursor: pointer;
  margin-top: -4px;
}

.status {
  min-height: 20px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
}

.status.error { color: var(--rust); }
.status.success { color: var(--sage); }
