/* trustee: визитка на /. Токены — те же, что у страницы платёжки (/p/style.css). */
:root {
  --bg: #0f0f10;
  --card: #1c1c1e;
  --card-border: rgba(255, 255, 255, 0.06);
  --text: #f2f2f7;
  --muted: #8e8e93;
  --teal: #4fd1c5;
  --grad-a: #38bdf8;
  --grad-b: #a78bfa;
  --grad-btn-a: #2dd4bf;
  --grad-btn-b: #6366f1;
  --ok: #34d399;
  --radius: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.page {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ─── Шапка ─── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 20px;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lang { display: flex; gap: 4px; }

.lang-btn {
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}

.lang-btn.active {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
}

.lang-btn:focus-visible,
.open-btn:focus-visible,
#payId:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* ─── Hero ─── */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 0 32px;
}

.title {
  margin: 0 0 10px;
  font-size: clamp(34px, 9vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.title .grad {
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  max-width: 46ch;
}

.subtitle b { color: var(--text); font-weight: 600; }

/* ─── Карточка входа ─── */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 10px;
}

.row {
  display: flex;
  gap: 10px;
}

#payId {
  flex: 1;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  color: var(--text);
  font-size: 16px;
  padding: 12px 14px;
  transition: border-color .15s;
}

#payId::placeholder { color: var(--muted); opacity: .7; }
#payId:focus { border-color: var(--teal); }

.open-btn {
  flex-shrink: 0;
  border: none;
  border-radius: 12px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--grad-btn-a), var(--grad-btn-b));
  color: #fff;
  cursor: pointer;
  transition: filter .15s;
}

.open-btn:hover { filter: brightness(1.08); }
.open-btn:active { filter: brightness(0.95); }

.hint {
  margin: 12px 2px 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.hint.error { color: var(--teal); }

/* ─── Подвал ─── */
.foot {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  padding: 8px 0 4px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
}

/* ─── Адаптив ─── */
@media (max-width: 480px) {
  .page { padding: 12px 16px 20px; }
  .row { flex-direction: column; }
  .open-btn { width: 100%; }
}
