/* PEREPLAN PDF Checker — стиль в духе pereplan.msk.ru / pereplan-one.ru */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --blue: #2562F2;
  --blue-dark: #1B47C8;
  --blue-50: #EDF2FF;
  --yellow: #FFD60A;
  --yellow-dark: #F5C400;
  --ink: #0E1A2B;
  --muted: #6B7280;
  --line: #E5E7EB;
  --bg: #F7F8FB;
  --green: #16A34A;
  --green-bg: #DCFCE7;
  --red: #DC2626;
  --red-bg: #FEE2E2;
  --amber: #B45309;
  --amber-bg: #FEF3C7;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #fff;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* HEADER в стиле pereplan */
header.site {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
header.site .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.logo .brand {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.5px;
  color: var(--blue);
}
.logo .brand sup { font-size: 10px; vertical-align: super; }
.logo .sub {
  display: block;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 2px;
}
.logo .badge-years {
  background: var(--blue-50);
  color: var(--blue);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
  margin-left: 6px;
}

nav.top { display: flex; gap: 24px; align-items: center; }
nav.top a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color .15s;
}
nav.top a:hover { color: var(--blue); }
nav.top a.active { color: var(--blue); }
nav.top .user { color: var(--muted); font-size: 13px; }

/* MAIN */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}
h1, h2, h3 { color: var(--ink); margin-top: 0; }
h2 { font-size: 18px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}

.card.hero-blue {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  border: 0;
}
.card.hero-blue h2, .card.hero-blue h3 { color: #fff; }
.card.hero-blue .muted { color: rgba(255,255,255,.85); }

/* DROPZONES */
.dropzone {
  border: 2px dashed #C7D2FE;
  border-radius: 14px;
  padding: 36px;
  text-align: center;
  background: var(--blue-50);
  cursor: pointer;
  transition: all .15s;
}
.dropzone:hover, .dropzone.drag {
  border-color: var(--blue);
  background: #DDE7FF;
}
.dropzone p { margin: 4px 0; color: var(--ink); }
.dropzone .hint { font-size: 13px; color: var(--muted); }

/* INPUTS */
select, input[type=text], input[type=email], input[type=number], textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
select:focus, input:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 98, 242, .12);
}
textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

/* BUTTONS — pill-style как на pereplan */
button, .btn {
  background: var(--yellow);
  color: var(--ink);
  border: 0;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  transition: background .15s, transform .05s;
}
button:hover { background: var(--yellow-dark); }
button:active { transform: translateY(1px); }
button.secondary {
  background: #F1F2F6;
  color: var(--ink);
}
button.secondary:hover { background: #E5E7EE; }
button.primary {
  background: var(--blue);
  color: #fff;
}
button.primary:hover { background: var(--blue-dark); }
button.danger {
  background: var(--red-bg);
  color: var(--red);
}
button.danger:hover { background: #FCA5A5; color: #fff; }
button:disabled { opacity: .5; cursor: not-allowed; }
button.tab {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 8px 16px;
  font-weight: 500;
}
button.tab.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* TABLES */
table { width: 100%; border-collapse: collapse; }
th, td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
th {
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
tr:hover td { background: #FAFBFD; }
table a { color: var(--blue); text-decoration: none; font-weight: 600; }
table a:hover { text-decoration: underline; }

/* BADGES */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.badge.pass, .badge.done { background: var(--green-bg); color: var(--green); }
.badge.fail, .badge.error { background: var(--red-bg); color: var(--red); }
.badge.skip, .badge.pending { background: #F1F5F9; color: var(--muted); }
.badge.running { background: var(--amber-bg); color: var(--amber); }

/* LAYOUT */
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.grow { flex: 1; }
.muted { color: var(--muted); font-size: 13px; }

/* RESULT ITEMS */
.result-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 10px;
  background: #fff;
  transition: border-color .15s;
}
.result-item .title { font-weight: 700; margin-bottom: 4px; }
.result-item .details { font-size: 13px; color: var(--ink); margin: 8px 0; }
.result-item .evidence {
  background: #F7F8FB;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--ink);
  margin-top: 8px;
}
.evidence-row { padding: 2px 0; }

/* CHECKLIST EDITOR */
.checklist-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 10px;
  background: #fff;
}
.checklist-item .row { margin-bottom: 10px; }
.checklist-item label {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* NOTICES */
.notice {
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 500;
}
.notice.ok { background: var(--green-bg); color: var(--green); }
.notice.err { background: var(--red-bg); color: var(--red); }

/* PROGRESS BARS */
.progressbar {
  height: 8px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.progressbar > div {
  height: 100%;
  background: var(--blue);
  transition: width .25s;
  border-radius: 999px;
}
.progressbar.yellow > div { background: var(--yellow); }
