/* MakerPG — публичные страницы проекта: тёмное фэнтези, без внешних ресурсов. */
:root {
  --mpg-ink: #080a0d;
  --mpg-ink-2: #0f1319;
  --mpg-panel: #12171f;
  --mpg-panel-2: #171d26;
  --mpg-line: #2a303a;
  --mpg-gold: #c9a45c;
  --mpg-gold-2: #e5c98d;
  --mpg-blood: #8e3542;
  --mpg-text: #e7e1d5;
  --mpg-muted: #9a9488;
  --mpg-danger: #d77a7a;
  --mpg-ok: #7fb08b;
  --mpg-radius: 10px;
  --mpg-serif: Georgia, "Times New Roman", serif;
  --mpg-sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.mpg-page {
  margin: 0;
  min-height: 100vh;
  color: var(--mpg-text);
  background:
    radial-gradient(1100px 620px at 18% -10%, rgba(142, 53, 66, .20), transparent 62%),
    radial-gradient(900px 560px at 92% 2%, rgba(201, 164, 92, .10), transparent 58%),
    linear-gradient(180deg, #0a0d12 0%, var(--mpg-ink) 58%, #07090c 100%);
  font-family: var(--mpg-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
body.mpg-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 30%, #000, transparent 76%);
}
body.mpg-page a { color: var(--mpg-gold-2); text-decoration: none; }
body.mpg-page a:hover { color: #fff; }
body.mpg-page a.mpg-btn--primary { color: #17120a; }
body.mpg-page a.mpg-btn--primary:hover { color: #0c0904; }
body.mpg-page :focus-visible { outline: 2px solid var(--mpg-gold); outline-offset: 3px; }
.mpg-atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(520px 300px at 12% 78%, rgba(142, 53, 66, .12), transparent 70%),
    radial-gradient(620px 320px at 88% 24%, rgba(201, 164, 92, .08), transparent 70%);
}
.mpg-header, .mpg-main, .mpg-footer { position: relative; z-index: 1; }
.mpg-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(201, 164, 92, .18);
}
.mpg-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--mpg-text) !important; }
.mpg-brand__mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  color: var(--mpg-gold-2); font-size: 20px;
  border: 1px solid rgba(201, 164, 92, .55);
  background: linear-gradient(145deg, rgba(201,164,92,.14), rgba(0,0,0,.1));
  box-shadow: inset 0 0 18px rgba(201,164,92,.10);
  transform: rotate(45deg);
}
.mpg-brand__mark > * { transform: rotate(-45deg); }
.mpg-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.mpg-brand__text b { font-family: var(--mpg-serif); font-size: 20px; letter-spacing: .4px; }
.mpg-brand__text small { color: var(--mpg-muted); font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; margin-top: 4px; }
.mpg-nav { display: flex; align-items: center; gap: 22px; font-size: 13px; letter-spacing: .7px; text-transform: uppercase; }
.mpg-nav a { color: var(--mpg-muted) !important; }
.mpg-nav a:hover { color: var(--mpg-gold-2) !important; }
.mpg-main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 54px 0 40px; }
.mpg-main--narrow { max-width: 1040px; }
.mpg-hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr); gap: 54px; align-items: center; min-height: 62vh; }
.mpg-hero__copy { max-width: 680px; }
.mpg-kicker { margin: 0 0 14px; color: var(--mpg-gold); font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; }
.mpg-hero h1, .mpg-register h1 {
  margin: 0 0 18px;
  font-family: var(--mpg-serif);
  font-weight: 700;
  font-size: clamp(42px, 6.4vw, 78px);
  line-height: .98;
  letter-spacing: -1.2px;
  text-shadow: 0 6px 30px rgba(0,0,0,.55);
}
.mpg-lead { margin: 0 0 26px; color: #c7c0b3; font-size: clamp(15px, 1.6vw, 17px); max-width: 56ch; }
.mpg-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 34px; }
.mpg-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px;
  border: 1px solid rgba(201,164,92,.38);
  border-radius: 4px;
  background: rgba(20, 25, 33, .72);
  color: var(--mpg-text);
  font: 600 13px/1 var(--mpg-sans);
  letter-spacing: .8px; text-transform: uppercase;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease, color .15s ease;
}
.mpg-btn:hover { transform: translateY(-1px); border-color: var(--mpg-gold); color: #fff; }
.mpg-btn:active { transform: translateY(0); }
.mpg-btn:disabled { opacity: .55; cursor: wait; transform: none; }
.mpg-btn--primary {
  color: #17120a; border-color: var(--mpg-gold-2);
  background: linear-gradient(135deg, var(--mpg-gold-2), var(--mpg-gold));
  box-shadow: 0 8px 24px rgba(201,164,92,.12);
}
.mpg-btn--primary:hover { color: #0c0904; filter: brightness(1.06); }
.mpg-btn--ghost { background: transparent; border-color: var(--mpg-line); color: var(--mpg-muted); }
.mpg-btn--block { width: 100%; }
.mpg-btn--sm { min-height: 34px; padding: 0 12px; font-size: 11px; }
.mpg-stats { display: flex; flex-wrap: wrap; gap: 26px; margin: 0; padding: 0; list-style: none; }
.mpg-stats li { display: flex; flex-direction: column; gap: 1px; }
.mpg-stats b { font-family: var(--mpg-serif); color: var(--mpg-gold-2); font-size: 23px; line-height: 1; }
.mpg-stats span { color: var(--mpg-muted); font-size: 11px; letter-spacing: .7px; text-transform: uppercase; }
.mpg-panel {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(201,164,92,.22);
  border-radius: var(--mpg-radius);
  background: linear-gradient(160deg, rgba(23,29,38,.96), rgba(12,16,22,.96));
  box-shadow: 0 26px 70px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.03);
  overflow: hidden;
}
.mpg-panel::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--mpg-gold), transparent);
  opacity: .75;
}
.mpg-panel--wide { padding: 30px; }
.mpg-panel__glow {
  position: absolute; width: 260px; height: 260px; right: -110px; top: -130px;
  background: radial-gradient(circle, rgba(201,164,92,.16), transparent 66%);
  pointer-events: none;
}
.mpg-panel h2 { position: relative; margin: 0 0 4px; font-family: var(--mpg-serif); font-size: 30px; }
.mpg-muted { margin: 0 0 20px; color: var(--mpg-muted); font-size: 13px; }
.mpg-form { position: relative; display: flex; flex-direction: column; gap: 14px; }
.mpg-field { display: flex; flex-direction: column; gap: 6px; color: #cfc8ba; font-size: 12px; letter-spacing: .4px; }
.mpg-label-text { display: block; }
.mpg-optional { color: var(--mpg-muted); font-size: 10px; letter-spacing: .4px; text-transform: lowercase; }
.mpg-input {
  width: 100%; min-height: 43px; padding: 10px 12px;
  color: var(--mpg-text); background: rgba(6, 9, 13, .72);
  border: 1px solid var(--mpg-line); border-radius: 4px;
  font: 400 14px/1.4 var(--mpg-sans);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.mpg-input::placeholder { color: #676358; }
.mpg-input:hover { border-color: #3a424f; }
.mpg-input:focus { outline: none; border-color: var(--mpg-gold); box-shadow: 0 0 0 3px rgba(201,164,92,.12); }
.mpg-panel__foot { position: relative; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid rgba(42,48,58,.8); color: var(--mpg-muted); font-size: 12px; text-align: center; }
.mpg-msg { display: none; padding: 9px 11px; border-radius: 4px; font-size: 12.5px; line-height: 1.45; }
.mpg-msg.is-error { display: block; color: #efc2c2; background: rgba(142,53,66,.18); border: 1px solid rgba(142,53,66,.45); }
.mpg-msg.is-ok { display: block; color: #bfe0c8; background: rgba(80,130,96,.14); border: 1px solid rgba(80,130,96,.35); }
.mpg-msg.is-info { display: block; color: #d9ccb1; background: rgba(201,164,92,.08); border: 1px solid rgba(201,164,92,.25); }
.mpg-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 54px; border: 1px solid var(--mpg-line); background: var(--mpg-line); }
.mpg-feature { padding: 24px 22px; background: rgba(12,16,22,.9); }
.mpg-feature__icon { display: block; color: var(--mpg-gold); font-size: 20px; margin-bottom: 8px; }
.mpg-feature h3 { margin: 0 0 6px; font-family: var(--mpg-serif); font-size: 20px; }
.mpg-feature p { margin: 0; color: var(--mpg-muted); font-size: 13px; line-height: 1.65; }
.mpg-quote { margin: 42px auto 0; max-width: 760px; padding: 24px 28px; border-left: 2px solid var(--mpg-gold); background: linear-gradient(90deg, rgba(201,164,92,.07), transparent); }
.mpg-quote p { margin: 0 0 8px; font-family: var(--mpg-serif); font-size: 19px; line-height: 1.5; color: #ded5c4; }
.mpg-quote span { color: var(--mpg-muted); font-size: 11px; letter-spacing: .5px; }
.mpg-footer {
  width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 22px 0 30px;
  display: flex; justify-content: space-between; gap: 16px;
  color: #6d685e; font-size: 11px; letter-spacing: .5px;
  border-top: 1px solid rgba(42,48,58,.7);
}
.mpg-register { display: grid; grid-template-columns: minmax(0, .8fr) minmax(380px, 1.2fr); gap: 44px; align-items: start; }
.mpg-register__intro { padding-top: 14px; }
.mpg-register h1 { font-size: clamp(40px, 5vw, 62px); }
.mpg-notes { margin: 22px 0 0; padding: 0; list-style: none; color: var(--mpg-muted); font-size: 13px; }
.mpg-notes li { position: relative; padding-left: 18px; margin-bottom: 7px; }
.mpg-notes li::before { content: "✦"; position: absolute; left: 0; top: 0; color: var(--mpg-gold); font-size: 11px; }
.mpg-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mpg-captcha { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 4px 0 2px; }
.mpg-captcha img { width: 180px; height: 50px; border: 1px solid var(--mpg-line); border-radius: 4px; background: #11151c; object-fit: cover; }
.mpg-input--code { width: 110px; text-align: center; letter-spacing: 4px; font-weight: 700; }
.mpg-check { display: flex; align-items: flex-start; gap: 9px; color: var(--mpg-muted); font-size: 12px; line-height: 1.5; cursor: pointer; }
.mpg-check input { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 2px; accent-color: var(--mpg-gold); }
.mpg-check a, .mpg-check span { color: var(--mpg-muted); }
.mpg-check a { color: var(--mpg-gold-2); text-decoration: underline; text-underline-offset: 2px; }
.mpg-modal { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 20px; background: rgba(3,5,8,.78); backdrop-filter: blur(6px); }
.mpg-modal[hidden] { display: none; }
.mpg-modal__box { width: min(420px, 100%); padding: 24px; border: 1px solid rgba(201,164,92,.35); border-radius: var(--mpg-radius); background: #131820; box-shadow: 0 30px 90px rgba(0,0,0,.65); }
.mpg-modal__box h2 { margin: 0 0 6px; font-family: var(--mpg-serif); font-size: 26px; }
.mpg-modal__box p { margin: 0 0 16px; color: var(--mpg-muted); font-size: 13px; }
.mpg-modal__actions { display: flex; gap: 10px; margin-top: 14px; }
.mpg-modal__actions .mpg-btn { flex: 1; }
@media (max-width: 960px) {
  .mpg-hero { grid-template-columns: 1fr; gap: 34px; min-height: 0; padding-top: 8px; }
  .mpg-hero h1 { font-size: clamp(42px, 11vw, 70px); }
  .mpg-register { grid-template-columns: 1fr; gap: 28px; }
  .mpg-features { grid-template-columns: 1fr; }
  .mpg-main { padding-top: 36px; }
}
@media (max-width: 640px) {
  .mpg-header, .mpg-main, .mpg-footer { width: min(100% - 24px, 1180px); }
  .mpg-header { min-height: 66px; }
  .mpg-brand__mark { width: 36px; height: 36px; }
  .mpg-brand__text b { font-size: 17px; }
  .mpg-brand__text small { font-size: 9px; letter-spacing: 1px; }
  .mpg-nav { gap: 12px; font-size: 11px; }
  .mpg-main { padding-top: 28px; padding-bottom: 28px; }
  .mpg-panel, .mpg-panel--wide { padding: 20px; }
  .mpg-form-grid { grid-template-columns: 1fr; }
  .mpg-stats { gap: 18px; }
  .mpg-actions .mpg-btn { flex: 1 1 100%; }
  .mpg-captcha img { width: 150px; height: 44px; }
  .mpg-input--code { width: 100px; }
  .mpg-footer { flex-direction: column; gap: 4px; padding-bottom: 22px; }
  .mpg-quote { padding: 18px 20px; }
  .mpg-quote p { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
/* Пользовательский HTML может добавлять свои классы/стили — базовые элементы остаются читаемыми. */
.mpg-page img { max-width: 100%; height: auto; }
.mpg-page table { width: 100%; border-collapse: collapse; }
.mpg-page th, .mpg-page td { padding: 8px 10px; border: 1px solid var(--mpg-line); text-align: left; }
.mpg-page code, .mpg-page pre { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }

/* Скрытое служебное поле страницы регистрации: людям не видно, ИИ видит в HTML.
   Если ИИ заполнит его — регистрация помечается в админке как ИИ-агент. */
.mpg-ai-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
