/* ============================================================ Brigston RP — сайт
   Та же дизайн-система, что у лаунчера: ночь, стекло, жёлтое свечение, плавность.
   Анимации уважают prefers-reduced-motion (внизу файла). */

/* цвет фонового свечения меняется по разделам и плавно перетекает */
@property --amb { syntax: '<color>'; inherits: true; initial-value: rgba(252, 221, 8, .5); }

:root {
  --amb: rgba(252, 221, 8, .5);
  --vel: 0;
  --bg: #07070a;
  --bg-2: #0b0b10;
  --glass: rgba(18, 18, 24, .62);
  --glass-solid: rgba(20, 20, 27, .84);   /* карточки без размытия фона под ними — плотнее */
  --glass-hi: rgba(28, 28, 36, .74);
  --stroke: rgba(255, 255, 255, .07);
  --stroke-hi: rgba(255, 255, 255, .14);
  --text: #f1f2f6;
  --muted: #9095a3;
  --faint: #5b5f6c;
  --accent: #fcdd08;
  --accent-2: #ff9f1c;
  --accent-glow: rgba(252, 221, 8, .35);
  --ok: #3ee08f;
  --warn: #ffb547;
  --bad: #ff4d6a;
  --paper: #ece9e0;
  --ink: #0b0a03;
  --radius: 20px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --wrap: 1220px;
  --display: Unbounded, Montserrat, "Segoe UI", sans-serif;
  --body: Montserrat, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: 84px; } /* плавный переход к разделу делает app.js */
body {
  background: var(--bg);
  color: var(--text);
  font: 500 16px/1.6 var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--ink); }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
svg.ic, .force-ic, .job-ic, .tile-svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
kbd { display: inline-block; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--stroke-hi); border-bottom-width: 2px;
  background: rgba(255, 255, 255, .05); font: 600 .78em var(--mono); color: var(--text); }

/* ============================================================ заставка при загрузке */
.intro { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 22px;
  background: var(--bg); transition: opacity .7s var(--ease), visibility .7s; }
.intro img { filter: drop-shadow(0 0 28px var(--accent-glow)); animation: breathe 1.6s ease-in-out infinite; }
.intro-line { width: 160px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.intro-line i { display: block; height: 100%; width: 40%; border-radius: 3px; background: linear-gradient(90deg, var(--accent-2), var(--accent));
  animation: introbar 1s var(--ease) infinite; }
@keyframes introbar { from { transform: translateX(-110%); } to { transform: translateX(260%); } }
@keyframes breathe { 50% { transform: scale(1.06); filter: drop-shadow(0 0 44px var(--accent-glow)); } }
body:not(.booting) .intro { opacity: 0; visibility: hidden; }
/* если app.js не догрузился (обрыв соединения), через 8 с всё равно убрать заставку и показать блоки */
body.booting .intro { animation: bootGone .6s 8s forwards; }
body.booting .reveal { animation: bootShow .6s 8s forwards; }
@keyframes bootGone { to { opacity: 0; visibility: hidden; } }
@keyframes bootShow { to { opacity: 1; transform: none; } }

/* ============================================================ живой фон */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; opacity: .5; will-change: transform; }
.g1 { width: 760px; height: 760px; left: -240px; top: 36vh; background: radial-gradient(circle, var(--amb), transparent 65%); animation: drift1 24s ease-in-out infinite alternate; }
.bg { transition: --amb 1.6s var(--ease); }
.g2 { width: 640px; height: 640px; right: -220px; top: -260px; background: radial-gradient(circle, rgba(70, 110, 255, .45), transparent 65%); animation: drift2 28s ease-in-out infinite alternate; }
.g3 { width: 500px; height: 500px; right: 12%; bottom: -260px; background: radial-gradient(circle, rgba(255, 90, 60, .32), transparent 65%); animation: drift1 32s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(160px, -90px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-140px, 100px) scale(1.1); } }
#dust { position: absolute; inset: 0; width: 100%; height: 100%; }
.grain { position: absolute; inset: 0; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.cursor-glow { position: fixed; left: 0; top: 0; z-index: -1; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 221, 8, .07), transparent 60%); pointer-events: none; transition: opacity .4s; will-change: transform; }
#reading { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 60; background: linear-gradient(90deg, var(--accent-2), var(--accent)); box-shadow: 0 0 12px var(--accent-glow); }

/* ============================================================ кнопки и стекло */
.glass { background: var(--glass-solid); border: 1px solid var(--stroke); border-radius: var(--radius); }
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 14px; font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, border-color .25s; will-change: transform; }
.btn .ic { width: 20px; height: 20px; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--ink);
  box-shadow: 0 12px 34px -12px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-primary:hover { box-shadow: 0 20px 46px -14px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-glass { background: var(--glass-hi); border: 1px solid var(--stroke-hi); }
.btn-glass:hover { border-color: rgba(255, 255, 255, .28); }
.btn-small { padding: 9px 16px; font-size: 13px; border-radius: 11px; }
.btn-big { padding: 17px 28px; font-size: 16px; border-radius: 16px; }
.btn-block { width: 100%; }
.btn:active { transform: scale(.97); }
.btn:disabled { background: rgba(255, 255, 255, .06); color: var(--faint); box-shadow: none; cursor: default; }
.btn-sheen { position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .6) 50%, transparent 70%);
  transform: translateX(-120%); animation: sheen 4s ease-in-out infinite 2s; }
.btn:disabled .btn-sheen { display: none; }
@keyframes sheen { 0%, 62% { transform: translateX(-120%); } 88%, 100% { transform: translateX(120%); } }

/* ============================================================ шапка */
#header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .4s, border-color .4s, backdrop-filter .4s; border-bottom: 1px solid transparent; }
#header.dense { background: rgba(9, 9, 13, .72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-color: var(--stroke); }
.bar { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-logo { filter: drop-shadow(0 0 12px var(--accent-glow)); transition: transform .5s var(--spring); }
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.08); }
.brand-text { display: grid; line-height: 1.1; }
.brand-text strong { font: 800 15px var(--display); letter-spacing: .2em; }
.brand-text small { font-size: 10px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.menu { position: relative; display: flex; gap: 2px; margin-inline: auto; padding: 5px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--stroke); }
.menu .link { position: relative; z-index: 1; padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted); transition: color .25s; }
.menu .link:hover, .menu .link.active { color: var(--text); }
.menu .link-donate { color: var(--accent); }
.menu-mark { position: absolute; z-index: 0; top: 5px; left: 0; height: calc(100% - 10px); width: 0; border-radius: 10px;
  background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); opacity: 0;
  transition: transform .5s var(--ease), width .5s var(--ease), opacity .3s; }
.bar-actions { display: flex; align-items: center; gap: 12px; }
.online { display: inline-flex; align-items: center; gap: 9px; padding: 7px 13px; border-radius: 99px; border: 1px solid var(--stroke);
  background: var(--glass); font: 600 12px var(--mono); color: var(--muted); }
