/* Valuta — публичная часть: шапка, первый экран, калькулятор-купюра, разделы лендинга, страницы, вход. */

/* ---------- Полоса прототипа ---------- */
.demo-strip { position: relative; z-index: 41; display: flex; justify-content: center; align-items: center; gap: 10px; height: 30px; padding: 0 16px; background: var(--night); color: var(--night-ink); font: 500 10px/1 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; overflow: hidden; }
.demo-strip span:last-child { overflow: hidden; text-overflow: ellipsis; }
.demo-strip .dot { width: 6px; height: 6px; border-radius: 50%; background: #f2a65a; flex: none; box-shadow: 0 0 0 3px rgba(242, 166, 90, 0.25); }

/* ---------- Шапка ---------- */
.hdr { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid transparent; transition: transform 0.45s var(--ease), background 0.3s, border-color 0.3s; }
.hdr.scrolled { background: color-mix(in srgb, var(--paper) 84%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); }
.hdr.tuck { transform: translateY(-100%); }
.hdr-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.logo-seal { width: 34px; height: 34px; transition: transform 1.2s var(--ease); }
.logo-seal svg { width: 100%; height: 100%; }
.logo:hover .logo-seal { transform: rotate(120deg); }
.logo-word { font: 400 27px/1 var(--f-display); font-variation-settings: "wdth" 78; letter-spacing: -0.02em; }
.logo-sm .logo-seal { width: 28px; height: 28px; }
.logo-sm .logo-word { font-size: 23px; }
.hdr-nav { display: flex; gap: 2px; }
.hdr-nav a { position: relative; padding: 9px 14px; border-radius: var(--r-pill); font-size: 14.5px; font-weight: 500; color: var(--muted); transition: color var(--d-1), background var(--d-1); }
.hdr-nav a:hover { color: var(--ink); background: var(--line-2); }
.hdr-nav a[aria-current="page"] { color: var(--ink); }
.hdr-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--serial); }
.hdr-end { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.rate-live { display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 13px; margin-right: 8px; border-radius: var(--r-pill); border: 1px solid var(--line); font-size: 13.5px; white-space: nowrap; }
.rate-live .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: live 2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.rl-pair { font: 500 10px/1 var(--f-mono); letter-spacing: 0.12em; color: var(--muted); }
.rate-live b { font-weight: 600; }
.rate-live i { font-style: normal; font-size: 9px; }
.up { color: var(--ok); } .down { color: var(--bad); }
.hdr-burger { display: none; }
.mnav { position: fixed; z-index: 39; inset: 102px 0 0; padding: 12px var(--gutter) 32px; background: var(--paper); display: grid; align-content: start; overflow: auto; }
.mnav > a { display: flex; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font: 300 40px/1 var(--f-display); font-variation-settings: "wdth" 80; animation: fade-up 0.6s var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
.mnav-acts { display: grid; gap: 10px; margin-top: 28px; }

/* ---------- Первый экран ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(36px, 6vh, 72px) 0 clamp(56px, 9vh, 104px); }
.hero-rosette { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transition: transform 1.2s var(--ease); animation: rose-in 2.2s var(--ease) backwards; }
@keyframes rose-in { from { opacity: 0; transform: scale(0.96) rotate(-4deg); } }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 468px; gap: clamp(40px, 6vw, 96px); align-items: center; }
.hero-copy { display: grid; justify-items: start; }
.hero-copy .display { margin: 30px 0 30px; }
.hero-copy .lead { max-width: 33em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.hero-facts { display: flex; flex-wrap: wrap; margin-top: clamp(40px, 7vh, 72px); border-top: 1px solid var(--line-3); }
.hero-facts > div { padding: 20px 32px 0 0; margin-right: 32px; border-right: 1px solid var(--line); }
.hero-facts > div:last-child { border-right: 0; margin-right: 0; }
.hero-facts dt { font-size: 46px; line-height: 0.9; }
.hero-facts dd { margin-top: 10px; max-width: 14em; font-size: 13px; color: var(--muted); line-height: 1.4; }
.hero-side { position: relative; transition: transform 0.6s var(--ease); }

/* ---------- Калькулятор-купюра ---------- */
.note {
  position: relative; padding: 22px 26px 20px 46px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-3); transition: box-shadow 0.4s;
}
.note::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--line-2); border-radius: 12px; pointer-events: none; }
.note-thread { position: absolute; left: 16px; top: 0; bottom: 0; width: 13px; opacity: 0.95; }
.note-thread span { position: absolute; inset: 0; writing-mode: vertical-rl; font: 600 6.5px/13px var(--f-mono); letter-spacing: 0.3em; text-transform: uppercase; color: rgba(20, 22, 27, 0.45); white-space: nowrap; overflow: hidden; text-align: center; }
.calc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.calc-top .serial { font-size: 11.5px; }
.cx { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.cx-row { display: flex; align-items: center; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line-3); transition: border-color var(--d-2); }
.cx-row:focus-within { border-color: var(--violet); }
.cx-in {
  flex: 1; min-width: 0; height: 66px; padding: 0; border: 0; outline: none; background: none;
  font-family: var(--f-display); font-weight: 300; font-variation-settings: "wdth" 70; letter-spacing: -0.02em;
  font-size: clamp(34px, calc(500px / var(--len, 7)), 60px); line-height: 1; caret-color: var(--violet);
  font-variant-numeric: lining-nums;
}
.cur { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 8px; border-radius: var(--r-pill); border: 1px solid var(--line-3); font-size: 14px; flex: none; background: var(--card); }
.cur b { font-weight: 600; letter-spacing: 0.02em; }
.cur-pick { cursor: pointer; transition: border-color var(--d-1); }
.cur-pick:hover { border-color: var(--ink); }
.cur-pick select { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.cur-pick:focus-within { outline: 2px solid var(--violet); outline-offset: 2px; }
.cx-mid { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 12px 0; min-height: 54px; }
.cx-band { position: absolute; left: -6px; right: -6px; top: 50%; height: 26px; transform: translateY(-50%); color: var(--violet); opacity: 0.32; pointer-events: none; }
.cx-rate, .cx-lock { position: relative; display: grid; gap: 3px; background: var(--card); padding: 4px 10px 4px 0; font-size: 13.5px; box-shadow: 0 0 10px 6px var(--card); }
.cx-rate { justify-self: start; }
.cx-rate b, .cx-lock b { font-weight: 600; }
.cx-lock { justify-self: end; display: flex; align-items: center; gap: 9px; padding: 4px 0 4px 10px; }
.cx-lock > span { display: grid; gap: 3px; text-align: right; }
.cx-mid .lbl { font-size: 9.5px; }
.ring { width: 22px; height: 22px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 2; }
.ring .bg { stroke: var(--line); }
.ring .fg { stroke: var(--violet); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.cx-swap { position: relative; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; box-shadow: 0 0 0 6px var(--card); transition: transform 0.6s var(--ease), background var(--d-1); }
.cx-swap:hover { transform: rotate(180deg); background: var(--violet); }
.cx-warn { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--wait-soft); color: var(--wait); font-size: 13px; }
.cx-meta { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 10px; margin: 18px 0 16px; padding-top: 14px; border-top: 1px dashed var(--line-3); }
.cx-meta div { display: grid; gap: 5px; }
.cx-meta dt { font: 500 9.5px/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.cx-meta dd { font-size: 13px; font-weight: 500; }
.cx-how { margin-top: 12px; }
.cx-how summary { list-style: none; display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; padding: 4px; }
.cx-how summary::-webkit-details-marker { display: none; }
.cx-how summary .i { transition: transform var(--d-2); }
.cx-how[open]:not(.is-shut) summary .i { transform: rotate(180deg); }
.cx-how ol, .leaders { display: grid; gap: 8px; margin-top: 12px; }
.cx-how li, .leaders li { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.cx-how li i, .leaders li i { flex: 1; min-width: 12px; border-bottom: 1px dotted var(--line-3); transform: translateY(-3px); }
.cx-how li span { color: var(--muted); }
.cx-how li b { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cx-how li.minus b { color: var(--serial); }
.cx-how li.total { padding-top: 8px; border-top: 1px solid var(--line); }
.cx-how li.total span, .cx-how li.total b { color: var(--ink); font-weight: 600; }
.note.flip { animation: flip 0.7s var(--ease) both; }
@keyframes flip { from { opacity: 0.2; transform: perspective(1200px) rotateY(-14deg) translateX(-12px); } }

/* ---------- Бегущая строка курсов ---------- */
.ticker { position: relative; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper-2) 60%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-track { display: flex; width: max-content; padding: 15px 0; animation: marquee 70s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tk { display: inline-flex; align-items: baseline; gap: 12px; padding: 0 0 0 26px; font-size: 13.5px; white-space: nowrap; }
.tk-pair { color: var(--muted); }
.tk-cur { font: 500 10px/1 var(--f-mono); letter-spacing: 0.12em; }
.tk b { font-weight: 600; font-size: 15px; }
.tk .up, .tk .down { font-size: 12px; }
.tk-sep { color: var(--violet); opacity: 0.5; margin-left: 14px; font-size: 10px; }

/* ---------- Разделы ---------- */
.sec { position: relative; padding: clamp(72px, 9vw, 136px) 0; }
.sec-head { display: grid; gap: 24px; max-width: 920px; margin-bottom: clamp(44px, 6vw, 88px); justify-items: start; }
.sec-head.split { max-width: none; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 24px 64px; }
.sec-head.split > div { display: grid; gap: 24px; justify-items: start; }

/* ---------- Устройство перевода ---------- */
.anat-stage { position: relative; display: grid; place-items: center; }
.bill {
  position: relative; width: min(1180px, 100%); aspect-ratio: 2.15; container-type: inline-size;
  border-radius: 18px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(60% 90% at 18% 50%, color-mix(in srgb, var(--violet) 8%, transparent), transparent 70%),
    radial-gradient(50% 80% at 88% 50%, color-mix(in srgb, var(--teal) 9%, transparent), transparent 70%),
    var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-3);
}
.bill::after { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(-32deg, transparent 0 7px, var(--line-2) 7px 8px); opacity: 0.6; }
.bill-frame { position: absolute; inset: 2cqw; border: 1px solid var(--line-3); border-radius: 1cqw; pointer-events: none; }
.bill-frame::after { content: ""; position: absolute; inset: 0.45cqw; border: 1px solid var(--line-2); border-radius: 0.7cqw; }
.bill-band { position: absolute; left: 4cqw; right: 4cqw; height: 2.4cqw; color: var(--violet); opacity: 0.4; }
.bill-band.top { top: 3cqw; }
.bill-band.bot { bottom: 3cqw; color: var(--teal); }
.bill-rose { position: absolute; left: 5cqw; top: 50%; width: 31cqw; aspect-ratio: 1; transform: translateY(-50%); }
.bill-rose .seal { width: 100%; height: 100%; }
.bill-mono { position: absolute; inset: 0; display: grid; place-items: center; font: italic 300 12cqw/1 var(--f-display); color: var(--ink); padding-bottom: 1cqw; text-shadow: 0 0 2cqw var(--card), 0 0 1cqw var(--card); }
.bill-head { position: absolute; left: 40cqw; top: 8.5cqw; display: grid; gap: 0.6cqw; }
.bill-head span { font: 400 4.6cqw/1 var(--f-display); font-variation-settings: "wdth" 78; letter-spacing: -0.02em; }
.bill-head small { font: 500 max(7px, 0.85cqw)/1 var(--f-mono); letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.bill-denom { position: absolute; left: 40cqw; top: 17cqw; display: grid; gap: 1cqw; }
.bill-denom .amount { font-size: 11.5cqw; line-height: 0.82; }
.bill-denom small { font-size: max(10px, 1.25cqw); color: var(--muted); }
.bill-serial { position: absolute; font-size: max(10px, 1.55cqw); letter-spacing: 0.18em; }
.bill-serial.s1 { right: 8cqw; top: 8.6cqw; }
.bill-serial.s2 { left: 40cqw; bottom: 7.8cqw; }
.bill-thread { position: absolute; top: 0; bottom: 0; left: 75cqw; width: 2.6cqw; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4) inset; }
.bill-thread span { position: absolute; inset: 0; writing-mode: vertical-rl; font: 600 max(6px, 0.75cqw)/2.6cqw var(--f-mono); letter-spacing: 0.3em; text-transform: uppercase; color: rgba(20, 22, 27, 0.5); white-space: nowrap; overflow: hidden; text-align: center; }
.bill-micro { position: absolute; left: 40cqw; width: 32cqw; bottom: 12cqw; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0.3cqw 0; }
.bill-micro .micro { font-size: max(5.5px, 0.66cqw); }
.bill-corner { position: absolute; right: 5cqw; bottom: 5.6cqw; font-size: 6.4cqw; line-height: 0.8; background-image: repeating-linear-gradient(0deg, var(--ink) 0 1px, transparent 1px 2.6px); opacity: 0.55; }
.bill-water { position: absolute; right: 5.5cqw; top: 50%; width: 15cqw; aspect-ratio: 1; transform: translateY(-46%); border-radius: 50%; display: grid; place-items: center; align-content: center; background: radial-gradient(circle, color-mix(in srgb, var(--ink) 5%, transparent) 0 40%, transparent 70%); }
.bill-water span { font: italic 300 12cqw/0.8 var(--f-display); color: var(--ink); opacity: 0.08; transition: opacity 0.6s; }
.bill-water small { font: 500 max(7px, 0.8cqw)/1 var(--f-mono); letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); opacity: 0.5; margin-top: 0.8cqw; }
.bill [data-f] { transition: opacity 0.5s var(--ease), filter 0.5s, transform 0.5s var(--ease); }
.anat-stage[data-on] .bill [data-f] { opacity: 0.32; }
.anat-stage[data-on="0"] .bill [data-f="0"], .anat-stage[data-on="1"] .bill [data-f="1"], .anat-stage[data-on="2"] .bill [data-f="2"], .anat-stage[data-on="3"] .bill [data-f="3"], .anat-stage[data-on="4"] .bill [data-f="4"] { opacity: 1; }
.anat-stage[data-on="4"] .bill-water span { opacity: 0.32; }
.anat-stage[data-on="1"] .bill-thread { box-shadow: 0 0 0 2px var(--violet), 0 0 24px var(--violet-soft); }
.anat-stage[data-on="2"] .bill-micro .micro { color: var(--ink); }
.hot { position: absolute; z-index: 2; width: max(26px, 2.6cqw); height: max(26px, 2.6cqw); border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font: 600 max(11px, 1cqw)/1 var(--f-mono); transition: transform 0.35s var(--spring), background var(--d-2); }
.hot::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--ink); opacity: 0; transform: scale(0.7); transition: all 0.4s var(--ease); }
.hot:hover, .hot:focus-visible { transform: scale(1.12); }
.anat-stage[data-on="0"] .h0, .anat-stage[data-on="1"] .h1, .anat-stage[data-on="2"] .h2, .anat-stage[data-on="3"] .h3, .anat-stage[data-on="4"] .h4 { background: var(--violet); transform: scale(1.15); }
.anat-stage[data-on="0"] .h0::before, .anat-stage[data-on="1"] .h1::before, .anat-stage[data-on="2"] .h2::before, .anat-stage[data-on="3"] .h3::before, .anat-stage[data-on="4"] .h4::before { opacity: 0.6; transform: scale(1); border-color: var(--violet); animation: ring 1.6s infinite; }
@keyframes ring { 0% { transform: scale(0.9); opacity: 0.7; } 100% { transform: scale(1.6); opacity: 0; } }
.h0 { left: 37cqw; top: 19cqw; }
.h1 { left: 74.6cqw; top: 6.5cqw; }
.h2 { left: 37cqw; bottom: 11.4cqw; }
.h3 { right: 4.6cqw; top: 7.6cqw; }
.h4 { right: 4cqw; bottom: 22cqw; }
.anat-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 56px; border-top: 1px solid var(--line-3); }
.anat-list li { position: relative; display: grid; gap: 10px; align-content: start; padding: 24px 24px 8px 0; cursor: default; outline: none; }
.anat-list li > * { transition: opacity 0.5s var(--ease); }
.anat-list li:not(.on) > * { opacity: 0.45; }
.anat-list li::before { content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 0; background: var(--violet); }
.anat-list li.on::before { width: 92%; transition: width 2.6s linear; }
.anat-list li .serial { font-size: 10.5px; }
.anat-list h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.anat-list p { font-size: 14px; color: var(--muted); }

