/*
  VOICE: деловой финтех для перекупов — уверенный, быстрый, с автомобильным характером.
  IDEA: приборная панель автомобиля: сегментированная дуга спидометра = лимит и платежи.
  PICTURE: тёмный седан с холодной подсветкой и дуга; карточка «К оплате сегодня».
  COLOUR/TYPE: тёмно-синий #101C26, бирюза #12DFC9, янтарь только для начислений; Manrope.
  LAYOUT: лендинг 52/48; кабинет — мобильный экран с нижним меню; админка — меню слева, светлые таблицы.
*/
* { box-sizing: border-box; min-width: 0; }
html, body { margin: 0; }
html { scroll-padding-top: 84px; }
body { background: var(--bg); color: var(--ink); font: 500 var(--fs-m)/1.5 var(--font); overflow-x: clip; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; line-height: 1.12; text-wrap: balance; letter-spacing: -.015em; }
h1 { font-size: clamp(28px, 4.6vw, 60px); font-weight: 800; }
h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.num, .money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.label { display: block; font-size: var(--fs-xs); color: var(--ink-2); font-weight: 600; }
.muted { color: var(--ink-2); }
.teal { color: var(--teal); }
.scroll { overflow-x: auto; scrollbar-width: none; }
.scroll::-webkit-scrollbar { display: none; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
svg.i { width: 20px; height: 20px; flex: none; }

/* Светлая поверхность: всё внутри берёт «бумажные» цвета */
.paper { --ink: var(--paper-ink); --ink-2: var(--paper-ink-2); --line: var(--paper-line); --surface-2: var(--paper-2); --teal: var(--teal-ink); --amber: var(--amber-ink); --red: var(--red-ink); --good: var(--good-ink); background: var(--paper); color: var(--paper-ink); }

/* ---------- Логотип ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -.02em; white-space: nowrap; }
.logo svg { width: 40px; height: 34px; }
.logo.sm { font-size: 18px; } .logo.sm svg { width: 34px; height: 29px; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px; border-radius: var(--radius-s); border: 1px solid var(--line); background: transparent; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: border-color .15s, background .15s, filter .15s; }
.btn:hover { border-color: var(--ink-2); }
.btn-primary { background: var(--btn); color: var(--btn-ink); border: 0; box-shadow: 0 6px 18px rgb(18 223 201 / .18); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-dark { background: var(--paper-ink); color: #fff; border-color: var(--paper-ink); }
.btn-danger { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, transparent); }
.btn-ghost { border-color: transparent; }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .4; cursor: not-allowed; box-shadow: none; filter: grayscale(.4); }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; cursor: pointer; flex: none; }
.link { background: none; border: 0; padding: 0; color: var(--teal); font-weight: 700; cursor: pointer; text-align: left; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- Статусы ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; white-space: nowrap; background: color-mix(in srgb, var(--ink-2) 16%, transparent); color: var(--ink-2); line-height: 1.3; }
.chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.chip-good { color: var(--good); background: color-mix(in srgb, var(--good) 15%, transparent); }
.chip-warn { color: var(--amber); background: color-mix(in srgb, var(--amber) 16%, transparent); }
.chip-bad  { color: var(--red);  background: color-mix(in srgb, var(--red) 15%, transparent); }
.chip-info { color: var(--teal); background: color-mix(in srgb, var(--teal) 14%, transparent); }
.chip-bad::before { border-radius: 2px; transform: rotate(45deg); }
.chip-warn::before { border-radius: 1px; }

.filters { display: flex; gap: 8px; padding-bottom: 2px; }
.filter { flex: none; min-height: 40px; padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.filter[aria-pressed=true] { background: var(--teal); border-color: var(--teal); color: var(--btn-ink); }
.paper .filter[aria-pressed=true] { color: #fff; }

/* ---------- Карточки и уведомления ---------- */
.card { background: var(--card-grad); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.notice { border-radius: var(--radius-s); padding: 14px 16px; font-size: 14px; display: grid; gap: 10px; justify-items: start; border: 1px solid; }
.notice b { font-weight: 800; }
.notice.warn { background: color-mix(in srgb, var(--amber) 12%, transparent); border-color: color-mix(in srgb, var(--amber) 40%, transparent); }
.notice.info { background: color-mix(in srgb, var(--teal) 10%, transparent); border-color: color-mix(in srgb, var(--teal) 38%, transparent); }
.notice.bad  { background: color-mix(in srgb, var(--red) 11%, transparent); border-color: color-mix(in srgb, var(--red) 40%, transparent); }
.notice.plain { background: var(--surface-2); border-color: var(--line); }
.segbar { display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; }
.segbar i { height: 10px; border-radius: 3px; background: color-mix(in srgb, var(--ink-2) 22%, transparent); }
.segbar i.on { background: var(--teal); }
.segbar i.on.last { background: var(--amber); }

/* ---------- Поля ---------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; font-weight: 700; }
.field small { color: var(--ink-2); font-size: 13px; }
.input { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface-2); font-size: 16px; font-weight: 600; }
.paper .input { background: #fff; }
textarea.input { min-height: 96px; resize: vertical; }
.input:focus { outline: 2px solid var(--teal); outline-offset: -1px; }
.input:user-invalid { border-color: var(--red); }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 600; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--teal); flex: none; }
.uploads { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.upload { position: relative; display: grid; gap: 4px; align-content: start; justify-items: center; text-align: center; padding: 14px 8px; border: 1.5px dashed var(--line); border-radius: var(--radius-s); background: var(--surface-2); cursor: pointer; min-height: 112px; }
.upload:hover, .upload:focus-within { border-color: var(--teal); }
.upload svg { width: 26px; height: 26px; color: var(--teal); }
.upload b { font-size: 14px; font-weight: 800; line-height: 1.2; }
.upload small { font-size: 12px; color: var(--ink-2); line-height: 1.3; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.upload .files { font-size: 12px; color: var(--good); font-weight: 700; overflow-wrap: anywhere; }
.upload.has { border-style: solid; border-color: var(--good); }
.upload.wide { grid-column: 1 / -1; justify-items: start; text-align: left; min-height: 0; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.upload.wide svg { grid-row: span 3; }
.radio-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.radio-cards label { display: flex; gap: 10px; align-items: center; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); cursor: pointer; font-weight: 700; min-height: 48px; }
.radio-cards input { accent-color: var(--teal); width: 18px; height: 18px; }
.radio-cards label:has(input:checked) { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.err { color: var(--red); font-size: 14px; font-weight: 700; }
.hint { font-size: 13px; color: var(--ink-2); background: var(--surface-2); border-radius: 10px; padding: 9px 12px; }
.limit-plaque { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-s); background: color-mix(in srgb, var(--teal) 10%, transparent); border: 1px solid color-mix(in srgb, var(--teal) 35%, transparent); font-weight: 700; font-size: 14px; }
.limit-plaque b { font-size: 18px; color: var(--teal); }

/* ---------- Демо-меню (только для разработчика) ---------- */
.dev { position: fixed; left: 12px; bottom: 12px; z-index: 70; }
.dev > button { min-height: 32px; padding: 4px 12px; border-radius: 99px; border: 1px dashed var(--line); background: var(--topbar); color: var(--ink-2); font-size: 12px; font-weight: 700; cursor: pointer; opacity: .65; }
.dev > button:hover { opacity: 1; }
.dev-menu { position: absolute; bottom: 40px; left: 0; display: grid; gap: 2px; padding: 6px; background: var(--topbar); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 200px; }
.dev-menu a, .dev-menu button { padding: 10px 12px; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 700; background: none; border: 0; text-align: left; cursor: pointer; }
.dev-menu a:hover, .dev-menu button:hover { background: var(--surface-2); }
.dev-menu small { padding: 4px 12px; color: var(--ink-2); font-size: 12px; }

/* ---------- Лендинг ---------- */
.site-head { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--topbar) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .in { max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 56px); height: 72px; display: flex; align-items: center; gap: 28px; }
.site-nav { display: flex; gap: 26px; font-weight: 700; font-size: 15px; color: var(--ink-2); }
.site-nav a { text-decoration: none; } .site-nav a:hover { color: var(--ink); }
.head-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 56px); }
.hero { display: grid; grid-template-columns: minmax(0, 52fr) minmax(0, 48fr); gap: clamp(24px, 4vw, 48px); align-items: center; padding-block: clamp(32px, 6vw, 72px) clamp(40px, 6vw, 80px); }
.hero h1 .teal { color: var(--teal); }
.hero .lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--ink-2); margin-top: 20px; max-width: 34em; font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-actions .btn { min-height: 56px; padding-inline: 28px; font-size: 16px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.hero-facts b { color: var(--ink); font-weight: 800; }
.hero-art { position: relative; min-height: 500px; background: radial-gradient(60% 55% at 55% 45%, color-mix(in srgb, var(--teal) 16%, transparent), transparent 70%); }
.hero-art .scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-cards { position: absolute; right: 0; bottom: 4px; width: min(320px, 70%); display: grid; gap: 8px; }
.pay-card { position: relative; overflow: hidden; border-radius: 20px; padding: 20px; color: #F4F7FA; background: radial-gradient(120% 140% at 100% 0%, #24495A 0%, #172C38 45%, #12222D 100%); border: 1px solid #36525D; box-shadow: var(--shadow); display: grid; gap: 4px; }
.pay-card .label { color: #B7C7D1; }
.pay-card .huge { font-size: var(--fs-xxl); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pay-card .sub { font-size: 14px; color: #B7C7D1; font-weight: 600; }
.pay-card .acc { color: #FFAB24; font-weight: 800; }
.pay-card .deco { position: absolute; right: -36px; top: -30px; width: 190px; height: 190px; opacity: .9; pointer-events: none; }
.pay-card > *:not(.deco) { position: relative; }
.limit-card { display: grid; gap: 12px; }
.limit-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.limit-top .big { font-size: 30px; font-weight: 800; letter-spacing: -.025em; color: var(--teal); font-variant-numeric: tabular-nums; line-height: 1.1; white-space: nowrap; }
.limit-side { text-align: right; display: grid; gap: 2px; font-size: 14px; }
.limit-side b { font-weight: 800; }
.band-light { padding-block: clamp(40px, 6vw, 80px); }
.band-light h2 { margin-bottom: 28px; }
.steps4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: st; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 8px; align-content: start; position: relative; }
.step .ic { width: 52px; height: 52px; border-radius: 14px; background: color-mix(in srgb, var(--teal) 12%, transparent); color: var(--teal); display: grid; place-items: center; margin-bottom: 6px; }
.step .ic svg { width: 26px; height: 26px; }
.step .ic { position: relative; }
.step .nb { position: absolute; top: -8px; right: -10px; width: 24px; height: 24px; border-radius: 50%; background: var(--btn); color: var(--btn-ink); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
@media (min-width: 901px) { .step:not(:last-child)::after { content: '→'; position: absolute; right: -14px; top: 34px; width: 12px; color: var(--ink-2); font-size: 18px; font-weight: 700; } }
.step p { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.terms { padding-block: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.terms-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.terms-grid .card b { display: block; font-size: 24px; font-weight: 800; color: var(--teal); margin-bottom: 4px; }
.terms-grid .card p { color: var(--ink-2); font-size: 14px; }
.faq { padding-bottom: clamp(40px, 6vw, 80px); display: grid; gap: 10px; max-width: 880px; }
.faq h2 { margin-bottom: 14px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); }
.faq summary { padding: 16px 18px; font-weight: 800; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--teal); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 18px 16px; color: var(--ink-2); }
.site-foot { border-top: 1px solid var(--line); padding: 24px 0 64px; color: var(--ink-2); font-size: 13px; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }

/* ---------- Мобильный кабинет ---------- */
.phone { max-width: 440px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; position: relative; background: var(--bg); }
@media (min-width: 640px) { .phone-wrap { padding: 24px 0; } .phone { min-height: 860px; border: 1px solid var(--line); border-radius: 30px; overflow: clip; box-shadow: var(--shadow); } }
.app-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px 6px; padding-top: max(14px, env(safe-area-inset-top)); }
.app-title { padding: 6px 16px 0; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.app-title h1 { font-size: 26px; }
.app-title .who { font-size: 13px; color: var(--ink-2); font-weight: 700; text-align: right; }
.app-main { flex: 1; padding: 12px 16px 104px; display: grid; gap: 14px; align-content: start; }
.tabbar { position: sticky; bottom: 0; z-index: 5; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--topbar); border-top: 1px solid var(--line); padding: 6px 6px max(8px, env(safe-area-inset-bottom)); }
.tab { display: grid; justify-items: center; gap: 3px; padding: 6px 2px; min-height: 56px; border: 0; background: none; font-size: 12px; font-weight: 700; color: var(--ink-2); cursor: pointer; position: relative; border-radius: 12px; }
.tab svg { width: 24px; height: 24px; }
.tab[aria-current=true] { color: var(--teal); }
.tab[aria-current=true]::before { content: ''; position: absolute; top: -7px; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--teal); }
.badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.sec-title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 6px; }
.btn-col { display: grid; gap: 10px; }

.car-card { display: grid; gap: 12px; text-align: left; width: 100%; border: 0; border-radius: var(--radius); padding: 14px; cursor: pointer; box-shadow: 0 4px 16px rgb(0 0 0 / .18); }
.car-card:hover { box-shadow: 0 0 0 2px var(--teal-ink), 0 4px 16px rgb(0 0 0 / .18); }
.car-top { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.car-thumb { width: 64px; height: 52px; border-radius: 10px; background: linear-gradient(160deg, #DDE6EA, #C9D5DA); display: grid; place-items: center; color: #7C8F98; }
.car-thumb svg { width: 40px; height: 24px; }
.car-name { font-weight: 800; font-size: 16px; line-height: 1.25; }
.car-vin { font-size: 12px; color: var(--ink-2); letter-spacing: .02em; font-weight: 600; margin-top: 2px; overflow-wrap: anywhere; }
.car-top .chip { margin-top: 6px; }
.car-arrow { color: var(--ink-2); }
.car-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 800; font-variant-numeric: tabular-nums; font-size: 15px; }
.car-nums .label { font-weight: 600; margin-bottom: 2px; line-height: 1.25; }
.car-nums .acc { color: var(--amber); }
.car-flag { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 800; color: var(--amber); }
.car-flag svg { width: 16px; height: 16px; }
.empty { text-align: center; padding: 32px 16px; color: var(--ink-2); border: 1.5px dashed var(--line); border-radius: var(--radius); font-weight: 600; }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { background: var(--card-grad); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 4px; align-content: start; }
.tile .ic { width: 32px; height: 32px; border-radius: 9px; background: color-mix(in srgb, var(--teal) 14%, transparent); color: var(--teal); display: grid; place-items: center; margin-bottom: 4px; }
.tile .ic svg { width: 18px; height: 18px; }
.tile b { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile .muted { font-size: 12px; font-weight: 600; }
.tx-list { list-style: none; padding: 0; margin: 0; background: var(--card-grad); border: 1px solid var(--line); border-radius: var(--radius); }
.tx-list li { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.tx-list li:last-child { border-bottom: 0; }
.tx-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); }
.tx-ic.in { color: var(--good); background: color-mix(in srgb, var(--good) 14%, transparent); }
.tx-ic.out { color: var(--teal); background: color-mix(in srgb, var(--teal) 12%, transparent); }
.tx-ic.pay { color: var(--amber); background: color-mix(in srgb, var(--amber) 14%, transparent); }
.tx-list .t { font-weight: 800; font-size: 15px; }
.tx-list .d { font-size: 12px; color: var(--ink-2); font-weight: 600; overflow-wrap: anywhere; }
.tx-list b { font-weight: 800; }
.plus { color: var(--good); }

.chat { display: flex; flex-direction: column; gap: 10px; min-height: 62vh; }
.msgs { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 15px; font-weight: 500; }
.msg time { display: block; font-size: 11px; margin-top: 4px; opacity: .7; font-weight: 600; }
.msg.them { background: var(--surface); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 6px; }
.msg.me { background: var(--teal); color: var(--btn-ink); align-self: flex-end; border-bottom-right-radius: 6px; }
.msg.sys { align-self: center; background: var(--surface-2); color: var(--ink-2); font-size: 13px; text-align: center; max-width: 92%; font-weight: 600; }
.chat-input { display: flex; gap: 8px; position: sticky; bottom: 84px; background: var(--bg); padding: 8px 0 2px; }
.chat-input .input { flex: 1; }
.chat-input .btn { width: 48px; padding: 0; }

.list { background: var(--card-grad); border: 1px solid var(--line); border-radius: var(--radius); }
.list > div, .list > button, .list > label { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; background: none; border-left: 0; border-right: 0; border-top: 0; font-size: 15px; font-weight: 600; min-height: 52px; }
.list > :last-child { border-bottom: 0; }
.list > button, .list > label { cursor: pointer; }
.list .k { color: var(--ink-2); font-weight: 600; flex: none; }
.list .v { font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.toggle { appearance: none; width: 46px; height: 28px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); position: relative; cursor: pointer; flex: none; margin: 0; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink-2); transition: transform .15s; }
.toggle:checked { background: var(--teal); border-color: var(--teal); }
.toggle:checked::after { transform: translateX(18px); background: #fff; }

/* Регистрация */
.reg { padding: 16px 16px 32px; display: grid; gap: 18px; }
.reg-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; }
.steps-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.steps-bar i { height: 6px; border-radius: 99px; background: var(--surface-2); }
.steps-bar i.on { background: var(--teal); }
.code-input { font-size: 30px; letter-spacing: .6em; text-align: center; font-weight: 800; padding-left: .6em; }
.pwa-steps { display: grid; gap: 10px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
.pwa-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; font-size: 15px; font-weight: 600; }
.pwa-steps li::before { counter-increment: s; content: counter(s); width: 36px; height: 36px; border-radius: 50%; background: var(--btn); color: var(--btn-ink); display: grid; place-items: center; font-weight: 800; }
.pwa-steps svg { width: 18px; height: 18px; vertical-align: -3px; color: var(--teal); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface-2); padding: 4px; border-radius: 12px; gap: 4px; }
.seg button { border: 0; background: none; min-height: 40px; border-radius: 9px; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.seg button[aria-pressed=true] { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px rgb(0 0 0 / .15); }
.app-icon { width: 64px; height: 64px; border-radius: 16px; flex: none; box-shadow: var(--shadow); }
.qr { width: 120px; height: 120px; flex: none; border-radius: 12px; background: #fff; padding: 8px; }

/* ---------- Админка ---------- */
.admin { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--topbar); border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .logo { padding: 4px 8px; }
.side nav { display: grid; gap: 2px; }
.nav-i { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 0; background: none; text-align: left; cursor: pointer; font-size: 14px; font-weight: 700; min-height: 44px; white-space: nowrap; color: var(--ink-2); }
.nav-i svg { width: 19px; height: 19px; }
.nav-i:hover { background: var(--surface-2); color: var(--ink); }
.nav-i[aria-current=true] { background: color-mix(in srgb, var(--teal) 14%, transparent); color: var(--teal); box-shadow: inset 3px 0 0 var(--teal); }
.nav-i .cnt { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--amber); color: #2A1A00; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.side-foot { margin-top: auto; font-size: 12px; color: var(--ink-2); padding: 0 8px; font-weight: 600; }
.admin-col { display: flex; flex-direction: column; min-width: 0; }
.admin-top { height: 68px; display: flex; align-items: center; gap: 16px; padding: 0 clamp(16px, 3vw, 32px); border-bottom: 1px solid var(--line); background: var(--topbar); position: sticky; top: 0; z-index: 10; }
.admin-top .crumb { font-weight: 800; font-size: 17px; }
.admin-top .crumb small { color: var(--ink-2); font-weight: 600; font-size: 13px; margin-left: 8px; }
.admin-top .right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.me { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.me .av { width: 36px; height: 36px; border-radius: 50%; background: var(--btn); color: var(--btn-ink); display: grid; place-items: center; font-weight: 800; }
.admin-main { padding: clamp(16px, 3vw, 32px); display: grid; gap: 22px; align-content: start; max-width: 1400px; width: 100%; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.page-head p { color: var(--ink-2); margin-top: 4px; font-weight: 600; }
.page-head h1 { font-size: clamp(24px, 2.6vw, 32px); }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.kpi { background: var(--card-grad); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 6px; align-content: start; }
.kpi .ic { width: 38px; height: 38px; border-radius: 11px; background: color-mix(in srgb, var(--teal) 14%, transparent); color: var(--teal); display: grid; place-items: center; }
.kpi .ic svg { width: 20px; height: 20px; }
.kpi b { font-size: clamp(20px, 1.8vw, 26px); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi small { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.kpi.hl { border-color: color-mix(in srgb, var(--amber) 55%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--amber) 14%, var(--surface)) 0%, var(--surface) 100%); }
.kpi.hl .ic { background: color-mix(in srgb, var(--amber) 18%, transparent); color: var(--amber); }
.kpi.hl small { color: var(--amber); font-weight: 800; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.panel { border-radius: var(--radius); padding: 18px; display: grid; gap: 12px; align-content: start; border: 1px solid var(--line); }
.panel-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.panel-h h2 { font-size: 19px; }
.attn { display: grid; gap: 2px; }
.attn button { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 10px 8px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; font-size: 14px; font-weight: 600; border-radius: 0; }
.attn button:last-child { border-bottom: 0; }
.attn button:hover { background: color-mix(in srgb, var(--teal) 7%, transparent); }
.attn .ai { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--amber) 18%, transparent); color: var(--amber); }
.attn .ai.t { background: color-mix(in srgb, var(--teal) 14%, transparent); color: var(--teal); }
.attn .ai.r { background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red); }
.attn .ai svg { width: 18px; height: 18px; }
.attn .go { color: var(--teal); font-weight: 800; white-space: nowrap; font-size: 13px; }
.util { display: grid; gap: 14px; }
.util-row { display: grid; gap: 6px; cursor: pointer; background: none; border: 0; padding: 0; text-align: left; }
.util-row .top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 700; }
.util-row .top span:last-child { color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.bar { height: 10px; border-radius: 99px; background: color-mix(in srgb, var(--ink-2) 20%, transparent); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--teal); }
.bar i.hi { background: var(--amber); }
.tbl-wrap { border-radius: var(--radius); overflow-x: auto; border: 1px solid var(--line); }
.tbl-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.search { position: relative; width: min(320px, 100%); }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-2); }
.search .input { padding-left: 42px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; font-weight: 800; color: var(--ink-2); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; text-transform: none; background: var(--surface-2); }
td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td .sub { font-size: 12px; color: var(--ink-2); font-weight: 600; margin-top: 2px; }
tbody tr.click { cursor: pointer; }
tbody tr.click:hover, tbody tr.click:focus-visible { background: color-mix(in srgb, var(--teal) 9%, transparent); }
tr.total td { background: var(--surface-2); font-weight: 800; }
.cell-input { width: 78px; min-height: 38px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-align: right; font-size: 15px; font-weight: 700; }
.dealer-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: flex-start; }
.dealer-head h1 { font-size: clamp(24px, 3vw, 34px); }
.dealer-head .addr { color: var(--ink-2); margin-top: 6px; font-weight: 600; }
.dealer-head .contacts { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 10px; font-size: 14px; font-weight: 700; }
.dealer-head .contacts span { display: inline-flex; gap: 6px; align-items: center; }
.dealer-head .contacts svg { width: 16px; height: 16px; color: var(--teal); }
.head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fin { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.fin-edit { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.fin-edit .field { width: 180px; }
.tabbed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.tabs-h { display: flex; gap: 4px; padding: 6px 10px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs-h button { flex: none; border: 0; background: none; padding: 12px 14px; font-weight: 800; font-size: 14px; color: var(--ink-2); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; min-height: 46px; }
.tabs-h button[aria-selected=true] { color: var(--ink); border-bottom-color: var(--teal); }
.cnt-s { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--surface-2); font-size: 12px; margin-left: 4px; }
.tab-body { overflow-x: auto; }
.tab-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px; flex-wrap: wrap; font-size: 14px; }
.notes-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; padding: 16px; }
.chat-admin { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; min-height: 540px; }
.threads { display: grid; gap: 6px; align-content: start; }
.thread { display: grid; gap: 3px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-align: left; cursor: pointer; }
.thread[aria-current=true] { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.thread small { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.chat-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-panel .chat-input { position: static; background: none; }
.chat-panel .chat-input .btn { width: auto; padding: 0 18px; }
.sel { min-height: 40px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-weight: 700; font-size: 14px; }

/* ---------- Шторка / окно ---------- */
.overlay { position: fixed; inset: 0; background: rgb(5 12 18 / .62); display: grid; place-items: end center; z-index: 50; animation: fade .15s ease; }
.sheet { width: min(560px, 100%); max-height: 92vh; max-height: 92dvh; overflow-y: auto; border-radius: 24px 24px 0 0; padding: 10px 18px max(24px, env(safe-area-inset-bottom)); display: grid; gap: 16px; animation: up .22s ease; overscroll-behavior: contain; }
.sheet::before { content: ''; width: 44px; height: 5px; border-radius: 99px; background: var(--paper-line); justify-self: center; }
@media (min-width: 700px) { .overlay { place-items: center; padding: 24px; } .sheet { border-radius: 22px; padding-top: 22px; } .sheet::before { display: none; } .sheet.wide { width: min(780px, 100%); } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; position: sticky; top: -10px; background: var(--paper); padding: 4px 0; z-index: 1; }
.sheet-head h2 { font-size: 22px; }
.x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--paper-2); cursor: pointer; font-size: 22px; line-height: 1; flex: none; }
.car-hero { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: center; }
.car-hero .car-thumb { width: 84px; height: 66px; }
.rows { display: grid; border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff; }
.rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 15px; }
.rows > div:last-child { border-bottom: 0; }
.rows span:first-child { color: var(--ink-2); font-weight: 600; }
.rows b { font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.rows b.acc { color: var(--amber); }
.doc-thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.doc-thumbs div { aspect-ratio: 3/4; border-radius: 10px; background: repeating-linear-gradient(135deg, var(--paper-2) 0 8px, #fff 8px 16px); border: 1px solid var(--line); display: grid; place-items: end start; padding: 6px; font-size: 11px; font-weight: 800; color: var(--ink-2); }
.success { text-align: center; display: grid; gap: 10px; justify-items: center; padding: 12px 0; }
.success .ok { width: 72px; height: 72px; border-radius: 50%; background: var(--btn); display: grid; place-items: center; color: var(--btn-ink); }
.success .ok svg { width: 34px; height: 34px; }
.confirm-text { font-size: 15px; font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--paper); color: var(--paper-ink); padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 700; z-index: 80; box-shadow: var(--shadow); animation: toastIn .2s ease; max-width: calc(100% - 32px); border-left: 4px solid var(--teal-ink); }
@keyframes up { from { transform: translateY(24px); opacity: 0; } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .fin { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1024px) { .site-nav { display: none; } .dash-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { min-height: 380px; }
  .steps4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .terms { grid-template-columns: 1fr; }
  .admin { grid-template-columns: 1fr; }
  .side { position: sticky; top: 0; z-index: 20; height: auto; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); gap: 8px; flex-direction: row; align-items: center; overflow: visible; }
  .side .logo span { display: none; }
  .side nav { display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .side nav::-webkit-scrollbar { display: none; }
  .nav-i { flex: none; padding: 8px 12px; }
  .nav-i[aria-current=true] { box-shadow: inset 0 -3px 0 var(--teal); }
  .nav-i svg { display: none; }
  .side-foot { display: none; }
  .admin-top { position: static; height: 60px; }
  .chat-admin, .notes-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .head-cta .head-reg { display: none; }
  .site-head .in { height: 64px; gap: 12px; }
  .head-cta .btn { min-height: 42px; padding: 8px 14px; font-size: 14px; }
  .hero-actions .btn { width: 100%; }
  .hero-art { min-height: 0; display: grid; gap: 12px; }
  .hero-art .scene { position: static; height: 200px; }
  .hero-cards { position: static; width: 100%; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis .kpi:first-child { grid-column: 1 / -1; }
  .admin-top .me span { display: none; }
  .fin-edit .field { width: calc(50% - 6px); }
}
@media (max-width: 520px) {
  .steps4, .terms-grid { grid-template-columns: 1fr; }
  .uploads { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .upload { padding: 12px 4px; }
  .doc-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fin { grid-template-columns: 1fr 1fr; }
  .fin .kpi b { font-size: 19px; }
}
@media (max-width: 370px) {
  .car-nums { grid-template-columns: 1fr 1fr; }
  .car-nums > div:last-child { grid-column: 1 / -1; }
  .row2 { grid-template-columns: 1fr; }
  .limit-top .big { font-size: 26px; }
  .pay-card .huge { font-size: 30px; }
}

/* ---------- Дополнения к компонентам ---------- */
.fl { display: grid; gap: 1px; padding: 8px 14px 9px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface-2); min-height: 60px; align-content: center; cursor: text; }
.paper .fl { background: #fff; }
.fl > span { font-size: 12px; color: var(--ink-2); font-weight: 700; }
.fl input, .fl select, .fl textarea { border: 0; background: none; padding: 0; font-size: 16px; font-weight: 700; outline: none; width: 100%; color: inherit; min-height: 26px; font-family: inherit; }
.fl textarea { min-height: 72px; resize: vertical; }
.fl input::placeholder, .fl textarea::placeholder { color: color-mix(in srgb, var(--ink-2) 70%, transparent); font-weight: 600; }
.fl:focus-within { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.fl:has(:user-invalid) { border-color: var(--red); }
.btn-sec { border-color: var(--teal); color: var(--teal); }
.btn-teal { border-color: var(--teal); color: var(--teal); }
.btn-amber { border-color: var(--amber); color: var(--amber); }
.tealc { color: var(--teal); font-weight: 800; }
.pay-card .tealc { color: #12DFC9; }
.pc-rows { display: grid; gap: 6px; margin: 10px 0 14px; padding-top: 10px; border-top: 1px solid rgb(183 199 209 / .2); font-size: 14px; color: #B7C7D1; font-weight: 600; }
.pc-rows div { display: flex; justify-content: space-between; gap: 12px; }
.pc-rows b { color: #F4F7FA; font-weight: 800; font-variant-numeric: tabular-nums; }
.limit-card.mini { padding: 14px 16px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(6px); }
.limit-card.mini .big { font-size: 24px; }
.demo-cap { font-size: 12px; color: var(--ink-2); text-align: right; font-weight: 600; }
.hero-facts span { display: inline-flex; gap: 8px; align-items: center; }
.hero-facts svg { color: var(--teal); }
.lc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 800; }
.lc-head > span:first-child { display: inline-flex; gap: 8px; align-items: center; }
.lc-head svg { color: var(--teal); }
.car-head { display: grid; gap: 6px; }
.car-photo { position: relative; height: 150px; border-radius: 12px; background: radial-gradient(90% 120% at 50% 100%, color-mix(in srgb, var(--teal) 20%, transparent), transparent 70%), var(--surface-2); display: grid; place-items: center; margin-bottom: 6px; }
.car-photo .car-thumb { width: 170px; height: 100px; background: none; color: var(--ink-2); }
.car-photo .car-thumb svg { width: 150px; height: 84px; }
.car-photo .chip { position: absolute; top: 10px; right: 10px; }
.rows-dark > div > span:first-child { display: inline-flex; gap: 10px; align-items: center; color: var(--ink-2); font-weight: 600; }
.rows-dark svg, .list > div > span > svg, .list > button > span > svg, .list > label > span > svg { width: 18px; height: 18px; color: var(--teal); vertical-align: -3px; margin-right: 8px; }
.rows-dark > div > span:first-child svg { margin-right: 0; }
.list > div > span:first-child { display: inline-flex; align-items: center; }
.donut-kpi { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.donut-kpi > div { display: grid; gap: 6px; }
.donut { width: 64px; height: 64px; color: var(--ink); }
.cnt-a { min-width: 28px; height: 26px; padding: 0 9px; border-radius: 99px; background: color-mix(in srgb, var(--amber) 20%, transparent); color: var(--amber); font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.nav-i .cnt.q { background: var(--surface-2); color: var(--ink-2); }
.nav-i span:not(.cnt) { flex: 1; }
.btn .i { width: 18px; height: 18px; }
.app-head .logo span { font-size: 18px; }
.paper .chip { --x: 0; }
.dealer-head .addr { display: flex; gap: 6px; align-items: center; }
.dealer-head .addr svg { width: 16px; height: 16px; color: var(--teal); }
.sel { color: var(--paper-ink); }
.demo-links { font-size: 13px; color: var(--ink-2); text-align: center; font-weight: 600; }
.side-foot .link { font-size: 12px; }

.logo svg { width: 50px; height: 40px; }
.logo.sm svg { width: 42px; height: 34px; }
.admin { background: linear-gradient(to right, var(--topbar) 231px, var(--line) 231px 232px, var(--bg) 232px); }
@media (max-width: 900px) { .admin { background: var(--bg); } }
.attn-sub { display: block; font-size: 13px; color: var(--ink-2); font-weight: 600; margin-top: 2px; }
.attn .go { display: inline-flex; gap: 8px; align-items: center; }
.car-nums > div { display: flex; flex-direction: column; justify-content: space-between; }
.car-nums .label { font-size: 12px; }
.fl input::placeholder, .fl textarea::placeholder { color: color-mix(in srgb, var(--ink-2) 55%, transparent); font-weight: 500; }

/* ---------- Фото автомобилей ---------- */
.hero-art { background: none; }
.hero-photo { position: absolute; top: 4%; right: 0; width: 88%; aspect-ratio: 699 / 612; -webkit-mask-image: radial-gradient(62% 60% at 58% 52%, #000 48%, transparent 100%); mask-image: radial-gradient(62% 60% at 58% 52%, #000 48%, transparent 100%); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-arc { position: absolute; left: 0; top: 0; width: 92%; height: auto; pointer-events: none; }
.hero-cards { z-index: 2; }
:root[data-af-theme=light] .hero-photo { -webkit-mask-image: radial-gradient(70% 66% at 55% 48%, #000 50%, transparent 98%); mask-image: radial-gradient(70% 66% at 55% 48%, #000 50%, transparent 98%); }
.car-thumb { overflow: hidden; background: #0F1D25; }
.car-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.car-photo { overflow: hidden; height: 180px; background: #0F1D25; }
.car-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-note { position: absolute; left: 10px; bottom: 8px; font-size: 11px; font-weight: 700; color: #B7C7D1; background: rgb(16 28 38 / .7); padding: 2px 8px; border-radius: 99px; }
.pay-card::after { content: ''; position: absolute; right: -40px; bottom: -30px; width: 230px; height: 170px; background: url(../assets/hero-car.webp) 30% 45% / 300% auto no-repeat; opacity: .55; -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent); mask-image: radial-gradient(closest-side, #000 30%, transparent); pointer-events: none; }
.pay-card .btn { position: relative; z-index: 1; }
@media (max-width: 640px) { .hero-photo { position: relative; width: 100%; top: 0; } .hero-arc { width: 100%; } .hero-art { display: grid; } }
.car-photo .chip { background: rgb(16 28 38 / .78); }
.side > a { flex: none; }
@media (max-width: 900px) { .side > a .logo svg { width: 40px; height: 32px; } }

/* ---------- Файлы документов ---------- */
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.thumbs.big { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.thumb-real, .thumb-pdf, .thumb-none { aspect-ratio: 3/4; border-radius: 10px; border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; background: var(--paper-2); text-decoration: none; }
.thumb-real img { width: 100%; height: 100%; object-fit: cover; }
.thumb-pdf { gap: 6px; padding: 8px; text-align: center; font-size: 11px; font-weight: 700; color: var(--ink-2); align-content: center; overflow-wrap: anywhere; }
.thumb-pdf svg { width: 28px; height: 28px; color: var(--teal); }
.thumb-none { font-size: 11px; font-weight: 700; color: var(--ink-2); padding: 8px; text-align: center; background: repeating-linear-gradient(135deg, var(--paper-2) 0 8px, #fff 8px 16px); }
.loading { min-height: 70vh; display: grid; place-items: center; align-content: center; gap: 12px; }
.list small a { word-break: break-all; }

/* Слоган AutoFunds */
.slogan { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--teal); font-weight: 800; font-size: 15px; letter-spacing: .01em; }
.slogan::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--amber, #FFAB24); }
.reg .slogan { margin: -4px 0 4px; font-size: 14px; }
.foot-brand { display: flex; flex-direction: column; gap: 6px; }
.foot-slogan { font-weight: 700; color: var(--ink-2); }

/* Тестовый режим */
.test-bar { background: var(--amber, #FFAB24); color: #1B1300; font-weight: 800; font-size: 12px; text-align: center; padding: 5px 12px; letter-spacing: .01em; }
.test-note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: rgba(255,171,36,.12); border: 1px solid rgba(255,171,36,.45); font-size: 13px; font-weight: 600; line-height: 1.4; }
.test-note .i { width: 18px; height: 18px; flex: none; color: var(--amber, #FFAB24); margin-top: 1px; }