.online i { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.online.live { color: var(--text); }
.online.live i { background: var(--ok); animation: pulse 2s infinite; }
.online.down i { background: var(--bad); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(62, 224, 143, .5); } 70%, 100% { box-shadow: 0 0 0 8px rgba(62, 224, 143, 0); } }
.burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--stroke-hi); place-content: center; gap: 5px; }
.burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .4s var(--ease), opacity .3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================ первый экран */
.hero { position: relative; min-height: 100vh; padding: 130px 0 40px; display: grid; align-content: center; overflow: hidden; }
.hero-city { position: absolute; inset: 0; pointer-events: none; }
.spot { position: absolute; inset: 0; background: radial-gradient(600px circle at var(--sx, 30%) var(--sy, 40%), rgba(252, 221, 8, .09), transparent 60%); transition: background .2s; }
.skyline { position: absolute; left: -60px; right: -60px; bottom: 0; background-repeat: repeat-x; transition: transform .8s var(--ease); }
.skyline.far { height: 230px; background-image: url("assets/skyline-far.svg"); background-size: 720px 230px; opacity: .2; }
.skyline.near { height: 270px; background-image: url("assets/skyline-near.svg"); background-size: 880px 270px; opacity: .5;
  -webkit-mask: linear-gradient(transparent, #000 35%); mask: linear-gradient(transparent, #000 35%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 440px); gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 11px; font: 600 12px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.eyebrow i { width: 30px; height: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.eyebrow b { display: inline-grid; place-items: center; width: 30px; height: 22px; border-radius: 6px; background: rgba(252, 221, 8, .12); font-weight: 700; }
.title { font: 900 clamp(46px, 7.6vw, 124px)/.92 var(--display); letter-spacing: -.01em; margin: 18px 0 18px; white-space: nowrap;
  background: linear-gradient(180deg, #fff 30%, #9ea3b5 125%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.title.split:has(.ch) { background: none; }   /* градиент только у букв: заливка родителя под летящими буквами давала белые куски */
.split .ch { display: inline-block; opacity: 0; transform: translateY(60px) rotate(8deg); filter: blur(10px);
  background: linear-gradient(180deg, #fff 30%, #9ea3b5 125%); -webkit-background-clip: text; background-clip: text; animation: chIn 1s var(--ease) forwards; animation-delay: calc(var(--i) * 55ms + .35s); }
@keyframes chIn { to { opacity: 1; transform: none; filter: none; } }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 560px; }
.lead b { color: var(--text); font-weight: 600; }
.fade-up { opacity: 0; transform: translateY(18px); animation: fadeUp .9s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-live { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.live-card { min-width: 220px; padding: 14px 18px; border-radius: 16px; background: var(--glass-solid); border: 1px solid var(--stroke); }
.live-label { display: block; font-size: 12px; color: var(--muted); }
.live-card b { display: block; font: 800 24px var(--display); margin-top: 2px; }
.live-card b small { font: 600 14px var(--body); color: var(--muted); margin-left: 4px; }
.live-card b.small { font-size: 15px; font-family: var(--body); }
.live-sub { font-size: 12px; color: var(--faint); }
.meter { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .07); margin-top: 10px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); box-shadow: 0 0 12px var(--accent-glow); transition: width 1.4s var(--ease); }

.hero-flag { position: relative; height: 440px; display: grid; place-items: center; }
.flag-orbit { position: absolute; inset: 20px; }
.flag-orbit i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(252, 221, 8, .14); animation: spin 26s linear infinite; }
.flag-orbit i:nth-child(2) { inset: 40px; border-color: rgba(70, 110, 255, .16); animation-duration: 34s; animation-direction: reverse; }
.flag-orbit i:nth-child(3) { inset: 80px; border-style: dashed; animation-duration: 50s; }
.flag-orbit i::after { content: ''; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }
.flagpole { position: absolute; left: 22%; top: 20px; bottom: 30px; width: 6px; border-radius: 6px; background: linear-gradient(90deg, #8d919c, #f6f7f9, #8d919c); }
.flagpole::before { content: ''; position: absolute; top: -10px; left: -5px; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff1a0, #c9a400); }
.flag { position: absolute; left: calc(22% + 6px); top: 34px; width: 58%; height: 200px; display: flex; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .5)); }
.flag span { flex: 1; background: linear-gradient(180deg, #1b1b22 0 34%, var(--accent) 34% 66%, #1b1b22 66%);
  animation: wave 2.6s ease-in-out infinite; animation-delay: calc(var(--i) * -60ms); transform-origin: top; }
@keyframes wave { 50% { transform: translateY(var(--a)); filter: brightness(1.18); } }
.crest { position: absolute; left: calc(22% + 6px + 29% - 70px); top: 64px; width: 140px; height: 140px; display: grid; place-items: center; pointer-events: auto; }
.crest img { width: 130px; height: 130px; filter: drop-shadow(0 0 24px var(--accent-glow)); }

.facts { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 60px; }
.facts li { padding: 22px; transition: border-color .3s; }
.facts li:hover { border-color: var(--stroke-hi); }
.facts strong { display: block; font: 800 42px/1 var(--display); background: linear-gradient(180deg, #fff, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.facts span { color: var(--muted); font-size: 14px; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px; margin-left: -13px; border-radius: 20px; border: 2px solid var(--stroke-hi); }
.scroll-cue i { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--accent); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ============================================================ бегущие строки */
.ticker { display: flex; align-items: center; border-block: 1px solid var(--stroke); background: rgba(10, 10, 14, .85); overflow: hidden; }
.ticker-label { flex: none; padding: 14px 20px; font: 800 12px var(--display); letter-spacing: .2em; color: var(--ink); background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.ticker-track { display: flex; white-space: nowrap; will-change: transform; }
.ticker-track span { padding: 0 34px; font-weight: 600; color: var(--muted); position: relative; }
.ticker-track span::after { content: '◆'; position: absolute; right: -6px; color: var(--accent); font-size: 9px; top: 50%; transform: translateY(-50%); }
.strip { overflow: hidden; padding: 26px 0; border-block: 1px solid var(--stroke); }
.strip-track { display: flex; gap: 30px; width: max-content; animation: marquee 34s linear infinite; }
.strip span { font: 900 64px/1 var(--display); color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .16); transition: color .3s; }
.strip span:hover { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.strip i { font-style: normal; font-size: 30px; color: var(--accent); align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================ разделы */
.section { position: relative; padding: 120px 0; }
.head { margin-bottom: 52px; max-width: 760px; }
.head h2 { font: 900 clamp(38px, 5.4vw, 66px)/1.02 var(--display); letter-spacing: -.01em; margin-top: 14px; }
.sub { color: var(--muted); font-size: 17px; margin-top: 14px; }
.band { background: linear-gradient(180deg, transparent, rgba(252, 221, 8, .04) 30%, rgba(252, 221, 8, .04) 70%, transparent); }
.bgword { position: absolute; right: -2vw; top: 60px; font: 900 clamp(90px, 16vw, 230px)/1 var(--display); color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .05); pointer-events: none; user-select: none; }

/* появление при прокрутке, со ступенькой */
.reveal { opacity: 0; transform: translateY(34px) scale(.985); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.reveal.seen { opacity: 1; transform: none; }
.d1 { transition-delay: .05s; } .d2 { transition-delay: .13s; } .d3 { transition-delay: .21s; }
.d4 { transition-delay: .29s; } .d5 { transition-delay: .37s; } .d6 { transition-delay: .45s; }

/* наклон карточки за курсором + блик */
.tilt { transform-style: preserve-3d; transition: transform .5s var(--ease), border-color .3s; }
.tilt::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(252, 221, 8, .1), transparent 55%); opacity: 0; transition: opacity .3s; }
.tilt:hover::before { opacity: 1; }
.glass.tilt, .tile, .force, .job, .step, .facts li { position: relative; }

/* ---------------------------------------------------------- силы */
.forces { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.force { padding: 28px 24px 30px; overflow: hidden; min-height: 240px; }
.force::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--tint); box-shadow: 0 0 22px var(--tint); transform: scaleX(.2); transform-origin: left; transition: transform .6s var(--ease); }
.force:hover::after { transform: scaleX(1); }
.force-tag { display: inline-block; padding: 4px 10px; border-radius: 7px; font: 700 11px var(--mono); letter-spacing: .1em; color: var(--tint); background: color-mix(in srgb, var(--tint) 14%, transparent); }
.force h3 { font: 800 30px var(--display); margin: 18px 0 6px; }
.force p { color: var(--muted); font-size: 14px; }
.force-ic { position: absolute; right: -14px; bottom: -14px; width: 120px; height: 120px; color: var(--tint); opacity: .14; transition: transform .7s var(--ease), opacity .4s; }
.force:hover .force-ic { transform: rotate(-12deg) scale(1.12); opacity: .3; }

/* ---------------------------------------------------------- паспорт */
.passport-zone { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.passport-form { padding: 30px; }
.field { display: grid; gap: 10px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input { height: 54px; padding: 0 18px; border-radius: 14px; background: rgba(0, 0, 0, .4); border: 1px solid var(--stroke-hi);
  color: var(--text); font: 600 18px var(--mono); outline: none; transition: border-color .25s, box-shadow .25s; width: 100%; }
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 5px rgba(252, 221, 8, .12); }
.field input.bad { border-color: var(--bad); box-shadow: 0 0 0 5px rgba(255, 77, 106, .12); }
.nick-check { min-height: 24px; margin: 10px 0 4px; font-weight: 600; font-size: 14px; transition: color .3s; }
.nick-check.good { color: var(--ok); }
.nick-check.bad { color: var(--bad); }
.nick-rules { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 18px; }
.nick-rules li { position: relative; padding: 10px 12px 10px 34px; border-radius: 11px; background: rgba(255, 255, 255, .03); font-size: 13px; color: var(--muted); transition: background .3s, color .3s; }
.nick-rules li::before { content: ''; position: absolute; left: 12px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; border: 2px solid var(--faint); transition: .35s var(--spring); }
.nick-rules li.ok { color: var(--text); background: rgba(62, 224, 143, .07); }
.nick-rules li.ok::before { border-color: var(--ok); background: var(--ok); box-shadow: 0 0 10px var(--ok); transform: scale(1.1); }
.nick-rules li.fail { color: #ff9aab; background: rgba(255, 77, 106, .07); }
.nick-rules li.fail::before { border-color: var(--bad); }
.passport-note { font-size: 12px; color: var(--faint); }

.passport { position: relative; padding: 24px 26px 18px; border-radius: 22px; color: #2b2a24; overflow: hidden;
  background: linear-gradient(145deg, #f6f3ea, #e2ddcf); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .5) inset;
  transform: rotate(-2.5deg); transition: transform .5s var(--ease); }
.passport::before { content: ''; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: repeating-linear-gradient(45deg, transparent 0 12px, rgba(180, 160, 90, .06) 12px 13px), radial-gradient(circle at 80% 20%, rgba(252, 221, 8, .25), transparent 50%); }
.pp-head { position: relative; display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed rgba(0, 0, 0, .15); }
.pp-head b { display: block; font: 800 13px var(--display); letter-spacing: .1em; }
.pp-head small { font-size: 10px; letter-spacing: .2em; color: #77735f; }
.pp-stripe { display: flex; gap: 3px; margin-left: auto; }
.pp-stripe i { width: 8px; height: 24px; border-radius: 2px; background: #1b1b22; }
.pp-stripe i:nth-child(2) { background: #e3c400; }
.pp-body { position: relative; display: flex; gap: 20px; padding: 18px 0; }
.pp-photo { flex: none; width: 104px; height: 128px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(160deg, #cfc8b4, #a8a089);
  font: 800 34px var(--display); color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.pp-fields { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.pp-fields div:not(.half) { grid-column: 1 / -1; }
.pp-fields dt { font-size: 9px; letter-spacing: .18em; color: #8a856e; text-transform: uppercase; }
.pp-fields dd { font: 700 17px var(--mono); }
.pp-mrz { position: relative; font: 600 13px/1.5 var(--mono); letter-spacing: .08em; color: #4d4a3d; word-break: break-all; padding-top: 10px; border-top: 1px dashed rgba(0, 0, 0, .15); }
.pp-shine { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); transform: translateX(-100%); animation: ppshine 5s ease-in-out infinite; }
@keyframes ppshine { 0%, 70% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.pp-stamp { position: absolute; right: 24px; bottom: 46px; padding: 8px 16px; border: 3px solid rgba(214, 38, 62, .75); border-radius: 12px; color: rgba(214, 38, 62, .8);
  text-align: center; transform: rotate(-14deg) scale(2.4); opacity: 0; transition: transform .45s var(--spring), opacity .3s; }
.pp-stamp span { display: block; font: 900 22px var(--display); letter-spacing: .1em; }
.pp-stamp small { font: 700 9px var(--mono); letter-spacing: .3em; }
.passport[data-ok="true"] .pp-stamp { transform: rotate(-14deg) scale(1); opacity: 1; }
.flash { animation: flash .5s var(--ease); }
@keyframes flash { from { color: #c79a00; transform: translateY(-3px); } }

/* ---------------------------------------------------------- фракции */
.fx { display: grid; grid-template-columns: 300px 1fr; gap: 18px; align-items: start; }
.fx-tabs { display: grid; gap: 8px; }
.fx-tab { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; text-align: left; background: var(--glass); border: 1px solid var(--stroke);
  transition: transform .35s var(--ease), border-color .3s, background .3s; }
.fx-tab:hover { transform: translateX(4px); border-color: var(--stroke-hi); }
.fx-tab.on { border-color: var(--tint); background: color-mix(in srgb, var(--tint) 10%, var(--glass)); box-shadow: 0 10px 30px -14px var(--tint); }
.fx-tab b { display: block; font-size: 15px; }
.fx-tab small { color: var(--muted); font-size: 12px; }
.emblem { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; color: var(--tint); background: color-mix(in srgb, var(--tint) 14%, transparent); }
.emblem svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fx-panel { position: relative; padding: 30px; overflow: hidden; border-color: color-mix(in srgb, var(--ptint, var(--accent)) 30%, var(--stroke)); }
.fx-panel::before { content: ''; position: absolute; inset: -40% -20% auto auto; width: 70%; height: 90%; background: radial-gradient(circle, var(--pglow, transparent), transparent 65%); pointer-events: none; }
.fx-panel.swap > * { animation: fadeUp .6s var(--ease) both; }
.fx-panel.swap > *:nth-child(3) { animation-delay: .05s; } .fx-panel.swap > *:nth-child(4) { animation-delay: .1s; } .fx-panel.swap > *:nth-child(5) { animation-delay: .15s; }
.fx-wm { position: absolute; right: -40px; bottom: -40px; width: 300px; height: 300px; color: var(--ptint); opacity: .06; fill: none; stroke: currentColor; stroke-width: 1.2; }
.fx-top { position: relative; display: flex; align-items: center; gap: 16px; }
.fx-top h3 { font: 800 28px var(--display); }
.fx-top .org { color: var(--muted); font-size: 13px; }
.fx-top .emblem { --tint: var(--ptint); width: 58px; height: 58px; }
.fx-big { margin-left: auto; text-align: right; }
.fx-big b { display: block; font: 800 32px var(--display); color: var(--ptint); text-shadow: 0 0 24px var(--pglow); }
.fx-big span { font-size: 12px; color: var(--muted); }
.fx-line { position: relative; margin: 18px 0; font-size: 18px; font-weight: 600; }
.fx-meta { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.fx-meta div { padding: 12px 14px; border-radius: 13px; background: rgba(255, 255, 255, .04); }
.fx-meta dt { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.fx-meta dd { font-weight: 700; font-size: 14px; }
.fx-cols { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; }
.fx-cols h4 { font: 700 12px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 4px 0 10px; }
.ranks { list-style: none; display: grid; gap: 4px; max-height: 360px; overflow: auto; padding-right: 6px; }
.ranks li { position: relative; display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 10px; overflow: hidden; font-size: 13px;
  opacity: 0; animation: rankIn .5s var(--ease) forwards; animation-delay: calc(var(--k) * 35ms); }
.ranks li::before { content: ''; position: absolute; inset: 0; width: var(--w); background: linear-gradient(90deg, color-mix(in srgb, var(--ptint) 22%, transparent), transparent); z-index: -1; transform-origin: left; animation: barIn .9s var(--ease) both; animation-delay: calc(var(--k) * 35ms + .1s); }
@keyframes rankIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes barIn { from { transform: scaleX(0); } }
.ranks .n { font: 600 11px var(--mono); color: var(--faint); }
.ranks .s { font: 700 13px var(--mono); color: var(--text); }
.ranks li.leader { box-shadow: inset 0 0 0 1px var(--ptint); }
.ranks li.leader .r { color: var(--ptint); font-weight: 700; }
.vehicles, .gear { list-style: none; display: grid; gap: 4px; margin-bottom: 18px; }
.vehicles li, .gear li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .03); font-size: 13px; transition: background .25s; }
.vehicles li:hover, .gear li:hover { background: rgba(255, 255, 255, .07); }
.vehicles span, .gear span { font: 600 12px var(--mono); color: var(--muted); }

/* ---------------------------------------------------------- путь */
.route { list-style: none; position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; padding-top: 30px; --p: 0; }
.route::before, .route::after { content: ''; position: absolute; left: 8%; right: 8%; top: 52px; height: 3px; border-radius: 3px; }
.route::before { background: rgba(255, 255, 255, .07); }
.route::after { right: auto; width: calc(84% * var(--p)); background: linear-gradient(90deg, var(--accent-2), var(--accent)); box-shadow: 0 0 16px var(--accent-glow); transition: width .2s; }
.route li { position: relative; z-index: 1; text-align: center; }
.route .dot { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 16px; border-radius: 50%; font: 800 16px var(--display);
  background: var(--bg-2); border: 2px solid var(--stroke-hi); transition: .5s var(--spring); }
.route li.on .dot { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--ink); border-color: transparent; transform: scale(1.12); box-shadow: 0 0 26px var(--accent-glow); }
.route h3 { font: 700 17px var(--display); }
.route .tag { font: 600 12px var(--mono); color: var(--muted); }

/* ---------------------------------------------------------- закон */
.law { --heat: 0; --siren: 3s; overflow: hidden; }
.siren i { position: absolute; top: 0; bottom: 0; width: 40%; pointer-events: none; opacity: calc(.15 + var(--heat) * .5); animation: siren var(--siren) ease-in-out infinite; }
.siren i:first-child { left: 0; background: radial-gradient(ellipse at left, rgba(255, 50, 80, .4), transparent 60%); }
.siren i:last-child { right: 0; background: radial-gradient(ellipse at right, rgba(60, 120, 255, .45), transparent 60%); animation-delay: calc(var(--siren) / -2); }
@keyframes siren { 50% { opacity: .05; } }
.wanted { position: relative; max-width: 820px; padding: 34px; }
.stars { display: flex; gap: 10px; }
.star { width: clamp(44px, 8vw, 74px); aspect-ratio: 1; color: rgba(255, 255, 255, .12); transition: color .25s, transform .35s var(--spring), filter .3s; }
.star svg { width: 100%; height: 100%; fill: currentColor; }
.star:hover { transform: scale(1.1); }
.star.on { color: var(--accent); filter: drop-shadow(0 0 14px var(--accent-glow)); }
.star.pop { animation: pop .5s var(--spring); }
@keyframes pop { 40% { transform: scale(1.35) rotate(-10deg); } }
.wanted-out { display: flex; gap: 40px; margin: 26px 0 18px; }
.wanted-out b { display: block; font: 900 46px/1 var(--display); }
.wanted-out span { color: var(--muted); font-size: 14px; }
.wanted-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.wanted-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #ff4d6a); transition: width .5s var(--ease); }

/* ---------------------------------------------------------- работа */
.jobs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.job { padding: 30px; overflow: hidden; min-height: 210px; }
.job-name { font: 700 13px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.job-price { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 2px; font: 900 56px/1 var(--display); }
.job-price em { font-style: normal; }
.job-price i { font-style: normal; font-size: 26px; color: var(--accent); }
.job-unit { color: var(--muted); }
.job-ic { position: absolute; right: 20px; top: 20px; width: 56px; height: 56px; color: var(--accent); opacity: .5; transition: transform .6s var(--spring), opacity .3s; }
.job:hover .job-ic { transform: translateX(-6px) rotate(-6deg); opacity: 1; }

/* ---------------------------------------------------------- город */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 14px; }
.tile { padding: 22px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; transition: border-color .3s, transform .5s var(--ease); }
.tile:hover { border-color: var(--stroke-hi); }
.tile h3 { font: 700 19px var(--display); }
.tile p { color: var(--muted); font-size: 13px; }
.t-phone { grid-row: span 2; }
.t-car { grid-column: span 2; }
.t-inv { grid-column: span 2; grid-row: span 2; }
.t-salon { grid-row: span 2; }
.inv-shot { flex: 1; min-height: 0; margin: -6px -6px 16px; border-radius: 14px; overflow: hidden; background: rgba(0, 0, 0, .25); border: 1px solid var(--stroke); display: grid; place-items: center; }
.inv-shot img { width: 100%; height: 100%; object-fit: cover; }
.inv-art { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; width: min(88%, 360px); }
.inv-art i { aspect-ratio: 1; border-radius: 9px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); }
.inv-art i[style] { background: color-mix(in srgb, var(--c) 26%, transparent); border-color: color-mix(in srgb, var(--c) 55%, transparent); box-shadow: inset 0 0 18px -6px var(--c); }
.tile-list { list-style: none; display: grid; gap: 6px; margin-top: 8px; }
.tile-list li { color: var(--muted); font-size: 13px; padding-left: 16px; position: relative; }
.tile-list li::before { content: ''; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.tile-num { font: 900 54px/1 var(--display); color: var(--accent); margin-bottom: auto; }
.tile-num small { font-size: 26px; }
.tile-svg { width: 46px; height: 46px; color: var(--accent); margin-bottom: auto; transition: transform .6s var(--spring); }
.tile:hover .tile-svg { transform: scale(1.15) rotate(-6deg); }
.phone-art { flex: 1; display: grid; place-items: center; }
.phone { width: 120px; height: 220px; border-radius: 24px; padding: 8px; background: #111; box-shadow: 0 0 0 2px #2a2a33, 0 30px 50px -20px rgba(0, 0, 0, .8); transform: rotate(-6deg); transition: transform .6s var(--spring); }
.t-phone:hover .phone { transform: rotate(0) translateY(-6px); }
.phone-screen { height: 100%; border-radius: 18px; padding: 12px 10px; background: linear-gradient(160deg, #1d2a5a, #3a1d4f); }
.ph-time { display: block; text-align: center; font: 700 18px var(--mono); margin-bottom: 12px; }
.ph-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.ph-apps i { aspect-ratio: 1; border-radius: 6px; background: var(--c); animation: appIn .5s var(--spring) both; }
.ph-apps i:nth-child(n) { animation-delay: calc(var(--n, 0) * 1ms); }
@keyframes appIn { from { transform: scale(0); } }
.car-art { position: relative; flex: 1; margin: -6px -6px 10px; border-radius: 14px; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .3)),
  radial-gradient(ellipse at 50% 120%, #2a2a33, transparent 70%); }
.car-art .lamp { position: absolute; top: 48%; width: 46px; height: 14px; border-radius: 10px; background: #fff7c2; box-shadow: 0 0 30px 8px rgba(255, 240, 160, .55); }
.car-art .lamp.l { left: 18%; } .car-art .lamp.r { right: 18%; }
.car-art .turn { position: absolute; top: 49%; width: 12px; height: 10px; border-radius: 4px; background: var(--accent-2); box-shadow: 0 0 18px var(--accent-2); animation: blink 1s steps(2) infinite; }
.car-art .turn.l { left: 12%; } .car-art .turn.r { right: 12%; animation-delay: .5s; }
@keyframes blink { 50% { opacity: .15; } }
.wheel { width: 80px; height: 80px; margin-bottom: auto; border-radius: 50%;
  background: conic-gradient(#d63a4a 0 10%, #1b1b22 0 20%, #d63a4a 0 30%, #1b1b22 0 40%, #d63a4a 0 50%, #1b1b22 0 60%, #d63a4a 0 70%, #1b1b22 0 80%, #d63a4a 0 90%, #2fa36b 0);
  box-shadow: 0 0 0 4px #c9a400, 0 0 30px -4px var(--accent-glow); animation: spin 8s linear infinite; }
.t-casino:hover .wheel { animation-duration: 1.2s; }

/* ---------------------------------------------------------- награды */
.econ { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.panel { padding: 26px; }
.panel h3 { font: 700 13px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 180px; }
.bars div { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; }
.bars b { font: 700 11px var(--mono); color: var(--muted); }
.bars i { width: 100%; height: var(--h); min-height: 6px; border-radius: 8px 8px 4px 4px; background: rgba(255, 255, 255, .1); transform-origin: bottom; transition: transform 1s var(--ease); }
.reveal:not(.seen) .bars i { transform: scaleY(0); }
.bars .best i { background: linear-gradient(180deg, var(--accent), var(--accent-2)); box-shadow: 0 0 24px var(--accent-glow); }
.bars .best b { color: var(--accent); }
.bars span { font-size: 12px; color: var(--faint); }
.cases { list-style: none; display: grid; gap: 8px; }
.cases li { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .03);
  border-left: 3px solid var(--c); transition: transform .35s var(--ease), background .25s; }
.cases li:hover { transform: translateX(5px); background: rgba(255, 255, 255, .06); }
.cases span { font: 600 12px var(--mono); color: var(--muted); }
.ref { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 140px; }
.ref b { display: block; font: 900 32px var(--display); color: var(--accent); }
.ref span { color: var(--muted); font-size: 13px; }
.ref i { font: 900 30px var(--display); font-style: normal; color: var(--faint); }

/* ---------------------------------------------------------- донат */
.donate { overflow: hidden; }
.donate-aura { position: absolute; left: 50%; top: 40%; width: 900px; height: 600px; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(ellipse, rgba(252, 221, 8, .13), transparent 60%); animation: aura 8s ease-in-out infinite alternate; }
@keyframes aura { to { transform: translate(-50%, -50%) scale(1.15); opacity: .7; } }
.donate-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.packs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pack { position: relative; padding: 24px; text-align: left; overflow: hidden; cursor: pointer; transition: transform .45s var(--ease), border-color .3s, box-shadow .4s; }
.pack:hover { transform: translateY(-5px); border-color: var(--stroke-hi); }
.pack.on { border-color: var(--accent); box-shadow: 0 24px 60px -24px var(--accent-glow), inset 0 0 0 1px var(--accent); }
.pack.on::after { content: '✓'; position: absolute; right: 18px; top: 18px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%;
  background: var(--accent); color: var(--ink); font-weight: 900; animation: pop .5s var(--spring); }
.pack-badge { position: absolute; right: 18px; top: 20px; padding: 3px 9px; border-radius: 8px; font: 700 11px var(--mono); color: var(--ink); background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.pack.on .pack-badge { opacity: 0; }
.pack-title { font: 700 13px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pack-money { display: block; font: 900 34px/1.1 var(--display); margin: 14px 0 4px; }
.pack-money i { font-style: normal; color: var(--accent); font-size: 22px; }
.pack-sub { display: block; color: var(--muted); font-size: 13px; }
.pack-price { display: inline-block; margin-top: 18px; padding: 8px 14px; border-radius: 11px; background: rgba(255, 255, 255, .06); font: 800 18px var(--display); }
.pack-coin { position: absolute; right: -24px; bottom: -24px; width: 110px; height: 110px; border-radius: 50%; opacity: .1;
  background: radial-gradient(circle at 35% 30%, #fff3a3, var(--accent) 40%, #a88400); transition: transform .8s var(--ease), opacity .4s; }
.pack:hover .pack-coin, .pack.on .pack-coin { transform: rotate(40deg) scale(1.15); opacity: .25; }
.skeleton { min-height: 190px; background: linear-gradient(100deg, var(--glass) 30%, rgba(255, 255, 255, .06) 50%, var(--glass) 70%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.checkout { padding: 28px; position: sticky; top: 96px; }
.checkout h3 { font: 800 22px var(--display); margin-bottom: 20px; }
.field-row { position: relative; }
.field-state { position: absolute; right: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; transition: .35s var(--spring); transform: scale(0); }
.field-state.ok { transform: scale(1); background: var(--ok); box-shadow: 0 0 14px var(--ok); }
.field-state.bad { transform: scale(1); background: var(--bad); }
.field-state.wait { transform: scale(1); border: 2px solid var(--accent); border-right-color: transparent; animation: spin .8s linear infinite; }
.field small { color: var(--faint); font-size: 12px; }
.field small.ok { color: var(--ok); }
.field small.bad { color: var(--bad); }
.summary { display: grid; gap: 10px; margin: 22px 0; padding: 18px; border-radius: 16px; background: rgba(0, 0, 0, .3); }
.summary div { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.summary b { color: var(--text); font-weight: 700; transition: color .3s; }
.summary .total { padding-top: 10px; border-top: 1px solid var(--stroke); font-size: 16px; }
.summary .total b { font: 800 22px var(--display); color: var(--accent); }
.legal { margin-top: 14px; font-size: 12px; color: var(--faint); text-align: center; }
.legal a { color: var(--muted); text-decoration: underline; }
/* донат: «Купить» / «У меня есть код» */
.pay-switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 22px; border-radius: 14px; background: rgba(0, 0, 0, .35); border: 1px solid var(--stroke); }
.pay-switch button { position: relative; z-index: 1; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--muted); transition: color .3s var(--ease); }
.pay-switch button.on { color: var(--ink); }
.pay-switch-mark { position: absolute; z-index: 0; top: 4px; left: 0; bottom: 4px; width: 0; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 8px 20px -10px var(--accent-glow); transition: transform .45s var(--spring), width .45s var(--spring); }
.pay-pane { display: grid; gap: 0; animation: fadeUp .45s var(--ease); }
.pay-pane > .field { margin-bottom: 16px; }
.pay-pane.out { opacity: 0; transform: translateY(-6px); transition: opacity .16s, transform .16s; animation: none; }
.code-input { font-family: var(--mono) !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
#code-msg { margin: 0 0 16px; font-size: 14px; }
.packs { transition: opacity .4s var(--ease), filter .4s var(--ease); }
.donate-grid.mode-code .packs { opacity: .3; filter: grayscale(.6); pointer-events: none; }
/* донат: способ оплаты */
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 2px 0 16px; }
.pay-methods button { display: grid; gap: 2px; justify-items: start; padding: 12px 14px; border-radius: 14px; text-align: left; font-weight: 700; font-size: 15px;
  background: rgba(0, 0, 0, .3); border: 1.5px solid var(--stroke-hi); transition: border-color .25s, background .25s, transform .35s var(--spring); }
.pay-methods button small { font-size: 12px; font-weight: 500; color: var(--faint); }
.pay-methods button:hover:not(:disabled) { transform: translateY(-2px); }
.pay-methods button.on { border-color: var(--accent); background: rgba(252, 221, 8, .07); box-shadow: 0 0 0 4px rgba(252, 221, 8, .1); }
.pay-methods button.on small { color: var(--muted); }
.pay-methods button:disabled { opacity: .45; cursor: not-allowed; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin: 4px 0 18px; cursor: pointer; font-size: 13px; color: var(--muted); line-height: 1.5; }
.consent input { position: absolute; opacity: 0; pointer-events: none; }
.consent i { width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; border: 1.5px solid var(--stroke-hi); background: rgba(0, 0, 0, .35); display: grid; place-items: center; transition: background .25s, border-color .25s, box-shadow .25s; }
.consent i::after { content: ''; width: 10px; height: 6px; border: 2.5px solid var(--ink); border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform .3s var(--spring); }
.consent input:checked + i { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; box-shadow: 0 6px 16px -8px var(--accent-glow); }
.consent input:checked + i::after { transform: rotate(-45deg) scale(1); }
.consent input:focus-visible + i { box-shadow: 0 0 0 4px rgba(252, 221, 8, .25); }
.consent a { color: var(--accent); }
.donate-banner { margin-bottom: 24px; padding: 18px 22px; border-radius: 16px; font-weight: 600; animation: fadeUp .6s var(--ease); }
.donate-banner.ok { background: rgba(62, 224, 143, .1); border: 1px solid rgba(62, 224, 143, .4); color: #9ff2c8; }
.donate-banner.bad { background: rgba(255, 77, 106, .1); border: 1px solid rgba(255, 77, 106, .4); color: #ff9aab; }
.donate-banner.info { background: rgba(252, 221, 8, .08); border: 1px solid rgba(252, 221, 8, .35); color: #fff1a0; }

/* ---------------------------------------------------------- правила */
.gloss { display: grid; gap: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 10px 16px; border-radius: 12px; font: 700 14px var(--mono); background: var(--glass); border: 1px solid var(--stroke); transition: transform .35s var(--spring), background .25s, color .25s, border-color .25s; }
.chip:hover { transform: translateY(-3px); border-color: var(--stroke-hi); }
.chip.on { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--ink); border-color: transparent; box-shadow: 0 10px 26px -10px var(--accent-glow); }
.gloss-card { display: flex; align-items: center; gap: 26px; padding: 28px 32px; min-height: 130px; }
.gloss-card.swap > * { animation: fadeUp .5s var(--ease) both; }
.gl-code { font: 900 54px var(--display); color: var(--accent); text-shadow: 0 0 30px var(--accent-glow); }
.gl-title { font: 800 22px var(--display); }
.gl-text { color: var(--muted); }
.cmds { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.cmd-block { padding: 26px; }
.cmd-block h3 { font: 700 13px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.cmd-grid, .key-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.key-grid { grid-template-columns: repeat(4, 1fr); }
.cmd-grid li, .key-grid li { display: grid; gap: 4px; padding: 10px 12px; border-radius: 11px; background: rgba(255, 255, 255, .03); transition: background .25s, transform .3s var(--ease); }
.cmd-grid li:hover, .key-grid li:hover { background: rgba(255, 255, 255, .07); transform: translateY(-2px); }
.cmd-grid code { font: 700 15px var(--mono); color: var(--accent); }
.cmd-grid span, .key-grid span { font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------- начать */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.step { padding: 28px; display: grid; gap: 10px; align-content: start; min-height: 200px; }
.step .num { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; font: 800 18px var(--display); color: var(--ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 10px 24px -10px var(--accent-glow); }
.step h3 { font: 700 20px var(--display); margin-top: 6px; }
.step-sub { color: var(--muted); font-size: 14px; }
.step .btn { justify-self: start; }
.faq { display: grid; gap: 8px; max-width: 860px; }
.acc { border-radius: 16px; background: var(--glass); border: 1px solid var(--stroke); overflow: hidden; transition: border-color .3s; }
.acc.open { border-color: var(--stroke-hi); }
.acc-q { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; padding: 18px 22px; text-align: left; font-size: 16px; }
.plus { position: relative; flex: none; width: 18px; height: 18px; }
.plus::before, .plus::after { content: ''; position: absolute; left: 0; top: 8px; width: 18px; height: 2px; border-radius: 2px; background: var(--accent); transition: transform .4s var(--ease); }
.plus::after { transform: rotate(90deg); }
.acc.open .plus::after { transform: rotate(0); }
.acc-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.acc.open .acc-a { grid-template-rows: 1fr; }
.acc-a > div { overflow: hidden; }
.acc-a p { padding: 0 22px 18px; color: var(--muted); }

/* ---------------------------------------------------------- призыв и подвал */
.cta { position: relative; padding: 140px 0; text-align: center; overflow: hidden; }
.cta-aura { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 60%, rgba(252, 221, 8, .16), transparent 55%); animation: aura 7s ease-in-out infinite alternate; }
.cta-inner { position: relative; display: grid; justify-items: center; gap: 24px; }
.cta-logo { filter: drop-shadow(0 0 30px var(--accent-glow)); animation: breathe 3s ease-in-out infinite; }
.cta h2 { font: 900 clamp(46px, 8vw, 104px)/.95 var(--display); }
.cta h2 em { font-style: normal; color: var(--accent); text-shadow: 0 0 40px var(--accent-glow); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
footer { border-top: 1px solid var(--stroke); padding: 40px 0; background: rgba(5, 5, 8, .6); }
.foot { display: grid; grid-template-columns: auto 1fr; gap: 20px 40px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand strong { display: block; font: 800 15px var(--display); }
.foot-brand small { color: var(--muted); font-size: 12px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 22px; }
.foot-links a { color: var(--muted); font-size: 14px; transition: color .2s; }
.foot-links a:hover { color: var(--accent); }
.foot-note { grid-column: 1 / -1; font-size: 12px; color: var(--faint); }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; padding: 13px 20px; border-radius: 14px; background: #15151c; border: 1px solid var(--stroke-hi);
  font-weight: 600; font-size: 14px; transform: translate(-50%, 30px); opacity: 0; transition: .45s var(--ease); pointer-events: none; box-shadow: 0 20px 50px -20px #000; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #22222b; border-radius: 9px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #33333f; }

/* ============================================================ адаптив */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-flag { height: 340px; order: -1; max-width: 520px; width: 100%; margin: 0 auto; }
  .forces { grid-template-columns: 1fr 1fr; }
  .fx { grid-template-columns: 1fr; }
  .fx-tabs { grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); overflow-x: auto; padding-bottom: 6px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .econ, .donate-grid { grid-template-columns: 1fr; }
  .checkout { position: static; }
}
/* «Мой Кабинет»: на широком экране — кнопка в шапке, на узком — пункт в меню */
.menu .link-cab { display: none; color: var(--accent); }
.btn-cab.on { border-color: rgba(252, 221, 8, .45); color: var(--accent); }
.btn-cab .ic { display: none; }
@media (max-width: 1240px) {
  .btn-cab { padding: 9px; } .btn-cab span { display: none; } .btn-cab .ic { display: block; width: 18px; height: 18px; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .brand-text { display: none; } .bar { gap: 16px; }
}

@media (max-width: 900px) {
  .menu { position: fixed; inset: 72px 12px auto; flex-direction: column; padding: 10px; background: rgba(12, 12, 16, .96);
    opacity: 0; transform: translateY(-10px) scale(.98); pointer-events: none; transition: .35s var(--ease); }
  .menu.open { opacity: 1; transform: none; pointer-events: auto; }
  .menu .link { padding: 14px; font-size: 16px; }
  .menu-mark { display: none; }
  .burger { display: grid; }
  .online { display: none; }
  .passport-zone, .cmds { grid-template-columns: 1fr; }
  .route { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .route::before, .route::after { display: none; }
  .jobs, .steps { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fx-meta, .fx-cols { grid-template-columns: 1fr; }
  .menu .link-cab { display: block; }
  .bar-actions .btn-cab { display: none; }
}
@media (max-width: 560px) {
  .section { padding: 84px 0; }
  .forces, .packs, .bento { grid-template-columns: 1fr; }
  .t-car, .t-inv { grid-column: auto; } .t-phone, .t-inv { grid-row: span 2; } .t-salon { grid-row: auto; }
  .route { grid-template-columns: 1fr 1fr; }
  .cmd-grid { grid-template-columns: 1fr 1fr; } .key-grid { grid-template-columns: repeat(2, 1fr); }
  .wanted-out { gap: 24px; } .wanted-out b { font-size: 34px; }
  .pp-body { flex-direction: column; } .pp-photo { width: 90px; height: 108px; }
  .bar-actions .btn { display: none; }
  .gloss-card { flex-direction: column; align-items: flex-start; gap: 8px; }
  .foot { grid-template-columns: 1fr; } .foot-links { justify-content: flex-start; }
}

/* ============================================================ меньше движения — по просьбе системы
   Плавные появления и наведения остаются; убираем крупные сдвиги, которые могут укачать. */
@media (prefers-reduced-motion: reduce) {
  .glow { animation: none; }
  .skyline { transition: none; }
}

/* ============================================================ плавность 2.0 */

/* Lenis: инерционная прокрутка */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* первый экран уезжает и растворяется при прокрутке */
.hero { --hp: 0; }
.hero-text { transform: translate3d(0, calc(var(--hp) * -90px), 0); opacity: calc(1 - var(--hp) * 1.25); }
.hero-flag { transform: translate3d(0, calc(var(--hp) * 70px), 0) scale(calc(1 - var(--hp) * .18)); opacity: calc(1 - var(--hp) * 1.1); }
.hero .facts { transform: translate3d(0, calc(var(--hp) * -30px), 0); }
.hero-city { transform: translate3d(0, calc(var(--hp) * 120px), 0); }

/* бегущая строка наклоняется от скорости прокрутки */
.strip { transform: skewX(calc(var(--vel) * -.35deg)); transition: transform .2s linear; }

/* заголовки поднимаются по словам из-под маски */
.words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.words .w > span { display: inline-block; transform: translate3d(0, 105%, 0) rotate(4deg); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 70ms + .1s); }
.seen .words .w > span, .seen.words .w > span { transform: none; }
.head.reveal { transform: none; }

/* курсор-кольцо (только мышь) */
.cursor-ring, .cursor-dot { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; border-radius: 50%; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.cursor-ring { width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1.5px solid rgba(252, 221, 8, .55);
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s, border-color .3s, opacity .3s; }
.cursor-ring.hot { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: rgba(252, 221, 8, .1); border-color: var(--accent); }
.cursor-ring.text { width: 4px; height: 30px; margin: -15px 0 0 -2px; border-radius: 2px; background: var(--accent); border-color: transparent; }
.cursor-ring.down { width: 26px; height: 26px; margin: -13px 0 0 -13px; background: rgba(252, 221, 8, .3); }

/* волна от нажатия */
.btn, .chip, .fx-tab, .pack { position: relative; overflow: hidden; }
.ripple { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; background: radial-gradient(circle, rgba(255, 255, 255, .35), transparent 60%);
  transform: scale(0); animation: ripple .75s var(--ease) forwards; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* смена фракции: панель перетекает (View Transitions) */
.fx-panel { view-transition-name: fx-panel; }
::view-transition-old(fx-panel) { animation: vtOut .35s var(--ease) both; }
::view-transition-new(fx-panel) { animation: vtIn .55s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-10px) scale(.985); filter: blur(4px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(14px) scale(.985); filter: blur(6px); } }

/* появление карточек — с лёгким разворотом снизу */
.glass.reveal { transform: perspective(1200px) translateY(46px) rotateX(9deg) scale(.98); transform-origin: 50% 100%; }
.glass.reveal.seen { transform: none; }

/* ссылки меню и подвала — подчёркивание вырастает */
.foot-links a { position: relative; }
.foot-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.foot-links a:hover::after { transform: scaleX(1); transform-origin: left; }

@media (prefers-reduced-motion: reduce) {
  .hero-text, .hero-flag, .hero .facts, .hero-city, .strip { transform: none !important; opacity: 1 !important; }
}
}
@media (pointer: coarse) { .cursor-ring, .cursor-dot { display: none; } }

/* ============================================================ производительность
   Бесконечные анимации за пределами экрана стоят на паузе (класс .off ставит app.js),
   на телефонах — без лишних слоёв фона. */
.off *, .off *::before, .off *::after { animation-play-state: paused !important; }
.bg.off .glow { animation-play-state: paused; }
@media (max-width: 900px), (pointer: coarse) {
  .g2, .g3, .grain, #dust, .cursor-glow { display: none; }
  .glow { animation: none; }
  #header.dense { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(9, 9, 13, .94); }
}

/* ============================================================ новости (главная и news.html) */
.news-sec { padding-top: 70px; }
.news-head { display: flex; flex-direction: column; }
.news-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-auto-rows: minmax(0, auto); gap: 16px; }
.news-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; min-height: 240px; color: var(--text);
  opacity: 0; transform: translateY(18px);
  transition: transform .5s var(--ease), border-color .3s, box-shadow .4s var(--ease), opacity .6s var(--ease);
}
.news-grid.in .news-card { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 70ms); }
.news-grid.in .news-card:hover { transform: translateY(-4px); border-color: rgba(252, 221, 8, .35); box-shadow: 0 24px 60px -28px rgba(252, 221, 8, .45); transition-delay: 0s; }
.news-big { grid-row: span 2; }
.news-img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); }
.news-big .news-img { aspect-ratio: 16 / 10; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.news-card:hover .news-img img { transform: scale(1.05); }
.news-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7, 7, 10, .75)); }
.news-glow { position: absolute; inset: -40% -20% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(252, 221, 8, .16), transparent); }
.news-body { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 20px; flex: 1; }
.news-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.news-tag { padding: 4px 9px; border-radius: 999px; background: rgba(252, 221, 8, .12); color: var(--accent); font-weight: 700; }
.news-pin { font-style: normal; color: var(--accent-2); }
.news-title { font: 800 19px/1.25 var(--display); letter-spacing: -.005em; }
.news-big .news-title { font-size: clamp(22px, 2.2vw, 30px); }
.news-text { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.news-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 700; font-size: 14px; }
.news-more .ic { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.news-card:hover .news-more .ic { transform: translateX(4px); }
.news-all { margin-top: 26px; }
@media (max-width: 980px) { .news-grid { grid-template-columns: 1fr 1fr; } .news-big { grid-column: span 2; grid-row: auto; } }
@media (max-width: 620px) { .news-grid { grid-template-columns: 1fr; } .news-big { grid-column: auto; } }

/* страница новости */
.news-page { padding: 120px 0 80px; min-height: 100vh; }
.news-page .wrap { max-width: 860px; }
.news-back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; margin-bottom: 26px; transition: color .2s; }
.news-back:hover { color: var(--text); }
.news-article { padding: 0; overflow: hidden; animation: newsIn .7s var(--ease) both; }
.news-article .news-img { aspect-ratio: 16 / 8; }
.news-article .news-body { padding: 34px clamp(20px, 4vw, 44px) 40px; gap: 14px; }
.news-article h1 { font: 900 clamp(28px, 4vw, 46px)/1.08 var(--display); letter-spacing: -.01em; }
.news-content { color: #d6d8df; font-size: 17px; line-height: 1.75; }
.news-content p + p { margin-top: 14px; }
.news-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.news-list { margin-top: 46px; }
.news-list h2 { font: 800 22px var(--display); margin-bottom: 18px; }
.news-list .news-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.news-list .news-big { grid-row: auto; grid-column: auto; }
.news-empty { color: var(--muted); padding: 40px 0; }
@keyframes newsIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .news-card, .news-article { transition: none; animation: none; opacity: 1; transform: none; } }

/* разметка текста новости (news-md.js) */
.news-content h2, .news-content h3, .news-content h4 { font-family: var(--display); color: var(--text); line-height: 1.2; margin: 26px 0 10px; }
.news-content h2 { font-size: 26px; } .news-content h3 { font-size: 21px; } .news-content h4 { font-size: 18px; }
.news-content > :first-child { margin-top: 0; }
.news-content b { color: var(--text); font-weight: 800; }
.news-content i { font-style: italic; }
.news-content u { text-decoration-color: var(--accent); text-underline-offset: 3px; }
.news-content s { opacity: .65; }
.news-content ul, .news-content ol { margin: 12px 0; padding-left: 0; list-style: none; display: grid; gap: 8px; counter-reset: md; }
.news-content ul li, .news-content ol li { position: relative; padding-left: 28px; }
.news-content ul li::before { content: ""; position: absolute; left: 8px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(252, 221, 8, .6); }
.news-content ol li { counter-increment: md; }
.news-content ol li::before { content: counter(md); position: absolute; left: 0; top: .15em; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center;
  font: 700 12px var(--mono); color: var(--ink); background: var(--accent); }
.news-content blockquote { margin: 14px 0; padding: 12px 18px; border-left: 3px solid var(--accent); border-radius: 0 14px 14px 0; background: rgba(252, 221, 8, .06); color: #e6e7ec; }
.news-content code { font: 500 .9em var(--mono); padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, .08); color: var(--accent); }
.news-content p + ul, .news-content p + ol, .news-content ul + p, .news-content ol + p { margin-top: 12px; }
.md-spoiler { background: rgba(255, 255, 255, .16); color: transparent; border-radius: 4px; cursor: pointer; transition: color .25s, background .25s; }
.md-spoiler:hover, .md-spoiler:focus { color: inherit; background: rgba(255, 255, 255, .07); outline: none; }

/* ============================================================ герб-планета: шар в цветах флага, вокруг — орбиты */
.hero-flag .system { position: relative; width: 440px; height: 440px; max-width: 100%; aspect-ratio: 1; }
.orbit { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgba(252, 221, 8, .32);
  transform: translate(-50%, -50%); animation: orbit 30s linear infinite; }
.orbit.o1 { width: 62%; height: 62%; animation-duration: 18s; }
.orbit.o2 { width: 81%; height: 81%; border-color: rgba(110, 150, 255, .34); animation-duration: 28s; animation-direction: reverse; }
.orbit.o3 { width: 100%; height: 100%; border-style: dashed; border-color: rgba(252, 221, 8, .24); animation-duration: 42s; }
@keyframes orbit { to { transform: translate(-50%, -50%) rotate(360deg); } }
.planet { position: absolute; left: 50%; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6b0, var(--accent) 55%, #c9a400); box-shadow: 0 0 18px var(--accent), 0 0 40px rgba(252, 221, 8, .35); }
.planet.p1b, .planet.p2b, .planet.p3b { top: 100%; }
.planet.p1b { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; opacity: .8; }
.planet.p2, .planet.p2b { background: radial-gradient(circle at 35% 30%, #dfe8ff, #6e96ff 60%, #3657c9); box-shadow: 0 0 16px #6e96ff, 0 0 36px rgba(110, 150, 255, .35); }
.planet.p2b { width: 8px; height: 8px; margin: -4px 0 0 -4px; }
.planet.p3 { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; }
.planet.p3b { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; box-shadow: 0 0 12px #fff; }
.corona { position: absolute; left: 50%; top: 50%; width: 62%; height: 62%; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 221, 8, .30) 30%, rgba(252, 221, 8, .08) 52%, transparent 68%); filter: blur(6px);
  animation: corona 5s ease-in-out infinite; pointer-events: none; }
@keyframes corona { 50% { transform: translate(-50%, -50%) scale(1.08); opacity: .75; } }
.globe { position: absolute; left: 50%; top: 50%; width: 44%; height: 44%; transform: translate(-50%, -50%); border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 60px rgba(252, 221, 8, .35), 0 30px 60px -20px rgba(0, 0, 0, .8); isolation: isolate; }
/* поверхность: полосы флага (чёрный · жёлтый · чёрный) и меридианы, которые едут — шар вращается */
.globe-map { position: absolute; inset: 0; background: linear-gradient(180deg, #15151b 0 33%, var(--accent) 33% 67%, #15151b 67%); }
.globe-map::after { content: ''; position: absolute; inset: -10% -60%; animation: globe-spin 7s linear infinite;
  background: linear-gradient(100deg, transparent 38%, rgba(255, 255, 255, .16) 48%, rgba(255, 255, 255, .04) 54%, transparent 62%); }
@keyframes globe-spin { from { transform: translateX(-40%); } to { transform: translateX(40%); } }
/* объём: свет сверху слева, тень по краю, отблеск атмосферы */
.globe-shade { position: absolute; inset: 0; border-radius: 50%; z-index: 1;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .45), rgba(255, 255, 255, .08) 22%, transparent 42%),
              radial-gradient(circle at 50% 50%, transparent 52%, rgba(0, 0, 0, .55) 78%, rgba(0, 0, 0, .85) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), inset -18px -22px 40px rgba(0, 0, 0, .5); }
@media (max-width: 980px) { .hero-flag .system { width: 340px; height: 340px; } }
@media (max-width: 420px) { .hero-flag .system { width: 280px; height: 280px; } }
/* орбиты и блик флага крутятся всем — медленное вращение не укачивает (как и на radio.brigstonrp.com) */

/* плавный переход между страницами сайта (Chrome, Edge, Opera; в остальных — обычный переход) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: page-out .28s cubic-bezier(.22, 1, .36, 1) both; }
::view-transition-new(root) { animation: page-in .45s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes page-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }

/* вестник: строка уходит под плашку, а не поверх неё */
.ticker-label { position: relative; z-index: 2; }
.ticker-label::after { content: ''; position: absolute; top: 0; bottom: 0; left: 100%; width: 40px; pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 10, 14, .95), transparent); }
.ticker-track { position: relative; z-index: 1; }

/* паспорт на главной — игровой документ (passport-game.css) */
.passport-game { position: relative; transform: rotate(-2.5deg); filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .55)); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.passport-game .gp { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.passport-game .pp-stamp { z-index: 3; right: 6%; bottom: 20%; }
.passport-game[data-ok="false"] .gp { filter: saturate(.75) brightness(.92); transition: filter .3s; }
.nick-rules li.wide { grid-column: 1 / -1; }
.passport-game[data-ok="true"] .pp-stamp { transform: rotate(-14deg) scale(1); opacity: 1; }

/* Brigston FM — кнопка радио */
.onair { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #ff3b30; vertical-align: 1px; box-shadow: 0 0 0 0 rgba(255,59,48,.6); animation: onair 1.6s infinite; }
@keyframes onair { 70% { box-shadow: 0 0 0 7px rgba(255,59,48,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,48,0); } }
.menu .link-radio { color: var(--text, #fff); display: inline-flex; align-items: center; white-space: nowrap; }
.menu .link-radio .onair { flex: none; margin-right: 6px; }
.news-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.news-actions .news-all { margin-top: 26px; }
.btn-radio { background: #f6c623; color: #0b0b0c !important; border: 0; font-weight: 700; box-shadow: 0 10px 30px rgba(246,198,35,.25); transition: transform .2s, box-shadow .2s, background .2s; }
.btn-radio:hover { background: #ffd84d; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(246,198,35,.35); }
@media (prefers-reduced-motion: reduce) { .onair { animation: none; } }

/* ============================================================ 12.11: уникальные системы, ЦОДД, работы из настроек */
.uniq { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.uq { position: relative; padding: 24px; overflow: hidden; min-height: 210px; display: flex; flex-direction: column; gap: 8px; transition: border-color .3s, transform .5s var(--ease); }
.uq:hover { border-color: var(--stroke-hi); transform: translateY(-3px); }
.uq-ic { width: 42px; height: 42px; color: var(--accent); margin-bottom: auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--spring); }
.uq:hover .uq-ic { transform: scale(1.12) rotate(-6deg); }
.uq h3 { font: 700 18px var(--display); margin-top: 14px; }
.uq p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.uq kbd { font: 700 11px var(--mono); padding: 1px 6px; border-radius: 5px; border: 1px solid var(--stroke-hi); color: var(--text); }

.uq-codd { grid-column: span 2; grid-row: span 2; padding: 34px; border-color: rgba(255, 168, 36, .38);
  background: radial-gradient(120% 90% at 90% 0%, rgba(255, 168, 36, .22), transparent 60%), var(--glass-solid); }
.uq-codd:hover { border-color: rgba(255, 168, 36, .7); }
.uq-codd::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, #ffa824, #fcdd08); box-shadow: 0 0 26px rgba(255, 168, 36, .7); }
.uq-big-ic { position: absolute; right: -36px; bottom: -36px; width: 280px; height: 280px; color: #ffa824; opacity: .1; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; pointer-events: none; }
.uq-badge { align-self: flex-start; padding: 7px 13px; border-radius: 9px; font: 800 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
  background: linear-gradient(90deg, #ffa824, #fcdd08); box-shadow: 0 0 26px rgba(255, 168, 36, .45); animation: uq-pulse 2.6s ease-in-out infinite; }
@keyframes uq-pulse { 50% { box-shadow: 0 0 40px rgba(255, 168, 36, .75); } }
.uq-codd h3 { font: 900 clamp(46px, 5.6vw, 76px)/1 var(--display); color: #ffa824; margin-top: 22px; letter-spacing: .02em; text-shadow: 0 0 40px rgba(255, 168, 36, .35); }
.uq-codd .full { color: var(--text); font-size: 16px; font-weight: 600; max-width: 460px; }
.uq-codd ul { list-style: none; display: grid; gap: 9px; margin: 12px 0 0; }
.uq-codd li { position: relative; padding-left: 20px; color: var(--muted); font-size: 14px; }
.uq-codd li::before { content: ''; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; border-radius: 3px; background: #ffa824; box-shadow: 0 0 10px rgba(255, 168, 36, .7); }
.uq-stats { display: flex; flex-wrap: wrap; gap: 30px; margin-top: auto; padding-top: 22px; }
.uq-stats b { display: block; font: 900 34px/1 var(--display); color: #ffa824; }
.uq-stats span { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }
.uq-btn { align-self: flex-start; margin-top: 20px; position: relative; z-index: 1; }

.forces.five { grid-template-columns: repeat(5, 1fr); }
.force-new { border-color: rgba(255, 168, 36, .4); }
.force-only { position: absolute; top: 28px; right: 18px; padding: 4px 8px; border-radius: 7px; font: 800 10px var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); background: linear-gradient(90deg, #ffa824, #fcdd08); }

.job-upto { font: 600 18px var(--body); color: var(--muted); margin-right: 2px; }
.job-from { display: block; color: var(--faint); font-size: 12px; margin-top: 8px; }

@media (max-width: 1240px) { .forces.five { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1080px) {
  .uniq { grid-template-columns: repeat(2, 1fr); }
  .forces.five { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .uniq, .forces.five { grid-template-columns: 1fr; }
  .uq-codd { grid-column: auto; grid-row: auto; padding: 26px; }
  .job-price { font-size: 44px; }
}
@media (prefers-reduced-motion: reduce) { .uq-badge { animation: none; } }
