/* ============================================================
   PEAK ROLEPLAY – кандидатури
   ============================================================ */
:root {
  --bg: #060912;
  --bg-2: #0a0f1e;
  --panel: rgba(17, 23, 43, .72);
  --panel-solid: #11172b;
  --field: #0b1122;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #eef1f8;
  --muted: #8f9ab3;
  --accent: #3b9cff;
  --accent-2: #2f5bff;
  --ice: #8fc4ff;
  --ok: #3ddc97;
  --danger: #ff5d6c;
  --warn: #ffd23f;
  --radius: 20px;
  --nav-h: 68px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background: radial-gradient(1200px 700px at 85% -10%, rgba(59, 130, 255, .10), transparent 60%),
              radial-gradient(900px 600px at -10% 10%, rgba(80, 110, 255, .10), transparent 60%),
              var(--bg);
  color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
.wrap { width: min(1160px, 100%); margin-inline: auto; padding-inline: 22px; }
.wrap.narrow { width: min(820px, 100%); }
.muted { color: var(--muted); }

#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, .foot { position: relative; z-index: 1; }

/* ---------- бутони ---------- */
.btn {
  appearance: none; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .06); color: var(--text);
  font: inherit; font-weight: 700; font-size: .95rem; padding: 12px 22px; border-radius: 14px; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: transform .15s, box-shadow .2s, border-color .2s, background .2s, filter .2s; position: relative; overflow: hidden;
}
.btn:hover { border-color: rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .1); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.lg { padding: 16px 30px; font-size: 1.02rem; border-radius: 16px; }
.btn.sm { padding: 8px 14px; font-size: .85rem; border-radius: 10px; }
.btn.primary {
  background: linear-gradient(135deg, #3d8bff, var(--accent-2)); color: #ffffff; border-color: transparent;
  box-shadow: 0 12px 34px rgba(59, 130, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn.primary::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .6s;
}
.btn.primary:hover { background: linear-gradient(135deg, #3d8bff, var(--accent-2)); box-shadow: 0 16px 44px rgba(59, 130, 255, .5), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn.primary:hover::after { transform: translateX(120%); }
.btn.glass { background: rgba(255, 255, 255, .07); backdrop-filter: blur(10px); }
.btn.ghost { background: transparent; }
.btn.discord { background: #5865f2; border-color: transparent; color: #fff; box-shadow: 0 10px 28px rgba(88, 101, 242, .38); }
.btn.discord:hover { background: #6672f5; border-color: transparent; }
.btn[disabled], .btn.disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* ---------- навигация ---------- */
.nav { position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(6, 9, 18, .78); backdrop-filter: blur(16px) saturate(1.4); border-bottom-color: var(--line); }
.nav-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; letter-spacing: .06em; }
.logo svg { width: 34px; height: 34px; filter: drop-shadow(0 4px 14px rgba(59, 130, 255, .55)); }
.logo span { font-size: 1.05rem; }
.logo em { font-style: normal; font-weight: 500; font-size: .62rem; letter-spacing: .32em; color: var(--muted); align-self: flex-end; margin-bottom: 6px; }
.links { display: flex; gap: 4px; margin-left: 10px; flex: 1; }
.links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .92rem; padding: 8px 14px; border-radius: 10px; transition: color .2s, background .2s; }
.links a:hover, .links a.active { color: var(--text); background: rgba(255, 255, 255, .07); }
.nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; position: relative; }
.burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .06); cursor: pointer; padding: 0; position: relative; }
.burger i { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .2s; }
.burger i:nth-child(1) { top: 14px; } .burger i:nth-child(2) { top: 20px; } .burger i:nth-child(3) { top: 26px; }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.acc-btn { display: inline-flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line-2); color: var(--text); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; transition: background .2s; }
.acc-btn:hover { background: rgba(255, 255, 255, .12); }
.acc-btn img { width: 32px; height: 32px; border-radius: 50%; background: var(--panel-solid); }
.acc-btn span { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-btn svg { width: 14px; height: 14px; opacity: .7; }
.menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; background: var(--panel-solid); border: 1px solid var(--line-2); border-radius: 16px; padding: 8px; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); animation: pop .16s ease-out; }
.menu .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu .who b { display: block; }
.menu .who small { color: var(--muted); }
.menu a, .menu button { display: flex; width: 100%; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; border-radius: 10px; background: none; border: 0; color: var(--text); font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; text-decoration: none; }
.menu a:hover, .menu button:hover { background: rgba(255, 255, 255, .08); }
.menu .danger { color: #ff8b97; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: max(100vh, 680px); display: flex; align-items: center; overflow: hidden; padding: calc(var(--nav-h) + 30px) 0 150px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.aurora { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; mix-blend-mode: screen; }
.aurora.a1 { width: 60vw; height: 36vw; left: -12vw; top: 4vh; background: radial-gradient(closest-side, rgba(99, 120, 255, .55), transparent); animation: drift 18s ease-in-out infinite alternate; }
.aurora.a2 { width: 55vw; height: 32vw; right: -10vw; top: 14vh; background: radial-gradient(closest-side, rgba(56, 189, 248, .38), transparent); animation: drift 22s ease-in-out infinite alternate-reverse; }
.sun { position: absolute; left: 50%; bottom: 20%; width: 46vw; height: 46vw; max-width: 760px; max-height: 760px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(70, 150, 255, .5), rgba(37, 99, 235, .16) 55%, transparent 72%); filter: blur(10px); }
@keyframes drift { to { transform: translate3d(5vw, 3vh, 0) scale(1.15); } }
.mt { position: absolute; left: 0; width: 100%; bottom: -1px; will-change: transform; }
.mt.m1 { height: 62%; transform: translateY(calc(var(--sy, 0) * .16px)); }
.mt.m2 { height: 48%; transform: translateY(calc(var(--sy, 0) * .08px)); }
.mt.m3 { height: 34%; }
.hero-content { text-align: center; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line-2); backdrop-filter: blur(10px); font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #dfe6f7; }
.eyebrow.small { background: rgba(59, 156, 255, .1); border-color: rgba(59, 156, 255, .35); color: var(--accent); padding: 6px 14px; font-size: .74rem; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(61, 220, 151, .7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.01em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(2.6rem, 9vw, 6.4rem); font-weight: 800; margin: 26px 0 20px; text-shadow: 0 10px 60px rgba(0, 0, 0, .5); }
.grad { background: linear-gradient(100deg, #bfe6ff 0%, var(--accent) 35%, var(--accent-2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 30px rgba(37, 99, 235, .4)); }
.lead { max-width: 60ch; margin: 0 auto; color: #b9c3da; font-size: clamp(1rem, 2vw, 1.2rem); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 38px; }
.stats { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 54px 0 0; padding: 0; }
.stats li { min-width: 170px; padding: 16px 24px; border-radius: 18px; background: rgba(255, 255, 255, .055); border: 1px solid var(--line); backdrop-filter: blur(12px); }
.stats b { display: block; font-family: var(--display); font-size: 1.5rem; background: linear-gradient(100deg, #fff, var(--ice)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { color: var(--muted); font-size: .85rem; }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 14px; z-index: 2; }
.scroll-hint i { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 80%, 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- секции ---------- */
.section { padding: 100px 22px 10px; }
.sec-head { text-align: center; margin-bottom: 48px; }
.sec-head h2 { font-size: clamp(1.7rem, 4.4vw, 2.7rem); margin: 18px 0 12px; }
.sec-head p { color: var(--muted); max-width: 56ch; margin: 0 auto; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }

/* ---------- карти за кандидатури ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 22px; }
.card-app {
  --c: #3b9cff; position: relative; display: flex; flex-direction: column; padding: 30px 26px 26px; border-radius: 24px;
  background: linear-gradient(180deg, rgba(26, 34, 62, .8), rgba(12, 17, 33, .86)); border: 1px solid var(--line);
  backdrop-filter: blur(14px); overflow: hidden; transition: transform .3s cubic-bezier(.2, .7, .2, 1), border-color .3s, box-shadow .3s;
  opacity: 0; animation: rise .7s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(var(--i, 0) * 90ms);
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.card-app::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c) 22%, transparent), transparent 55%); }
.card-app::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--c), transparent); opacity: .65; }
.card-app:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 26px 60px rgba(0, 0, 0, .5), 0 0 60px color-mix(in srgb, var(--c) 18%, transparent); }
.card-app:hover::before { opacity: 1; }
.card-app > * { position: relative; }
.ico { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 20px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 10px 30px color-mix(in srgb, var(--c) 18%, transparent); }
.ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-app h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card-app p { color: var(--muted); font-size: .93rem; margin: 0 0 18px; flex: 1; }
.badge { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; margin-bottom: 18px; }
.badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.open { color: var(--ok); background: rgba(61, 220, 151, .1); border: 1px solid rgba(61, 220, 151, .4); }
.badge.open i { animation: ping 2s infinite; box-shadow: 0 0 0 0 rgba(61, 220, 151, .7); }
.badge.closed { color: #aab3c8; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); }
.badge.sent { color: var(--ice); background: rgba(143, 196, 255, .1); border: 1px solid rgba(143, 196, 255, .4); margin: 0; }
.card-app .row { display: flex; gap: 10px; flex-wrap: wrap; }
.card-app .row .btn { flex: 1 1 auto; }
.est { font-size: .8rem; color: var(--muted); margin-bottom: 18px; display: flex; align-items: center; gap: 6px; }
.est svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ---------- как работи ---------- */
.steps3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; counter-reset: s; }
.steps3 li { position: relative; padding: 34px 28px 28px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(12px); }
.steps3 li b { position: absolute; top: -20px; left: 26px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; font-family: var(--display); color: #ffffff; background: linear-gradient(135deg, #3d8bff, var(--accent-2)); box-shadow: 0 10px 24px rgba(59, 130, 255, .4); }
.steps3 h3 { font-size: 1.05rem; margin: 6px 0 10px; }
.steps3 p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ---------- ЧЗВ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; backdrop-filter: blur(12px); transition: border-color .2s; }
.faq details[open] { border-color: rgba(59, 156, 255, .4); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 28px 20px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; margin-top: -8px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq p { margin: 0 0 20px; color: var(--muted); }

.cta-band { margin: 100px 0 90px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 44px; border-radius: 28px; position: relative; overflow: hidden;
  background: linear-gradient(120deg, rgba(59, 156, 255, .18), rgba(99, 120, 255, .14)), var(--panel-solid); border: 1px solid rgba(59, 156, 255, .35); }
.cta-band::before { content: ""; position: absolute; right: -60px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(closest-side, rgba(70, 150, 255, .35), transparent); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); margin-bottom: 8px; }
.cta-band p { margin: 0; color: #c3cbe0; }

/* ---------- страница с кандидатура ---------- */
.page { padding: calc(var(--nav-h) + 40px) 22px 80px; min-height: 80vh; }
.crumb { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem; margin-bottom: 22px; padding: 6px 12px 6px 8px; border-radius: 10px; }
.crumb:hover { color: var(--text); background: rgba(255, 255, 255, .07); }
.crumb svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.apply-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.apply-head .ico { margin: 0; width: 72px; height: 72px; border-radius: 22px; }
.apply-head .ico svg { width: 34px; height: 34px; }
.apply-head h1 { font-size: clamp(1.7rem, 4.6vw, 2.6rem); margin: 0 0 6px; text-shadow: none; }
.apply-head p { margin: 0; color: var(--muted); }
.apply-head .meta { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: var(--muted); font-size: .8rem; font-weight: 600; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 26px; padding: 34px; backdrop-filter: blur(16px); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.gate { text-align: center; padding: 56px 34px; }
.gate .ico { margin: 0 auto 22px; width: 72px; height: 72px; border-radius: 22px; --c: #5865f2; }
.gate h2 { font-size: 1.5rem; margin-bottom: 12px; }
.gate p { color: var(--muted); max-width: 52ch; margin: 0 auto 26px; }
.gate .err-line { color: #ff9aa5; margin: 0 auto 20px; max-width: 52ch; background: rgba(255, 93, 108, .08); border: 1px solid rgba(255, 93, 108, .4); padding: 10px 14px; border-radius: 12px; }

.stepper { margin-bottom: 30px; }
.stepper ol { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; list-style: none; margin: 0 0 14px; padding: 0; }
.stepper li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .88rem; font-weight: 600; min-width: 0; }
.stepper li span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); font-weight: 800; font-size: .82rem; }
.stepper li em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stepper li.active { color: var(--text); }
.stepper li.active span { background: linear-gradient(135deg, #3d8bff, var(--accent-2)); border-color: transparent; color: #ffffff; box-shadow: 0 6px 18px rgba(59, 130, 255, .4); }
.stepper li.done span { background: rgba(61, 220, 151, .15); border-color: rgba(61, 220, 151, .5); color: var(--ok); }
.bar { height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #3d8bff, var(--accent-2)); border-radius: 5px; transition: width .4s cubic-bezier(.2, .7, .2, 1); }

.sec-title { font-size: 1.4rem; margin-bottom: 8px; }
.hint { margin: 0 0 24px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.field { display: block; margin-bottom: 20px; }
.field.full { grid-column: 1 / -1; }
.lbl { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 8px; }
.lbl i { color: var(--accent); font-style: normal; }
.lbl em { font-style: normal; font-weight: 500; color: var(--muted); }
input[type=text], input[type=number], select, textarea {
  width: 100%; background: var(--field); color: var(--text); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 13px 15px; font: inherit; transition: border-color .15s, box-shadow .15s, background .15s;
}
textarea { resize: vertical; min-height: 96px; line-height: 1.55; }
select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238f9ab3' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; }
input::placeholder, textarea::placeholder { color: #566079; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(59, 156, 255, .18); background: #0e1528; }
.invalid input, .invalid select, .invalid textarea { border-color: var(--danger); }
.invalid input:focus-visible, .invalid select:focus-visible, .invalid textarea:focus-visible { box-shadow: 0 0 0 4px rgba(255, 93, 108, .18); }
small { display: block; margin-top: 7px; font-size: .82rem; }
.count { color: var(--muted); text-align: right; }
.count b { color: var(--text); font-weight: 700; }
.count.low b { color: var(--warn); }
.err { color: #ff8b97; }
.err:empty { display: none; }

.review { display: grid; gap: 14px; margin-bottom: 20px; }
.review section { background: var(--field); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.review h3 { font-family: var(--font); font-size: .74rem; letter-spacing: .15em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; font-weight: 800; }
.review dl { margin: 0; display: grid; grid-template-columns: 170px 1fr; gap: 8px 16px; }
.review dt { color: var(--muted); font-size: .9rem; }
.review dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.check { display: flex; gap: 14px; align-items: flex-start; padding: 16px; margin-top: 12px; background: var(--field); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .2s; }
.check:hover { border-color: var(--line-2); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.check span { font-size: .94rem; }
.check.invalid { border-color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 14px; padding: 13px 16px; margin: 18px 0 0; font-size: .93rem; border: 1px solid; }
.notice.err-box { background: rgba(255, 93, 108, .08); border-color: rgba(255, 93, 108, .45); color: #ffb3bb; }
.notice.warn { background: rgba(255, 210, 63, .08); border-color: rgba(255, 210, 63, .4); color: #ffe48a; margin: 0 0 22px; }
.actions { display: flex; align-items: center; gap: 12px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.spacer { flex: 1; }

.done { text-align: center; padding: 56px 34px; }
.done-icon { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 22px; display: grid; place-items: center; background: rgba(61, 220, 151, .12); border: 2px solid rgba(61, 220, 151, .55); color: var(--ok); animation: pop .5s cubic-bezier(.2, 1.4, .4, 1); box-shadow: 0 0 60px rgba(61, 220, 151, .25); }
.done-icon svg { width: 42px; height: 42px; }
.done h2 { font-size: 1.7rem; margin-bottom: 12px; }
.done > p { color: var(--muted); max-width: 52ch; margin: 0 auto; }
.next { text-align: left; max-width: 520px; margin: 28px auto 0; padding-left: 22px; color: var(--muted); }
.next li { margin-bottom: 8px; }
.next b { color: var(--text); }
.done .cta { margin-top: 30px; }

/* ---------- история ---------- */
.hist-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.hist-head h1 { font-size: clamp(1.7rem, 4.6vw, 2.5rem); margin: 0 0 6px; text-shadow: none; }
.hist-head p { margin: 0; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filters button { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05); color: var(--muted); font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; transition: all .2s; }
.filters button:hover { color: var(--text); }
.filters button.on { background: linear-gradient(135deg, #3d8bff, var(--accent-2)); color: #ffffff; border-color: transparent; }
.hist-list { display: grid; gap: 12px; }
.hist-item { --c: #3b9cff; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 18px 22px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(12px); }
.hist-item .ico { width: 48px; height: 48px; margin: 0; border-radius: 14px; }
.hist-item .ico svg { width: 22px; height: 22px; }
.hist-item .t { flex: 1 1 220px; min-width: 0; }
.hist-item .t b { display: block; }
.hist-item .t span { color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.hist-item time { color: var(--muted); font-size: .85rem; }
.hist-msg { display: block; margin-top: 8px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .05); border-left: 3px solid var(--c); color: #c9d1e4; font-size: .9rem; }
.hist-msg b { color: var(--text); }
.badge.pending { color: var(--warn); background: rgba(255, 210, 63, .1); border: 1px solid rgba(255, 210, 63, .4); margin: 0; }
.badge.accepted { color: var(--ok); background: rgba(61, 220, 151, .1); border: 1px solid rgba(61, 220, 151, .45); margin: 0; }
.badge.rejected { color: #ff8b97; background: rgba(255, 93, 108, .1); border: 1px solid rgba(255, 93, 108, .45); margin: 0; }
.badge.pending i, .badge.accepted i, .badge.rejected i, .badge.sent i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- админ панел ---------- */
.btn.ok { background: linear-gradient(135deg, #52e8ae, #1fb97a); color: #04281a; border-color: transparent; box-shadow: 0 10px 28px rgba(31, 185, 122, .35); }
.btn.ok:hover { background: linear-gradient(135deg, #52e8ae, #1fb97a); filter: brightness(1.08); border-color: transparent; }
.btn.danger { background: linear-gradient(135deg, #ff7686, #e03e52); color: #fff; border-color: transparent; box-shadow: 0 10px 28px rgba(224, 62, 82, .35); }
.btn.danger:hover { background: linear-gradient(135deg, #ff7686, #e03e52); filter: brightness(1.08); border-color: transparent; }
.filters button .n { margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: .78rem; }
.filters button.on .n { background: rgba(0, 0, 0, .18); }
.filters + .filters { margin-top: -6px; }
a.admin-row { text-decoration: none; color: inherit; cursor: pointer; transition: transform .2s, border-color .2s, background .2s; }
a.admin-row:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 60%, transparent); background: rgba(26, 34, 62, .85); }
.admin-row .who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-row .who em { font-style: normal; color: var(--muted); font-size: .85rem; }
.person { display: flex; align-items: center; gap: 18px; flex: 1 1 280px; min-width: 0; }
.person img { width: 72px; height: 72px; border-radius: 50%; flex: none; background: var(--panel-solid); border: 2px solid var(--line-2); }
.person h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); margin: 0 0 4px; text-shadow: none; overflow-wrap: anywhere; }
.person p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 22px; }
.detail-grid { display: grid; gap: 18px; }
.dec-panel { border-color: rgba(59, 156, 255, .35); }
.dec-panel h2, .dec-done h2 { font-size: 1.3rem; margin-bottom: 6px; }
.dec-panel textarea { min-height: 110px; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.quick button { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05); color: var(--muted); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
.quick button:hover { color: var(--text); border-color: rgba(255, 255, 255, .3); }
.dec-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.dec-actions .btn { flex: 1 1 200px; }
.rchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.rchip { padding: 6px 12px; border-radius: 999px; font-size: .84rem; font-weight: 600; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05); }
.rchip.ok { color: var(--ok); border-color: rgba(61, 220, 151, .45); background: rgba(61, 220, 151, .08); }
.rchip.warn { color: var(--warn); border-color: rgba(255, 210, 63, .45); background: rgba(255, 210, 63, .08); }
.dec-done.accepted { border-color: rgba(61, 220, 151, .45); }
.dec-done.rejected { border-color: rgba(255, 93, 108, .45); }
.dec-done blockquote { margin: 14px 0 0; padding: 12px 16px; border-left: 3px solid var(--line-2); background: rgba(255, 255, 255, .04); border-radius: 0 12px 12px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.notice.info { background: rgba(143, 196, 255, .08); border-color: rgba(143, 196, 255, .4); color: #bcd9ff; margin: 0 0 18px; }
.id-line { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty .ico { margin: 0 auto 18px; }
.hist-note { margin-top: 22px; color: var(--muted); font-size: .88rem; }

/* ---------- footer, toast ---------- */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: .88rem; background: rgba(6, 9, 18, .72); backdrop-filter: blur(10px); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; }
.foot-in b { margin-right: 12px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 80; background: var(--panel-solid); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 20px; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); font-weight: 600; max-width: calc(100vw - 32px); animation: pop .2s ease-out; }
.toast.ok { border-color: rgba(61, 220, 151, .55); }
.toast.bad { border-color: rgba(255, 93, 108, .55); }

/* ---------- мобилен ---------- */
@media (max-width: 920px) {
  .burger { display: block; }
  .links { position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 2px; margin: 0; padding: 12px 16px 18px; background: rgba(8, 11, 22, .96); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
  .links.open { opacity: 1; transform: none; pointer-events: auto; }
  .links a { padding: 14px 16px; font-size: 1rem; }
  .logo em { display: none; }
  .apply-head .meta { margin-left: 0; }
}
@media (max-width: 640px) {
  .hero { padding-bottom: 120px; }
  .panel { padding: 22px 16px; border-radius: 22px; }
  .grid { grid-template-columns: 1fr; }
  .stepper ol { grid-auto-flow: row; grid-template-columns: repeat(4, auto); justify-content: space-between; }
  .stepper li em { display: none; }
  .stepper li.active em { display: inline; }
  .review dl { grid-template-columns: 1fr; gap: 2px; }
  .review dt { margin-top: 10px; }
  .actions { flex-wrap: wrap; }
  .actions .btn { flex: 1 1 auto; }
  .spacer { display: none; }
  .cta-band { padding: 30px 24px; }
  .acc-btn span { display: none; }
  .acc-btn { padding-right: 6px; }
  .acc-btn svg { display: none; }
  .btn.lg { padding: 14px 24px; }
  .section { padding-top: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .card-app { opacity: 1; transform: none; }
}
