/* Grampass, прототип сайта программы держателей NFT.
   Токены из макета Claude Design: две темы, телефонная раскладка до 1023px.
   Билет всегда в обратной теме: в тёмной он светлый, в светлой тёмный. */

:root {
  --blue: #3D7BFF;
  --orange: #FF8B3E;
  --violet: #9F6BFF;
  --pink: #FF5C8A;
  --art: linear-gradient(160deg, #3D7BFF 0%, #9F6BFF 55%, #FF8B3E 100%);
  --art-2: linear-gradient(160deg, #FF8B3E 0%, #FF5C8A 50%, #9F6BFF 100%);
  --f-head: 'Unbounded', system-ui, sans-serif;
  --f-body: 'Manrope', system-ui, sans-serif;
  --gut: 56px;
  --stubw: clamp(300px, 26.4vw, 380px);
}

:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B0D1A;
  --fg: #FFFFFF;
  --text-2: #C3C8E3;
  --muted: #9BA3C7;
  --line: #2A3052;
  --surface: #1C2140;
  --surface-2: #141830;
  --hover: #FFB27A;
  --soft: #FFB27A;
  --ok: #7ED1A1;
  --shadow: rgba(0, 0, 0, .45);
  /* билет */
  --t-bg: #F4F5FF;
  --t-fg: #0B0D1A;
  --t-text: #3E4463;
  --t-dash: #B9BDD9;
  --t-track: #DDE0F2;
  --t-violet: #6A3DFF;
  --t-orange: #E0641A;
  --t-err: #D6341C;
  --t-input: #FFFFFF;
  --t-input-line: #B9BDD9;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F4F5FF;
  --fg: #0B0D1A;
  --text-2: #3E4463;
  --muted: #5B6185;
  --line: #D9DCF0;
  --surface: #FFFFFF;
  --surface-2: #FFFFFF;
  --hover: #E0641A;
  --soft: #E0641A;
  --ok: #1F8A4C;
  --shadow: rgba(11, 13, 26, .16);
  --t-bg: #0B0D1A;
  --t-fg: #F4F5FF;
  --t-text: #C3C8E3;
  --t-dash: #2A3052;
  --t-track: #2A3052;
  --t-violet: #9F6BFF;
  --t-orange: #FFB27A;
  --t-err: #FF6B5A;
  --t-input: #0B0D1A;
  --t-input-line: #2A3052;
}

/* ---------- база ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
main { flex: 1 0 auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
svg { display: block; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.u { font-family: var(--f-head); }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gut); }
@media (min-width: 1024px) { .m-only { display: none !important; } }

/* ---------- кнопки и мелочи ---------- */

.btn, .btn2 {
  display: inline-flex; align-items: center; justify-content: center;
  height: 60px; padding: 0 30px;
  border: 0; border-radius: 16px;
  font-family: var(--f-body); font-weight: 800; font-size: 17px; line-height: 1.1;
  text-align: center; white-space: nowrap; cursor: pointer;
  transition: filter .15s, transform .15s, opacity .15s;
}
.btn { background: var(--orange); color: #0B0D1A; }
.btn2 { background: var(--blue); color: #FFFFFF; }
.btn:hover, .btn2:hover { filter: brightness(1.07); }
.btn:active, .btn2:active { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; filter: none; transform: none; }
.btn.lg { height: 62px; padding: 0 34px; font-size: 18px; }
.btn.xl { height: 64px; font-size: 18px; }
.block { display: flex; width: 100%; }

.ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px;
  background: var(--surface); color: var(--fg);
  border: 1px solid var(--line); border-radius: 12px;
  font-family: var(--f-body); font-weight: 700; font-size: 15px; white-space: nowrap;
  cursor: pointer; transition: border-color .15s;
}
.ghost:hover { border-color: var(--blue); }

.link {
  padding: 0; border: 0; background: none; cursor: pointer;
  font-family: var(--f-body); font-size: 15px; font-weight: 700; color: var(--t-violet);
  text-decoration: underline; text-underline-offset: 4px;
}
.link:hover { text-decoration-thickness: 2px; }

.cap { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--violet); }
.cap.t { color: var(--t-violet); }
.cap.warm { color: var(--t-orange); }
.note { font-size: 14px; font-weight: 600; color: var(--t-text); }

.art {
  display: flex; align-items: center; justify-content: center;
  background: var(--art); color: #FFFFFF;
  font-weight: 600; font-size: 15px; border-radius: 20px;
}
.art.b { background: var(--art-2); }

.meta { display: flex; align-items: center; gap: 12px; font-family: var(--f-head); font-weight: 500; font-size: 14px; color: var(--t-violet); }
.meta i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- шапка ---------- */

.hdr { position: relative; z-index: 30; flex-shrink: 0; }
.hdr-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 80px; }
.logo { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo i { width: 36px; height: 36px; border-radius: 10px; background: var(--orange); }
.logo span { font-family: var(--f-head); font-weight: 600; font-size: 18px; }
.nav { display: flex; gap: 32px; font-size: 15px; font-weight: 600; }
.nav a { color: var(--text-2); transition: color .15s; }
.nav a:hover { color: var(--hover); }
.nav a.cur { color: var(--fg); }
.hdr-r { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; padding: 0;
  background: var(--surface); color: var(--fg);
  border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  transition: border-color .15s;
}
.icon-btn:hover { border-color: var(--blue); }
.theme-ico .moon { display: none; }
:root[data-theme="light"] .theme-ico .sun { display: none; }
:root[data-theme="light"] .theme-ico .moon { display: block; }

.wallet {
  display: inline-flex; align-items: center; gap: 14px;
  height: 46px; padding: 0 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  font-size: 15px; white-space: nowrap;
}
.wallet .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.wallet b { font-weight: 700; }
.wallet a { color: var(--muted); font-weight: 600; transition: color .15s; }
.wallet a:hover { color: var(--hover); }
:root:not([data-wallet="on"]) .w-on { display: none !important; }
:root[data-wallet="on"] .w-off { display: none !important; }

.burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  background: transparent; border: 0; color: var(--fg); cursor: pointer;
}
.burger .x { display: none; }
.burger[aria-expanded="true"] .x { display: block; }
.burger[aria-expanded="true"] .l { display: none; }

