/* Layout: приложение на весь экран телефона в стиле iOS 26: «жидкое стекло» поверх плывущих
   тёплых пятен, плавающая стеклянная панель вкладок, капсульные кнопки. Чёрный + золото — деньги и главное.
   Одна светлая тема сознательно: стекло лучше всего читается на светлом фоне. */
:root {
  --ink: #0B0B0C;
  --ink-2: #3A3A3F;
  --muted: #6C6C72;
  --bg: #EFEDE8;
  --gold: #FFC800;
  --gold-deep: #E0A800;
  --green: #0F8A3E;
  --red: #D42A1E;
  --l1: #FFC800;
  --l2: #FF7A2F;
  --l3: #8E7CFF;
  --glass: rgba(255,255,255,.56);
  --glass-strong: rgba(255,255,255,.8);
  --glass-edge: rgba(255,255,255,.88);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Onest", "Segoe UI", system-ui, sans-serif;
  --r: 26px;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.45 var(--font); -webkit-font-smoothing: antialiased; touch-action: manipulation; overscroll-behavior: none; }
body.app-body { overflow: hidden; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; text-wrap: balance; letter-spacing: -.035em; font-weight: 800; }
p { margin: 0; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #0A84FF; outline-offset: 2px; border-radius: 14px; }
.num { font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: 520px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* ---------- Плывущий фон ---------- */
.aura { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aura i { position: absolute; border-radius: 50%; filter: blur(60px); animation: drift 24s ease-in-out infinite alternate; }
.aura i:nth-child(1) { width: 70vmax; height: 70vmax; background: #FFD43B; left: -30vmax; top: -34vmax; opacity: .8; }
.aura i:nth-child(2) { width: 55vmax; height: 55vmax; background: #FF8A3D; right: -30vmax; top: 22vh; opacity: .5; animation-duration: 30s; }
.aura i:nth-child(3) { width: 60vmax; height: 60vmax; background: #B3A6FF; left: -10vmax; bottom: -40vmax; opacity: .55; animation-duration: 34s; }
@keyframes drift { to { transform: translate(6vmax, 5vmax) scale(1.1); } }

/* ---------- Стекло ---------- */
.glass, .tabbar .wrap, .say, .seg, .line, .share-card, .drv, .empty, .install, .chip, .invited, .icon-btn, .btn.ghost, .field input, .sheet .row, .steps-ios li, .doc {
  background: var(--glass);
  -webkit-backdrop-filter: blur(26px) saturate(190%); backdrop-filter: blur(26px) saturate(190%);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.95), 0 14px 34px -18px rgba(40,30,0,.3);
}

/* ---------- Каркас ---------- */
.app { position: relative; z-index: 1; height: 100vh; height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; }
.top { padding-top: env(safe-area-inset-top, 0px); }
.top .wrap { display: flex; align-items: center; gap: 10px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.03em; text-decoration: none; min-width: 0; }
.logo-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--ink); display: grid; place-items: center; flex: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 6px 14px -6px rgba(0,0,0,.5); }
.logo-mark svg { width: 22px; height: 22px; }
.logo-mark svg path, .logo-mark svg rect { fill: var(--gold); }
.icon-btn { margin-left: auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; flex: none; }
.icon-btn svg { width: 21px; height: 21px; }

.stage { position: relative; min-height: 0; overflow: hidden; }
.screen { position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; padding-block: 12px; animation: in .45s cubic-bezier(.2,.9,.2,1); }
.screen > .wrap { margin-block: auto; display: flex; flex-direction: column; gap: 14px; }
@keyframes in { from { opacity: 0; transform: translateY(12px) scale(.985); filter: blur(5px); } }

/* Плавающая стеклянная панель вкладок */
.tabbar { padding: 6px 0 calc(10px + env(safe-area-inset-bottom, 0px)); }
.tabbar .wrap { max-width: 400px; width: calc(100% - 32px); padding: 5px; border-radius: 999px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.tabbar button { border: 0; background: none; border-radius: 999px; padding: 7px 0 6px; display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 12px; font-weight: 700; color: var(--ink-2); cursor: pointer; transition: background .25s, color .25s, transform .2s; }
.tabbar button:active { transform: scale(.94); }
.tabbar .ti { display: grid; place-items: center; }
.tabbar svg { width: 25px; height: 25px; }
.tabbar button[aria-current="page"] { background: rgba(255,255,255,.95); color: var(--ink); box-shadow: 0 4px 12px -4px rgba(0,0,0,.22), inset 0 1px 0 #fff; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer; background: var(--gold); color: var(--ink); font-weight: 700; font-size: 18px; line-height: 1.1; padding: 17px 24px; border-radius: 999px; text-decoration: none; min-height: 56px; text-align: center; box-shadow: 0 12px 24px -12px rgba(224,168,0,.9), inset 0 1px 0 rgba(255,255,255,.6); transition: transform .18s cubic-bezier(.3,1.5,.5,1); }
.btn:active { transform: scale(.96); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.dark { background: var(--ink); color: #fff; box-shadow: 0 12px 24px -12px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.18); }
.btn.ghost { color: var(--ink); }
.btn.wide { width: 100%; }
.btn.small { min-height: 46px; padding: 11px 18px; font-size: 16px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link { background: none; border: 0; padding: 8px; font-weight: 600; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 16px; }
.center { text-align: center; }

/* ---------- Главная ---------- */
.chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #34C759; animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(52,199,89,.55); } 70% { box-shadow: 0 0 0 9px rgba(52,199,89,0); } 100% { box-shadow: 0 0 0 0 rgba(52,199,89,0); } }
.hero h1 { font-size: clamp(36px, 10.4vw, 52px); }
.hero h1 .hl { background: linear-gradient(100deg, #B37800, #FFB800 45%, #FF6A1F); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--ink-2); font-size: 18px; margin-top: 10px; }
.ladder { background: linear-gradient(160deg, #1C1C1F, #0B0B0C); color: #fff; border-radius: var(--r); padding: 12px; display: grid; gap: 6px; box-shadow: 0 22px 40px -20px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.12); }
.rung { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 16px; background: rgba(255,255,255,.07); animation: rung .5s both; }
.rung:nth-child(2) { animation-delay: .1s; }
.rung:nth-child(3) { animation-delay: .2s; }
@keyframes rung { from { opacity: 0; transform: translateY(8px); } }
.rung .t { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: var(--ink); }
.rung span { font-size: 15px; color: #B9B9C0; font-weight: 600; }
.rung b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; background: linear-gradient(100deg, #FFE58A, #FFC800 50%, #FF9A3D); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Бонусы ---------- */
.title { font-size: clamp(28px, 8vw, 36px); }
.chain { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 18px 8px 14px; border-radius: var(--r); background: var(--glass); -webkit-backdrop-filter: blur(26px) saturate(190%); backdrop-filter: blur(26px) saturate(190%); border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 1px #fff, 0 14px 34px -18px rgba(40,30,0,.3); }
.person { text-align: center; opacity: .3; filter: grayscale(1); transition: opacity .45s, filter .45s; }
.person.on { opacity: 1; filter: none; }
.person.new .face { animation: pop .6s cubic-bezier(.3,1.6,.5,1); }
@keyframes pop { from { transform: scale(.3); } }
.person .face { width: 58px; height: 58px; max-width: 100%; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 21px; background: #fff; box-shadow: 0 8px 18px -8px rgba(0,0,0,.35); }
.person.me .face { background: var(--ink); color: var(--gold); }
.person .who { font-size: 13px; margin-top: 6px; color: var(--ink-2); font-weight: 700; }
.person .got { margin-top: 6px; min-height: 28px; }
.coin { display: inline-block; background: var(--gold); color: var(--ink); font-weight: 800; font-size: 12px; padding: 6px 8px; border-radius: 999px; white-space: nowrap; box-shadow: 0 6px 12px -6px rgba(224,168,0,.9); animation: drop .55s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes drop { from { opacity: 0; transform: translateY(-14px) scale(.5); } }
.say { border-radius: var(--r); padding: 16px 18px; min-height: 140px; }
.say .stepno { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.say h3 { font-size: 21px; margin-top: 6px; letter-spacing: -.025em; }
.say p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }
.say p b { color: var(--ink); }
.dots { display: flex; gap: 7px; justify-content: center; }
.dots i { width: 8px; height: 8px; border-radius: 99px; background: rgba(0,0,0,.18); transition: all .3s; }
.dots i.on { background: var(--ink); width: 26px; }
.row2 { display: grid; grid-template-columns: 1fr 1.8fr; gap: 10px; }

/* ---------- Формы ---------- */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: 999px; padding: 4px; }
.seg button { border: 0; background: none; border-radius: 999px; padding: 11px 6px; font-weight: 700; font-size: 16px; cursor: pointer; color: var(--ink-2); transition: background .25s, color .25s; }
.seg button[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: 0 6px 14px -6px rgba(0,0,0,.5); }
.seg.three { grid-template-columns: repeat(3, 1fr); }
.form { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-weight: 700; font-size: 15px; color: var(--ink-2); padding-left: 6px; }
.field input { font: 600 19px var(--font); padding: 14px 18px; border-radius: 18px; color: var(--ink); width: 100%; min-height: 56px; background: rgba(255,255,255,.72); }
.field input:focus { outline: none; border-color: #0A84FF; box-shadow: 0 0 0 4px rgba(10,132,255,.18); }
.field input::placeholder { color: #A5A5AC; font-weight: 500; }
.pin { letter-spacing: .5em; }
.hint { font-size: 14px; color: var(--muted); padding-left: 6px; }
.invited { display: flex; align-items: center; gap: 10px; border-radius: 18px; padding: 12px 14px; font-size: 15px; }
.invited svg circle { fill: var(--gold); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); cursor: pointer; line-height: 1.35; padding-left: 4px; }
.check input { width: 24px; height: 24px; accent-color: var(--ink); flex: none; margin: 0; }
.err { background: rgba(212,42,30,.1); color: var(--red); font-weight: 700; padding: 12px 16px; border-radius: 16px; font-size: 15px; }

/* ---------- Успех ---------- */
.done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.big-ok { width: 104px; height: 104px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; animation: pop .8s cubic-bezier(.3,1.6,.5,1); box-shadow: 0 18px 30px -14px rgba(0,0,0,.6); }
.big-ok path { stroke: var(--gold); }
.done h2 { font-size: 32px; }
.done p { color: var(--ink-2); }

/* ---------- Кабинет ---------- */
.me-card { display: flex; align-items: center; gap: 12px; }
.me-card > div { min-width: 0; }
.av { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; font-weight: 800; font-size: 20px; flex: none; box-shadow: 0 8px 16px -8px rgba(0,0,0,.5); }
.me-card h2 { font-size: 23px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin-top: 5px; }
.status.new { background: rgba(255,200,0,.28); color: #6B5200; }
.status.active { background: rgba(52,199,89,.18); color: #0D6E31; }
.money { background: linear-gradient(160deg, #1C1C1F, #0B0B0C); color: #fff; border-radius: var(--r); padding: 18px 20px; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; box-shadow: 0 22px 40px -20px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.12); }
.money small { display: block; color: #A1A1A8; font-size: 14px; font-weight: 600; }
.money .big { font-size: clamp(32px, 9.4vw, 42px); font-weight: 800; line-height: 1.05; letter-spacing: -.04em; background: linear-gradient(100deg, #FFE58A, #FFC800 50%, #FF9A3D); -webkit-background-clip: text; background-clip: text; color: transparent; }
.money .side { text-align: right; }
.money-note { grid-column: 1 / -1; font-size: 12px; line-height: 1.35; color: #8E8E95; margin-top: 4px; }
.money .side b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.line { border-radius: 22px; padding: 12px; cursor: pointer; text-align: left; min-width: 0; transition: transform .18s cubic-bezier(.3,1.5,.5,1); }
.line:active { transform: scale(.95); }
/* Приглашённые с прогрессом к цели */
.friends { display: flex; flex-direction: column; gap: 8px; }
.fr-h { font-weight: 800; font-size: 15px; margin: 2px 4px 0; }
.fr { background: var(--glass); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); border: 1px solid rgba(255,255,255,.7); border-radius: 20px; padding: 12px 14px; }
.fr-top { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.fr-top span { font-weight: 800; }
.fr-bar { height: 10px; border-radius: 99px; background: rgba(0,0,0,.08); overflow: hidden; margin: 8px 0 6px; }
.fr-bar i { display: block; height: 100%; border-radius: 99px; transition: width .8s cubic-bezier(.2,.8,.2,1); min-width: 6px; }
.fr.lo .fr-bar i { background: linear-gradient(90deg, #FF7A45, #FF9F45); }
.fr.mid .fr-bar i { background: linear-gradient(90deg, #FFC21A, #FFD84D); }
.fr.hi .fr-bar i { background: linear-gradient(90deg, #8BD448, #2DBE60); }
.fr.won .fr-bar i { background: linear-gradient(90deg, #1FAF55, #0F8A3E); }
.fr.off { opacity: .55; } .fr.off .fr-bar i { background: #A8A8AE; }
.fr.hi .fr-top span, .fr.won .fr-top span { color: var(--green); }
.fr-sub { font-size: 13px; color: var(--ink-2); }
.remind { background: #FFF1C2; border: 1px solid #FFD84D; border-radius: 18px; padding: 12px 14px; font-size: 14px; line-height: 1.4; }
.line .lab { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; color: var(--muted); white-space: nowrap; }
.line .lab i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.line .n { font-size: 30px; font-weight: 800; letter-spacing: -.04em; margin-top: 2px; }
.line .s { font-size: 12px; color: var(--muted); font-weight: 600; }
.share-card { border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.share-card .code { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 4px; }
.share-card .code span { font-size: 14px; color: var(--muted); font-weight: 600; }
.share-card .code b { font-size: 24px; font-weight: 800; letter-spacing: .08em; }
.send { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.send a { min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.send a:active { transform: scale(.96); }
.send a svg { width: 20px; height: 20px; }
.send .tg { background: #229ED9; }
.send .wa { background: #25B35A; }

/* ---------- Мои водители ---------- */
.list { display: flex; flex-direction: column; gap: 8px; }
.drv { border-radius: 22px; padding: 13px 16px; display: flex; flex-direction: column; gap: 7px; }
.drv .r { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.drv .nm { font-weight: 700; font-size: 17px; }
.drv .from { font-size: 13px; color: var(--muted); }
.drv .st { font-weight: 800; font-size: 15px; white-space: nowrap; color: var(--muted); }
.drv .st.ok { color: var(--green); }
.bar { height: 9px; background: rgba(0,0,0,.08); border-radius: 99px; overflow: hidden; }
.bar div { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #FFB800, #FF7A2F); width: 0; transition: width 1s cubic-bezier(.2,.8,.2,1); }
.bar.ok div { background: linear-gradient(90deg, #34C759, #0F8A3E); }
.drv .trips { font-size: 14px; color: var(--muted); font-weight: 600; }
.empty { text-align: center; color: var(--muted); padding: 26px 14px; border-radius: var(--r); }
.empty b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }

/* ---------- Установка ---------- */
.install { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border-radius: 22px; padding: 12px 14px; cursor: pointer; }
.install .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--ink); color: var(--gold); display: grid; place-items: center; flex: none; }
.install .ic svg { width: 22px; height: 22px; }
.install b { display: block; font-size: 16px; }
.install span { font-size: 13px; color: var(--muted); }

/* ---------- Шторка ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.28); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: calc(100% - 16px); max-width: 520px; margin-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); background: rgba(250,249,246,.86); -webkit-backdrop-filter: blur(30px) saturate(190%); backdrop-filter: blur(30px) saturate(190%); border: 1px solid var(--glass-edge); border-radius: 34px; padding: 10px 18px 18px; display: flex; flex-direction: column; gap: 12px; animation: up .45s cubic-bezier(.3,1.2,.5,1); max-height: 90dvh; overflow-y: auto; box-shadow: 0 30px 60px -20px rgba(0,0,0,.4); }
@keyframes up { from { transform: translateY(110%); } }
.sheet .grab { width: 40px; height: 5px; border-radius: 9px; background: rgba(0,0,0,.18); margin: 0 auto 4px; }
.sheet h3 { font-size: 24px; }
.sheet .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 20px; }
.sheet .row span { color: var(--muted); font-size: 14px; }
.sheet .row b { font-size: 17px; white-space: nowrap; }
.steps-ios { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; counter-reset: s; }
.steps-ios li { display: flex; gap: 12px; align-items: center; border-radius: 20px; padding: 12px 14px; font-size: 16px; }
.steps-ios li::before { counter-increment: s; content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--gold); font-weight: 800; font-size: 14px; line-height: 30px; text-align: center; flex: none; }
.steps-ios svg { width: 22px; height: 22px; vertical-align: -5px; color: #0A84FF; }
.docs { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; font-size: 14px; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 10px); opacity: 0; pointer-events: none; background: rgba(20,20,22,.88); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: #fff; padding: 13px 22px; border-radius: 999px; font-weight: 700; z-index: 100; transition: opacity .25s, transform .3s cubic-bezier(.3,1.4,.5,1); white-space: nowrap; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 99; width: 100%; height: 100%; }
.spin { width: 22px; height: 22px; border: 3px solid rgba(0,0,0,.2); border-top-color: currentColor; border-radius: 50%; animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

@media (max-height: 700px) {
  .hero h1 { font-size: clamp(30px, 9vw, 42px); }
  .hero p { font-size: 16px; margin-top: 8px; }
  .rung { padding: 6px 10px; }
  .screen > .wrap { gap: 11px; }
}
@media (max-width: 360px) {
  .line .n { font-size: 24px; }
  .person .face { width: 48px; height: 48px; font-size: 17px; }
  .coin { font-size: 10px; padding: 5px 6px; }
}

/* ---------- Путь водителя: шаги ---------- */
.journey { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.journey span { font-size: 12px; font-weight: 800; text-align: center; padding: 8px 4px; border-radius: 999px; background: rgba(255,255,255,.55); color: var(--muted); border: 1px solid var(--glass-edge); }
.journey span.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.journey span.done { background: rgba(52,199,89,.2); color: #0D6E31; }
.sticky-cta { position: sticky; bottom: 0; padding-top: 10px; margin-top: 2px; background: linear-gradient(rgba(239,237,232,0), var(--bg) 40%); z-index: 2; }

/* ---------- Счётчики парка ---------- */
.stats-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat-p { border-radius: 20px; padding: 10px 14px; background: var(--glass); -webkit-backdrop-filter: blur(26px); backdrop-filter: blur(26px); border: 1px solid var(--glass-edge); }
.stat-p b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.stat-p span { font-size: 12px; color: var(--muted); font-weight: 700; }

/* ---------- Калькулятор ---------- */
.calc { border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(160deg, #1C1C1F, #0B0B0C); color: #fff; box-shadow: 0 22px 40px -20px rgba(0,0,0,.6); }
.calc .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 700; color: #C9C9CF; font-size: 15px; }
.calc .row b { color: #fff; font-size: 18px; }
.calc input[type=range] { width: 100%; accent-color: var(--gold); height: 28px; }
.calc .total { font-size: clamp(34px, 10vw, 46px); font-weight: 800; letter-spacing: -.04em; background: linear-gradient(100deg, #FFE58A, #FFC800 50%, #FF9A3D); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.calc small { color: #8E8E95; font-size: 12px; }

/* ---------- Ранг ---------- */
.rank { border-radius: 22px; padding: 12px 14px; display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; background: var(--glass); -webkit-backdrop-filter: blur(26px); backdrop-filter: blur(26px); border: 1px solid var(--glass-edge); text-align: left; width: 100%; cursor: pointer; }
.rank .medal { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.15), 0 6px 14px -6px rgba(0,0,0,.4); }
.rank b { font-size: 17px; }
.rank span { font-size: 13px; color: var(--muted); font-weight: 600; }
.rank .bar { margin-top: 6px; }

/* ---------- Подключение: карточка в кабинете ---------- */
.connect-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; border-radius: 22px; padding: 14px 16px; cursor: pointer; background: var(--gold); color: var(--ink); box-shadow: 0 12px 24px -12px rgba(224,168,0,.9), inset 0 1px 0 rgba(255,255,255,.6); }
.connect-card.ok { background: rgba(52,199,89,.18); box-shadow: none; border: 1px solid rgba(52,199,89,.35); }
.connect-card b { display: block; font-size: 17px; }
.connect-card span { font-size: 14px; font-weight: 600; opacity: .8; }
.connect-card .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--ink); color: var(--gold); display: grid; place-items: center; flex: none; font-size: 20px; }

/* ---------- Подключение: мастер ---------- */
.c-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.c-top b { font-size: 22px; letter-spacing: -.02em; }
.c-top span { font-size: 14px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.prog { height: 8px; border-radius: 99px; background: rgba(0,0,0,.08); overflow: hidden; }
.prog div { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #FFB800, #FF7A2F); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.doc-frame { position: relative; border-radius: 24px; aspect-ratio: 1.58; max-width: 100%; width: 100%; display: grid; place-items: center; overflow: hidden; border: 2px dashed rgba(0,0,0,.25); background: rgba(255,255,255,.5); }
.doc-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.doc-frame .ph { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px; }
.doc-frame .ph svg { width: 88px; height: 64px; }
.doc-frame .ph b { font-size: 18px; }
.doc-frame .scan { position: absolute; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--gold), transparent); box-shadow: 0 0 18px 4px rgba(255,200,0,.6); animation: scan 1.4s ease-in-out infinite alternate; top: 0; }
@keyframes scan { to { top: calc(100% - 3px); } }
.doc-frame .veil { position: absolute; inset: 0; background: rgba(255,255,255,.45); display: grid; place-items: center; font-weight: 800; }
.doc-dots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.doc-dots span, .doc-dots button { font: 700 11px var(--font); color: var(--muted); text-align: center; padding: 7px 2px; border-radius: 10px; background: rgba(255,255,255,.5); border: 0; cursor: pointer; }
.doc-dots .done { background: rgba(52,199,89,.2); color: #0D6E31; }
.doc-dots .done::after { content: " ✓"; }
.doc-dots .cur { background: var(--ink); color: #fff; }
.doc-dots button:disabled { cursor: default; opacity: .7; }
.thumbs-u { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.thumbs-u .t { display: flex; flex-direction: column; gap: 4px; align-items: stretch; }
.thumbs-u .im { aspect-ratio: 4/3; max-width: 100%; border-radius: 12px; overflow: hidden; background: rgba(0,0,0,.06); }
.thumbs-u img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs-u span { font-size: 10px; font-weight: 700; color: var(--muted); text-align: center; }
.thumbs-u button { border: 0; border-radius: 999px; padding: 6px 2px; font: 700 11px var(--font); background: var(--ink); color: #fff; cursor: pointer; }
.tips { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 14px; color: var(--ink-2); }
.tips li::before { content: "✓ "; color: var(--green); font-weight: 800; }
.okmsg { background: rgba(52,199,89,.16); color: #0D6E31; font-weight: 700; padding: 12px 16px; border-radius: 16px; font-size: 15px; }
.rgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rgrid .field.wide { grid-column: 1 / -1; }
.rgrid .field input { min-height: 48px; font-size: 16px; padding: 10px 14px; }
.rgrid .field.miss input { border-color: var(--red); box-shadow: 0 0 0 3px rgba(212,42,30,.15); }
.rgroup { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); grid-column: 1 / -1; margin-top: 6px; }

/* ---------- Отсчёт у друзей ---------- */
.drv .meta { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.drv .meta .hot { color: var(--red); }

/* ---------- Реклама ---------- */
.promo-card { border-radius: 22px; overflow: hidden; box-shadow: 0 22px 40px -20px rgba(0,0,0,.5); align-self: center; width: min(260px, 70%); }
.promo-card canvas { width: 100%; height: auto; display: block; }
.ad-texts { display: flex; flex-direction: column; gap: 8px; }
.ad-text { border-radius: 18px; padding: 12px 14px; font-size: 14px; line-height: 1.4; background: var(--glass); border: 1px solid var(--glass-edge); white-space: pre-wrap; }
.ad-text button { margin-top: 8px; }

/* ---------- Документы ---------- */
body.page { overflow: auto; height: auto; }
.page .top { position: sticky; top: 0; z-index: 5; background: rgba(239,237,232,.7); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-bottom: 1px solid var(--glass-edge); }
.doc { position: relative; z-index: 1; max-width: 820px; margin: 16px auto 40px; padding: 24px 22px; border-radius: var(--r); font-size: 16px; }
.doc .eyebrow { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.doc h1 { font-size: clamp(26px, 6vw, 38px); margin-top: 8px; }
.doc .meta { color: var(--muted); margin-top: 10px; font-size: 14px; }
.doc h2 { font-size: 20px; margin: 28px 0 10px; letter-spacing: -.02em; }
.doc p, .doc li { max-width: 68ch; color: var(--ink-2); }
.doc p + p { margin-top: 10px; }
.doc ol, .doc ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.doc .ph { background: rgba(255,200,0,.35); padding: 0 5px; border-radius: 6px; }
.doc .warn { margin-top: 20px; padding: 14px 16px; border-radius: 18px; background: rgba(255,200,0,.18); border: 1px solid rgba(224,168,0,.5); font-size: 14px; }
.doc-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
