:root {
  --navy: #2f4059;
  --navy-deep: #243247;
  --cream: #f5f5dc;
  --ink: #1d2533;
  --muted: #5d6779;
  --line: #dfe2e8;
  --bg: #f7f7f2;
  --ok: #1f7a4d;
  --bad: #b3261e;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; }
a { color: var(--navy); }
.top { display: flex; justify-content: space-between; align-items: center; padding: 14px 28px; background: var(--navy); color: var(--cream); }
.top a { color: var(--cream); text-decoration: none; margin-left: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; margin-left: 0 !important; }
.brand img { border-radius: 7px; }
main { max-width: 1120px; margin: 0 auto; padding: 28px 20px 40px; }
footer { display: flex; gap: 20px; justify-content: center; padding: 24px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
h1 { font-family: Georgia, "Playfair Display", serif; color: var(--navy); line-height: 1.2; }
h2 { color: var(--navy); font-size: 20px; margin-top: 0; }
.hero { padding: 30px 0 10px; max-width: 760px; }
.hero h1 { font-size: 40px; margin: 0 0 14px; }
.lead { font-size: 18px; color: var(--muted); }
.btn { display: inline-block; background: var(--navy); color: var(--cream) !important; border: 0; border-radius: 8px; padding: 11px 18px; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; }
.btn.small { padding: 7px 12px; font-size: 14px; background: var(--cream); color: var(--navy) !important; }
.btn.ghost { background: transparent; color: var(--navy) !important; border: 1px solid var(--navy); }
.btn.danger { background: transparent; color: var(--bad) !important; border: 1px solid var(--bad); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; margin-bottom: 18px; }
.card.narrow { max-width: 560px; margin: 40px auto; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.grid3 .card { margin: 0; }
.doc { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px 34px; max-width: 820px; margin: 0 auto; }
.doc li { margin-bottom: 8px; }
.muted { color: var(--muted); }
.account { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.account img { width: 52px; height: 52px; border-radius: 50%; }
.account .who { flex: 1; min-width: 200px; }
.account .who strong { font-size: 18px; }
.account select { padding: 7px; border-radius: 8px; border: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--navy); color: var(--cream); border-radius: 12px; padding: 14px 18px; }
.stat b { display: block; font-size: 26px; }
.stat span { font-size: 13px; opacity: .85; }
.cols { display: grid; grid-template-columns: 1fr 1.4fr; gap: 18px; align-items: start; }
.qitem { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 8px; cursor: pointer; }
.qitem:hover, .qitem.sel { border-color: var(--navy); background: #f3f5f9; }
.qitem small { color: var(--muted); display: block; }
.tag { font-size: 12px; padding: 2px 8px; border-radius: 99px; background: #e8f3ec; color: var(--ok); white-space: nowrap; }
form label, #review label { display: block; margin: 10px 0 4px; font-weight: 600; font-size: 14px; }
input[type=text], textarea, select { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
label.check { font-weight: 500; display: flex; align-items: center; gap: 8px; }
label.check.disabled { color: var(--muted); }
.add summary { cursor: pointer; color: var(--navy); font-weight: 600; margin-top: 8px; }
video { width: 100%; max-height: 520px; background: #000; border-radius: 10px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.box { border: 1px solid var(--line); border-radius: 9px; padding: 10px 14px; margin-top: 10px; }
.hint { font-size: 13px; color: var(--muted); }
.consent { font-size: 14px; margin: 14px 0; }
.err { color: var(--bad); font-weight: 600; }
.okmsg { color: var(--ok); font-weight: 600; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
td img { width: 44px; height: 60px; object-fit: cover; border-radius: 5px; }
td.num, th.num { text-align: right; }
@media (max-width: 860px) {
  .grid3, .cols { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
