/* Базовые стили публичного miniapp/web (yuti-credit). Статика: /static/miniapp/style.css */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --radius: 10px;
  font-family: 'Manrope', 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 20px 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-a { background: var(--primary); }
.dot-b { background: #94a3b8; }

.lang { display: flex; gap: 6px; flex-wrap: wrap; }

.chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--surface);
}
.chip:hover { border-color: #cbd5e1; color: var(--text); }
.chip-active {
  background: #eff6ff;
  border-color: #93c5fd;
  color: var(--primary);
  font-weight: 600;
}

.section { margin-bottom: 28px; }

.h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 12px;
}

.pill {
  display: inline-block;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--muted);
  margin-bottom: 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.card {
  display: block;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.card-title { font-weight: 600; font-size: 15px; }

.stack { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: var(--primary);
  color: #fff;
  transition: background 0.15s;
}
.btn:hover { background: var(--primary-hover); color: #fff; }

.btn-primary { background: var(--primary); color: #fff; }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: #f8fafc; }

.form { display: flex; flex-direction: column; gap: 16px; max-width: 520px; }

.field { display: flex; flex-direction: column; gap: 6px; }

.label { font-size: 14px; font-weight: 500; color: var(--text); }

.help { font-size: 13px; color: var(--muted); }

.input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 16px;
  font-family: inherit;
  background: var(--surface);
}
.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

input[type="file"].input { padding: 8px; font-size: 14px; }

.auth-bar { font-size: 14px; }

@media (max-width: 480px) {
  .container { padding: 12px 14px 40px; }
  .h1 { font-size: 1.35rem; }
}
