/* Общие стили страниц JournalFit (статьи — index.html, ВКР — diploma.html). */
:root {
  --ink: #17222e;
  --muted: #5d6f81;
  --line: #dfe7ee;
  --accent: #2a6f97;
  --accent-deep: #1d3557;
  --accent-soft: #e8f1f7;
  --ok: #22662b;      --ok-bg: #e3f2e5;
  --warn: #8a5a12;    --warn-bg: #fdf1dc;
  --bad: #8c1f1f;     --bad-bg: #fdeaea;
  --info: #33556e;    --info-bg: #e8eef5;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", system-ui, -apple-system, sans-serif; color: var(--ink); background: #fff; }

/* ── Шапка с девизом ─────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent) 70%, #3d87b3 100%);
  color: #fff; padding: 72px 20px 88px; text-align: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .16;
  background:
    radial-gradient(circle at 12% 30%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 84% 68%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 68% 18%, #fff 0 1.6px, transparent 2.6px),
    radial-gradient(circle at 30% 80%, #fff 0 1.6px, transparent 2.6px);
  background-size: 340px 340px;
}
.hero .motto {
  position: relative; margin: 0; font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 5.4vw, 52px); font-weight: 400; line-height: 1.18; letter-spacing: .01em;
}
.hero .motto em { font-style: normal; color: #ffd166; }
.hero .tagline {
  position: relative; margin: 18px auto 0; max-width: 620px; font-size: 17px; line-height: 1.55; opacity: .94;
}
.chips { position: relative; margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  font-size: 13.5px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(2px);
}
.chip a { color: #fff; text-decoration: none; border-bottom: 1px dotted rgba(255,255,255,.7); }
.chip a:hover { border-bottom-style: solid; }

/* ── Основная карточка ───────────────────────────────────────── */
.wrap { max-width: 780px; margin: 0 auto; padding: 0 16px 64px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px;
  margin: -48px auto 24px; position: relative;
  box-shadow: 0 12px 32px rgba(23,34,46,.10);
}
label { display: block; font-weight: 600; margin: 20px 0 8px; font-size: 15px; }
label:first-child { margin-top: 0; }

.drop {
  border: 2px dashed #b9cbd9; border-radius: 12px; background: #fbfdfe;
  padding: 30px 18px; text-align: center; cursor: pointer; transition: .15s;
}
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop .icon { font-size: 34px; line-height: 1; }
.drop .main { font-weight: 600; margin-top: 8px; }
.drop .hint { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.drop .picked { color: var(--accent-deep); font-weight: 600; margin-top: 8px; word-break: break-all; }
input[type=file] { display: none; }

select {
  width: 100%; padding: 12px 14px; font-size: 15.5px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; background: #fbfdfe; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
select:focus, .drop.over { outline: 2px solid var(--accent); outline-offset: 1px; }

button {
  margin-top: 24px; width: 100%; padding: 15px; font-size: 17px; font-weight: 700; letter-spacing: .01em;
  color: #fff; background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  border: 0; border-radius: 12px; cursor: pointer; transition: .15s;
  box-shadow: 0 6px 16px rgba(29,53,87,.25);
}
button:hover { filter: brightness(1.07); }
button:disabled { background: #9db3c7; box-shadow: none; cursor: wait; }

.note { display: flex; gap: 8px; font-size: 13.5px; color: var(--muted); margin-top: 16px; line-height: 1.5; }
.err { background: var(--bad-bg); color: var(--bad); padding: 12px 14px; border-radius: 10px; display: none; margin-top: 16px; }

/* ── Результат ───────────────────────────────────────────────── */
#result { display: none; }
#result h2 { margin: 0 0 4px; font-size: 21px; }
.meta-line { color: var(--muted); margin: 0 0 16px; font-size: 14.5px; }
ul { padding: 0; margin: 0; list-style: none; }
li { display: flex; gap: 10px; margin: 10px 0; line-height: 1.5; align-items: flex-start; font-size: 15px; }
.badge {
  flex: 0 0 auto; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-top: 1px;
}
.b-auto   { background: var(--ok-bg);   color: var(--ok); }
.b-manual { background: var(--bad-bg);  color: var(--bad); }
.b-info   { background: var(--info-bg); color: var(--info); }
.dl {
  display: block; text-align: center; margin-top: 22px; padding: 14px; font-size: 16.5px; font-weight: 700;
  background: linear-gradient(135deg, #1e7a46, #2a9d5c); color: #fff; border-radius: 12px; text-decoration: none;
  box-shadow: 0 6px 16px rgba(30,122,70,.25);
}
.dl:hover { filter: brightness(1.06); }

footer { text-align: center; color: var(--muted); font-size: 13px; padding: 8px 16px 40px; line-height: 1.6; }
footer a { color: var(--accent); font-weight: 600; }