.mmenu {
  position: absolute; left: 0; right: 0; top: 100%;
  display: flex; flex-direction: column; gap: 18px;
  padding: 4px 20px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 40px -20px var(--shadow);
}
.mmenu nav { display: flex; flex-direction: column; }
.mmenu nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 600; }
.mm-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 600; color: var(--text-2); }
.mmenu .ghost, .mmenu .btn2 { width: 100%; height: 52px; }

.seg { display: inline-flex; padding: 4px; gap: 2px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.seg button {
  height: 34px; padding: 0 12px; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted);
  font-family: var(--f-body); font-weight: 700; font-size: 13px; cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--blue); color: #FFFFFF; }

/* ---------- билет ---------- */

.ticket {
  --nr: 20px;
  position: relative;
  display: grid;
  background: var(--t-bg); color: var(--t-fg);
  border-radius: 28px;
}
.ticket > .main { min-width: 0; border-right: 2px dashed var(--t-dash); }
.ticket > .stub { position: relative; min-width: 0; }
.notched > .stub::before,
.notched > .stub::after {
  content: "";
  position: absolute;
  left: calc(-1px - var(--nr));
  width: calc(2 * var(--nr)); height: calc(2 * var(--nr));
  border-radius: 50%;
  background: var(--bg);
  pointer-events: none;
}
.notched > .stub::before { top: calc(-1 * var(--nr)); }
.notched > .stub::after { bottom: calc(-1 * var(--nr)); }

/* билет с одной колонкой и кнопкой: финальный призыв на главной, пустые состояния кабинета */
.big-t { --nr: 22px; grid-template-columns: minmax(0, 1fr) var(--stubw); border-radius: 32px; }
.big-t > .main { display: flex; flex-direction: column; gap: 20px; padding: 56px 48px; }
.big-t > .stub { display: flex; align-items: center; justify-content: center; padding: 40px; }
.big-t .h2 { font-size: clamp(32px, 2.78vw, 40px); }
.big-t .addr { font-family: var(--f-head); font-weight: 600; font-size: 18px; color: var(--t-text); }

/* ---------- главная ---------- */

