/* Murdox — сайт игры. Ночная «нуарная» палитра стора: почти чёрный фон, золотые подписи, красный акцент. */
@font-face { font-family: "Old Standard"; src: url(/fonts/OldStandardTT-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Old Standard"; src: url(/fonts/OldStandardTT-Italic.woff2) format("woff2"); font-style: italic; font-display: swap; }
@font-face { font-family: "Old Standard"; src: url(/fonts/OldStandardTT-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Golos"; src: url(/fonts/GolosText-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Golos"; src: url(/fonts/GolosText-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(/fonts/IBMPlexMono-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #121317;
  --bg2: #17191e;
  --card: #1c1e24;
  --line: #2b2e36;
  --ink: #f4f0e7;
  --ink2: #c9c3b6;
  --muted: #8d887d;
  --gold: #e9c46e;
  --red: #e0584a;
  --red-deep: #b2302a;
  --serif: "Old Standard", Georgia, "Times New Roman", serif;
  --sans: "Golos", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "Plex Mono", ui-monospace, Menlo, monospace;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink2);
  font: 400 17px/1.6 var(--sans);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.kicker {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 700; color: var(--ink); line-height: 1.08; margin: 0; }
h1 em, h2 em { color: var(--red); font-style: italic; font-weight: 400; }
h2 { font-size: clamp(34px, 5vw, 52px); }
h3 { font-size: 23px; line-height: 1.2; }
.lead { font-size: 19px; color: var(--ink2); max-width: 560px; }
section { padding: 96px 0; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  background: rgba(18, 19, 23, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 22px var(--serif); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink2); font-size: 15px; }
.nav a:hover { color: var(--ink); }
.lang { font: 500 12px var(--mono); letter-spacing: .1em; text-decoration: none; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; }
.lang:hover { color: var(--ink); border-color: var(--muted); }
.top .btn-small { display: none; }

/* ---------- кнопки стора ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 196px; height: 60px; padding: 0 20px;
  border-radius: 14px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; font-family: var(--sans);
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store small { font-size: 11px; letter-spacing: .02em; opacity: .8; }
.store b { font-size: 19px; font-weight: 600; }
.store.ios { background: var(--ink); color: #111; box-shadow: 0 10px 30px rgba(233, 196, 110, .14); }
.store.ios:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(233, 196, 110, .25); }
.store.android { background: transparent; color: var(--ink); border-color: #3a3d46; }
.store.android:hover { border-color: var(--muted); transform: translateY(-2px); }
.store.android small { color: var(--gold); opacity: 1; }
.meta { margin-top: 18px; font-size: 14px; color: var(--muted); }
.meta b { color: var(--ink2); font-weight: 600; }

/* ---------- первый экран ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1;
  background:
    radial-gradient(600px 420px at 78% 38%, rgba(178, 48, 42, .22), transparent 70%),
    radial-gradient(520px 380px at 12% 10%, rgba(233, 196, 110, .08), transparent 70%);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(46px, 7vw, 84px); }
.hero .lead { margin-top: 22px; }
.phones { position: relative; height: 640px; }
.phone {
  position: absolute; width: 270px; aspect-ratio: 1206 / 2622;
  border-radius: 42px; padding: 9px; background: #0a0b0d;
  box-shadow: 0 0 0 1px #2c2f37, 0 40px 80px rgba(0, 0, 0, .55);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; }
.phone.a { left: 4%; top: 30px; transform: rotate(-6deg); z-index: 2; }
.phone.b { right: 2%; top: 0; transform: rotate(5deg); }
.tape {
  position: absolute; left: -12%; right: -12%; bottom: 70px; z-index: 3;
  transform: rotate(-7deg);
  background: repeating-linear-gradient(-45deg, #e9c23a 0 22px, #f2cf45 22px 44px);
  color: #15161a; font: 500 15px/40px var(--mono); letter-spacing: .3em; white-space: nowrap; overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
}
.tape span { display: inline-block; padding-left: 100%; animation: tape 26s linear infinite; }
@keyframes tape { to { transform: translateX(-100%); } }

/* ---------- как играть ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px 22px; position: relative; }
.step .n { font: 700 46px/1 var(--serif); color: var(--red); opacity: .9; }
.step h3 { margin: 16px 0 8px; }
.step p { margin: 0; font-size: 15.5px; color: var(--ink2); }
.step mark { background: rgba(233, 196, 110, .22); color: var(--ink); padding: 0 3px; border-radius: 4px; }

/* ---------- скриншоты ---------- */
.shots-section { background: var(--bg2); }
.shots {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 40px 20px 20px; margin: 0 auto; max-width: 1400px; scrollbar-width: thin;
}
.shots img {
  flex: none; width: 250px; height: auto; aspect-ratio: 1206 / 2622;
  border-radius: 22px; scroll-snap-align: center; border: 1px solid var(--line);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .4);
}

/* ---------- возможности ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px 22px; }
.feature .ic { font-size: 26px; line-height: 1; }
.feature h3 { font-size: 21px; margin: 14px 0 8px; }
.feature p { margin: 0; font-size: 15px; }

/* ---------- сцены ---------- */
.scenes { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-top: 44px; }
.scenes figure { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--card); aspect-ratio: 9 / 16; }
.scenes img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.scenes figure:hover img { transform: scale(1.04); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 40px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative;
  font: 700 21px/1.3 var(--serif); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 400 28px var(--sans); color: var(--gold); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; }

/* ---------- финальный призыв ---------- */
.cta { padding: 90px 0 110px; }
.cta .box {
  border-radius: 28px; padding: 64px 32px; text-align: center; border: 1px solid var(--line);
  background: radial-gradient(500px 300px at 50% 0%, rgba(178, 48, 42, .28), transparent 70%), var(--card);
}
.cta .box img { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 26px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.cta .stores { justify-content: center; }

footer { border-top: 1px solid var(--line); padding: 30px 0 110px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .sp { margin-left: auto; }

/* ---------- нижняя плашка на телефоне ---------- */
.dock {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
  display: none; gap: 10px; align-items: center;
  padding: 10px 10px 10px 14px; border-radius: 18px;
  background: rgba(28, 30, 36, .94); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
  transform: translateY(140%); transition: transform .3s ease;
}
.dock.show { transform: none; }
.dock img { width: 40px; height: 40px; border-radius: 10px; }
.dock .t { flex: 1; line-height: 1.2; }
.dock .t b { display: block; color: var(--ink); font: 700 17px var(--serif); }
.dock .t small { font-size: 12px; color: var(--muted); }
.dock a { text-decoration: none; background: var(--ink); color: #111; font-weight: 600; font-size: 15px; padding: 11px 16px; border-radius: 12px; white-space: nowrap; }

.toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 50; transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: #15161a; padding: 13px 20px; border-radius: 14px; font-size: 15px; font-weight: 600;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5); transition: opacity .25s, transform .25s; pointer-events: none;
  max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- адаптив ---------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phones { height: 560px; max-width: 520px; margin: 10px auto 0; width: 100%; }
  .steps, .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  section { padding: 72px 0; }
  .nav { display: none; }
  .lang { margin-left: auto; }
  .hero { padding-top: 40px; }
  .hero .lead { font-size: 17px; }
  .store { flex: 1 1 100%; }
  .phones { height: 470px; }
  .phone { width: 210px; border-radius: 34px; padding: 7px; }
  .phone img { border-radius: 28px; }
  .phone.a { left: 0; }
  .phone.b { right: 0; }
  .tape { bottom: 40px; font-size: 12px; line-height: 34px; }
  .steps, .features { grid-template-columns: 1fr; }
  .shots img { width: 210px; }
  .dock { display: flex; }
  footer .sp { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tape span { animation: none; padding-left: 0; }
  * { transition: none !important; }
}
.cta .lead { margin: 14px auto 0; }
.toast { width: max-content; }
