/* ТИМПЛЕКС — общий стиль лендингов.
   Основа — язык игры: окна «рабочего стола» поверх настоящей карты города.
   Нейтральный холодный фон, один акцент (красный из игры), шрифт игры Onest.
   Картинки — только настоящие кадры игры. Анимации: окна «открываются»,
   блоки проявляются при прокрутке, карта медленно дрейфует. */
:root {
  --bg: #f2f3f5; --bg-2: #e9ebef; --surface: #fcfcfd; --head: #eef0f3;
  --line: rgba(18, 20, 25, .12); --line-2: rgba(18, 20, 25, .07); --field: #fff;
  --ink: #121419; --ink-2: #4a4f5a; --ink-3: #737986;
  --accent: #d63a24; --accent-2: #b52f1c; --accent-soft: #fbe9e5; --accent-ink: #fff;
  --focus: rgba(214, 58, 36, .3);
  --close: #ec6a5e; --min: #f4bf4f; --max: #61c554;
  --shadow: 0 1px 2px rgba(18, 20, 25, .06), 0 24px 48px -20px rgba(18, 20, 25, .32);
  --shadow-sm: 0 1px 2px rgba(18, 20, 25, .06), 0 10px 24px -14px rgba(18, 20, 25, .3);
  --r: 16px; --r-ctl: 12px;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px; --gut: 24px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font: 17px/1.55 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.025em; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.nb { white-space: nowrap; }
.ph { line-height: 1; }

/* ---------- шапка ---------- */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.is-scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .06em; font-size: 16px; text-decoration: none; }
.logo__mark { width: 26px; height: 26px; border-radius: 7px; background: var(--accent); position: relative; flex: none; }
.logo__mark::before { content: ""; position: absolute; left: 6px; right: 6px; top: 7px; height: 3px; background: #fff; border-radius: 1px; }
.logo__mark::after { content: ""; position: absolute; left: 11px; width: 4px; top: 7px; bottom: 6px; background: #fff; border-radius: 1px; }
.logo small { font-weight: 500; letter-spacing: 0; color: var(--ink-3); font-size: 14px; padding-left: 12px; border-left: 1px solid var(--line); }
.top nav { display: flex; gap: 24px; margin-left: auto; font-size: 15px; color: var(--ink-2); }
.top nav a { text-decoration: none; transition: color .15s; }
.top nav a:hover { color: var(--ink); }
.top .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap; border-radius: var(--r-ctl); border: 1px solid transparent; background: var(--accent); color: var(--accent-ink); cursor: pointer; transition: background-color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 6px 16px -8px rgba(214, 58, 36, .7); }
.btn:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn .ph { font-size: 18px; transition: transform .2s var(--ease); }
.btn:hover .ph-arrow-right { transform: translateX(3px); }
.btn:focus-visible, .link-btn:focus-visible, summary:focus-visible, .input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.btn--plain { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--plain:hover { background: #fff; border-color: rgba(18,20,25,.28); }
.btn--ink { background: var(--ink); color: #fff; box-shadow: none; }
.btn--ink:hover { background: #262a33; }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.link-btn { font: inherit; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- секции ---------- */
.sec { padding: 120px 0; }
.h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.04; margin-bottom: 48px; max-width: 18ch; }
.lead { font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 44ch; }
.label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--accent); margin: 0 0 16px; }

/* ---------- окно (из игры) ---------- */
.win { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.win__head { height: 40px; display: grid; grid-template-columns: 70px 1fr 70px; align-items: center; background: var(--head); border-bottom: 1px solid var(--line); padding: 0 14px; font-size: 13px; font-weight: 600; color: var(--ink-2); text-align: center; }
.lights { display: flex; gap: 7px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: var(--close); box-shadow: inset 0 0 0 .5px rgba(0,0,0,.2); }
.lights i:nth-child(2) { background: var(--min); }
.lights i:nth-child(3) { background: var(--max); }
.win__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.win--shot img { width: 100%; }

/* настоящая карта на фоне, медленный дрейф */
.mapbg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.mapbg img { position: absolute; inset: -4%; width: 108%; height: 108%; max-width: none; object-fit: cover; }
/* регалии на первом экране */
.perks { list-style: none; margin: 40px 0 0; padding: 28px 0 0; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.perks li { display: flex; align-items: center; gap: 14px; font-size: 17px; font-weight: 500; }
.perks .ph { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--surface); border: 1px solid var(--line); color: var(--accent); }
.win .perks { margin-top: 32px; padding-top: 24px; gap: 12px; }
.win .perks .ph { background: var(--bg); }
.mapbg::after { content: ""; position: absolute; inset: 0; pointer-events: none; }

/* окно с картой Нейрограда: карта крупно и медленно ездит по городу */
.citymap { position: relative; overflow: hidden; background: #e9efe2; }
.citymap img { position: absolute; left: 50%; top: 50%; width: 2300px; height: auto; max-width: none; transform: translate3d(-1403px, -838px, 0); animation: citypan 160s ease-in-out infinite; will-change: transform; }
@keyframes citypan {
  0%, 100% { transform: translate3d(-1403px, -838px, 0); }
  22% { transform: translate3d(-1880px, -560px, 0); }
  48% { transform: translate3d(-1720px, -1080px, 0); }
  74% { transform: translate3d(-1150px, -1000px, 0); }
}

/* ---------- «Зачем это нужно?» — бенто ---------- */
/* три полосы, как флаг: белая, красная, тёмная; цифра то слева, то справа */
.why { display: grid; grid-template-columns: 1fr; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.why__cell { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 48px; padding: 40px 56px; min-height: 240px; }
.why__cell:nth-child(even) { flex-direction: row-reverse; }
.why__cell h3 { font-size: 28px; line-height: 1.15; margin-bottom: 10px; }
.why__cell p { margin: 0; font-size: 17px; }
.why__cell a { color: inherit; text-underline-offset: 3px; }
.why__num { flex: none; font-size: clamp(96px, 11vw, 168px); line-height: .9; font-weight: 800; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.why__stat .body { width: min(520px, 52%); }
.why__src { margin-top: 14px !important; font-size: 13px !important; opacity: .8; }
.why__lead { background: var(--surface); }
.why__lead p { color: var(--ink-2); }
.why__lead .why__num { color: var(--accent); }
.why--red { background: var(--accent); color: #fff; }
.why--ink { background: var(--ink); color: #fff; }

.manifest { padding: 120px 0 0; }
.manifest p { margin: 0 auto; max-width: 22ch; text-align: center; font-size: clamp(34px, 5vw, 64px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 700; }
.manifest p span { color: var(--accent); }
.manifest .btns { justify-content: center; margin-top: 40px; }

/* ---------- цены ---------- */
.prices { display: grid; grid-template-columns: 1fr 1.15fr; gap: 16px; align-items: stretch; }
.price { position: relative; display: flex; flex-direction: column; padding: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.price--main { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.price__name { font-size: 18px; font-weight: 600; margin: 0 0 24px; }
.price__sum { font-size: clamp(52px, 6vw, 76px); line-height: 1; font-weight: 800; letter-spacing: -0.045em; margin: 0 0 16px; font-variant-numeric: tabular-nums; }
.price__sum small { font-size: .42em; font-weight: 600; letter-spacing: 0; margin-left: 6px; color: var(--ink-2); }
.price__note { color: var(--ink-2); margin: 0 0 32px; flex: 1; max-width: 36ch; }
.price__tag { position: absolute; top: 28px; right: 28px; font-size: 14px; font-weight: 700; background: var(--accent); color: #fff; border-radius: 999px; padding: 5px 12px; }
.price-text { color: var(--ink-2); font-size: 18px; max-width: 54ch; margin: -24px 0 40px; }

.promo { margin-top: 16px; display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding: 20px 24px; background: var(--bg-2); border-radius: var(--r); }
.promo label { font-weight: 600; display: inline-flex; align-items: center; gap: 10px; }
.promo label .ph { font-size: 22px; color: var(--accent); }
.promo form { display: flex; gap: 8px; flex: 1; min-width: 260px; max-width: 480px; margin-left: auto; }
.promo .err { width: 100%; margin: 0; text-align: right; }

/* ---------- поля ---------- */
.input { width: 100%; min-height: 52px; padding: 0 16px; font: inherit; font-size: 16px; color: var(--ink); background: var(--field); border: 1px solid rgba(18,20,25,.2); border-radius: var(--r-ctl); transition: border-color .15s, box-shadow .15s; }
.input::placeholder { color: var(--ink-3); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--focus); }
.input--code { font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.input--code::placeholder { letter-spacing: 0; text-transform: none; font-weight: 400; }
.err { color: var(--accent-2); font-size: 14px; margin: 8px 0 0; }
.err:empty { display: none; }

/* ---------- вопросы ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.faq-wrap .h2 { position: sticky; top: 104px; margin: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-size: 19px; font-weight: 600; cursor: pointer; transition: color .15s; }
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ph { flex: none; font-size: 20px; color: var(--ink-3); transition: transform .3s var(--ease); }
.faq details[open] summary .ph { transform: rotate(45deg); color: var(--accent); }
.faq details p { color: var(--ink-2); max-width: 60ch; margin: -8px 0 26px; animation: fade .3s var(--ease); }
.faq details a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
@keyframes fade { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- подвал ---------- */
.foot { padding: 64px 0 40px; font-size: 15px; color: var(--ink-2); background: var(--ink); color: rgba(255,255,255,.7); }
.foot .wrap { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.foot .logo { color: #fff; margin-bottom: 14px; }
.foot p { margin: 0 0 6px; }
.foot a { color: rgba(255,255,255,.85); text-decoration: none; transition: color .15s; }
.foot a:hover { color: #fff; }
.foot h4 { margin: 4px 0 14px; font-size: 15px; font-weight: 600; color: #fff; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot .soon { color: rgba(255,255,255,.45); }
.foot .copy-line { grid-column: 1 / -1; padding-top: 28px; margin-top: 16px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: rgba(255,255,255,.45); }

/* ---------- лента мини-игр (одна на странице) ---------- */
.marquee { --gap: 20px; overflow: hidden; padding: 12px 0 36px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; gap: var(--gap); width: max-content; animation: run 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee figure { margin: 0; width: 248px; flex: none; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--surface); transition: transform .35s var(--ease); }
.marquee figure:hover { transform: translateY(-6px) rotate(-.6deg); }
.marquee img { width: 100%; aspect-ratio: 448 / 540; object-fit: cover; object-position: top; }
@keyframes run { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }

/* ---------- попапы ---------- */
dialog.modal { width: min(460px, calc(100vw - 24px)); padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); box-shadow: 0 40px 90px -24px rgba(18, 20, 25, .55); }
dialog.modal::backdrop { background: rgba(18, 20, 25, .5); backdrop-filter: blur(2px); }
.modal[open] { animation: winopen .32s var(--ease); }
.modal .win__head { grid-template-columns: 70px 1fr 70px; }
.modal__x { justify-self: end; width: 32px; height: 32px; display: grid; place-items: center; border: 0; background: none; border-radius: 8px; cursor: pointer; color: var(--ink-2); font: inherit; font-size: 22px; line-height: 1; }
.modal__x:hover { background: rgba(18,20,25,.07); }
.modal__body { padding: 28px 28px 26px; }
.modal__body > * { animation: fade .3s var(--ease) both; }
.modal h2 { font-size: 26px; line-height: 1.15; margin: 0 0 8px; }
.modal .sub { color: var(--ink-2); margin: 0 0 22px; font-size: 16px; }
.modal .sub b { color: var(--ink); }
.modal .row { display: grid; gap: 12px; }
.modal .btn { width: 100%; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; margin: 16px 0 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.check a { color: var(--ink); text-underline-offset: 2px; }
.modal .meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 14px; color: var(--ink-3); }
.modal .meta .link-btn { font-size: 14px; }
.modal .meta .link-btn[disabled] { color: var(--ink-3); text-decoration: none; cursor: default; }
.modal .done { text-align: center; padding: 8px 0 4px; }
.modal .done code { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.promo-head { font-size: 14px; font-weight: 700; color: var(--accent); margin: 0 0 10px; }
.modal-badge { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 28px; margin-bottom: 18px; }

/* ---------- анимации ---------- */
@keyframes winopen { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-2.5%, -1.5%, 0) scale(1.03); } }
.open-1, .open-2, .open-3 { animation: winopen .9s var(--ease) both; }
.open-2 { animation-delay: .18s; }
.open-3 { animation-delay: .36s; }
.mapbg img { animation: drift 40s ease-in-out infinite alternate; }
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee { overflow-x: auto; }
}

/* ---------- адаптив ---------- */
@media (max-width: 1024px) {
  .top nav { display: none; }
  .top .btn { margin-left: auto; }
  .why__cell { padding: 36px 40px; gap: 32px; }
  .faq-wrap { grid-template-columns: 1fr; gap: 32px; }
  .faq-wrap .h2 { position: static; }
  .foot .wrap { grid-template-columns: 1fr 1fr; }
  .foot .wrap > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  :root { --gut: 16px; }
  body { font-size: 16px; }
  .sec { padding: 80px 0; }
  .h2 { margin-bottom: 32px; }
  .lead { font-size: 18px; }
  .logo small { display: none; }
  .perks { margin-top: 32px; padding-top: 24px; }
  .why__cell, .why__cell:nth-child(even) { flex-direction: column; align-items: flex-start; gap: 18px; padding: 28px 22px; min-height: 0; }
  .why__cell:nth-child(even) .why__num { align-self: flex-end; }
  .why__cell h3 { font-size: 24px; }
  .why__stat .body { width: auto; }
  .manifest { padding-top: 80px; }
  .btns { flex-direction: column; }
  .btns .btn { width: 100%; }
  .prices { grid-template-columns: 1fr; }
  .price { padding: 28px 22px; }
  .price__tag { top: 22px; right: 22px; }
  .price-text { margin-top: -12px; }
  .promo { padding: 18px 16px; }
  .promo form { min-width: 0; max-width: none; width: 100%; margin: 0; }
  .promo .err { text-align: left; }
  .faq summary { font-size: 17px; padding: 20px 0; }
  .foot .wrap { grid-template-columns: 1fr; }
  .marquee figure { width: 200px; }
  .modal__body { padding: 22px 18px; }
  .modal h2 { font-size: 22px; }
}
