@font-face {
  font-family: "Fund Display";
  src: url("/fonts/fund-display-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 500;
  font-display: block;
}
@font-face {
  font-family: "Fund Sans Light";
  src: url("/fonts/plex-sans-light-num.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Fund Sans";
  src: url("/fonts/plex-sans.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* «Частный банк»: свой тёмный мир фонда, не зависит от темы Telegram */
:root {
  --page: #07090A;
  --card: #0E1213;
  --card2: #13181A;
  --raise: #1A2023;
  --line: #1A2023;
  --sep: rgba(255, 255, 255, 0.07);
  --text: #EEF1EF;
  --sub: #B4BCB8;
  --hint: #848E89;
  --faint: #5A6460;
  --gold: #D9B979;
  --gold-hi: #F3E3B5;
  --gold-lo: #A47E3D;
  --gold-soft: rgba(217, 185, 121, 0.11);
  --gold-line: rgba(217, 185, 121, 0.3);
  --up: #4BD6A3;
  --down: #FF7A66;
  --link: #E2C68D;
  --danger: #FF7A66;
  --scrim: rgba(0, 0, 0, 0.62);
  --radius: 20px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-sheet: cubic-bezier(0.32, 0.72, 0, 1);
  --serif: "Fund Display", "Playfair Display", Didot, "Bodoni 72", Georgia, serif;
  --nums: "Fund Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--page); color: var(--text); }
body {
  font: 15px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
  caret-color: var(--gold);
  overscroll-behavior-y: none;
}
::selection { background: var(--gold-soft); color: var(--text); }
main {
  max-width: 560px; margin: 0 auto; padding: 6px 0 calc(30px + env(safe-area-inset-bottom));
  transform-origin: 50% 0; transition: transform 460ms var(--ease-sheet), filter 460ms var(--ease-sheet), border-radius 460ms var(--ease-sheet);
}
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 10px; }
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.up { color: var(--up); }
.down { color: var(--down); }
.muted { color: var(--hint); font-weight: 400; }
.goldv { color: var(--gold); }

/* ---------- печать фонда: заставка и шапка ---------- */
.seal .mono-t { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 66px; }
.seal .mono-t .amp, .seal-mini .amp { font-size: 0.56em; fill: #8F9893; }
.seal-mini .mini-t { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 13px; fill: #E2C68D; }
.splash { position: fixed; inset: 0; z-index: 40; display: grid; place-content: center; justify-items: center; gap: 22px; pointer-events: none; }
.splash-bg { position: absolute; inset: 0; background: radial-gradient(120% 70% at 50% 44%, #141A1C 0%, #0A0D0E 55%, #050607 100%); transition: opacity 520ms var(--ease); }
.splash-seal { position: relative; width: 236px; height: 236px; transform-origin: 0 0; will-change: transform; }
.splash-seal::before { content: ""; position: absolute; inset: -40px; border-radius: 50%; background: radial-gradient(circle, rgba(217, 185, 121, 0.22) 0%, rgba(217, 185, 121, 0) 65%); animation: halo 2.4s ease-out both; }
.splash-cap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; animation: rise-in 700ms var(--ease) 900ms both; transition: opacity 300ms var(--ease); }
.sc-title { font-size: 15px; color: #CFD5D1; }
.sc-names { font-family: var(--serif); font-style: italic; font-size: 21px; color: #D9BD86; }
.seal .rose ellipse { stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw 900ms var(--ease-io) both; animation-delay: calc(80ms + var(--k) * 30ms); }
.seal .r1 { opacity: 0.55; }
.seal .r2 { opacity: 0.4; }
.seal .ring { stroke-dasharray: 1; animation: draw 1000ms var(--ease-io) both; }
.seal .ring2 { animation-delay: 160ms; }
.seal .mill, .seal .disc { animation: fade-in 600ms ease-out 300ms both; }
.seal .mill { opacity: 0.7; }
.seal .seal-mono { transform-box: fill-box; transform-origin: center; animation: mono-in 700ms var(--ease) 620ms both; }
.seal .sheen { opacity: 0.55; }
.splash.out .splash-bg { opacity: 0; }
.splash.out .splash-cap { animation: cap-out 280ms ease forwards; }
@keyframes cap-out { from { opacity: 1; } to { opacity: 0; transform: translateY(6px); } }
.splash.fly .splash-seal { transition: transform 720ms var(--ease-io), opacity 220ms ease 560ms; }
.splash.gone { display: none; }
.seal-mini { flex: none; transition: opacity 200ms ease; }
body.flying .seal-mini { opacity: 0; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes mono-in { from { opacity: 0; transform: translateY(8px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes sheen { from { opacity: 0; transform: translateX(-70px); } 40% { opacity: 0.6; } to { opacity: 0; transform: translateX(70px); } }
@keyframes halo { from { opacity: 0; transform: scale(0.8); } 60% { opacity: 1; } to { opacity: 0.8; transform: none; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* появление экрана после заставки: один раз, коротко */
main > * { opacity: 0; transform: translateY(12px); }
body.ready main > * { animation: rise 460ms var(--ease) forwards; animation-delay: calc(120ms + var(--i, 0) * 40ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- шапка ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px 0; min-height: 50px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-t { font-size: 16px; font-weight: 500; letter-spacing: 0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct { flex: none; padding: 4px 11px; border-radius: 999px; border: 1px solid #232A2D; background: #101415; color: var(--sub); font-size: 12px; }
.banner { display: flex; gap: 10px; align-items: flex-start; margin: 10px 14px 0; padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); font-size: 14px; line-height: 1.4; }
.banner .ic { width: 20px; height: 20px; color: var(--gold); margin-top: 1px; }

/* ---------- металлическая карта с капиталом ---------- */
.metal {
  position: relative; margin: 14px 14px 0; border-radius: 24px; overflow: hidden; isolation: isolate;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.003 0.95' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.075 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), linear-gradient(145deg, #232A2D 0%, #151A1C 50%, #0C0F10 100%);
  background-size: 300px 300px, 100% 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(0, 0, 0, 0.5);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 240ms var(--ease);
}
.m-tex { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.15; pointer-events: none; z-index: -1; }
.m-chip { position: absolute; top: 20px; right: 22px; width: 44px; height: 34px; z-index: 1; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.55)); pointer-events: none; }
.m-sheen {
  position: absolute; top: -40%; left: -40%; width: 180%; height: 180%; pointer-events: none; z-index: 0;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 46%, rgba(255, 255, 255, 0.16) 50%, rgba(255, 255, 255, 0) 54%);
  transform: translateX(var(--sx, -70%));
  transition: transform 260ms var(--ease);
}
.m-sheen.auto { animation: card-sheen 7s cubic-bezier(0.45, 0, 0.2, 1) infinite; }
@keyframes card-sheen { 0%, 18% { transform: translateX(-70%); } 52%, 100% { transform: translateX(70%); } }
.hero-tap { position: relative; display: block; width: 100%; padding: 20px 22px 4px; border: 0; background: none; text-align: left; cursor: pointer; transition: transform 140ms var(--ease); }
.hero-tap:active { transform: scale(0.985); }
.m-label { display: block; font-size: 13px; color: var(--hint); }
.odo { display: flex; align-items: baseline; margin-top: 6px; font-family: "Fund Sans Light", -apple-system, "Segoe UI", Roboto, sans-serif; font-weight: 300; font-size: 46px; line-height: 1.1; letter-spacing: -0.01em; font-feature-settings: "tnum" 1, "lnum" 1; white-space: nowrap; color: #F3F5F4; }
.odo-col { display: inline-block; height: 1.1em; overflow: hidden; }
.odo-strip { display: flex; flex-direction: column; transition: transform 820ms var(--ease); will-change: transform; }
.odo-strip > span { display: block; height: 1.1em; line-height: 1.1em; text-align: center; }
.odo-cents { display: inline-flex; font-size: 0.56em; color: #7D8883; }
.odo.instant .odo-strip { transition: none; }
.hero-line { display: block; margin-top: 8px; font-size: 14.5px; line-height: 1.4; color: var(--sub); min-height: 20px; }
.hero-line b { font-weight: 600; white-space: nowrap; }
.hero-line .hl1, .hero-line .hl2 { display: block; }
.hero-line .hl2 { margin-top: 3px; font-size: 13.5px; color: var(--hint); }
.goal-track { position: relative; display: block; width: 100%; padding: 12px 22px 18px; border: 0; background: none; text-align: left; cursor: pointer; transition: transform 140ms var(--ease); }
.goal-track:active { transform: scale(0.985); }
.goal-track .gt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.goal-track .gt-title { font-size: 13px; font-weight: 500; color: #D3D9D5; }
.goal-track .gt-left { font-family: var(--nums); font-size: 12px; color: var(--hint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.goal-track .gt-bar { position: relative; display: block; height: 5px; margin-top: 9px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.goal-track .gt-fill { display: block; position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: linear-gradient(90deg, var(--gold-lo), #E9D3A0); transform-origin: left center; }
body.intro .goal-track .gt-fill { animation: grow-x 1100ms var(--ease) 520ms backwards; }
@keyframes grow-x { from { transform: scaleX(0.02); } }
.goal-track .gt-ends { display: none; }
.goal-track .gt-steps { display: flex; gap: 6px; margin-top: 9px; }
.goal-track .gt-steps span { flex: 1; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); }
.goal-track .gt-steps span.done { background: var(--gold); }
.goal-track .gt-steps span.now { background: rgba(217, 185, 121, 0.5); }

/* переключатель периода и график */
.seg { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin: 16px 14px 0; padding: 3px; border-radius: 12px; background: #0F1314; border: 1px solid #171C1E; }
.seg-thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 12px) / 4); border-radius: 9px; background: #1D2326; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 2px 8px rgba(0, 0, 0, 0.35); transform: translateX(calc(var(--seg, 1) * (100% + 2px))); transition: transform 280ms var(--ease); }
.seg button { position: relative; z-index: 1; appearance: none; border: 0; background: transparent; color: var(--hint); font-size: 13px; font-weight: 500; min-height: 40px; padding: 0; border-radius: 9px; cursor: pointer; transition: color 200ms var(--ease), transform 140ms var(--ease); }
.seg button[aria-selected="true"] { color: var(--text); }
.seg button:active { transform: scale(0.96); }
.chart { position: relative; height: 172px; margin: 6px 4px 0; transition: opacity 180ms var(--ease), filter 180ms var(--ease); }
.chart.reveal { clip-path: inset(0 100% 0 0); }
.chart.reveal.go { clip-path: inset(0 0 0 0); transition: clip-path 1100ms var(--ease-io); }
.chart.switching { opacity: 0.25; filter: blur(3px); transition-duration: 120ms; }
.start-label { position: absolute; z-index: 3; font-family: var(--nums); font-size: 11px; color: var(--hint); pointer-events: none; transition: top 260ms var(--ease); }

/* ---------- блоки, заголовки, карточки ---------- */
.block { margin-top: 24px; }
.bh { display: flex; justify-content: space-between; align-items: center; padding: 0 20px; margin-bottom: 6px; }
.bt { display: flex; align-items: center; gap: 12px; flex: 1; margin: 0; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 23px; line-height: 1.2; color: #EDE3CC; }
.bt::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(217, 185, 121, 0.34), rgba(217, 185, 121, 0)); }
.bl { display: inline-flex; align-items: center; min-height: 44px; border: 0; background: none; padding: 0 0 0 14px; color: var(--link); font-size: 14px; cursor: pointer; }
.bl:active { opacity: 0.6; }
.gh { display: flex; align-items: center; gap: 12px; margin: 26px 20px 10px; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 23px; line-height: 1.2; color: #EDE3CC; }
.gh::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(217, 185, 121, 0.34), rgba(217, 185, 121, 0)); }
.card { margin: 14px 14px 0; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); overflow: hidden; }
.group { background: var(--card2); border: 1px solid var(--line); border-radius: 18px; margin: 12px 14px 0; overflow: hidden; }

/* строки */
.row { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; min-height: 58px; width: 100%; border: 0; background: none; text-align: left; color: inherit; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 54px; right: 0; border-top: 1px solid var(--sep); }
.row.noicon::before { left: 16px; }
.row.link { cursor: pointer; transition: background-color 160ms var(--ease); }
.row.link:active { background: #151A1C; }
.row .lead { flex: none; width: 26px; display: grid; place-items: center; color: var(--hint); }
.row .lead.gold { color: var(--gold); }
.row .main { display: block; flex: 1; min-width: 0; }
.row .t, .row .s, .row .v > span { display: block; }
a.row { color: inherit; text-decoration: none; }
.row .t { position: relative; font-size: 16px; font-weight: 500; line-height: 1.3; }
.row .s { margin-top: 2px; font-size: 13.5px; line-height: 1.35; color: var(--hint); }
.row .s.clip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .v { flex: none; font-family: var(--nums); font-size: 16px; font-weight: 400; text-align: right; font-variant-numeric: tabular-nums; }
.row .pbar { display: block; height: 4px; margin: 7px 0 1px; border-radius: 2px; min-width: 4px; }
.row .s2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 3px; font-size: 13.5px; line-height: 1.35; color: var(--sub); }
.row .v .s { text-align: right; font-weight: 400; }
.row .chev { flex: none; width: 18px; height: 18px; color: var(--hint); opacity: 0.6; margin-left: -2px; }
.row .new-dot { position: absolute; left: -10px; top: 8px; display: block; width: 6px; height: 6px; margin: 0; border-radius: 50%; background: var(--gold); vertical-align: middle; transition: opacity 240ms var(--ease), transform 240ms var(--ease); }
.row.unseen { background: var(--gold-soft); }
.row.seen-now .new-dot { opacity: 0; transform: scale(0.6); }
.row.action { justify-content: center; color: var(--link); font-size: 16px; min-height: 52px; cursor: pointer; }
.row.action .main { flex: 0 1 auto; text-align: center; }
.row.action:active { background: #151A1C; }
.row.danger { color: var(--danger); }
.row.danger .lead { color: inherit; }
.row:disabled { opacity: 0.3; cursor: default; }
.row.action.busy { opacity: 0.6; }
.empty { padding: 16px; color: var(--hint); font-size: 15px; line-height: 1.45; }
.live { position: relative; display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--up); }
.live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--up); animation: ping 2s var(--ease) infinite; }
.live.off { background: var(--down); }
.live.off::after { display: none; }
@keyframes ping { from { transform: scale(1); opacity: 0.7; } to { transform: scale(2.8); opacity: 0; } }

/* ---------- мечты: фотографии с золотым кольцом ---------- */
.carousel { display: flex; gap: 12px; padding: 2px 16px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel::-webkit-scrollbar { display: none; }
.dcard { position: relative; flex: none; width: 148px; height: 188px; padding: 0; border: 0; border-radius: 18px; overflow: hidden; scroll-snap-align: start; background: var(--card2); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45); text-align: left; color: #fff; cursor: pointer; transition: transform 160ms var(--ease); }
.dcard:active { transform: scale(0.97); }
.dcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 320ms var(--ease); }
.dcard img.on { opacity: 1; }
.dcard .nophoto { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold); background: radial-gradient(circle at 50% 40%, rgba(217, 185, 121, 0.14), rgba(217, 185, 121, 0) 70%), var(--card2); }
.dcard .nophoto .ic { width: 30px; height: 30px; }
.dcard .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.84) 100%); }
.dcard .ring { position: absolute; right: 9px; top: 9px; width: 40px; height: 40px; }
.dcard .ring circle { fill: none; stroke-width: 3; }
.dcard .ring .trk { stroke: rgba(255, 255, 255, 0.3); fill: rgba(7, 9, 10, 0.66); }
.dcard .ring .val { stroke: #E9D3A0; stroke-linecap: round; stroke-dasharray: var(--p) 100; }
body.intro .dcard .ring .val { animation: ring-in 1100ms var(--ease-io) 700ms backwards; }
@keyframes ring-in { from { stroke-dasharray: 0 100; } }
.dcard .ring text { font-family: var(--nums); font-size: 13px; font-weight: 400; fill: #fff; font-variant-numeric: tabular-nums; }
.dcard .done { position: absolute; right: 10px; top: 10px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #E9D3A0; color: #14110B; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); }
.dcard .done .ic { width: 20px; height: 20px; stroke-width: 2.6; }
.dcard .cap { position: absolute; left: 12px; right: 12px; bottom: 11px; display: flex; flex-direction: column; gap: 2px; }
.dcard .cap b { font-size: 14px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dcard .cap span { font-size: 12px; color: rgba(255, 255, 255, 0.82); }
.dcard .cap span.g { color: #E9D3A0; }
.dcard.add { display: grid; place-content: center; justify-items: center; gap: 8px; background: rgba(217, 185, 121, 0.04); border: 1px dashed var(--gold-line); box-shadow: none; color: var(--gold); }
.dcard.add .ic { width: 30px; height: 30px; }
.dcard.add span { font-size: 14px; font-weight: 500; text-align: center; padding: 0 12px; }
.dcard.add.wide { width: 100%; height: 132px; }
.dgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 12px 14px 0; }
.dgrid .dcard { width: auto; height: 212px; }

/* ---------- достижения: медали ---------- */
.medals { display: flex; gap: 10px; padding: 2px 16px 6px; overflow-x: auto; scrollbar-width: none; }
.medals::-webkit-scrollbar { display: none; }
.medal { flex: none; width: 78px; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--text); }
.medal .disk { position: relative; width: 60px; height: 60px; display: block; transition: transform 140ms var(--ease); }
.medal .disk svg { width: 60px; height: 60px; display: block; }
.medal span { font-size: 11.5px; line-height: 1.25; text-align: center; color: var(--sub); padding-bottom: 2px; }
.medal.locked span { color: var(--faint); }
.medal.new span { color: var(--gold-hi); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.medal:active .disk { transform: scale(0.95); }

/* итог дня от робота */
.digest { padding: 16px; }
.digest-head { display: flex; align-items: center; gap: 8px; color: var(--gold); font-size: 14px; font-weight: 500; }
.digest-head .ic { width: 18px; height: 18px; }
.digest-head .when { margin-left: auto; font-weight: 400; font-size: 13px; color: var(--hint); }
.digest-text { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--text); max-width: 64ch; }

.foot { margin: 28px 20px 0; text-align: center; color: var(--hint); font-size: 13px; line-height: 1.6; }
.foot a { color: var(--hint); text-decoration: none; opacity: 0.8; font-size: 12px; }

/* ---------- шторки: главный экран отъезжает назад, как в iOS ---------- */
body.sheet-open main { transform: scale(0.94); filter: brightness(0.55); border-radius: 18px; }
.sheet { position: fixed; inset: 0; z-index: 30; }
.sheet-backdrop { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity 300ms var(--ease); }
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-width: 600px; margin: 0 auto;
  max-height: calc(100% - 26px); display: flex; flex-direction: column;
  background: #0B0E0F; border-radius: 22px 22px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.6);
  transform: translateY(100%); transition: transform 460ms var(--ease-sheet);
  touch-action: pan-y;
}
.sheet.open .sheet-backdrop { opacity: 1; }
.sheet.open .sheet-panel { transform: translateY(0); }
.sheet-panel.dragging { transition: none; }
.sheet-panel::before { content: ""; position: absolute; top: 0; left: 28px; right: 28px; height: 1px; background: repeating-linear-gradient(90deg, rgba(217, 185, 121, 0.5) 0 1px, transparent 1px 4px); pointer-events: none; }
.sheet-grab { position: relative; flex: none; padding: 18px 56px 10px 20px; cursor: grab; touch-action: none; transition: box-shadow 200ms var(--ease); }
.sheet-grab.scrolled { box-shadow: 0 1px 0 var(--sep); }
.sheet-grab .handle { position: absolute; top: 7px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: var(--hint); opacity: 0.4; }
.sheet-grab h2 { margin: 6px 0 0; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 25px; line-height: 1.2; color: #F0E7D2; outline: none; }
.sheet-close { position: absolute; top: 9px; right: 7px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: radial-gradient(circle, #161B1D 16.5px, rgba(22, 27, 29, 0) 17.5px); color: var(--sub); cursor: pointer; transition: transform 140ms var(--ease); }
.sheet-close:active { transform: scale(0.94); }
.sheet-close .ic { width: 18px; height: 18px; }
.sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 0 calc(26px + env(safe-area-inset-bottom)); scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.sheet-body::-webkit-scrollbar { width: 6px; }
.sheet-body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.sheet-body .group { margin-top: 10px; }
.sheet-body .gh { margin: 24px 20px 8px; font-size: 19px; color: #E4DAC2; }
.lede { margin: 6px 20px 0; font-size: 15px; line-height: 1.55; color: var(--sub); max-width: 62ch; }
.lede b { color: var(--text); font-weight: 600; }
.big { margin: 8px 20px 0; font-family: "Fund Sans Light", -apple-system, sans-serif; font-weight: 300; font-size: 42px; line-height: 1.1; font-feature-settings: "tnum" 1; }
.big .cents { font-size: 0.56em; color: var(--hint); }
.sheet-chart { height: 200px; margin: 8px 4px 0; }
.callout { margin: 12px 14px 0; padding: 16px; border-radius: 18px; background: var(--card2); border: 1px solid var(--line); font-size: 15px; line-height: 1.55; }
.callout .t { font-size: 16px; font-weight: 600; margin-bottom: 6px; }

/* календарь прибыли */
.cal { padding: 12px 12px 14px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 10px; }
.cal-head b { font-size: 16px; font-weight: 600; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #1A2023; color: var(--text); cursor: pointer; }
.cal-nav button:disabled { opacity: 0.3; cursor: default; }
.cal-nav .ic { width: 18px; height: 18px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.cal-dow { text-align: center; font-size: 12px; color: var(--hint); padding-bottom: 2px; }
.cal-day { position: relative; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 1 / 1.02; border: 0; border-radius: 10px; background: transparent; color: var(--hint); font-size: 12px; font-weight: 500; text-align: left; padding: 5px 4px 5px 6px; cursor: default; }
.cal-day.has { color: var(--text); cursor: pointer; }
.cal-day .pnl { display: block; font-family: var(--nums); font-size: 11px; font-weight: 400; text-align: right; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; }
.cal-day.sel { outline: 2px solid var(--gold); outline-offset: 1px; }
.cal-note { margin: 10px 4px 0; min-height: 20px; font-size: 14px; color: var(--sub); }

/* лестница целей */
.ladder { padding: 6px 0; }
.step { position: relative; display: flex; gap: 14px; padding: 12px 16px; }
.step .node { position: relative; z-index: 1; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #283033; background: var(--card2); display: grid; place-items: center; color: #14110B; }
.step.done .node { background: var(--gold); border-color: var(--gold); }
.step.done .node .ic { width: 16px; height: 16px; stroke-width: 2.4; }
.step.now .node { border-color: var(--gold); }
.step:not(:last-child)::after { content: ""; position: absolute; left: 29px; top: 40px; bottom: -12px; width: 2px; background: #283033; }
.step.done:not(:last-child)::after { background: var(--gold); }
.step .t { font-size: 16px; font-weight: 600; }
.step .s { margin-top: 2px; font-size: 14px; color: var(--hint); }
.step.now .s { color: var(--sub); }
.bar { height: 4px; margin-top: 8px; border-radius: 2px; background: #1E2427; overflow: hidden; max-width: 220px; }
.bar > span { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--gold-lo), #E9D3A0); transform-origin: left center; }

/* лимит ИИ */
.meter-track { height: 4px; margin-top: 8px; border-radius: 2px; background: #1E2427; overflow: hidden; }
.meter { height: 100%; border-radius: 2px; background: var(--gold); min-width: 3px; }
.meter.warn { background: var(--down); }

/* словарь для новичков */
.learn details { border-top: 1px solid var(--sep); }
.learn details:first-child { border-top: 0; }
.learn summary { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; font-size: 16px; font-weight: 500; cursor: pointer; list-style: none; }
.learn summary::-webkit-details-marker { display: none; }
.learn summary .chev { margin-left: auto; width: 18px; height: 18px; color: var(--hint); opacity: 0.6; transition: transform 220ms var(--ease); }
.learn details[open] summary .chev { transform: rotate(90deg); }
.learn details p { margin: 0; padding: 0 18px 16px 54px; font-size: 15px; line-height: 1.55; color: var(--sub); max-width: 64ch; }
.learn .lead { flex: none; width: 26px; display: grid; place-items: center; color: var(--gold); }

/* «Наша история»: золотая линия времени */
.chron { position: relative; margin: 10px 14px 0; padding: 4px 0; }
.chron::before { content: ""; position: absolute; left: 32px; top: 22px; bottom: 22px; width: 1.5px; background: linear-gradient(180deg, var(--gold-line), rgba(217, 185, 121, 0.06)); }
.ev { position: relative; display: flex; gap: 14px; padding: 10px 6px 10px 12px; }
.ev .node { position: relative; z-index: 1; flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #15120B; box-shadow: inset 0 0 0 1.5px rgba(233, 211, 160, 0.7); color: #EED9A6; overflow: hidden; }
.ev .node .ic { width: 20px; height: 20px; }
.ev .node img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 300ms var(--ease); }
.ev .node img.on { opacity: 1; }
.ev .body { flex: 1; min-width: 0; padding-top: 1px; }
.ev.link { border-radius: 14px; transition: background-color 160ms var(--ease); }
.ev.link:active { background: #151A1C; }
.ev .d { font-size: 12.5px; color: var(--hint); }
.ev .t { margin-top: 1px; font-size: 15.5px; font-weight: 500; line-height: 1.3; }
.ev .s { margin-top: 2px; font-size: 13.5px; line-height: 1.4; color: var(--sub); }
.year { margin: 18px 0 2px 68px; font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--gold); }

/* шторка «Достижения» */
.mrow { display: flex; align-items: center; gap: 14px; padding: 12px 16px; }
.mrow + .mrow { border-top: 1px solid var(--sep); }
.mrow .disk { flex: none; width: 48px; height: 48px; display: block; }
.mrow .disk svg { width: 48px; height: 48px; display: block; }
.mrow .t { font-size: 15.5px; font-weight: 500; }
.mrow .s { margin-top: 2px; font-size: 13.5px; color: var(--hint); line-height: 1.35; }
.mrow.locked .t { color: var(--sub); }

/* план мечты */
.plan { margin: 12px 14px 0; padding: 14px 16px; border-radius: 18px; background: var(--card2); border: 1px solid var(--line); }
.plan .t { font-size: 15px; font-weight: 600; }
.plan .s { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--sub); }
.plan .s b { color: var(--gold-hi); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { padding: 7px 12px; border-radius: 999px; border: 1px solid #262E31; background: #121719; color: var(--sub); font-size: 13.5px; cursor: pointer; transition: transform 140ms var(--ease), background-color 160ms var(--ease); }
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] { border-color: var(--gold-line); background: var(--gold-soft); color: var(--gold-hi); }

/* шторка мечты */
.dream-photo { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; margin: 4px 14px 0; border-radius: 20px; overflow: hidden; background: var(--card2); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); }
.dream-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 280ms var(--ease); }
.dream-photo img.on { opacity: 1; }
.dream-photo.empty { aspect-ratio: 2 / 1; align-content: center; gap: 6px; color: var(--hint); font-size: 14px; }
.dream-photo.empty .ic { width: 30px; height: 30px; color: var(--gold); }
.dream-photo + .big { margin-top: 16px; }
.dbar { position: relative; height: 6px; margin: 12px 20px 0; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.dbar > span { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: linear-gradient(90deg, var(--gold-lo), #E9D3A0); }
.dbar + .lede { margin-top: 12px; }
.meta { margin: 8px 20px 0; font-size: 13.5px; color: var(--hint); }

/* форма мечты */
.photo-pick { position: relative; display: block; margin: 4px 14px 0; aspect-ratio: 2 / 1; border-radius: 20px; overflow: hidden; background: var(--card2); border: 1px dashed var(--gold-line); cursor: pointer; transition: transform 140ms var(--ease); }
.photo-pick.has { aspect-ratio: 4 / 3; border-style: solid; border-color: var(--line); }
.photo-pick:active { transform: scale(0.985); }
.photo-pick:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.vh { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip-path: inset(50%); }
.pp-face { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; padding: 16px; text-align: center; color: var(--gold); transition: opacity 200ms var(--ease); }
.pp-face.busy { opacity: 0.45; }
.pp-face > .ic { width: 32px; height: 32px; margin-bottom: 4px; }
.pp-t { font-size: 16px; font-weight: 500; }
.pp-s { font-size: 13.5px; color: var(--hint); max-width: 30ch; }
.photo-pick.has .pp-face { padding: 0; }
.photo-pick.has img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 240ms var(--ease); }
.photo-pick.has img.on { opacity: 1; }
.pp-chip { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 13px; font-weight: 500; }
.pp-chip .ic { width: 16px; height: 16px; }
.field { display: block; padding: 10px 16px 10px; cursor: text; }
.field + .field { border-top: 1px solid var(--sep); }
.fl { display: block; font-size: 13.5px; color: var(--hint); transition: color 160ms var(--ease); }
.field:focus-within .fl { color: var(--gold); }
.fi { display: block; width: 100%; margin: 2px 0 0; padding: 2px 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 16px; line-height: 1.35; outline: none; }
.fi::placeholder { color: var(--hint); opacity: 0.75; }
.form-err { margin: 8px 28px 0; font-size: 14px; line-height: 1.4; color: var(--danger); }
.form-err:empty { display: none; }

/* сердечки */
.rx { position: relative; }
.rx > .row { padding-right: 56px; }
.rx + .rx > .row::before, .rx + .row::before { content: ""; position: absolute; top: 0; left: 54px; right: 0; border-top: 1px solid var(--sep); }
.rx + .row.noicon::before { left: 16px; }
.hbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: #161B1D; color: var(--hint); cursor: pointer; transition: transform 140ms var(--ease), background-color 160ms var(--ease); }
.hbtn:active { transform: scale(0.94); }
.hbtn .ic { width: 20px; height: 20px; }
.hbtn .ic.filled { fill: #E8A9A0; stroke: #E8A9A0; }
.hbtn .who { font-size: 14px; font-weight: 500; }
.hbtn:not(.compact) { height: 32px; padding: 0 12px 0 10px; border-radius: 999px; }
.hbtn.mine { background: rgba(217, 185, 121, 0.14); color: var(--gold-hi); }
.hbtn.compact { position: absolute; top: 50%; right: 8px; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; background: transparent; }
.hbtn.compact .ic { opacity: 0.7; }
.hbtn.compact.mine { background: transparent; }
.hbtn.compact .ic.filled { opacity: 1; width: 21px; height: 21px; }
.hbtn.compact .cnt { position: absolute; right: 3px; bottom: 4px; min-width: 15px; padding: 0 3px; border-radius: 999px; background: var(--card2); color: var(--sub); font-family: var(--nums); font-size: 11px; line-height: 15px; }
.hbtn.pop .ic { animation: pop 320ms var(--ease); }
@keyframes pop { 0% { transform: scale(0.85); } 55% { transform: scale(1.22); } 100% { transform: none; } }
.react-line { display: flex; margin-top: 12px; }
.react-line.pad { margin: 12px 20px 0; }
.react-line.pad + .group { margin-top: 24px; }

/* история в Telegram */
.story-prev { position: relative; width: min(58%, 230px); aspect-ratio: 9 / 16; margin: 16px auto 4px; border-radius: 16px; overflow: hidden; background: var(--card2); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); }
.story-prev img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 240ms var(--ease); }
.story-wait { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center; color: var(--hint); font-size: 14px; opacity: 0; transition: opacity 200ms var(--ease); }
.story-prev.busy img { opacity: 0.25; }
.story-prev.busy .story-wait { opacity: 1; }
.row.switch { cursor: pointer; }
.row.switch:active { background: #151A1C; }
.tog { position: relative; flex: none; width: 51px; height: 31px; border-radius: 999px; background: #2A3134; transition: background-color 200ms var(--ease); }
.tog::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 220ms var(--ease); }
.row.switch[aria-checked="true"] .tog { background: var(--gold); }
.row.switch[aria-checked="true"] .tog::after { transform: translateX(20px); }

/* сделка: почему робот так сделал */
.why { margin: 12px 14px 0; padding: 16px; border-radius: 18px; background: linear-gradient(160deg, #17140D, #0F0D08); border: 1px solid rgba(217, 185, 121, 0.22); }
.why .t { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--gold); }
.why .t .ic { width: 18px; height: 18px; }
.why p { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--text); }

/* ---------- деньги и налоги ---------- */
/* под капиталом: та же сумма в валюте страны */
.m-fx { display: block; margin-top: 3px; font-size: 13px; line-height: 1.35; color: var(--hint); }
.m-fx b { font-family: var(--nums); font-weight: 400; font-variant-numeric: tabular-nums; color: #A3ACA8; }

/* блок под картой капитала: сколько можно забрать и ближайший срок налога */
.card.mn-home { margin-top: 12px; }
.mn-home .row .lead { width: 30px; }
.mn-home .mn-coin { width: 30px; height: 30px; font-size: 15px; }
.mn-home .row .t b { font-family: var(--nums); font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* фокус внутри карточек и групп рисуем внутрь: снаружи его обрезает скругление */
.card .row:focus-visible, .group .row:focus-visible, .group .mn-q:focus-visible, .mn-bars:focus-visible { outline-offset: -3px; border-radius: 14px; }

/* переключатель на 2–3 положения: как период графика, бегунок едет */
.tabs { position: relative; display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 2px; margin: 6px 14px 0; padding: 3px; border-radius: 12px; background: #0F1314; border: 1px solid #171C1E; }
.tabs-thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px - (var(--n, 2) - 1) * 2px) / var(--n, 2)); border-radius: 9px; background: #1D2326; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 2px 8px rgba(0, 0, 0, 0.35); transform: translateX(calc(var(--i, 0) * (100% + 2px))); transition: transform 280ms var(--ease); }
.tabs button { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 0; min-height: 44px; padding: 4px 6px; border: 0; border-radius: 9px; background: transparent; color: var(--hint); font-size: 13.5px; font-weight: 500; line-height: 1.2; text-align: center; cursor: pointer; transition: color 200ms var(--ease), transform 140ms var(--ease); }
.tabs button[aria-selected="true"] { color: var(--text); }
.tabs button:active { transform: scale(0.96); }
.tabs-sub { font-size: 11.5px; font-weight: 400; color: var(--hint); }

/* сколько можно забрать */
.mn-label { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin: 6px 20px 0; font-size: 13.5px; color: var(--hint); }
.mn-chip { padding: 1px 9px 2px; border-radius: 999px; border: 1px solid #232A2D; background: #101415; color: var(--sub); font-size: 12px; line-height: 1.5; }
.big.mn-big { margin-top: 4px; }
.mn-rate { margin: 6px 20px 0; font-size: 13.5px; line-height: 1.45; color: var(--hint); }
.mn-rate b { font-family: var(--nums); font-weight: 400; font-variant-numeric: tabular-nums; color: var(--sub); white-space: nowrap; }
.mn-hint { margin: 8px 20px 0; font-size: 13.5px; line-height: 1.45; color: var(--hint); max-width: 62ch; }
.mn-hint.mn-first { margin: 4px 20px 10px; }
.mn-disc { margin: 24px 20px 0; font-size: 12.5px; line-height: 1.5; color: var(--hint); max-width: 62ch; }
.mn-wait { color: var(--sub); }
.mn-wait .retry { display: block; margin-top: 12px; min-height: 44px; }
.sheet-body .gh-row { display: flex; align-items: center; margin: 14px 20px -2px; }
.sheet-body .gh-row .gh { flex: 1; margin: 0; }
.sheet-body .group.mn-more { margin-top: 24px; }
.lede b.mn-pl { white-space: nowrap; }
.lede b.mn-pl.up { color: var(--up); }
.lede b.mn-pl.down { color: var(--down); }

/* две кнопки «на карту» и две карточки стран: монета с валютой, страна проживания выделена золотом */
.mn-tiles, .mn-cc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 2px 14px 0; }
.group + .mn-tiles { margin-top: 10px; }
.mn-tile, .mn-ccf { position: relative; display: flex; flex-direction: column; gap: 3px; min-height: 138px; padding: 14px 14px 15px; border: 1px solid var(--line); border-radius: 18px; background: var(--card2); color: var(--text); text-align: left; transition: transform 140ms var(--ease), border-color 160ms var(--ease), background-color 160ms var(--ease); }
.mn-tile { cursor: pointer; }
.mn-tile:active, .mn-ccl:active .mn-ccf { transform: scale(0.97); }
.mn-tile.home, .mn-ccl.on .mn-ccf { border-color: var(--gold-line); background: linear-gradient(160deg, rgba(217, 185, 121, 0.07), rgba(217, 185, 121, 0.015)), var(--card2); }
.mn-tile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.mn-coin { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #101415; box-shadow: inset 0 0 0 1px #262E31; color: var(--hint); font-family: var(--nums); font-size: 18px; line-height: 1; }
.mn-tile.home .mn-coin, .mn-ccl.on .mn-coin, .mn-home .mn-coin { background: #15120B; box-shadow: inset 0 0 0 1.5px rgba(233, 211, 160, 0.7); color: #EED9A6; }
.mn-tag { padding-top: 3px; font-size: 12px; color: var(--hint); }
.mn-tile .t, .mn-ccf .t { font-size: 15.5px; font-weight: 600; line-height: 1.25; }
.mn-tile .s, .mn-ccf .s { font-size: 13px; line-height: 1.35; color: var(--hint); }
.mn-ccl { position: relative; display: block; cursor: pointer; }
.mn-ccl input:focus-visible + .mn-ccf { outline: 2px solid var(--gold); outline-offset: 2px; }
.mn-ccf .t { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 17px; }
.mn-tick { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #E9D3A0; color: #14110B; opacity: 0; transform: scale(0.6); transition: opacity 180ms var(--ease), transform 180ms var(--ease); }
.mn-tick .ic { width: 15px; height: 15px; stroke-width: 2.6; }
.mn-ccl.on .mn-tick { opacity: 1; transform: none; }

/* заработок по годам, по нажатию месяцы */
.mn-year + .mn-year { border-top: 1px solid var(--sep); }
.row.mn-yr { display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; grid-template-areas: "main v chev" "tax tax tax"; column-gap: 12px; row-gap: 0; align-items: start; }
.mn-yr .main { grid-area: main; }
.mn-yr .v { grid-area: v; padding-top: 1px; }
.mn-yr .chev { grid-area: chev; margin-top: 11px; transition: transform 220ms var(--ease); }
.mn-yr[aria-expanded="true"] .chev { transform: rotate(90deg); }
.mn-taxes { grid-area: tax; display: block; margin-top: 8px; }
.mn-yr .s + .s { margin-top: 3px; }
.mn-yr .mn-tax { color: var(--sub); }
.mn-months { border-top: 1px solid var(--sep); padding-bottom: 4px; }
.mn-months.in, .mn-a.in { animation: mn-in 240ms var(--ease) both; }
@keyframes mn-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mn-mo { min-height: 52px; padding-left: 28px; }
.mn-mo .t { font-size: 15px; }
.mn-mo .v { font-size: 15px; }
.mn-months .row + .row::before { left: 28px; }
.mn-months .mn-hint { margin: 6px 16px 10px 28px; }
.mn-flag { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--sub); }
.mn-flag .ic { flex: none; width: 17px; height: 17px; margin-top: 0.5px; color: var(--gold); }
.mn-yr .mn-flag { margin: 6px 0 2px; }

/* по месяцам: столбики от общей линии, выбранный месяц ярче */
.mn-chart-head { min-height: 60px; }
.mn-chart-empty { margin: 0; padding: 14px 16px 4px; font-size: 14.5px; line-height: 1.5; color: var(--sub); max-width: 44ch; }
.mn-bars { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); height: 128px; margin: 2px 0 12px; padding: 0 10px; touch-action: pan-y; cursor: pointer; -webkit-user-select: none; user-select: none; }
.mn-bars.empty { height: 54px; cursor: default; }
.mn-col.future .mn-stub { opacity: 0.45; }
.mn-bars::before { content: ""; position: absolute; left: 10px; right: 10px; top: var(--base, 104px); height: 1px; background: rgba(255, 255, 255, 0.12); }
.mn-col { position: relative; }
.mn-col.sel::before { content: ""; position: absolute; left: 1px; right: 1px; top: 0; height: 104px; border-radius: 8px; background: rgba(255, 255, 255, 0.035); }
.mn-bar { position: absolute; left: 0; right: 0; width: min(14px, 64%); margin: 0 auto; border-radius: 3px 3px 1px 1px; background: var(--up); opacity: 0.45; transform-origin: 50% 100%; transition: opacity 160ms var(--ease); }
.mn-bar.down { background: var(--down); border-radius: 1px 1px 3px 3px; transform-origin: 50% 0; }
.mn-col.sel .mn-bar { opacity: 1; }
.mn-bars.grow .mn-bar { animation: mn-grow 280ms var(--ease) both; }
@keyframes mn-grow { from { transform: scaleY(0); } }
.mn-stub { position: absolute; left: 0; right: 0; top: calc(var(--base, 104px) - 2px); width: 5px; height: 5px; margin: 0 auto; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.mn-mon { position: absolute; left: -3px; right: -3px; bottom: 0; font-size: 11px; line-height: 16px; text-align: center; color: var(--hint); white-space: nowrap; }
.mn-col.sel .mn-mon { color: var(--text); }
.mn-col.future .mn-mon { color: var(--faint); }

/* маршрут: значки, калькулятор, шаги с кнопками */
.mn-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 20px 0; }
.mn-facts + .lede { margin-top: 10px; }
.mn-badge { display: inline-flex; align-items: flex-start; gap: 6px; max-width: 100%; color: var(--hint); font-size: 14px; line-height: 1.4; }
.mn-badge.lead { color: var(--text); font-weight: 500; }
.mn-badge .ic { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--hint); }
.mn-calc .field { padding-bottom: 8px; }
.fi.mn-amt { font-family: var(--nums); font-size: 22px; font-variant-numeric: tabular-nums; }
.mn-chips { margin: 0; padding: 4px 16px 14px; row-gap: 12px; }
.mn-chips .chip { position: relative; }
.mn-chips .chip::before { content: ""; position: absolute; inset: -6px 0; }
.mn-fees { border-top: 1px solid var(--sep); }
.mn-fee { min-height: 52px; }
.mn-fee .t { font-size: 15px; font-weight: 400; }
.mn-fee .v { font-size: 15px; }
.mn-total { padding: 14px 16px 16px; border-top: 1px solid var(--sep); }
.mn-total-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mn-total-k { font-size: 16px; font-weight: 600; }
.mn-total-v { font-family: "Fund Sans Light", var(--nums); font-weight: 300; font-size: 26px; line-height: 1.15; font-feature-settings: "tnum" 1; white-space: nowrap; }
.mn-total-s { margin: 6px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--hint); }
.mn-split { display: flex; gap: 2px; height: 8px; margin: 12px 0 0; border-radius: 4px; overflow: hidden; }
.mn-seg { flex: 0 1 0; min-width: 0; height: 100%; }
.mn-seg.net { background: linear-gradient(90deg, var(--gold-lo), #E9D3A0); }
.mn-seg.cut { min-width: 3px; background: var(--down); }
.mn-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; vertical-align: 1px; }
.mn-dot.net { background: linear-gradient(90deg, var(--gold-lo), #E9D3A0); }
.mn-dot.cut { background: var(--down); }
.mn-steps { list-style: none; margin: 0; padding: 6px 0; }
.mn-step { position: relative; display: flex; gap: 14px; padding: 12px 16px 12px 14px; }
.mn-step:not(:last-child)::after { content: ""; position: absolute; left: 27.25px; top: 44px; bottom: -8px; width: 1.5px; background: linear-gradient(180deg, var(--gold-line), rgba(217, 185, 121, 0.06)); }
.mn-n { position: relative; z-index: 1; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #15120B; box-shadow: inset 0 0 0 1.2px rgba(233, 211, 160, 0.6); color: #EED9A6; font-family: var(--nums); font-size: 13px; }
.mn-step .main { flex: 1; min-width: 0; padding-top: 3px; }
.mn-step .t { font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.mn-step .s { margin-top: 4px; font-size: 14.5px; line-height: 1.5; color: var(--sub); }
.mn-go { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; margin-top: 10px; padding: 0 14px 0 15px; border-radius: 999px; border: 1px solid var(--gold-line); background: rgba(217, 185, 121, 0.05); color: var(--link); font-size: 14.5px; font-weight: 500; text-decoration: none; transition: transform 140ms var(--ease), background-color 160ms var(--ease); }
.mn-go::before { content: ""; position: absolute; inset: -4px -2px; }
.mn-go .ic { width: 16px; height: 16px; }
.mn-go:active { transform: scale(0.96); background: var(--gold-soft); }
.mn-links { display: flex; flex-wrap: wrap; gap: 4px 10px; }

/* вопросы и ответы: аккордеон */
.mn-qa + .mn-qa { border-top: 1px solid var(--sep); }
.mn-q { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 13px 14px 13px 16px; border: 0; background: none; color: var(--text); font-size: 16px; font-weight: 500; line-height: 1.35; text-align: left; cursor: pointer; transition: background-color 160ms var(--ease); }
.mn-q:active { background: #151A1C; }
.mn-q .chev { flex: none; margin-left: auto; width: 18px; height: 18px; color: var(--hint); opacity: 0.6; transition: transform 220ms var(--ease); }
.mn-q[aria-expanded="true"] .chev { transform: rotate(90deg); }
.mn-a { padding: 0 18px 16px 16px; }
.mn-a p { margin: 0 0 10px; font-size: 15px; line-height: 1.55; color: var(--sub); max-width: 64ch; }
.mn-a p:last-child { margin-bottom: 0; }
.mn-a p.mn-flag { margin: 12px 0 0; font-size: 13.5px; line-height: 1.4; }

/* переезд */
.fi.mn-date { min-height: 1.6em; -webkit-appearance: none; appearance: none; font-family: var(--nums); font-variant-numeric: tabular-nums; }
.fi.mn-date::-webkit-date-and-time-value { text-align: left; }
.mn-memo .gh { margin-top: 24px; }

/* ---------- эффекты: золотой салют, снег, сердечки ---------- */
.fx { position: fixed; inset: 0; z-index: 25; pointer-events: none; overflow: hidden; }
.cf { position: absolute; left: 50%; top: 38%; width: 7px; height: 11px; border-radius: 2px; background: linear-gradient(135deg, #F7E8C0, #B8914A); opacity: 0; animation: burst 1900ms cubic-bezier(0.15, 0.6, 0.3, 1) forwards; animation-delay: var(--d, 0ms); }
.cf.round { width: 6px; height: 6px; border-radius: 50%; }
@keyframes burst {
  0% { opacity: 1; transform: translate(-50%, -50%) rotate(0deg) scale(0.6); }
  55% { opacity: 1; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)) scale(1); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x) * 1.15), calc(-50% + var(--y) + 260px)) rotate(calc(var(--r) * 1.6)) scale(0.9); }
}
.flake { position: absolute; top: -12px; width: 6px; height: 6px; border-radius: 50%; background: rgba(240, 244, 248, 0.85); filter: blur(0.4px); animation: snow linear infinite; }
@keyframes snow { from { transform: translate(0, -20px); } to { transform: translate(var(--sway, 20px), 105vh); } }
.heartfx { position: absolute; bottom: -24px; color: #E8A9A0; opacity: 0; animation: float-up 9s ease-in infinite; }
.heartfx .ic { width: 18px; height: 18px; fill: currentColor; stroke: none; }
@keyframes float-up { 0% { opacity: 0; transform: translateY(0) scale(0.8); } 15% { opacity: 0.7; } 100% { opacity: 0; transform: translateY(-105vh) scale(1.1); } }

/* ошибка */
.error { position: fixed; inset: 0; z-index: 50; display: grid; place-content: center; gap: 14px; padding: 24px; text-align: center; background: var(--page); color: var(--sub); }
.error p { margin: 0; font-size: 15px; max-width: 32ch; }
.retry { justify-self: center; appearance: none; border: 0; border-radius: 12px; padding: 10px 18px; background: var(--card2); color: var(--link); font-weight: 500; cursor: pointer; transition: transform 140ms var(--ease); }
.retry:active { transform: scale(0.97); }

/* меньше движения: только плавные проявления */
@media (prefers-reduced-motion: reduce) {
  .seal .rose ellipse, .seal .ring, .seal .mill, .seal .disc, .seal .seal-mono, .splash-seal::before, .splash-cap { animation: fade-in 200ms ease-out both; }
  .seal .sheen { display: none; }
  .seal .sheen-go { display: none; }
  .splash.fly .splash-seal { transition: opacity 200ms ease; }
  main > * { transform: none; }
  body.ready main > * { animation: fade-in 220ms ease-out forwards; }
  .chart.reveal { clip-path: none; }
  .odo-strip { transition: none; }
  .seg-thumb, .metal, .m-sheen { transition-duration: 0ms; }
  .m-sheen.auto { animation: none; }
  main { transition: none; }
  body.sheet-open main { transform: none; border-radius: 0; }
  .sheet-panel { transform: none; opacity: 0; transition: opacity 200ms ease-out; }
  .sheet.open .sheet-panel { opacity: 1; }
  body.intro .goal-track .gt-fill, body.intro .dcard .ring .val { animation: none; }
  .hbtn.pop .ic { animation: none; }
  .tog, .tog::after, .photo-pick, .hbtn, .dcard, .medal .disk { transition-duration: 0ms; }
  .live::after { animation: none; }
  .cf, .flake, .heartfx { display: none; }
  .tabs-thumb, .tabs button, .mn-tile, .mn-ccf, .mn-go, .mn-yr .chev, .mn-q .chev { transition-duration: 0ms; }
  .tabs button:active, .mn-tile:active, .mn-ccl:active .mn-ccf, .mn-go:active { transform: none; }
  .mn-yr[aria-expanded="true"] .chev, .mn-q[aria-expanded="true"] .chev { transform: rotate(90deg); }
  .mn-months.in, .mn-a.in, .mn-bars.grow .mn-bar { animation: fade-in 200ms ease-out both; }
  .mn-tick { transform: none; transition: opacity 200ms ease-out; }
  .mn-bar { transition-duration: 0ms; }
}
