@import url("/static/fonts/fonts.css");

:root {
  --navy:#18223A; --navy-2:#26324F; --gold:#C49A3A; --gold-2:#A9832C;
  --paper:#F6F4EF; --card:#FFFFFF; --line:#E4E0D6; --muted:#6B7285; --danger:#B23B3B; --ok:#2F7A4F;
  --radius:12px;
}
* { box-sizing:border-box; margin:0; }
[hidden] { display:none !important; }
html { -webkit-text-size-adjust:100%; }
body { background:var(--paper); color:var(--navy); font-family:Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size:16px; line-height:1.45; min-height:100vh; font-feature-settings:"tnum" 1; }
a { color:inherit; }

/* ---------- шапка приложения ---------- */
.topbar { background:var(--navy); color:#fff; }
.topbar-in { max-width:1100px; margin:0 auto; padding:0 16px; height:60px; display:flex; align-items:center; gap:14px; }
.brand { display:flex; align-items:center; gap:10px; text-decoration:none; font-weight:600; font-size:17px; }
.brand img { width:32px; height:32px; border-radius:7px; outline:1px solid rgba(255,255,255,.15); }
.nav { display:flex; gap:4px; margin-left:auto; align-items:center; }
.nav a, .nav button { color:rgba(255,255,255,.78); text-decoration:none; font:inherit; font-size:15px; background:none; border:0;
  padding:8px 12px; border-radius:8px; cursor:pointer; }
.nav a:hover, .nav button:hover, .nav a.on { color:#fff; background:rgba(255,255,255,.08); }
.nav form { display:inline; }

.page { max-width:1100px; margin:0 auto; padding:28px 16px 64px; }
.page h1 { font-size:26px; font-weight:700; letter-spacing:-.015em; margin-bottom:6px; }
.sub { color:var(--muted); margin-bottom:24px; }

.card { background:var(--card); border-radius:var(--radius); padding:22px; box-shadow:0 1px 2px rgba(24,34,58,.06), 0 0 0 1px rgba(24,34,58,.04); }
.card + .card { margin-top:16px; }
.card h2 { font-size:18px; font-weight:600; margin-bottom:14px; }

/* ---------- формы ---------- */
label.f { display:block; margin-bottom:14px; }
label.f span { display:block; font-size:14px; font-weight:500; margin-bottom:6px; }
input[type=email], input[type=password], input[type=text], select, textarea {
  width:100%; font:inherit; font-size:16px; color:var(--navy); background:#fff; border:1px solid var(--line);
  border-radius:10px; padding:12px 14px; outline:none; transition:border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color:var(--gold); box-shadow:0 0 0 3px rgba(196,154,58,.18); }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; font:inherit; font-weight:600; font-size:16px;
  border:0; border-radius:10px; padding:13px 20px; cursor:pointer; text-decoration:none; background:var(--navy); color:#fff; }
.btn:hover { background:var(--navy-2); }
.btn.gold { background:var(--gold); color:var(--navy); }
.btn.gold:hover { background:var(--gold-2); color:#fff; }
.btn.ghost { background:transparent; color:var(--navy); box-shadow:inset 0 0 0 1px var(--line); }
.btn.block { width:100%; }
.err { background:#FBEDED; color:var(--danger); border-radius:10px; padding:11px 14px; font-size:14.5px; margin-bottom:16px; }
.okmsg { background:#EAF4EE; color:var(--ok); border-radius:10px; padding:11px 14px; font-size:14.5px; margin-bottom:16px; }
.hint { color:var(--muted); font-size:13.5px; }

/* ---------- экран входа ---------- */
.auth { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:32px 16px; }
.auth-box { width:100%; max-width:400px; }
.auth-head { text-align:center; margin-bottom:24px; }
.auth-head img { width:60px; height:60px; border-radius:12px; margin-bottom:14px; }
.auth-head h1 { font-size:22px; font-weight:700; }
.auth-head p { color:var(--muted); font-size:15px; margin-top:4px; }

/* ---------- таблица команды ---------- */
.people { width:100%; border-collapse:collapse; font-size:15px; }
.people td, .people th { text-align:left; padding:11px 8px; border-bottom:1px solid var(--line); vertical-align:middle; }
.people th { font-size:13px; font-weight:500; color:var(--muted); }
.tag { display:inline-block; font-size:12.5px; padding:2px 8px; border-radius:20px; background:var(--paper); color:var(--muted); }
.tag.gold { background:rgba(196,154,58,.15); color:#7A5E1E; }
.linkbox { display:flex; gap:8px; margin-top:10px; }
.linkbox input { font-size:14px; }
.grid2 { display:grid; grid-template-columns:1fr 1fr; gap:12px; }

@media (max-width:640px) {
  .page h1 { font-size:22px; }
  .grid2 { grid-template-columns:1fr; }
  .people .hide-sm { display:none; }
  .brand span { display:none; }
  .nav { gap:0; }
  .nav a, .nav button { padding:8px 9px; font-size:14.5px; }
}
