:root {
  --navy: #14284b; --navy2: #244882; --gold: #f2b233; --gold2: #b97f0a;
  --bg: #f6f7fb; --card: #fff; --ink: #1b2233; --mute: #5d6779; --line: #dfe3ec;
  --good: #1f8a4c; --goodbg: #e7f5ec; --bad: #c0392b; --badbg: #fbeaea; --soft: #e8eefb;
  --shadow: 0 1px 2px rgba(20, 40, 75, .06), 0 4px 14px rgba(20, 40, 75, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif; }
a { color: var(--navy2); }
h1 { font-size: 30px; line-height: 1.2; margin: 6px 0 10px; }
h2 { font-size: 22px; margin: 34px 0 12px; }
h3 { font-size: 18px; margin: 0 0 6px; }
p { margin: 0 0 12px; }
small, .small { font-size: 13.5px; }
.muted { color: var(--mute); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 18px; }
.wrap.wide { max-width: 1240px; }
main.wrap { padding-top: 22px; padding-bottom: 50px; min-height: 70vh; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrapx { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.inline { display: inline; margin: 0; }

.bar { background: var(--navy); color: #fff; }
.bar .row { justify-content: space-between; min-height: 60px; }
.brand { display: flex; align-items: baseline; gap: 8px; color: #fff; text-decoration: none; font-size: 19px; font-weight: 600; }
.logo { font-weight: 800; letter-spacing: .04em; border-bottom: 3px solid var(--gold); line-height: 1.1; }
nav { display: flex; gap: 18px; align-items: center; }
nav a, .linkbtn { color: #fff; text-decoration: none; font-weight: 500; font-size: 15px; }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }

.btn { display: inline-block; border: 1px solid transparent; border-radius: 10px; padding: 11px 18px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; background: var(--navy2); color: #fff; text-align: center; }
.btn.primary { background: var(--navy2); color: #fff; }
.btn.gold { background: var(--gold); color: var(--navy); }
.btn.ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn.danger { background: var(--bad); color: #fff; }
.btn.big { width: 100%; padding: 14px 18px; font-size: 17px; }
.btn.sm { padding: 6px 12px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: default; }

input, select, textarea { font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; width: 100%; }
textarea { resize: vertical; }
label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 14.5px; flex: 1; }
label small { font-weight: 400; }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; flex: none; }
label.check input { width: auto; }
.row input[type=email], .row input[type=search] { flex: 1; min-width: 200px; }
.row select { width: auto; }

.hero { background: linear-gradient(160deg, var(--navy2), var(--navy)); color: #fff; border-radius: 18px; padding: 44px 30px; margin-top: 6px; }
.hero h1 { font-size: 36px; max-width: 760px; }
.hero p { font-size: 18px; opacity: .92; max-width: 700px; margin-bottom: 22px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.pcard { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .12s; }
.pcard:hover { transform: translateY(-2px); }
.pcard p { color: var(--mute); }
.pmeta { margin-top: auto; display: flex; justify-content: space-between; align-items: center; color: var(--mute); font-size: 14px; }
.pmeta b { color: var(--ink); font-size: 18px; }
.kind { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold2); }
.about p { max-width: 760px; }
.how ol { padding-left: 22px; }
.how li { margin-bottom: 6px; }

.pgrid { display: grid; grid-template-columns: 1fr 330px; gap: 34px; align-items: start; }
.lead { font-size: 18px; color: var(--mute); }
.desc ul { padding-left: 22px; }
.desc h3 { margin-top: 18px; }
.buybox { position: sticky; top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
.price { font-size: 30px; font-weight: 800; margin-bottom: 12px; }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; font-size: 14.5px; color: var(--mute); }
.ticks li { padding-left: 22px; position: relative; margin-bottom: 6px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 700; }
.mbuy { display: none; }
.soon { background: var(--soft); border-radius: 12px; padding: 14px; }
.soon .row { flex-wrap: wrap; margin-top: 8px; }
.curr details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.curr summary { cursor: pointer; padding: 12px 16px; font-weight: 700; display: flex; justify-content: space-between; }
.curr summary span { color: var(--mute); font-weight: 500; }
.curr ul { list-style: none; margin: 0; padding: 0 16px 8px; }
.curr li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.curr li small { display: block; color: var(--mute); }
.lmeta { display: flex; gap: 10px; white-space: nowrap; font-size: 14px; color: var(--mute); }
.lmeta em { font-style: normal; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); margin-bottom: 14px; }
.card.narrow { max-width: 520px; margin: 30px auto; }
.notice { background: var(--goodbg); border: 1px solid var(--good); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; }
.notice.bad { background: var(--badbg); border-color: var(--bad); }
.lib { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 12px; box-shadow: var(--shadow); }
.lib > div { flex: 1; }
.prog { display: block; width: 100%; height: 8px; margin: 8px 0 4px; border: 0; border-radius: 6px; background: var(--line); overflow: hidden; -webkit-appearance: none; appearance: none; }
.prog::-webkit-progress-bar { background: var(--line); border-radius: 6px; }
.prog::-webkit-progress-value { background: var(--good); border-radius: 6px; }
.prog::-moz-progress-bar { background: var(--good); border-radius: 6px; }

.player { display: grid; grid-template-columns: 1fr 330px; gap: 26px; align-items: start; }
.crumb { font-size: 14px; color: var(--mute); }
.video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; display: block; }
.video iframe { border: 0; width: 100%; height: 100%; }
.novideo { aspect-ratio: 16 / 9; background: linear-gradient(160deg, var(--navy2), var(--navy)); color: #fff; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.novideo b { font-size: 22px; }
.pnav { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }
.pside { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }
.pside h2 { font-size: 16px; margin: 0 0 4px; }
.pside ol { list-style: none; padding: 0; margin: 10px 0 0; }
.pside li a, .pside li.locked { display: flex; gap: 10px; padding: 8px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 14.5px; }
.pside li.locked { color: var(--mute); }
.pside li.cur a { background: var(--soft); font-weight: 600; }
.pside .n { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.pside li.done .n { background: var(--good); color: #fff; border-color: var(--good); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px; }

.legal { max-width: 760px; }
.legal h2 { font-size: 19px; margin-top: 26px; }
.mail pre { white-space: pre-wrap; font: 14px/1.5 ui-monospace, Menlo, monospace; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stats div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.stats b { display: block; font-size: 24px; }
.stats span { color: var(--mute); font-size: 14px; }
.tbl { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 14.5px; margin-bottom: 12px; }
.tbl th, .tbl td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { background: var(--bg); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--mute); }
.tbl form { margin: 0; }
.danger-zone { margin-top: 34px; }
.upload { max-width: 520px; }

.foot { border-top: 1px solid var(--line); background: var(--card); color: var(--mute); font-size: 14px; padding: 20px 0; }
.foot p { margin: 4px 0; }

@media (max-width: 860px) {
  .pgrid, .player { grid-template-columns: 1fr; }
  .buybox, .pside { position: static; max-height: none; }
  .mbuy { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 6px 0 18px; }
  .mbuy .price { font-size: 24px; margin-bottom: 8px; }
  .buybox .price { display: none; }
  .hero { padding: 30px 20px; }
  .hero h1 { font-size: 28px; }
  h1 { font-size: 25px; }
  .stats { grid-template-columns: 1fr; }
  .tbl { display: block; overflow-x: auto; }
  nav { gap: 12px; }
}