.hero { padding-top: 40px; }
.hero .ticket { --nr: 22px; grid-template-columns: minmax(0, 1fr) var(--stubw); min-height: 600px; border-radius: 32px; }
.hero .main { display: grid; grid-template-columns: minmax(0, 1.09fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 48px; }
.hero .main > .art { align-self: stretch; min-height: 420px; }
.hero-txt { display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-family: var(--f-head); font-weight: 700; font-size: clamp(32px, 3.06vw, 44px); line-height: 1.08; letter-spacing: -.025em; text-wrap: pretty; }
.hero .lead { font-size: 17px; line-height: 1.5; color: var(--t-text); text-wrap: pretty; }
.hero .stub { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 48px 40px; }
.hs-top { display: contents; }
.kv { display: flex; flex-direction: column; gap: 8px; }
.kv .date { font-family: var(--f-head); font-weight: 600; font-size: clamp(24px, 2.1vw, 30px); line-height: 1.1; }
.kv .num { font-family: var(--f-head); font-weight: 700; font-size: clamp(44px, 4.2vw, 62px); line-height: 1; letter-spacing: -.03em; white-space: nowrap; }
.cta-col { display: flex; flex-direction: column; gap: 12px; }
.cta-col .note { text-align: center; }

.marquee { position: relative; height: calc(88px + 5vw); margin-top: 44px; overflow: hidden; }
.band {
  position: absolute; left: -5%; width: 110%; top: 2.5vw; height: 88px;
  display: flex; align-items: center; overflow: hidden; white-space: nowrap;
  background: var(--orange); color: #0B0D1A;
  transform: rotate(-2.5deg);
}
.track { display: flex; width: max-content; font-family: var(--f-head); font-weight: 600; font-size: 26px; }
.set { display: flex; align-items: center; gap: 36px; padding-right: 36px; flex-shrink: 0; }
.track .lbl { font-family: var(--f-body); font-weight: 600; font-size: 16px; }
.track i { width: 10px; height: 10px; border-radius: 50%; background: var(--bg); flex-shrink: 0; }

.sec-pad { padding-top: 112px; }
.h2 { font-family: var(--f-head); font-weight: 700; font-size: clamp(34px, 3.06vw, 44px); line-height: 1.1; letter-spacing: -.025em; text-wrap: pretty; }

.how {
  display: grid;
  grid-template-columns: 440px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "h rows" "b rows";
  column-gap: 64px; row-gap: 32px;
  align-items: start;
}
.how > .h2 { grid-area: h; }
.how > .btn { grid-area: b; justify-self: start; }
.how-rows { grid-area: rows; display: flex; flex-direction: column; gap: 20px; }
.hrow { display: grid; grid-template-columns: 90px minmax(0, 1fr) 340px; gap: 28px; align-items: center; padding: 28px 0; border-top: 1px solid var(--line); }
.hrow:last-child { border-bottom: 1px solid var(--line); }
.hrow .n { font-family: var(--f-head); font-weight: 700; font-size: 44px; color: var(--blue); }
.hrow p { font-size: 18px; line-height: 1.5; text-wrap: pretty; }

.mini { display: flex; flex-direction: column; gap: 14px; padding: 22px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 20px; }
.mini-steps { display: flex; gap: 10px; font-size: 12px; font-weight: 700; color: var(--muted); }
.mini-steps span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; }
.mini-steps .on { background: var(--blue); border-color: var(--blue); color: #FFFFFF; }
.mini-t { font-family: var(--f-head); font-weight: 600; font-size: 17px; }
.mini-btn { display: flex; align-items: center; justify-content: center; height: 46px; background: var(--blue); color: #FFFFFF; border-radius: 12px; font-weight: 700; font-size: 14px; }
.mini-field { display: flex; align-items: center; height: 46px; padding: 0 14px; border: 1px solid var(--blue); border-radius: 12px; font-size: 14px; color: var(--muted); }
.mini-sub { font-size: 14px; color: var(--muted); }
.mini-nft { display: flex; gap: 12px; align-items: center; }
.mini-nft .art { width: 56px; height: 56px; border-radius: 10px; font-size: 10px; }

.rule { display: flex; flex-direction: column; gap: 48px; }
.rule-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.rule-txt { display: flex; flex-direction: column; gap: 16px; font-size: 18px; line-height: 1.5; color: var(--text-2); }
.rule-txt p { text-wrap: pretty; }
.tls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.tl { display: flex; flex-direction: column; gap: 28px; padding: 36px; background: var(--t-bg); color: var(--t-fg); border-radius: 28px; }
.tl .bar { position: relative; height: 16px; border-radius: 8px; background: var(--t-track); }
.tl .fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p); border-radius: inherit; }
.tl .m { position: absolute; top: 50%; width: 28px; height: 28px; border-radius: 50%; border: 4px solid var(--t-bg); transform: translateY(-50%); }
.tl .m.s { left: 0; }
.tl .m.mid { left: var(--p); transform: translate(-50%, -50%); background: var(--orange); }
.tl .m.e { right: 0; background: var(--t-fg); }
.tl .lab { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 700; }
.tl .lab span:nth-child(2) { color: var(--t-orange); text-align: center; }
.tl .lab span:last-child { text-align: right; }

