/* GTA 6 fan site — общий дизайн: ночной Вайс-Сити, закат, неон. */
@import url("fonts.css");

:root {
  --bg0: #090312;
  --bg1: #140725;
  --bg2: #1f0c38;
  --panel: rgba(34, 15, 58, .72);
  --panel-solid: #1b0b31;
  --line: rgba(255, 255, 255, .09);
  --line-hot: rgba(255, 46, 147, .45);
  --text: #f6f0ff;
  --muted: #a99bc4;
  --pink: #ff2e93;
  --orange: #ff8a2a;
  --yellow: #ffd23f;
  --teal: #19e3d0;
  --blue: #3d8bff;
  --violet: #9b5cff;
  --ok: #3df0a4;
  --sunset: linear-gradient(100deg, #ffd23f 0%, #ff8a2a 38%, #ff2e93 72%, #9b5cff 100%);
  --sunset-soft: linear-gradient(135deg, rgba(255, 138, 42, .22), rgba(255, 46, 147, .22) 55%, rgba(155, 92, 255, .22));
  --radius: 16px;
  --head-h: 60px;
  --font-head: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 14px); }
body {
  margin: 0; min-height: 100vh; color: var(--text);
  font: 15px/1.55 var(--font-body);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(255, 46, 147, .22), transparent 60%),
    radial-gradient(900px 500px at 5% 0%, rgba(155, 92, 255, .22), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 60%, var(--bg2));
  background-attachment: fixed;
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--pink); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #3b1d63; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 2000; height: var(--head-h);
  display: flex; align-items: center; gap: 18px; padding: 0 20px;
  background: linear-gradient(180deg, rgba(9, 3, 18, .96), rgba(9, 3, 18, .82));
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--sunset); opacity: .85;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; flex: none; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font: italic 700 21px/1 var(--font-head); letter-spacing: .04em; text-transform: uppercase; }
.brand-name b { background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.nav { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  position: relative; padding: 8px 14px; border-radius: 10px; white-space: nowrap;
  color: var(--muted); font: 500 15px/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase; text-decoration: none !important;
  transition: color .15s, background .15s;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav a.active { color: #fff; background: var(--sunset-soft); box-shadow: inset 0 0 0 1px var(--line-hot); }
.nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--sunset);
}

/* ---------- общая вёрстка ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
main.page { padding: 34px 0 70px; min-height: calc(100vh - var(--head-h) - 140px); }

.page-head { margin: 8px 0 26px; }
.eyebrow { font: 500 13px/1 var(--font-head); letter-spacing: .28em; text-transform: uppercase; color: var(--pink); margin: 0 0 10px; }
h1.title {
  margin: 0 0 8px; font: italic 700 clamp(34px, 6vw, 58px)/1.02 var(--font-head); text-transform: uppercase; letter-spacing: .015em;
  background: linear-gradient(180deg, #fff 0%, #ffd9f0 55%, #ff8fc9 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 24px rgba(255, 46, 147, .35));
}
.lead { max-width: 820px; color: var(--muted); font-size: 16px; margin: 0; }
h2.sec { font: 700 26px/1.1 var(--font-head); text-transform: uppercase; letter-spacing: .04em; margin: 34px 0 14px; display: flex; align-items: center; gap: 12px; }
h2.sec::before { content: ""; width: 6px; height: 24px; border-radius: 3px; background: var(--sunset); }
h2.sec .count { margin-left: 4px; font: 500 14px/1 var(--font-body); color: var(--muted); letter-spacing: 0; text-transform: none; }

.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(8px); box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}
.pad { padding: 18px 20px; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }

/* ---------- элементы управления ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 18px; }
.search {
  flex: 1 1 260px; min-width: 200px; height: 44px; padding: 0 16px 0 44px; color: var(--text); font: inherit;
  background: rgba(9, 3, 18, .7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%23a99bc4'%3E%3Cpath d='M229.7 218.3l-50.1-50.1a88 88 0 1 0-11.4 11.4l50.1 50.1a8 8 0 0 0 11.4-11.4zM40 112a72 72 0 1 1 72 72 72.1 72.1 0 0 1-72-72z'/%3E%3C/svg%3E") 15px 50% / 18px no-repeat;
  border: 1px solid var(--line); border-radius: 12px; outline: none;
}
.search:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 46, 147, .22); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--muted);
  font: 500 13px/1 var(--font-body); cursor: pointer; transition: all .15s;
}
.chip:hover { color: #fff; border-color: rgba(255, 255, 255, .25); }
.chip.on { color: #fff; border-color: var(--pink); background: linear-gradient(135deg, rgba(255, 138, 42, .3), rgba(255, 46, 147, .35)); box-shadow: 0 0 18px rgba(255, 46, 147, .25); }
.chip .n { opacity: .65; margin-left: 5px; font-variant-numeric: tabular-nums; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 12px; border: 0; cursor: pointer;
  font: 700 15px/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: #1a0428; text-decoration: none !important;
  background: var(--sunset); box-shadow: 0 8px 28px rgba(255, 46, 147, .38); transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(255, 46, 147, .55); }
.btn.ghost { background: rgba(255, 255, 255, .06); color: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { background: rgba(255, 255, 255, .12); }
.btn.sm { padding: 9px 14px; font-size: 13px; border-radius: 10px; }

.badge { display: inline-block; padding: 3px 9px; border-radius: 6px; font: 600 11px/1.3 var(--font-body); letter-spacing: .04em; text-transform: uppercase; color: #fff; background: rgba(255, 255, 255, .1); }
.badge.new { background: linear-gradient(135deg, var(--orange), var(--pink)); }
.badge.upd { background: linear-gradient(135deg, var(--blue), var(--violet)); }
.badge.warn { background: rgba(255, 210, 63, .18); color: var(--yellow); }
.badge.ok { background: rgba(61, 240, 164, .16); color: var(--ok); }

.progress { height: 10px; border-radius: 8px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; background: var(--sunset); border-radius: 8px; transition: width .35s; box-shadow: 0 0 16px rgba(255, 46, 147, .6); }

/* ---------- таблицы ---------- */
.tbl-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; padding: 12px 16px; font: 500 12px/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: rgba(255, 255, 255, .04); }
.tbl td { padding: 13px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl tr:hover td { background: rgba(255, 255, 255, .03); }
.tbl .mono { font: 700 22px/1 var(--font-head); letter-spacing: .1em; color: var(--yellow); text-shadow: 0 0 14px rgba(255, 210, 63, .35); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- подвал ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 13px; background: rgba(9, 3, 18, .6); }
.site-footer .cols { display: grid; gap: 18px 36px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.site-footer h4 { margin: 0 0 8px; font: 500 13px/1 var(--font-head); letter-spacing: .18em; text-transform: uppercase; color: var(--text); }
.site-footer a { color: #cdbdf0; }

/* ---------- главная ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); isolation: isolate; }
.hero-art { position: absolute; inset: 0; z-index: -1; }
.hero-art svg { width: 100%; height: 100%; display: block; }
.hero-inner { padding: 78px 0 120px; max-width: 760px; }
.hero h1 { margin: 0 0 14px; font: italic 700 clamp(44px, 9vw, 92px)/.95 var(--font-head); text-transform: uppercase; letter-spacing: .01em; }
.hero h1 span { display: block; background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 30px rgba(255, 46, 147, .5)); }
.hero p { font-size: 18px; color: #dacdf3; max-width: 600px; margin: 0 0 26px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }

.stats { display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); margin-top: -64px; position: relative; z-index: 2; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); margin-top: -50px; } }
.stat { padding: 16px 18px; border-radius: 14px; background: var(--panel-solid); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.stat b { display: block; font: 700 34px/1 var(--font-head); background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 13px; color: var(--muted); }

.tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 190px; padding: 20px; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line); color: var(--text); text-decoration: none !important; isolation: isolate;
  background: var(--panel-solid); transition: transform .2s, border-color .2s, box-shadow .2s;
}
.tile::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--bg, var(--sunset-soft)) center/cover; opacity: .85; transition: transform .4s; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(9, 3, 18, .1) 0%, rgba(9, 3, 18, .88) 78%); }
.tile:hover { transform: translateY(-4px); border-color: var(--line-hot); box-shadow: 0 16px 44px rgba(255, 46, 147, .25); }
.tile:hover::before { transform: scale(1.06); }
.tile .ico { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; padding: 9px; border-radius: 12px; background: rgba(9, 3, 18, .6); border: 1px solid var(--line); color: var(--yellow); }
.tile h3 { margin: 0 0 4px; font: 700 26px/1 var(--font-head); text-transform: uppercase; letter-spacing: .05em; }
.tile p { margin: 0; color: #d3c5ee; font-size: 14px; }
.tile .num { font-size: 12px; color: var(--yellow); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; font-weight: 600; }

/* ---------- читы: кнопки крестовины ---------- */
.dpad { display: flex; flex-wrap: wrap; gap: 4px; }
.dpad i {
  width: 30px; height: 30px; display: grid; place-items: center; font-style: normal; font-size: 17px; font-weight: 800; color: #fff;
  border-radius: 8px; background: linear-gradient(180deg, #3a1a62, #25103f); border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 2px 0 rgba(0, 0, 0, .5);
}
.cheat { padding: 16px 18px; display: grid; gap: 10px; }
.cheat h3 { margin: 0; font: 700 20px/1.1 var(--font-head); letter-spacing: .04em; text-transform: uppercase; }
.cheat p { margin: 0; color: var(--muted); font-size: 14px; }
.unlock { font-size: 12.5px; color: var(--yellow); display: flex; gap: 6px; align-items: flex-start; }

/* ---------- миссии ---------- */
.chapter { margin-bottom: 18px; overflow: hidden; }
.chapter > header { display: flex; align-items: center; gap: 14px; padding: 16px 20px; cursor: pointer; background: var(--sunset-soft); user-select: none; }
.chapter > header h3 { margin: 0; font: 700 22px/1.1 var(--font-head); text-transform: uppercase; letter-spacing: .04em; flex: 1; }
.chapter > header .cnt { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chapter .num { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: rgba(9, 3, 18, .6); font: 700 20px/1 var(--font-head); color: var(--yellow); border: 1px solid var(--line-hot); }
.mrow { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 10px 20px; border-top: 1px solid var(--line); }
.mrow:hover { background: rgba(255, 255, 255, .03); }
.mrow .n { color: var(--muted); font-variant-numeric: tabular-nums; }
.mrow .nm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; }
.mrow.done .nm .t { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .35); }
.mrow.opt { opacity: .78; }
.check {
  appearance: none; width: 24px; height: 24px; border-radius: 8px; border: 2px solid rgba(255, 255, 255, .28); background: rgba(9, 3, 18, .6); cursor: pointer; position: relative; transition: all .15s;
}
.check:hover { border-color: var(--pink); }
.check:checked { background: var(--sunset); border-color: transparent; box-shadow: 0 0 14px rgba(255, 46, 147, .55); }
.check:checked::after { content: ""; position: absolute; left: 7px; top: 2px; width: 6px; height: 12px; border: solid #1a0428; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.spoiler { cursor: pointer; padding: 2px 10px; border-radius: 6px; background: rgba(255, 255, 255, .08); color: var(--muted); font-size: 12px; border: 1px dashed rgba(255, 255, 255, .25); }

/* ---------- коды ---------- */
.code-card { padding: 16px 18px; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center; }
.code-card .digits { font: 700 38px/1 var(--font-head); letter-spacing: .14em; color: var(--yellow); text-shadow: 0 0 18px rgba(255, 210, 63, .4); grid-row: span 2; padding-right: 18px; border-right: 1px dashed rgba(255, 255, 255, .18); }
.code-card h3 { margin: 0; font: 600 16px/1.3 var(--font-body); }
.code-card p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* ---------- база данных ---------- */
.dbcard { padding: 14px 16px; display: grid; gap: 4px; position: relative; overflow: hidden; }
.dbcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--sunset); }
.dbcard h3 { margin: 0; font: 700 18px/1.2 var(--font-head); letter-spacing: .03em; text-transform: uppercase; padding-right: 54px; }
.dbcard .kind { font-size: 12px; color: var(--teal); letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.dbcard .meta { font-size: 13px; color: var(--muted); }
.dbcard .badge { position: absolute; top: 12px; right: 12px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.tab { padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--muted); font: 500 15px/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: all .15s; }
.tab:hover { color: #fff; }
.tab.on { color: #fff; background: var(--sunset-soft); border-color: var(--pink); box-shadow: 0 0 22px rgba(255, 46, 147, .25); }
.empty { padding: 50px 20px; text-align: center; color: var(--muted); }
.more { display: flex; justify-content: center; margin: 22px 0 0; }

@media (max-width: 860px) {
  .site-header { padding: 0 12px; gap: 10px; }
  .brand-name { display: none; }
  .nav a { padding: 8px 10px; font-size: 14px; }
  .nav { flex: 1; margin-left: 0; }
  .home-link { display: none; }
  .hero-inner { padding: 48px 0 96px; }
  .mrow { grid-template-columns: 34px 1fr auto; padding: 10px 14px; }
  .code-card { grid-template-columns: 1fr; }
  .code-card .digits { grid-row: auto; border-right: 0; padding-right: 0; }
}

/* страницы мест (/p/<id>/) */
dl.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 22px; margin: 18px 0 24px; max-width: 760px; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }
figure { margin: 0; }
figure img { width: 100%; border-radius: 14px; display: block; border: 1px solid var(--line); }
figcaption { color: var(--muted); font-size: 13px; margin-top: 6px; }
.dbcard .kind { display: block; padding-right: 96px; }
.home-link { margin-left: 4px; color: var(--muted); font-size: 13px; white-space: nowrap; align-self: center; }

/* фото на главной (если сгенерировано) */
.hero-photo { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity .6s; }
.hero.has-photo .hero-photo { opacity: 1; }
.hero.has-photo .hero-art svg { display: none; }
.hero.has-photo .hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9, 3, 18, .92) 0%, rgba(9, 3, 18, .55) 38%, rgba(9, 3, 18, 0) 70%), linear-gradient(180deg, rgba(9, 3, 18, 0) 55%, var(--bg1) 100%); }

/* ---------- SEO-блоки: хлебные крошки, FAQ, ссылки ---------- */
.crumbs { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: #fff; }
.faq { margin-top: 34px; }
details.qa { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin-bottom: 8px; }
details.qa summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "+"; float: right; color: var(--pink); font-size: 20px; line-height: 1; }
details.qa[open] summary::after { content: "–"; }
details.qa p { margin: 0; padding: 0 18px 16px; color: var(--muted); }
.seo-copy { margin-top: 44px; max-width: 920px; color: #cdbfe6; }
.seo-copy p { margin: 0 0 14px; }
.seo-copy a { color: var(--teal); }
.seo-copy .sub { margin: 22px 0 10px; font: 700 18px/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; }
ul.linkgrid { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
ul.linkgrid li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
ul.linkgrid li:hover { border-color: var(--line-hot); }
ul.linkgrid span { color: var(--muted); font-variant-numeric: tabular-nums; }
ul.flinks { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.mono-s { font: 12.5px ui-monospace, monospace; color: var(--yellow); white-space: nowrap; }
.dbtile { padding: 18px 20px; display: grid; gap: 6px; text-decoration: none !important; color: var(--text); transition: border-color .2s, transform .2s; }
.dbtile:hover { border-color: var(--line-hot); transform: translateY(-2px); }
.dbtile h3 { margin: 0; font: 700 24px/1 var(--font-head); text-transform: uppercase; letter-spacing: .04em; }
.dbtile p { margin: 0; color: var(--muted); font-size: 14px; }
.dbtile .count { color: var(--yellow); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
a.tab { text-decoration: none !important; }
.site-footer .cols { grid-template-columns: 1.4fr 1fr 1fr 1fr 1.4fr; }
@media (max-width: 1000px) { .site-footer .cols { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