/* ---------- Ночные вставки ---------- */
.night { background: var(--night); color: var(--night-ink); overflow: clip; }
.on-night .lead, .on-night p { color: var(--night-muted); }
.on-night .eyebrow { color: var(--night-muted); }
.on-night .eyebrow b { color: #ff8063; }
.on-night .d1 i, .on-night .display i { color: #b8b0ff; }
.night-rose { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.55; -webkit-mask-image: radial-gradient(70% 60% at 100% 0%, #000 30%, transparent 100%); mask-image: radial-gradient(70% 60% at 100% 0%, #000 30%, transparent 100%); }
.seg-night { margin-top: 4px; background: rgba(255, 255, 255, 0.05); border-color: var(--night-line); }
.seg-night button { color: var(--night-muted); }
.seg-night button[aria-pressed="true"] { color: var(--night-ink); }
.seg-night .seg-thumb { background: rgba(255, 255, 255, 0.12); box-shadow: none; }

/* ---------- Ход перевода ---------- */
.how { position: relative; display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.how-stage { position: sticky; top: max(96px, calc(50vh - 250px)); z-index: 2; }
.ticket {
  --ink: #14161b; --ink-2: #34363d; --muted: #5f6066; --line: rgba(20, 22, 27, 0.14); --line-3: rgba(20, 22, 27, 0.24);
  --violet: #4a3dc4; --serial: #c4402a; --ok: #1e7a4f; --card: #fbfaf6;
  --g-a: #14161b; --g-b: #4a3dc4; --g-c: #0f7a6c;
  position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr);
  min-height: 470px; border-radius: 16px; background: #f2efe7; color: var(--ink);
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.ticket::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.1  0 0 0 0 0.1  0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); opacity: 0.18; mix-blend-mode: multiply; }
.tk-stub { position: relative; display: grid; justify-items: center; align-content: space-between; padding: 22px 0; border-right: 2px dashed rgba(20, 22, 27, 0.22); }
.tk-stub::before, .tk-stub::after { content: ""; position: absolute; right: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--night); }
.tk-stub::before { top: -11px; } .tk-stub::after { bottom: -11px; }
.tk-stub .seal { width: 64px; height: 64px; }
.tk-vert { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 15px; letter-spacing: 0.2em; }
.tk-stub-micro { writing-mode: vertical-rl; height: 90px; font-size: 6.5px; }
.tk-main { position: relative; display: grid; gap: 22px; align-content: start; padding: 26px 28px 22px; }
.tk-top { display: flex; align-items: baseline; gap: 12px; }
.tk-top .serial { font-size: 12px; }
.tk-clock { margin-left: auto; font-size: 48px; line-height: 0.75; }
.tk-amts { display: grid; grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr); align-items: center; gap: 12px; }
.tk-amts > div { display: grid; gap: 6px; min-width: 0; }
.tk-amts .amount { font-size: 38px; line-height: 0.9; white-space: nowrap; }
.tk-amts small { font-size: 11.5px; color: var(--muted); }
.tk-amts .to { text-align: right; }
.tk-arrow { position: relative; height: 1px; background: var(--line-3); }
.tk-arrow i { position: absolute; top: 50%; left: calc(var(--p) * 100%); width: 9px; height: 9px; border-radius: 50%; background: var(--violet); transform: translate(-50%, -50%); box-shadow: 0 0 0 4px rgba(74, 61, 196, 0.18); transition: left 0.7s var(--ease); }
.tk-rail { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.tk-rail span { display: grid; gap: 7px; }
.tk-rail i { height: 4px; border-radius: 2px; background: var(--line); transition: background 0.4s; }
.tk-rail .on i { background: var(--ink); }
.tk-rail .now i { background: var(--violet); animation: blink 1.4s infinite; }
.tk-rail em { font: normal 500 9px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-rail .now em { color: var(--violet); }
.tk-state .who { white-space: nowrap; }
.tk-state { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.tk-status { font: 400 24px/1.1 var(--f-display); font-variation-settings: "wdth" 80; letter-spacing: -0.01em; }
.tk-stamps { position: relative; height: 150px; }
.ticket .stamp { position: absolute; font-size: 11px; mix-blend-mode: multiply !important; transition: opacity 0.35s var(--ease), transform 0.45s var(--ease); }
.ticket .stamp.off { opacity: 0; transform: rotate(var(--rot)) scale(1.35); }
.ticket .stamp[data-k="0"] { left: 0; top: 8px; }
.ticket .stamp[data-k="1"] { left: 32%; top: 0; }
.ticket .stamp[data-k="2"] { left: 64%; top: 14px; }
.ticket .stamp[data-k="3"] { left: 6%; top: 82px; }
.ticket .stamp[data-k="4"] { left: 40%; top: 74px; }
.ticket .stamp[data-k="5"] { left: 68%; top: 84px; }
.how-steps { display: grid; padding-bottom: 20vh; }
.step { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; padding: 56px 0; min-height: 44vh; border-top: 1px solid var(--night-line); cursor: pointer; }
.step > * { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.step:not(.on) > * { opacity: 0.32; }
.step.on .step-n { color: #b8b0ff; }
.step-n { font-size: 72px; line-height: 0.75; color: var(--night-muted); transition: color 0.6s; }
.step > div { display: grid; gap: 14px; justify-items: start; align-content: start; }
.step .step-t { font-size: 11.5px; color: #ff8063; }
.step h3 { color: var(--night-ink); font-size: 34px; }
.step p { max-width: 32em; font-size: 16px; }
.on-night .who { color: #b8b0ff; }
.on-night .who.me { color: #ff8063; }

/* ---------- Расчётный лист ---------- */
.ledger-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: clamp(48px, 8vw, 128px); align-items: center; }
.ledger-copy { display: grid; gap: 24px; justify-items: start; }
.formula { display: grid; gap: 2px; width: 100%; margin-top: 16px; padding: 24px 0; border-top: 1px solid var(--line-3); border-bottom: 1px solid var(--line); font: 300 clamp(20px, 1.9vw, 27px)/1.45 var(--f-display); font-variation-settings: "wdth" 84; }
.f-res { font-style: italic; color: var(--violet); font-size: 1.35em; }
.f-eq { font-size: 1.2em; }
.formula var { font-style: italic; }
.formula b { font: 500 13px/1 var(--f-mono); color: var(--serial); background: var(--serial-soft); padding: 4px 7px; border-radius: 4px; vertical-align: 0.25em; }
.ruler { display: grid; gap: 14px; width: 100%; margin-top: 12px; }
.ruler-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.ruler-val { font-size: 44px; line-height: 1; }
.ruler input[type="range"] { --p: 20%; width: 100%; height: 34px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.ruler input[type="range"]::-webkit-slider-runnable-track { height: 34px; background: linear-gradient(var(--violet), var(--violet)) 0 50% / var(--p) 2px no-repeat, repeating-linear-gradient(90deg, var(--line-3) 0 1px, transparent 1px 10px) 0 50% / 100% 12px no-repeat, linear-gradient(var(--line-3), var(--line-3)) 0 50% / 100% 1px no-repeat; }
.ruler input[type="range"]::-moz-range-track { height: 34px; background: linear-gradient(var(--violet), var(--violet)) 0 50% / var(--p) 2px no-repeat, repeating-linear-gradient(90deg, var(--line-3) 0 1px, transparent 1px 10px) 0 50% / 100% 12px no-repeat; }
.ruler input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: 4px; border-radius: 50%; background: var(--ink); border: 7px solid var(--card); box-shadow: 0 0 0 1px var(--ink), 0 6px 16px -4px rgba(0, 0, 0, 0.4); transition: transform 0.2s var(--spring); }
.ruler input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.ruler input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 6px solid var(--card); box-shadow: 0 0 0 1px var(--ink); }
.ruler-ticks { position: relative; height: 14px; margin-top: -8px; font: 500 10px/1 var(--f-mono); color: var(--muted); }
.ruler-ticks span { position: absolute; transform: translateX(-50%); }
.ruler-ticks span:first-child { transform: none; }
.ruler-ticks span:last-child { transform: translateX(-100%); }
.ruler .chips { margin-top: 10px; }
.sheet {
  position: relative; padding: 32px 34px 56px; background: var(--card); border: 1px solid var(--line); border-bottom: 0;
  box-shadow: var(--shadow-3);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%;
}
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.sheet-head > div { display: grid; gap: 8px; }
.sheet-head .serial { font-size: 17px; }
.sheet-seal .seal { width: 64px; height: 64px; }
.sheet-rows { display: grid; padding: 10px 0; }
.sheet-rows li { display: flex; align-items: baseline; gap: 10px; padding: 11px 0; font-size: 14px; }
.sheet-rows li span { color: var(--ink-2); }
.sheet-rows li i { flex: 1; min-width: 16px; border-bottom: 1px dotted var(--line-3); transform: translateY(-3px); }
.sheet-rows li b { font-weight: 500; white-space: nowrap; }
.sheet-rows li.minus b { color: var(--serial); }
.sheet-total { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px 16px; padding-top: 22px; border-top: 2px solid var(--ink); }
.sheet-total .lbl { grid-column: 1 / -1; }
.sheet-total b { font-size: clamp(44px, 4.4vw, 64px); line-height: 0.85; white-space: nowrap; }
.sheet-stamp { font-size: 10.5px; margin-bottom: 4px; }
.sheet-micro { position: absolute; left: 34px; right: 34px; bottom: 26px; }
.sheet.print .sheet-rows li { animation: print 0.55s var(--ease) both; animation-delay: calc(var(--i) * 150ms + 150ms); }
.sheet.print .sheet-stamp { animation: stamp-hit 0.55s var(--spring) both; animation-delay: 1.5s; }
@keyframes print { from { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateY(-4px); } to { opacity: 1; clip-path: inset(0 0 0 0); } }

/* ---------- Три купюры ---------- */
.notes-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; perspective: 1400px; }
.bnote {
  --tint: var(--teal);
  position: relative; display: flex; flex-direction: column; gap: 20px; min-height: 560px; padding: 26px 26px 24px; overflow: hidden; isolation: isolate;
  border-radius: 18px; border: 1px solid color-mix(in srgb, var(--tint) 26%, transparent);
  background: radial-gradient(120% 70% at 100% 0%, color-mix(in srgb, var(--tint) 13%, transparent), transparent 60%), color-mix(in srgb, var(--tint) 5%, var(--card));
  box-shadow: var(--shadow-2); transition: transform 0.5s var(--ease), box-shadow 0.5s; transform-style: preserve-3d; will-change: transform;
}
.bnote:hover { box-shadow: var(--shadow-3); }
.bnote-usd { --tint: #3d7150; }
.bnote-eur { --tint: var(--violet); }
:root[data-theme="dark"] .bnote-usd { --tint: #7fc795; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bnote-usd { --tint: #7fc795; } }
.bnote-art { position: absolute; z-index: -1; right: -110px; top: -90px; width: 360px; height: 360px; opacity: 0.9; transition: transform 1.4s var(--ease); }
.bnote:hover .bnote-art { transform: rotate(40deg); }
.bnote-art .seal { width: 100%; height: 100%; }
.bnote .seal .g-b, .bnote .seal .g-c { stroke: var(--tint); }
.bnote-band { position: absolute; z-index: -1; left: 0; right: 0; top: 64px; height: 24px; color: var(--tint); opacity: 0.35; }
.bnote-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.bnote-top .micro { font-size: 8px; color: var(--ink-2); }
.bnote-top .serial { font-size: 11px; }
.bnote-sign { margin-top: 40px; font: 300 190px/0.8 var(--f-display); color: var(--tint); letter-spacing: -0.04em; }
.bnote-rate { display: flex; align-items: flex-end; gap: 12px; margin-top: auto; }
.bnote-rate b { font-size: 58px; line-height: 0.8; }
.bnote-rate span { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.bnote-meta { display: grid; border-top: 1px solid color-mix(in srgb, var(--tint) 30%, transparent); }
.bnote-meta div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.bnote-meta dt { color: var(--muted); }
.bnote-meta dd { font-weight: 500; text-align: right; }
.bnote-go { align-self: flex-start; }
.bnote-foil { position: absolute; z-index: -1; top: 0; height: 58%; right: 92px; width: 16px; opacity: 0.75; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }

/* ---------- Вопросы ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.sec-head.sticky { position: sticky; top: 110px; margin-bottom: 0; }
.faq details { border-top: 1px solid var(--line-3); }
.faq details:last-child { border-bottom: 1px solid var(--line-3); }
.faq summary { display: grid; grid-template-columns: 44px minmax(0, 1fr) 28px; align-items: center; gap: 12px; padding: 24px 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq-n { font-size: 11px; }
.faq-q { font: 400 clamp(20px, 1.8vw, 26px)/1.2 var(--f-display); font-variation-settings: "wdth" 84; letter-spacing: -0.01em; transition: color var(--d-1); }
.faq summary:hover .faq-q { color: var(--violet); }
.pm { position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-3); transition: transform 0.4s var(--ease), background var(--d-2); }
.pm::before, .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; margin: -0.75px 0 0 -5px; background: currentColor; }
.pm::after { transform: rotate(90deg); }
.faq details[open]:not(.is-shut) .pm { transform: rotate(45deg); background: var(--ink); color: var(--paper); border-color: var(--ink); }
.faq-a p { padding: 0 44px 28px 56px; color: var(--muted); max-width: 62ch; }

/* ---------- Призыв ---------- */
.cta { position: relative; overflow: hidden; background: var(--night); color: var(--night-ink); padding: clamp(110px, 15vw, 220px) 0; }
.cta-rose { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 62%); mask-image: linear-gradient(90deg, transparent 30%, #000 62%); }
.cta-in { position: relative; display: grid; gap: 30px; justify-items: start; }
.cta-in .lead { max-width: 30em; }
.cta-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- Подвал ---------- */
.ftr { position: relative; padding-bottom: 28px; }
.ftr > .micro { font-size: 7.5px; }
.ftr-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding: 72px 0 40px; }
.ftr-brand { display: grid; gap: 18px; align-content: start; justify-items: start; }
.ftr-brand p { max-width: 32em; font-size: 14.5px; color: var(--muted); }
.ftr-col { display: grid; gap: 12px; align-content: start; }
.ftr-col h4 { font: 500 var(--t-micro)/1 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ftr-col a { font-size: 15px; color: var(--ink-2); width: fit-content; transition: color var(--d-1); }
.ftr-col a:hover { color: var(--violet); }
.ftr-word { overflow: hidden; text-align: center; font: 300 clamp(110px, 33vw, 560px)/0.78 var(--f-display); font-variation-settings: "wdth" 66; letter-spacing: -0.045em; margin: 0 0 22px; user-select: none; }
.ftr-word .engrave { display: inline-block; padding: 0.04em 0.02em 0.06em; background-image: repeating-linear-gradient(0deg, var(--ink) 0 1.2px, transparent 1.2px 4px); }
.ftr-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---------- Внутренние страницы ---------- */
/* Направления */
.seg-lg { margin-top: 8px; padding: 5px; }
.seg-lg button { display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 20px; font-size: 15px; }
.seg-lg .seg-thumb { top: 5px; left: 5px; height: 46px; }
.seg-lg .flag { width: 18px; height: 18px; }
.dirs-body { display: grid; gap: clamp(56px, 7vw, 96px); padding-bottom: 120px; }
.route { display: grid; grid-template-columns: minmax(0, 1fr) 220px minmax(0, 1fr); align-items: start; gap: 24px; padding: clamp(24px, 3vw, 40px); border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.route-end { display: grid; gap: 14px; justify-items: start; align-content: start; }
.route-end.to { justify-items: end; text-align: right; }
.route-end p { max-width: 34ch; font-size: 15px; }
.route-end.to .bchips { justify-content: flex-end; }
.bchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.bchip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 4px; border-radius: var(--r-pill); background: var(--paper); border: 1px solid var(--line); font-size: 13px; font-weight: 500; white-space: nowrap; }
.bchip .bank-ava { width: 26px; height: 26px; font-size: 8.5px; }
.bchip .bank-ava .flag { width: 12px; height: 12px; right: -2px; bottom: -2px; }
.bchip.more { padding: 0 12px; color: var(--muted); font-weight: 400; background: none; border-style: dashed; }
.route-mid { position: relative; align-self: center; display: grid; justify-items: center; gap: 6px; text-align: center; }
.route-line { position: absolute; left: -24px; right: -24px; top: 60px; height: 1px; background: repeating-linear-gradient(90deg, var(--line-3) 0 6px, transparent 6px 11px); }
.route-line i { position: absolute; top: -4px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 4px var(--violet-soft); animation: route 3.2s var(--ease-io) infinite; }
@keyframes route { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: calc(100% - 9px); opacity: 0; } }
.route-seal { position: relative; width: 120px; height: 120px; border-radius: 50%; background: var(--card); }
.route-seal .seal { width: 100%; height: 100%; animation: spin 60s linear infinite; }
.route-mid b { margin-top: 8px; font-size: 34px; line-height: 0.9; }
.route-mid small { font-size: 12.5px; color: var(--muted); }
.dsec { display: grid; gap: 24px; }
.dsec-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.dsec-head p { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; }
.dsec-head .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: live 2s infinite; }
.rrows { display: grid; margin-top: -24px; }
.rrow { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(150px, 0.9fr) minmax(200px, 1.1fr) minmax(220px, 1.3fr) auto; gap: 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.rrow-cur { display: flex; align-items: center; gap: 14px; }
.rrow-cur .flag { width: 36px; height: 36px; }
.rrow-cur b { display: block; font-size: 17px; font-weight: 600; letter-spacing: 0.02em; }
.rrow-cur small { display: block; font-size: 13px; color: var(--muted); }
.rrow-rate { display: flex; align-items: flex-end; gap: 12px; }
.rrow-rate b { font-size: 52px; line-height: 0.8; }
.rrow-rate small { font-size: 12px; line-height: 1.3; color: var(--muted); }
.rrow-ex { display: grid; gap: 6px; font-size: 15px; color: var(--ink-2); }
.rrow-ex b { color: var(--ink); font-weight: 600; }
.rrow-meta { display: grid; gap: 4px; font-size: 14px; }
.rrow-meta small { font-size: 12.5px; color: var(--muted); }
.need { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.need li { display: grid; gap: 10px; align-content: start; }
.need .amount { font-size: 48px; line-height: 0.8; color: var(--violet); }
.need h3 { font-size: 18px; font-weight: 600; }
.need p { font-size: 14.5px; max-width: 34ch; }
.dnotes { display: grid; gap: 10px; padding: 18px 20px; border-radius: var(--r); background: var(--paper-2); }
.dnotes li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.dnotes .i { color: var(--muted); margin-top: 2px; }
.dhelp { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 24px 28px; border-radius: var(--r-lg); border: 1px dashed var(--line-3); }
.dhelp b { display: block; font-size: 16px; }
.dhelp span { font-size: 14px; }

.phead { display: grid; gap: 26px; justify-items: start; padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(40px, 6vw, 72px); }
.bank-ava { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; font: 700 11.5px/1 var(--f-text); letter-spacing: -0.01em; }
.bank-ava .flag { position: absolute; right: -3px; bottom: -3px; width: 17px; height: 17px; box-shadow: 0 0 0 2px var(--paper); }
.help-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(40px, 6vw, 88px); align-items: start; padding-bottom: 140px; }
.help-card { position: sticky; top: 100px; display: grid; gap: 16px; padding: 30px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.help-seal { width: 88px; height: 88px; }
.help-stat { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.help-stat b { font-size: 56px; line-height: 0.8; }
.help-stat span { font-size: 13px; color: var(--muted); }
.docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-bottom: 140px; }
.doc { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; align-items: center; padding: 28px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.doc-seal .seal { width: 96px; height: 96px; }
.doc > div { display: grid; gap: 8px; justify-items: start; }
.doc .serial { font-size: 11px; }
.doc h3 { hyphens: auto; overflow-wrap: break-word; }
.doc .status { position: absolute; top: 22px; right: 22px; }

/* ---------- Вход ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.auth-main { display: flex; flex-direction: column; gap: 40px; padding: 28px clamp(20px, 6vw, 96px); }
.auth-top { display: flex; justify-content: space-between; align-items: center; }
.auth-form { width: min(440px, 100%); margin: auto 0; display: grid; gap: 26px; }
.auth-head { display: grid; gap: 18px; justify-items: start; }
.auth-demo { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: var(--violet-soft); color: var(--ink-2); font-size: 13.5px; }
.auth-demo .i { color: var(--violet); margin-top: 1px; }
.auth-alt { font-size: 14px; color: var(--muted); }
.auth-note { font-size: 12px; color: var(--faint); }
.auth-side { position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: clamp(32px, 5vw, 64px); background: var(--night); color: var(--night-ink); }
.auth-side canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth-side-in { position: relative; display: grid; gap: 32px; max-width: 540px; }
.auth-side .micro { color: var(--night-muted); }
.auth-side blockquote p { font: 300 clamp(26px, 2.6vw, 38px)/1.15 var(--f-display); font-variation-settings: "wdth" 84; font-style: italic; color: var(--night-ink); }
.auth-side cite { display: block; margin-top: 16px; font-style: normal; font-size: 13px; color: var(--night-muted); }
.auth-facts { display: flex; gap: 48px; padding-top: 24px; border-top: 1px solid var(--night-line); }
.auth-facts div { display: grid; gap: 8px; }
.auth-facts b { font-size: 48px; line-height: 0.85; }
.auth-facts span { font-size: 13px; color: var(--night-muted); }
.code-boxes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.code-boxes input { height: 68px; min-width: 0; text-align: center; font: 300 38px/1 var(--f-display); font-variation-settings: "wdth" 72; border: 1px solid var(--line-3); border-radius: var(--r-sm); background: var(--card); outline: none; transition: border-color var(--d-1), box-shadow var(--d-2); }
.code-boxes input:focus { border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-soft); }

/* ---------- Адаптивность ---------- */
@media (max-width: 1240px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 430px; }
  .hdr-nav a { padding: 9px 10px; }
  .anat-list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 8px; }
}
@media (max-width: 1060px) {
  .rate-live { display: none; }
  .hdr-nav { display: none; }
  .hdr-burger { display: inline-flex; }
  .hdr-login { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-side { width: min(520px, 100%); }
  .sec-head.split { grid-template-columns: minmax(0, 1fr); }
  .how { grid-template-columns: minmax(0, 1fr); }
  .how-stage { top: 12px; }
  .ledger-grid { grid-template-columns: minmax(0, 1fr); }
  .sheet { max-width: 560px; }
  .notes-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(300px, 78%); overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 8px var(--gutter) 24px; scrollbar-width: none; }
  .notes-row::-webkit-scrollbar { display: none; }
  .bnote { scroll-snap-align: start; min-height: 520px; }
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .sec-head.sticky { position: static; }
  .ftr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ftr-brand { grid-column: 1 / -1; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-side { display: none; }
  .help-grid { grid-template-columns: minmax(0, 1fr); }
  .help-card { position: static; }
  .route { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .route-end.to { justify-items: start; text-align: left; }
  .route-end.to .bchips { justify-content: flex-start; }
  .route-mid { grid-template-columns: auto minmax(0, 1fr); justify-items: start; text-align: left; column-gap: 16px; padding: 18px 0; border-top: 1px dashed var(--line-3); border-bottom: 1px dashed var(--line-3); }
  .route-line { display: none; }
  .route-seal { grid-row: span 3; width: 72px; height: 72px; }
  .route-mid b { margin-top: 0; font-size: 28px; }
  .rrow { grid-template-columns: minmax(0, 1fr) auto; gap: 14px 20px; }
  .rrow-rate { justify-content: flex-end; }
  .rrow-ex, .rrow-meta { grid-column: 1 / -1; }
  .rrow-ex { display: flex; justify-content: space-between; gap: 12px; }
  .rrow .btn { grid-column: 1 / -1; justify-self: start; }
  .need { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .need li { grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; row-gap: 6px; }
  .need .amount { grid-row: span 2; font-size: 36px; }

  .docs { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  :root { --t-hero: clamp(46px, 12.6vw, 64px); }
  .hdr-in { height: 62px; gap: 12px; }
  .hdr-end .btn-ink { display: none; }
  .mnav { inset: 92px 0 0; }
  .logo-word { font-size: 24px; }
  .hero { padding-top: 28px; }
  .hero-copy .display { margin: 22px 0; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .hero-facts > div { padding: 16px 10px 0 0; margin-right: 10px; }
  .hero-facts dt { font-size: 28px; }
  .hero-facts dd { font-size: 11.5px; }
  .note { padding: 18px 16px 16px 34px; }
  .cx-in { height: 58px; font-size: clamp(30px, calc(370px / var(--len, 7)), 54px); }
  .note-thread { left: 11px; width: 11px; }
  .calc-top .serial { display: none; }
  .cx-meta { grid-template-columns: repeat(2, auto); }
  .cx-meta div:last-child { display: none; }
  .bill { aspect-ratio: auto; height: 300px; container-type: size; }
  .anat-stage { margin: 0 calc(var(--gutter) * -1); overflow-x: auto; justify-items: start; padding: 0 var(--gutter) 12px; scrollbar-width: none; }
  .anat-stage::-webkit-scrollbar { display: none; }
  .anat-stage .bill { width: 640px; height: auto; aspect-ratio: 2.15; container-type: inline-size; flex: none; }
  .anat-list { grid-template-columns: minmax(0, 1fr); margin-top: 28px; }
  .anat-list li { padding: 18px 0 10px; }
  .anat-list li:not(.on) > * { opacity: 0.7; }
  .ticket { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .tk-stub { display: none; }
  .tk-main { padding: 18px 18px 16px; gap: 14px; }
  .tk-clock { font-size: 34px; }
  .tk-amts .amount { font-size: 26px; }
  .tk-amts { grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); }
  .tk-amts small { display: none; }
  .tk-status { font-size: 19px; }
  .tk-stamps { height: 64px; }
  .ticket .stamp { display: none; font-size: 10px; }
  .ticket .stamp.cur { display: inline-grid; left: auto !important; right: 0; top: 4px !important; }
  .tk-rail em { display: none; }
  .step { grid-template-columns: 54px minmax(0, 1fr); gap: 14px; padding: 36px 0; min-height: 52vh; }
  .step-n { font-size: 48px; }
  .step h3 { font-size: 26px; }
  .formula { font-size: 19px; }
  .sheet { padding: 24px 20px 52px; }
  .sheet-micro { left: 20px; right: 20px; }
  .bnote-sign { font-size: 150px; }
  .faq summary { grid-template-columns: 30px minmax(0, 1fr) 28px; padding: 20px 0; }
  .faq-a p { padding: 0 0 22px 42px; }
  .ftr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 48px; }
  .ftr-col:last-child { grid-column: 1 / -1; }
  .docs { grid-template-columns: minmax(0, 1fr); }
  .doc { grid-template-columns: 64px minmax(0, 1fr); padding: 20px; gap: 16px; align-items: start; }
  .doc-seal .seal { width: 64px; height: 64px; }
  .doc h3 { font-size: 22px; }
  .doc .status { position: static; grid-column: 2; justify-self: start; }
  .code-boxes input { height: 56px; font-size: 30px; }
}

/* ---------- Страница дизайн-системы (#/system) ---------- */
.ds-sec { padding: clamp(40px, 6vw, 72px) var(--gutter); border-top: 1px solid var(--line); }
.ds-head { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: baseline; margin-bottom: 32px; }
.ds-head p { max-width: 60ch; font-size: 15px; }
.ds-princ { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.ds-princ li { display: grid; gap: 12px; align-content: start; }
.ds-princ .amount { font-size: 56px; line-height: 0.8; color: var(--violet); }
.ds-princ p { font-size: 14.5px; }
.ds-inks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px 16px; }
.ds-ink { display: grid; gap: 4px; }
.ds-ink b { font-size: 14px; margin-top: 8px; }
.ds-ink small { font-size: 12px; color: var(--muted); }
.ds-sw { display: block; height: 96px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); }
.ds-type { display: grid; gap: 36px; }
.ds-type > div { display: grid; gap: 12px; }
.ds-amt { font-size: clamp(64px, 9vw, 140px); line-height: 0.85; }
.ds-type-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.ds-type-row > div { display: grid; gap: 10px; align-content: start; }
.ds-rose { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.ds-rose canvas { width: 100%; aspect-ratio: 1; max-width: 560px; }
.ds-rose-ctl { display: grid; gap: 18px; justify-items: start; }
.ds-seals { display: grid; grid-template-columns: repeat(3, auto); gap: 18px 24px; }
.ds-seals figure { display: grid; gap: 8px; justify-items: center; }
.ds-seals .seal { width: 96px; height: 96px; }
.ds-seals figcaption { font-size: 10.5px; }
.ds-comp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ds-cell { display: grid; gap: 16px; align-content: start; padding: 24px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.ds-stamps { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 8px 0; }
.ds-band { height: 28px; color: var(--violet); opacity: 0.5; }
.ds-foil { height: 72px; border-radius: var(--r); display: grid; place-items: center; }
.ds-foil .serial { color: rgba(20, 22, 27, 0.55); letter-spacing: 0.3em; }
@media (max-width: 900px) {
  .ds-head { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ds-princ { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-rose { grid-template-columns: minmax(0, 1fr); }
  .ds-comp { grid-template-columns: minmax(0, 1fr); }
  .ds-type-row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 560px) {
  .ds-princ { grid-template-columns: minmax(0, 1fr); }
  .ds-seals { grid-template-columns: repeat(2, auto); }
}
