:root {
  --bg0: #081018;
  --ink: #e8eef6;
  --muted: #8fa0b5;
  --line: rgba(180, 210, 235, 0.14);
  --accent: #3ec6b8;
  --accent-2: #6ec8ff;
  --panel: rgba(10, 20, 32, 0.78);
  --danger: #ff7b8a;
  --font-display: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  --font-body: 'Noto Sans SC', 'Space Grotesk', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg0);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

a {
  color: var(--accent-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 480px at 10% -8%, rgba(62, 198, 184, 0.2), transparent 58%),
    radial-gradient(720px 420px at 92% 6%, rgba(110, 200, 255, 0.14), transparent 55%),
    linear-gradient(165deg, #061018 0%, #0a1520 48%, #08131c 100%);
}

.bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 72%);
  pointer-events: none;
}

.top {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 1.1rem 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
}

.brand img {
  border-radius: 9px;
}

.brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.brand small {
  display: block;
  margin-top: 0.05rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.top__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  font-size: 0.85rem;
}

.top__nav a {
  color: var(--muted);
  text-decoration: none;
}

.top__nav a:hover {
  color: var(--ink);
}

.shell {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  flex: 1;
}

.shell__brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.shell__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.shell__lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.card {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(10px);
  padding: 1.15rem 1.15rem 1.35rem;
}

.tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.55rem;
}

.tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  border-radius: 4px;
}

.tab:hover {
  color: var(--ink);
}

.tab.is-active {
  color: var(--ink);
  background: rgba(62, 198, 184, 0.12);
}

.form {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
}

.form.is-active {
  display: flex;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.field input {
  appearance: none;
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(4, 10, 18, 0.55);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  padding: 0.65rem 0.75rem;
  border-radius: 4px;
  outline: none;
}

.field input:focus {
  border-color: rgba(62, 198, 184, 0.55);
  box-shadow: 0 0 0 2px rgba(62, 198, 184, 0.15);
}

.field--grow {
  flex: 1;
  min-width: 0;
}

.sms-row {
  display: flex;
  align-items: flex-end;
  gap: 0.55rem;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

.consent input {
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.btn {
  appearance: none;
  border: 0;
  background: linear-gradient(135deg, #2fb5a8, #3ec6b8 55%, #4ad0c0);
  color: #041018;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.72rem 1rem;
  border-radius: 4px;
  cursor: pointer;
}

.btn:hover:not(:disabled) {
  filter: brightness(1.06);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn--ghost {
  background: transparent;
  color: var(--accent-2);
  border: 1px solid var(--line);
  font-weight: 500;
  font-size: 0.82rem;
  padding: 0.65rem 0.7rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.hint-link {
  margin: 0;
  text-align: center;
}

.text-link {
  appearance: none;
  border: 0;
  background: none;
  color: var(--accent-2);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
}

.text-link:hover {
  text-decoration: underline;
}

.msg {
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.7rem;
  border-radius: 4px;
  font-size: 0.85rem;
  background: rgba(62, 198, 184, 0.12);
  color: var(--ink);
}

.msg--error {
  background: rgba(255, 123, 138, 0.12);
  color: #ffb3bc;
}

.msg--inline {
  margin-bottom: 0;
}

.captcha {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.captcha[hidden] {
  display: none;
}

.captcha__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 12, 0.72);
}

.captcha__panel {
  position: relative;
  width: min(100%, 360px);
  border: 1px solid var(--line);
  background: #0c1622;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.captcha__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.captcha__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.captcha__close {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.captcha__q {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

@media (max-width: 560px) {
  .top__nav {
    display: none;
  }

  .shell {
    padding-top: 1.75rem;
  }
}
