:root {
  --brand: #2E7D5E; --brand-d: #1B4332; --accent: #4ECB8D;
  --ink: #1a2420; --mut: #6b7a72; --line: #e2eae5; --bg: #f1f6f3; --card: #fff;
  --warn: #c0392b; --radius: 14px; --fs: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg); color: var(--ink); font-size: var(--fs); line-height: 1.5; }
body.large { --fs: 19px; }
.hidden { display: none !important; }
.muted { color: var(--mut); }
.note { color: var(--mut); font-size: .82em; margin-top: 10px; }
.err { color: var(--warn); min-height: 20px; margin-top: 8px; }

/* Шапка */
.site-head { background: var(--brand-d); color: #fff; }
.head-in { max-width: 980px; margin: 0 auto; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo-wrap { display: flex; align-items: center; gap: 12px; }
.logo { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 22px;
  background: linear-gradient(135deg, var(--brand), var(--accent)); }
.h-title { font-weight: 800; font-size: 1.15em; }
.h-sub { font-size: .8em; opacity: .85; }
.head-tools { display: flex; gap: 8px; align-items: center; }
.a11y { background: rgba(255,255,255,.15); color: #fff; border: 0; border-radius: 9px; padding: 8px 12px; cursor: pointer; font-weight: 700; }

/* Вкладки */
.tabs { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.tabs { display: flex; gap: 2px; max-width: 980px; margin: 0 auto; padding: 0 12px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 14px 18px; font: inherit; font-weight: 700; color: var(--mut);
  border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs button.active { color: var(--brand); border-bottom-color: var(--brand); }

main { max-width: 980px; margin: 24px auto; padding: 0 20px; }
.tab { animation: fade .2s; } @keyframes fade { from { opacity: 0 } to { opacity: 1 } }

.hero { padding: 8px 0 22px; }
.hero h1 { font-size: 1.7em; margin: 0 0 8px; color: var(--brand-d); }
.hero p { font-size: 1.05em; color: var(--mut); max-width: 640px; }

.card { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: 0 1px 3px rgba(20,40,30,.08); margin-bottom: 18px; }
.card h2 { margin: 0 0 14px; font-size: 1.1em; }
label { display: block; font-weight: 600; font-size: .92em; margin-top: 14px; }
input, textarea, select { width: 100%; margin-top: 6px; padding: 12px 14px; border: 2px solid var(--line);
  border-radius: 10px; font: inherit; background: #fff; }
input:focus, textarea:focus { outline: none; border-color: var(--brand); }
.form-card { max-width: 560px; }

button.primary { background: var(--brand); color: #fff; border: 0; padding: 13px 22px; border-radius: 11px;
  font: inherit; font-weight: 700; cursor: pointer; margin-top: 18px; }
button.primary:hover { background: var(--brand-d); }
button.ghost { background: none; color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 9px; padding: 8px 14px; cursor: pointer; font: inherit; }
.curator button.ghost { color: var(--brand); border-color: var(--line); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 16px; }
.item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.item .it-title { font-weight: 700; }
.item .it-meta { color: var(--mut); font-size: .88em; margin-top: 4px; }
.item .it-tag { display: inline-block; margin-top: 8px; background: #e8f6ee; color: var(--brand-d); padding: 2px 10px; border-radius: 999px; font-size: .78em; font-weight: 700; }
.empty { color: var(--mut); padding: 20px 0; }

.out { margin-top: 14px; padding: 14px; border-radius: 10px; background: #e8f6ee; color: var(--brand-d); font-weight: 600; }

/* Кабинет куратора */
.curator { position: fixed; inset: 0; background: var(--bg); z-index: 30; overflow-y: auto; }
.curator-bar { background: var(--brand-d); color: #fff; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; }
.curator .card { max-width: 880px; margin: 18px auto; }
.inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline input { width: auto; flex: 1; min-width: 130px; margin-top: 0; }
.inline button { margin-top: 0; }
.app-row { border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 10px; }
.app-row .ar-fio { font-weight: 700; }
.app-row .ar-m { color: var(--mut); font-size: .9em; margin-top: 3px; }

.site-foot { text-align: center; color: var(--mut); font-size: .85em; padding: 30px 20px; }