.faq-sec { display: flex; flex-direction: column; gap: 40px; }
.faq-sec > .h2 { position: sticky; top: 0; z-index: 2; margin: -20px 0 -16px; padding: 20px 0 16px; background: var(--bg); }
.faq-sec > .h2::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 28px; background: linear-gradient(var(--bg), transparent); pointer-events: none; }
.faq-list { display: flex; flex-direction: column; }
.faq { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 40px; padding: 28px 0; border-top: 1px solid var(--line); }
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq .q { font-family: var(--f-head); font-weight: 500; font-size: 20px; line-height: 1.3; }
.faq .a { font-size: 17px; line-height: 1.5; color: var(--text-2); text-wrap: pretty; }

.cta .big-t > .main { flex-direction: row; align-items: center; }

/* ---------- подвал ---------- */

.ftr { margin-top: 96px; padding-bottom: 56px; border-top: 1px solid var(--line); flex-shrink: 0; }
.ftr .wrap { display: flex; flex-direction: column; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.ftr-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.ftr-brand { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.ftr-brand p { max-width: 300px; font-size: 15px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.ftr-brand .ton { font-family: var(--f-head); font-weight: 500; font-size: 14px; color: var(--soft); }
.ftr-col { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.ftr-cap { font-family: var(--f-head); font-weight: 500; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--violet); }
.ftr-col a { font-size: 15px; font-weight: 600; color: var(--text-2); transition: color .15s; }
.ftr-col a:hover { color: var(--hover); }
.ftr-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--muted); }

/* ---------- получение NFT ---------- */

.claim { padding-top: 72px; }
.state { display: flex; flex-direction: column; gap: 20px; width: 100%; max-width: 920px; margin: 0 auto; }

.steps { display: flex; align-items: center; padding: 0 8px; }
.steps .s { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.steps .n { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); font-family: var(--f-head); font-size: 12px; transition: background .2s, border-color .2s; }
.steps .on { color: var(--fg); }
.steps .on .n { background: var(--blue); border-color: var(--blue); }
.steps .done .n { background: var(--surface); border-color: var(--line); color: var(--muted); }
.steps .line { flex-grow: 1; height: 1px; background: var(--line); margin: 0 16px; }

.claim .ticket { grid-template-columns: minmax(0, 1fr) 300px; }
.claim .main { display: flex; flex-direction: column; gap: 22px; padding: 44px 48px; }
.claim .main > .link { align-self: flex-start; }
.claim .stub { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: 40px 32px; }
.h1 { font-family: var(--f-head); font-weight: 700; font-size: 36px; line-height: 1.1; letter-spacing: -.025em; text-wrap: pretty; }
.p { font-size: 17px; line-height: 1.5; color: var(--t-text); text-wrap: pretty; }
.row-connect { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.kv .val { font-family: var(--f-head); font-weight: 600; font-size: 22px; }
.kv .val.muted { color: var(--muted); }
.art.ghosted { height: 160px; border-radius: 16px; opacity: .35; font-size: 14px; }

.wal { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: var(--t-input); border: 2px solid var(--blue); border-radius: 14px; font-weight: 700; font-size: 17px; }
.wal .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.wal .link { margin-left: auto; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 700; color: var(--t-text); }
.field input {
  width: 100%; height: 60px; padding: 0 20px;
  border: 2px solid var(--t-input-line); border-radius: 14px;
  background: var(--t-input); color: var(--t-fg);
  font-family: var(--f-body); font-size: 20px; font-weight: 600; letter-spacing: .08em;
  outline: none; transition: border-color .15s;
}
.field input::placeholder { color: var(--t-text); opacity: .45; }
.field input:focus { border-color: var(--blue); }
.field.bad input { border-color: var(--t-err); }
.field input[readonly] { cursor: not-allowed; }
.err { font-size: 15px; font-weight: 700; color: var(--t-err); }

.card { display: flex; flex-direction: column; background: var(--bg); color: var(--fg); border-radius: 20px; padding: 10px; }
.card .art { height: 200px; border-radius: 14px; font-size: 14px; }
.card .cmeta { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; padding: 14px 6px 6px; font-size: 12px; white-space: nowrap; }
.card .cmeta .u { font-weight: 500; }
.card .cmeta .no { font-weight: 600; color: var(--muted); }
.card.dim { opacity: .6; }
.sending { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--t-violet); }
.spin { width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.done-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.bignum { font-family: var(--f-head); font-weight: 700; font-size: 40px; line-height: 1; letter-spacing: -.03em; }
.done-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 16px; }
.done-links .link { font-size: 14px; white-space: nowrap; }

/* ---------- кабинет ---------- */

.acc { padding-top: 64px; display: flex; flex-direction: column; gap: 64px; }
.sec { display: flex; flex-direction: column; gap: 28px; }
.acc .h2 { font-size: clamp(32px, 2.78vw, 40px); }
.hist-h { padding-top: 24px; }

.nft { grid-template-columns: clamp(200px, 18vw, 260px) minmax(0, 1fr) clamp(250px, 20.8vw, 300px); }
.nft > .artc { padding: 24px 0 24px 24px; }
.nft .artc .art { height: 236px; border-radius: 18px; font-size: 14px; }
.nft > .main { display: flex; flex-direction: column; gap: 18px; padding: 32px 40px; }
.prog { display: flex; flex-direction: column; gap: 12px; }
.prog .u { font-weight: 600; font-size: 24px; }
.bar { position: relative; height: 12px; border-radius: 6px; background: var(--t-track); }
.bar .fill { position: absolute; left: 0; top: 0; width: var(--p); height: 100%; border-radius: inherit; background: var(--blue); }
.nft .p { font-size: 16px; }
.nft .p.strong { font-weight: 700; color: var(--t-fg); }
.nft > .stub { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 32px; }
.nft .kv .date { font-size: clamp(20px, 1.67vw, 24px); white-space: nowrap; }
.nft .num { font-family: var(--f-head); font-weight: 700; font-size: clamp(38px, 3.3vw, 48px); line-height: 1; letter-spacing: -.03em; white-space: nowrap; }

.hist-empty { display: flex; flex-direction: column; gap: 12px; padding: 40px; border: 1px dashed var(--line); border-radius: 24px; }
.hist-empty .u { font-weight: 600; font-size: 22px; }
.hist-empty .sub { font-size: 16px; color: var(--muted); }
.hist { display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: 200px 180px 140px 160px minmax(0, 1fr); gap: 24px; align-items: center; padding: 20px 0; border-top: 1px solid var(--line); font-size: 16px; font-weight: 600; }
.row.head { border-top: 0; padding-top: 0; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.row:last-child { border-bottom: 1px solid var(--line); }
.row .amt { font-family: var(--f-head); font-weight: 600; color: var(--orange); }
.row .st { display: inline-flex; align-items: center; gap: 8px; color: var(--ok); }
.row .st i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.row a { justify-self: end; color: var(--soft); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- прототип: панель экранов и подсказка ---------- */

.proto-btn {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 16px;
  background: var(--surface); color: var(--fg);
  border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--f-body); font-weight: 700; font-size: 14px; cursor: pointer;
  box-shadow: 0 10px 30px var(--shadow);
}
.proto-btn:hover { border-color: var(--blue); }
.proto-panel {
  position: fixed; right: 16px; bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 60;
  display: flex; flex-direction: column; gap: 14px;
  width: min(330px, calc(100vw - 32px)); max-height: min(74vh, 680px); overflow: auto;
  padding: 16px 12px;
  background: var(--surface); color: var(--fg);
  border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 24px 60px var(--shadow);
}
.pp-group { display: flex; flex-direction: column; gap: 2px; }
.pp-cap { padding: 0 8px 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.pp-group a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.pp-group a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line); flex-shrink: 0; }
.pp-group a:hover { background: var(--bg); color: var(--fg); }
.pp-group a[aria-current="page"] { color: var(--fg); }
.pp-group a[aria-current="page"]::before { background: var(--blue); }
.pp-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 8px 0; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); }
.pp-link { padding: 0; border: 0; background: none; cursor: pointer; font-family: var(--f-body); font-weight: 700; font-size: 13px; color: var(--fg); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

.toast {
  position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 70;
  max-width: calc(100vw - 32px); padding: 12px 18px;
  background: var(--fg); color: var(--bg); border-radius: 12px;
  font-size: 14px; font-weight: 700; text-align: center;
  opacity: 0; pointer-events: none; transform: translate(-50%, 12px);
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- движение ----------
   Класс .motion ставит скрипт в <head>, если в системе не включено «уменьшить движение».
   Без него страница статична и всё видно сразу. */

:root { --ease: cubic-bezier(.2, .7, .2, 1); }

@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes swap { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes art-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { transform: scale(.6); } to { transform: none; } }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
@keyframes marquee { to { transform: translateX(-50%); } }

.motion .track { animation: marquee var(--mq-dur, 46s) linear infinite; will-change: transform; }
@media (hover: hover) { .motion .band:hover .track { animation-play-state: paused; } }

.motion .hdr { animation: fade .6s ease both; }
.motion .hero .ticket { animation: rise .8s var(--ease) both; }
.motion .hero .main > .art { animation: art-in 1s var(--ease) .12s both; }
.motion .hero-txt > *, .motion .hero .kv, .motion .hero .cta-col { animation: rise .7s var(--ease) both; }
.motion .hero-txt > :nth-child(1) { animation-delay: .22s; }
.motion .hero-txt > :nth-child(2) { animation-delay: .3s; }
.motion .hero-txt > :nth-child(3) { animation-delay: .38s; }
.motion .hero .kv:first-child { animation-delay: .3s; }
.motion .hero .kv:last-child { animation-delay: .4s; }
.motion .hero .cta-col { animation-delay: .5s; }
.motion .marquee { animation: rise .9s var(--ease) .55s both; }

.motion [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.motion [data-reveal].in { opacity: 1; transform: none; }
.motion .tl .fill { transition: width 1.3s var(--ease) .3s; }
.motion .tl .m.mid { transition: left 1.3s var(--ease) .3s; }
.motion .tl:not(.in) .fill { width: 0; }
.motion .tl:not(.in) .m.mid { left: 14px; }
.motion .nft .bar .fill { transition: width 1.2s var(--ease) .35s; }
.motion .nft:not(.in) .bar .fill { width: 0; }

.motion .state { animation: rise .7s var(--ease) .1s both; }
.motion .ticket.enter { animation: swap .45s var(--ease) both; }
.motion .steps .on .n { animation: pop .45s var(--ease); }
.motion .field.shake input { animation: shake .4s ease; }
.motion .card { transition: opacity .4s ease; }

.motion .btn:hover, .motion .btn2:hover { transform: translateY(-2px); }
.motion .btn:active, .motion .btn2:active, .motion .btn:disabled { transform: none; }
.motion .mmenu:not([hidden]) { animation: drop .22s var(--ease); }
.motion .proto-panel:not([hidden]) { animation: drop .2s var(--ease); }

/* ---------- ноутбуки ---------- */

@media (min-width: 1024px) and (max-width: 1439px) {
  .hero .main { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); }
  .how { grid-template-columns: 340px minmax(0, 1fr); column-gap: 48px; }
  .hrow { grid-template-columns: 80px minmax(0, 1fr) 300px; }
  .mini-steps { gap: 6px; font-size: 11px; }
  .mini-steps span { padding: 5px 8px; }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  :root { --gut: 40px; }
  .hdr-in { gap: 16px; }
  .nav { gap: 22px; }
  .hero .main { gap: 32px; padding: 40px; }
  .hero .stub { padding: 40px 32px; }
  .how { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; grid-template-areas: "h b" "rows rows"; align-items: end; row-gap: 40px; }
  .hrow { grid-template-columns: 76px minmax(0, 1fr) 320px; }
  .tls { grid-template-columns: minmax(0, 1fr); }
  .faq { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .row { grid-template-columns: 170px 150px 110px 140px minmax(0, 1fr); gap: 16px; }
}

/* ---------- телефон и планшет ---------- */

@media (max-width: 1023px) {
  :root { --gut: 16px; }
  .wrap { max-width: 752px; }
  .d-only { display: none !important; }

  .hdr-in { height: 64px; gap: 8px; }
  .hdr .logo { gap: 10px; }
  .hdr .logo i { width: 30px; height: 30px; border-radius: 9px; }
  .hdr .logo span { font-size: 15px; }
  .hdr-r { gap: 6px; }
  .hdr .ghost { height: 44px; padding: 0 14px; font-size: 13px; }
  .wallet { height: 44px; gap: 10px; padding: 0 12px; font-size: 13px; }

  .btn, .btn2 { height: 56px; padding: 0 20px; font-size: 16px; }
  .btn.lg, .btn.xl { height: 58px; font-size: 17px; }
  .cap { font-size: 12px; }

  .ticket { --nr: 16px; display: flex; flex-direction: column; border-radius: 24px; }
  .ticket > .main { border-right: 0; border-bottom: 2px dashed var(--t-dash); }
  .notched > .stub::before, .notched > .stub::after { display: none; }
  .m-notch > .stub::before, .m-notch > .stub::after { display: block; top: calc(-1px - var(--nr)); bottom: auto; }
  .m-notch > .stub::before { left: calc(-1 * var(--nr)); }
  .m-notch > .stub::after { left: auto; right: calc(-1 * var(--nr)); }

  .big-t > .main { gap: 14px; padding: 24px 20px; }
  .big-t > .stub { display: block; padding: 20px; }
  .big-t .h2 { font-size: 24px; }
  .big-t .addr { font-size: 16px; }

  /* главная */
  .hero { padding-top: 12px; }
  .hero .ticket { min-height: 0; border-radius: 24px; }
  .hero .main { display: flex; flex-direction: column; align-items: stretch; gap: 18px; padding: 20px 20px 24px; }
  .hero .main > .art { align-self: auto; min-height: 0; height: 240px; border-radius: 16px; }
  .hero-txt { gap: 18px; }
  .meta { gap: 10px; font-size: 12px; }
  .meta i { width: 5px; height: 5px; }
  .hero h1 { font-size: 27px; line-height: 1.12; }
  .hero .lead { font-size: 15px; }
  .hero .stub { justify-content: flex-start; gap: 20px; padding: 24px 20px 20px; }
  .hs-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
  .kv { gap: 6px; }
  .hero .kv .date { font-size: 22px; }
  .hero .kv .num { font-size: 36px; }
  .cta-col { gap: 10px; }

  .marquee { height: 104px; margin-top: 32px; --mq-dur: 38s; }
  .band { left: -8%; width: 116%; top: 20px; height: 64px; transform: rotate(-4deg); }
  .track { font-size: 18px; }
  .set { gap: 18px; padding-right: 18px; }
  .track .lbl { font-size: 12px; }
  .track i { width: 8px; height: 8px; }

  .sec-pad { padding-top: 72px; }
  .g20 { padding-left: 20px; padding-right: 20px; }
  .h2 { font-size: 28px; line-height: 1.12; }

  .how { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "h" "rows" "b"; row-gap: 24px; }
  .how > .btn { justify-self: stretch; }
  .how-rows { gap: 0; }
  .hrow { display: flex; flex-direction: column; align-items: stretch; gap: 16px; padding: 24px 0; }
  .hrow .n { font-size: 34px; }
  .hrow p { font-size: 16px; }
  .mini { gap: 12px; padding: 18px; border-radius: 18px; }
  .mini-steps { gap: 6px; font-size: 11px; }
  .mini-steps span { padding: 5px 8px; }
  .mini-t { font-size: 15px; }
  .mini-btn, .mini-field { height: 44px; }
  .mini-nft .art { width: 48px; height: 48px; font-size: 9px; }

  .rule { gap: 24px; }
  .rule-top { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .rule-txt { gap: 14px; font-size: 16px; }
  .tls { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tl { gap: 20px; padding: 24px 20px; border-radius: 20px; }
  .tl .bar { height: 12px; border-radius: 6px; }
  .tl .m { width: 24px; height: 24px; }
  .tl .lab { gap: 8px; font-size: 11px; }

  .faq-sec { gap: 20px; }
  .faq-sec > .h2 { margin: -14px 0 -12px; padding: 14px 0 12px; }
  .faq-sec > .h2::after { height: 20px; }
  .faq { display: flex; flex-direction: column; gap: 10px; padding: 20px 0; }
  .faq .q { font-size: 17px; }
  .faq .a { font-size: 15px; }

  .cta .big-t > .main { min-height: 144px; padding: 0 20px; }

  .ftr { margin-top: 64px; }
  .ftr .wrap { gap: 32px; padding: 40px 20px 32px; }
  .ftr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .ftr-brand { grid-column: 1 / -1; }
  .ftr-bottom { flex-direction: column; gap: 8px; padding-top: 20px; font-size: 13px; }

  /* получение */
  .claim { padding-top: 48px; }
  .state { gap: 16px; }
  .steps { justify-content: space-between; padding: 0 4px; }
  .steps .s { flex-direction: column; gap: 6px; font-size: 11px; }
  .steps .n { width: 28px; height: 28px; font-size: 11px; }
  .steps .line { margin: 0 8px 20px; }
  .claim .main { gap: 16px; padding: 24px 20px; }
  .claim .stub { justify-content: flex-start; gap: 14px; padding: 20px; }
  .h1 { font-size: 26px; line-height: 1.12; }
  .p { font-size: 15px; }
  .wal { gap: 12px; padding: 14px 16px; font-size: 15px; }
  .field input { height: 56px; padding: 0 16px; font-size: 18px; }
  .err { font-size: 14px; }
  .card { border-radius: 18px; padding: 8px; }
  .card .art { border-radius: 12px; font-size: 13px; }
  .card.tall .art { height: 240px; }
  .card .cmeta { padding: 12px 6px 4px; font-size: 12px; }

  /* кабинет */
  .acc { padding-top: 48px; gap: 48px; }
  .sec { gap: 20px; }
  .acc .h2 { font-size: 28px; }
  .acc .big-t .h2 { font-size: 24px; }
  .hist-h { padding-top: 16px; }
  .nft > .artc { padding: 16px 16px 0; }
  .nft .artc .art { height: 180px; border-radius: 14px; font-size: 13px; }
  .nft > .main { gap: 14px; padding: 14px 16px 22px; }
  .nft .meta { font-size: 12px; }
  .prog { gap: 14px; }
  .prog .u { font-size: 20px; }
  .bar { height: 10px; border-radius: 5px; }
  .nft .p { font-size: 15px; }
  .nft > .stub { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 18px 16px 20px; }
  .nft .kv .date { font-size: 20px; white-space: normal; }
  .nft .num { font-size: 34px; }
  .hist-empty { gap: 10px; padding: 24px 20px; border-radius: 20px; }
  .hist-empty .u { font-size: 18px; }
  .hist-empty .sub { font-size: 15px; }
  .row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; padding: 16px 0; font-size: 15px; }
  .row.head { display: none; }
  .row .nno { color: var(--muted); }
  .row .st { font-size: 13px; }
  .row .st i { width: 7px; height: 7px; }
  .row a { grid-column: 1 / 3; justify-self: start; font-size: 13px; }
}

@media (max-width: 1023px) {
  .proto-btn { width: 44px; padding: 0; justify-content: center; }
  .proto-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

@media (max-width: 379px) {
  .hdr .ghost { padding: 0 10px; font-size: 12px; }
  .hdr .logo span { font-size: 14px; }
  .hero h1 { font-size: 24px; }
  .hero .kv .num { font-size: 30px; }
  .h1 { font-size: 23px; }
  .mini-steps { gap: 4px; font-size: 10px; }
  .mini-steps span { padding: 4px 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spin { animation-duration: 2.4s; }
  .toast { transition: none; }
}
