/* AtmosphereRP — сайт. Ночной город: индиго-небо, натриевые фонари (янтарь) — окна и действия,
   синий — служебная информация, красный — розыск. Шрифты: Unbounded (заголовки), Golos Text (текст). */
:root {
  --sky: #12142b;
  --sky-2: #191c3b;
  --dusk: #22264d;
  --line: #2f3463;
  --amber: #ffb547;
  --amber-2: #ffd08a;
  --blue: #5ab8ff;
  --siren: #ff5d6c;
  --up: #57d99a;
  --text: #e8e6f3;
  --muted: #9a9cc4;
  --dim: #6a6d99;
  --r-s: 6px;
  --r-m: 12px;
  --display: "Unbounded", "Golos Text", system-ui, sans-serif;
  --body: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--sky); color: var(--text);
  font: 400 17px/1.6 var(--body); min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; outline: none; }
a { color: var(--amber-2); text-underline-offset: 3px; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .88em; background: var(--dusk); padding: .1em .4em; border-radius: 4px; color: var(--amber-2); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--amber); color: var(--sky); padding: 8px 14px; border-radius: var(--r-s); }
.skip:focus { left: 8px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
[hidden] { display: none !important; }

/* Шапка */
.bar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px;
  padding: 12px var(--gutter); background: rgba(18, 20, 43, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 18px/1 var(--display); letter-spacing: -.01em; }
.brand svg { width: 30px; height: 30px; fill: var(--dusk); stroke: var(--line); }
.brand svg .lit { fill: var(--amber); stroke: none; }
.brand b { color: var(--amber); font-weight: 800; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: var(--r-s); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--text); background: var(--dusk); }
.nav a[aria-current="page"] { color: var(--text); background: var(--dusk); box-shadow: inset 0 -2px 0 var(--amber); }
.menu { display: none; flex: none; background: none; border: 0; width: 40px; height: 40px; padding: 10px 8px; cursor: pointer; }
.menu span { display: block; height: 2px; background: var(--text); margin: 6px 0; border-radius: 2px; transition: transform .2s; }
.menu[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px;
  font: 600 16px/1 var(--body); border-radius: var(--r-s); border: 1px solid transparent; cursor: pointer; text-decoration: none;
}
.btn.play { background: var(--amber); color: #241600; }
.btn.play:hover { background: var(--amber-2); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--muted); }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 15px; }
.link { background: none; border: 0; color: var(--amber-2); font: inherit; cursor: pointer; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; }
.more { display: inline-block; margin-top: 12px; }

/* Главный экран: город, где окна — слоты сервера */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-start; overflow: hidden;
  background: radial-gradient(120% 70% at 70% 0%, #2a2560 0%, rgba(42, 37, 96, 0) 60%), linear-gradient(#12142b, #191c3b 70%, #12142b); }
.skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 62%; }
.skyline .b { fill: #0d0f22; }
.skyline .w { fill: #252a52; }
.skyline .w.on { fill: var(--amber); filter: drop-shadow(0 0 3px rgba(255, 181, 71, .75)); }
.skyline .moon { fill: #f3eedc; opacity: .9; }
.hero-text { position: relative; z-index: 1; padding-top: clamp(48px, 10vh, 110px); width: 100%; }
h1, .h1, .h2, h3 { font-family: var(--display); letter-spacing: -.02em; }
.hero h1 { font-size: clamp(42px, 8.4vw, 104px); line-height: .95; font-weight: 800; margin: 0 0 24px; max-width: 12ch;
  text-shadow: 0 4px 40px rgba(18, 20, 43, .6); }
.lead { font-size: clamp(17px, 2.1vw, 20px); color: #cfcde6; max-width: 54ch; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.ip { color: var(--muted); font-size: 15px; margin: 14px 0 0; }
.ip span { color: var(--text); font-variant-numeric: tabular-nums; }

/* Пульс города */
.pulse { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-m);
  background: var(--sky-2); margin: -44px 0 0; position: relative; z-index: 2; }
.pulse > div { padding: 18px 20px; border-right: 1px solid var(--line); min-width: 0; }
.pulse > div:last-child { border-right: 0; }
.pulse .ev { grid-column: 1 / -1; border-top: 1px solid var(--line); border-right: 0; background: rgba(255, 93, 108, .08); }
.pulse .k { display: block; color: var(--muted); font-size: 14px; }
.pulse .v { display: block; font: 600 20px/1.3 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pulse .ev .v { color: var(--siren); white-space: normal; }

.h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.05; margin: 48px 0 10px; font-weight: 800; }
.h2 { font-size: clamp(21px, 2.6vw, 26px); line-height: 1.2; margin: 56px 0 18px; font-weight: 700; }
.h2.siren { color: var(--siren); }
.h2 .count { color: var(--muted); font-family: var(--body); font-weight: 500; font-size: .7em; }
.sub { color: var(--muted); margin: 0 0 20px; max-width: 70ch; }

/* Шаги — это последовательность, поэтому с номерами */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--amber); }
.steps li { counter-increment: s; padding: 20px 22px 0 0; }
.steps li::before { content: counter(s); font: 800 40px/1 var(--display); color: var(--amber); display: block; margin-bottom: 12px; }
.steps h3 { font-size: 18px; margin: 0 0 8px; }
.steps p { margin: 0; color: #c9c7e0; font-size: 16px; }

.cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; }
.cols > div { min-width: 0; }

/* Газета */
.news-list article { border-top: 1px solid var(--line); padding: 18px 0; }
.news-list h3 { font-size: 18px; margin: 0 0 6px; line-height: 1.3; }
.news-list .by { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.news-list p.body { margin: 0; color: #cfcde6; white-space: pre-line; overflow-wrap: anywhere; }
.news-list:not(.full) p.body { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.empty { color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r-m); padding: 22px; margin: 0; }

.tip { font-size: 19px; line-height: 1.5; margin: 0 0 6px; min-height: 3em; padding-left: 18px; border-left: 3px solid var(--amber); }
.social { display: grid; gap: 10px; }
.soc { display: block; padding: 16px 18px; border-radius: var(--r-m); text-decoration: none; color: var(--text); border: 1px solid var(--line); background: var(--sky-2); }
.soc:hover { border-color: var(--muted); }
.soc b { display: block; font-family: var(--display); font-size: 17px; }
.soc span { color: var(--muted); font-size: 15px; }
.soc.ds b { color: #8f9bff; }
.soc.tg b { color: var(--blue); }
.soc.str b { color: #c79bff; }
.soc.live { border-color: rgba(255, 93, 108, .6); }
.onair { font-style: normal; font-family: var(--body, inherit); font-size: 12px; font-weight: 700; color: #fff; background: var(--siren); border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: 2px; }

.updates { list-style: none; padding: 0; margin: 0 0 24px; }
.updates li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.updates time { color: var(--muted); font-variant-numeric: tabular-nums; }
.updates.sched li { grid-template-columns: 190px 1fr; }
.updates.sched time b { color: var(--amber); }
@media (max-width: 560px) { .updates.sched li { grid-template-columns: 1fr; gap: 4px; } }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.badges span { border: 1px solid rgba(255, 181, 71, .45); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--amber-2, #ffd08a); background: rgba(255, 181, 71, .08); }

/* Город */
.players { list-style: none; padding: 0; margin: 0; }
.players li { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.players .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; transform: translateY(-1px); }
.players .n { font-weight: 600; }
.players .j { color: var(--muted); font-size: 14px; margin-left: auto; text-align: right; }

.wanted .card { border: 1px solid rgba(255, 93, 108, .4); border-left: 4px solid var(--siren); border-radius: var(--r-s); padding: 14px 16px; margin-bottom: 10px; background: rgba(255, 93, 108, .06); }
.wanted .lvl { color: var(--siren); font-weight: 700; font-size: 14px; }
.wanted .why { margin: 4px 0; font-weight: 600; }
.wanted .signs { color: var(--muted); font-size: 15px; margin: 0; }

.stocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.stock { background: var(--sky-2); padding: 16px 18px; }
.stock .top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.stock .nm { font-weight: 600; }
.stock .pr { font: 600 18px/1 var(--display); font-variant-numeric: tabular-nums; }
.stock .ch { font-size: 14px; font-weight: 600; }
.stock .ch.up { color: var(--up); }
.stock .ch.down { color: var(--siren); }
.stock svg { display: block; width: 100%; height: 40px; margin: 10px 0 6px; }
.stock .ab { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.45; }

/* Рейтинги */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 22px; }
.tabs button, .chips a { background: var(--sky-2); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font: 500 15px/1 var(--body); cursor: pointer; text-decoration: none; }
.tabs button[aria-selected="true"] { background: var(--amber); color: #241600; border-color: var(--amber); }
.tabs button:hover, .chips a:hover { color: var(--text); }
.board { list-style: none; padding: 0; margin: 0; counter-reset: r; }
.board li { counter-increment: r; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.board li::before { content: counter(r); font: 700 18px/1 var(--display); color: var(--dim); text-align: center; }
.board li:nth-child(1)::before { color: var(--amber); font-size: 24px; }
.board li:nth-child(2)::before, .board li:nth-child(3)::before { color: var(--amber-2); }
.board .n { font-weight: 600; overflow-wrap: anywhere; }
.board .n small { display: block; color: var(--muted); font-weight: 400; font-size: 14px; }
.board .v { font: 600 17px/1 var(--display); font-variant-numeric: tabular-nums; text-align: right; }
.board .tag { display: inline-block; font-size: 13px; padding: 2px 7px; border-radius: 4px; margin-right: 6px; color: #12142b; font-weight: 700; }

/* Журнал наказаний */
.plog { list-style: none; padding: 0; margin: 0; }
.plog li { display: grid; grid-template-columns: 76px 1fr auto; gap: 6px 16px; align-items: start; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.plog .no { font: 600 15px/1.5 var(--display); color: var(--dim); font-variant-numeric: tabular-nums; }
.plog .who { font-weight: 600; overflow-wrap: anywhere; }
.plog .kind { display: inline-block; font-size: 13px; font-weight: 700; padding: 1px 8px; border-radius: 4px; margin-left: 8px; color: #12142b; background: var(--muted); vertical-align: 2px; }
.plog .kind.ban { background: var(--siren); }
.plog .kind.mute, .plog .kind.gag { background: var(--blue); }
.plog .kind.warn { background: var(--amber); }
.plog .why { color: var(--text); margin: 2px 0 0; }
.plog .meta { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.plog .meta .on { color: var(--siren); }
.plog .act { align-self: center; }

/* Поиск, группы */
.search input, .find input {
  width: 100%; min-height: 50px; padding: 0 16px; background: var(--sky-2); color: var(--text); font: 16px var(--body);
  border: 1px solid var(--line); border-radius: var(--r-s);
}
.search input:focus, .find input:focus { border-color: var(--amber); outline: none; box-shadow: 0 0 0 3px rgba(255, 181, 71, .2); }
.search { display: block; margin: 8px 0 14px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; position: sticky; top: 63px; z-index: 5; padding: 8px 0; background: var(--sky); }
mark { background: rgba(255, 181, 71, .3); color: inherit; border-radius: 2px; padding: 0 1px; }

/* Профессии */
.group > h2 { scroll-margin-top: 130px; }
.group > p, .group > ul { color: #cfcde6; max-width: 75ch; }
.job { border-top: 1px solid var(--line); padding: 20px 0; display: grid; grid-template-columns: 260px 1fr; gap: 24px; }
.job h3 { font-size: 18px; margin: 0 0 6px; line-height: 1.3; }
.job .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.job .meta span { font-size: 14px; color: var(--muted); }
.job .meta .pay { color: var(--up); font-weight: 600; }
.job .txt p, .job .txt ul { margin: 0 0 8px; }
.job .txt ul { padding-left: 20px; }
.job .txt li { margin: 3px 0; }
.nores { color: var(--muted); padding: 24px 0; }

/* Правила */
.rules section { border-top: 1px solid var(--line); padding: 8px 0 18px; }
.rules h2 { font-size: 21px; margin: 20px 0 10px; }
.rules ol { margin: 0; padding-left: 26px; }
.rules li { margin: 7px 0; max-width: 75ch; }
.rules li::marker { color: var(--amber); font-weight: 700; }
.rules li ul { color: var(--muted); padding-left: 18px; margin: 4px 0; }
.rules .note { list-style: none; margin-left: -26px; color: var(--amber-2); font-weight: 500; }

/* Профиль */
.find label { display: block; font-weight: 600; margin-bottom: 8px; }
.find .row { display: flex; gap: 10px; }
.hint { color: var(--muted); font-size: 14px; }
.err { color: var(--siren); }
.chars { display: grid; gap: 12px; margin-top: 22px; }
.char { border: 1px solid var(--line); border-radius: var(--r-m); padding: 18px 20px; background: var(--sky-2); }
.char h3 { margin: 0 0 12px; font-size: 20px; }
.char dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0; }
.char dt { color: var(--muted); font-size: 13px; }
.char dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.kpos { color: var(--up); }
.kneg { color: var(--siren); }

/* Вопросы */
.faq details { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 36px 18px 0; font-weight: 600; font-size: 18px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 500 26px/1 var(--display); color: var(--amber); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: #cfcde6; max-width: 70ch; }

.foot { border-top: 1px solid var(--line); margin-top: 72px; padding: 24px 0; color: var(--muted); font-size: 15px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot p { margin: 0; }
.foot a { margin-left: 14px; color: var(--muted); }
.foot a:first-child { margin-left: 0; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--sky); padding: 12px 18px; border-radius: var(--r-s); font-weight: 600; transition: opacity .2s, transform .2s; z-index: 60; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Гайд по городу: оглавление слева, разделы справа */
.guide { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.toc { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow-y: auto; padding-right: 8px; border-right: 1px solid var(--line); }
.toc a { display: block; padding: 6px 10px; color: var(--muted); text-decoration: none; font-size: 15px; border-radius: var(--r-s); line-height: 1.35; }
.toc a:hover { color: var(--text); background: var(--sky-2); }
.toc a.on { color: var(--text); box-shadow: inset 2px 0 0 var(--amber); }
.sys { border-top: 1px solid var(--line); padding: 4px 0 20px; scroll-margin-top: 80px; }
.sys > h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 24px 0 12px; }
.sys h3 { font-size: 17px; margin: 22px 0 8px; color: var(--amber-2); }
.sys p, .sys ul { max-width: 75ch; margin: 0 0 10px; color: #d3d1e8; }
.sys ul { padding-left: 20px; }
.sys li { margin: 4px 0; }

/* Донат */
.h3 { font-size: 19px; margin: 26px 0 10px; color: var(--muted); font-weight: 700; }
.shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 8px; }
.item { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--sky-2); padding: 22px; }
.item.vip { border-color: rgba(255, 181, 71, .55); background: linear-gradient(160deg, rgba(255, 181, 71, .1), var(--sky-2) 55%); }
.item .kind { color: var(--muted); font-size: 14px; }
.item h3 { font-size: 21px; margin: 4px 0 12px; }
.item .price { font: 800 28px/1 var(--display); color: var(--amber); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.item ul { list-style: none; padding: 0; margin: 0; color: #d3d1e8; font-size: 15px; }
.item li { padding: 5px 0 5px 22px; position: relative; }
.item li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 9px; height: 5px; border-left: 2px solid var(--up); border-bottom: 2px solid var(--up); transform: rotate(-45deg); }
.pass-track { display: grid; grid-auto-flow: column; grid-auto-columns: 136px; gap: 8px; overflow-x: auto; padding: 4px 0 12px; margin-bottom: 8px; }
.pass-lvl { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--sky-2); padding: 12px; font-size: 14px; }
.pass-lvl b { font: 800 22px/1 var(--display); color: var(--muted); }
.pass-lvl .f { min-height: 38px; }
.pass-lvl .p { min-height: 38px; color: var(--amber); border-top: 1px solid var(--line); padding-top: 8px; }
.item.pick { font: inherit; color: inherit; text-align: left; cursor: pointer; transition: border-color .15s, transform .15s; }
.item.pick .price { margin-bottom: 0; }
.item.pick:hover { border-color: var(--muted); }
.item.pick[aria-pressed="true"] { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255, 181, 71, .2); }
.item.pick:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.pay { margin-top: 18px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--sky-2); }
.pay-fields { display: grid; grid-template-columns: 1fr 180px; gap: 14px; margin-bottom: 14px; }
.pay .row { align-items: center; }
.pay-total { margin: 0; font: 700 19px var(--display); color: var(--amber); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .item.pick { transition: none; } }
@media (max-width: 640px) { .pay-fields { grid-template-columns: 1fr; } .pay .row { align-items: stretch; } }
.buy { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 10px; }

/* Обучение: плеер и сетка роликов */
.player { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.player video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r-m); border: 1px solid var(--line); }
.player .info h2 { font: 700 26px/1.2 var(--display); margin: 0 0 8px; }
.player .info p { color: #d3d1e8; margin: 0 0 12px; }
.player .info ol { margin: 0 0 12px; padding-left: 22px; color: #d3d1e8; }
.player .info li { margin: 5px 0; }
.player .req { color: var(--amber-2); font-size: 15px; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.vcard { display: block; text-decoration: none; color: var(--text); background: var(--sky-2); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.vcard:hover { border-color: var(--amber); }
.vcard img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--dusk); }
.vcard span { display: block; padding: 10px 12px; font-weight: 600; }
.vcard.on { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber); }
.job .vid { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 600; }

/* Планшет и телефон */
@media (max-width: 1240px) {
  .nav { position: fixed; inset: 63px 0 auto 0; flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; background: var(--sky);
    border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 8px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--amber); }
  .menu { display: block; }
  .bar { gap: 12px; }
  .bar .btn.small { margin-left: auto; flex: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .cols { grid-template-columns: 1fr; gap: 0; }
  .job { grid-template-columns: 1fr; gap: 8px; }
  .guide { grid-template-columns: 1fr; gap: 0; }
  .player { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; border-right: 0; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
  .toc a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .plog li { grid-template-columns: 1fr; }
  .plog .act { justify-self: start; }
  .hero { min-height: 640px; }
  .skyline { height: 46%; }
  .pulse { grid-template-columns: 1fr 1fr; margin-top: -28px; }
  .pulse > div:nth-child(2) { border-right: 0; }
  .pulse > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .pulse .v { font-size: 17px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { padding-right: 0; display: grid; grid-template-columns: 44px 1fr; column-gap: 8px; }
  .steps li::before { grid-row: span 2; font-size: 30px; margin: 0; }
  .updates li { grid-template-columns: 1fr; gap: 2px; }
  .find .row { flex-direction: column; }
  .char dl { grid-template-columns: 1fr 1fr; }
  .cta .btn { flex: 1 1 100%; }
  .chips { top: 63px; overflow-x: auto; flex-wrap: nowrap; }
  .chips a { white-space: nowrap; }
  .toc a, .chips a { min-height: 40px; display: inline-flex; align-items: center; }
}
/* Узкие телефоны (360 px): логотип, «Играть» и меню влезают в одну строку без горизонтального скролла */
@media (max-width: 400px) {
  .bar { gap: 8px; }
  .brand { font-size: 16px; gap: 8px; min-width: 0; }
  .brand svg { width: 26px; height: 26px; }
  .bar .btn.small { padding-left: 12px; padding-right: 12px; }
  .menu { width: 36px; padding: 10px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Документы */
.legal p, .legal li { line-height: 1.6; }
.doc { padding-left: 22px; }
.doc li { margin: 10px 0; }
.todo { background: rgba(255, 181, 71, .14); color: var(--amber); padding: 0 4px; border-radius: 4px; }

/* тап-зоны на телефоне не меньше 32 px */
@media (max-width: 640px) { a.vid { display: inline-flex; align-items: center; min-height: 36px; } .brand { min-height: 36px; } }
