/* APEX — витрина и CRM. Светлый «продуктовый» стиль: много воздуха, крупная типографика, мягкие поверхности. */
:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --surface-3: #e8e8ed;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --ink-3: #6e6e73;
  --ink-4: #86868b;
  --line: #d2d2d7;
  --line-soft: rgba(0, 0, 0, .08);
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-ink: #ffffff;
  --accent-soft: #e8f1fc;
  --link: #0066cc;
  --brand: #ff5a1f;
  --night: #1d1d1f;
  --ok: #1d8a45;
  --ok-soft: #e7f6ec;
  --warn: #b25e00;
  --warn-soft: #fff4e0;
  --bad: #d70015;
  --bad-soft: #fdecee;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 2px 8px rgba(0, 0, 0, .04), 0 12px 32px rgba(0, 0, 0, .06);
  --shadow-hover: 0 4px 14px rgba(0, 0, 0, .06), 0 22px 48px rgba(0, 0, 0, .1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.25, .1, .25, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.47 var(--font); letter-spacing: -.022em;
  -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); margin: 0 0 .4em; font-family: var(--display); }
h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.08; font-weight: 600; letter-spacing: -.015em; }
h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.12; font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: 19px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; letter-spacing: -.01em; }
.center { text-align: center; }
.warn-text { color: var(--warn); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 22px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--ink-3); letter-spacing: -.01em; margin: 0 0 6px; }
.link-more { color: var(--link); font-size: 17px; white-space: nowrap; cursor: pointer; }
.link-more::after { content: " ›"; }
.link-more:hover { text-decoration: underline; }

/* ---- шапка ---- */
.topbar { background: var(--surface-2); color: var(--ink-3); font-size: 12px; letter-spacing: -.01em; }
.topbar .wrap { display: flex; gap: 18px; align-items: center; min-height: 32px; flex-wrap: wrap; }
.topbar a { color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; }
.topbar a:hover { color: var(--ink); text-decoration: none; }
.topbar .ico { width: 13px; height: 13px; }
@media (max-width: 760px) { .topbar .hide-sm { display: none; } }
.header { position: sticky; top: 0; z-index: 30; background: rgba(251, 251, 253, .8); border-bottom: 1px solid var(--line-soft);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.header .wrap { display: flex; align-items: center; gap: 22px; min-height: 52px; }
.logo { font: 700 20px/1 var(--display); letter-spacing: .06em; color: var(--ink); display: flex; align-items: center; gap: 7px; }
.logo:hover { text-decoration: none; color: var(--ink); }
.logo { flex-shrink: 0; }
.logo__crest { display: block; width: 60px; height: 60px; object-fit: contain; }
.storefront .logo__crest { mix-blend-mode: multiply; }
.footer .logo__crest { width: 96px; height: 96px; }
.crm-side .logo__crest { width: 52px; height: 52px; }
@media (max-width: 760px) { .header .logo__crest { width: 48px; height: 48px; } }
.nav { display: flex; gap: 2px; flex-wrap: nowrap; }
.nav a { color: var(--ink); opacity: .82; padding: 6px 10px; border-radius: 8px; font-size: 13px; white-space: nowrap; transition: opacity .2s; }
.nav a:hover { opacity: 1; text-decoration: none; }
.nav a.active { opacity: 1; font-weight: 600; }
.nav a.sale { color: var(--bad); }
.actions { margin-left: auto; display: flex; gap: 2px; align-items: center; }
.icon-btn { position: relative; color: var(--ink); opacity: .82; padding: 8px; border-radius: 10px; display: inline-flex; gap: 6px; align-items: center; font-size: 13px; }
.icon-btn:hover { opacity: 1; text-decoration: none; background: rgba(0, 0, 0, .04); }
.icon-btn svg { width: 19px; height: 19px; }
.badge-dot { position: absolute; top: 2px; right: 0; background: var(--accent); color: #fff; border-radius: 99px; font-size: 10px; min-width: 16px;
  height: 16px; display: grid; place-items: center; padding: 0 4px; font-weight: 600; }
.search-form { display: flex; flex: 1; max-width: 300px; min-width: 200px; position: relative; }
.search-form input { width: 100%; border: 0; border-radius: 99px; padding: 8px 38px 8px 14px; font: 14px var(--font); background: rgba(0, 0, 0, .05);
  color: var(--ink); letter-spacing: -.01em; }
.search-form input:focus { background: #fff; outline: 2px solid var(--accent); }
.search-form button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--ink-3); padding: 6px; cursor: pointer; display: grid; }
.search-form button svg { width: 16px; height: 16px; }
.car-chip { background: var(--surface); border-bottom: 1px solid var(--line-soft); }
.car-chip .wrap { display: flex; gap: 16px; align-items: center; min-height: 48px; flex-wrap: wrap; font-size: 14px; }
.car-chip img { width: 72px; height: 30px; object-fit: contain; }
.car-chip img.real { width: 54px; height: 32px; object-fit: cover; border-radius: 7px; }
.menu-toggle { display: none; }
@media (max-width: 1240px) { .actions .label { display: none; } }
@media (max-width: 1080px) {
  .header .wrap { flex-wrap: wrap; gap: 8px 12px; padding-top: 8px; padding-bottom: 6px; }
  .nav { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 -10px; }
  .search-form { order: 2; max-width: none; width: 100%; flex-basis: 100%; }
}

/* ---- кнопки и формы ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 980px; padding: 12px 22px;
  font: 400 17px/1.18 var(--font); letter-spacing: -.022em; cursor: pointer; background: var(--accent); color: var(--accent-ink);
  transition: background .2s var(--ease), transform .1s; white-space: nowrap; }
.btn:hover { background: var(--accent-hover); color: var(--accent-ink); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn.secondary { background: var(--surface-3); color: var(--ink); }
.btn.secondary:hover { background: #dcdce1; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.ghost { background: transparent; color: var(--link); padding-left: 6px; padding-right: 6px; }
.btn.ghost:hover { text-decoration: underline; }
.btn.danger { background: var(--bad); }
.btn.small, .btn.sm { padding: 7px 15px; font-size: 14px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; font: inherit; }
.linkbtn:hover { text-decoration: underline; }
.pill { border: 1px solid var(--accent); background: transparent; color: var(--accent); border-radius: 980px; padding: 7px 14px; font: 400 14px var(--font);
  letter-spacing: -.01em; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.pill:hover { background: var(--accent); color: #fff; }
.pill.on { background: var(--accent); color: #fff; }
.pill.on:hover { background: var(--surface-3); color: var(--ink); border-color: var(--surface-3); }
.pill.small { padding: 5px 12px; font-size: 13px; }

input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=search],
input[type=url], input[type=datetime-local], input[type=date], input:not([type]), select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 14px; font: 17px var(--font); letter-spacing: -.022em;
  background: var(--surface); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
select { -webkit-appearance: none; appearance: none; padding-right: 36px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236e6e73' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center; }
select:disabled { background-color: var(--surface-2); color: var(--ink-4); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0, 113, 227, .16); }
label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 6px; letter-spacing: -.01em; }
.form > div, .form-grid > div { margin-bottom: 16px; }
.form .helptext, .helptext { display: block; color: var(--ink-3); font-size: 13px; margin: 4px 0; font-weight: 400; }
.errorlist { color: var(--bad); list-style: none; padding: 0; margin: 4px 0; font-size: 13px; }
.form div:has(> .errorlist) input, .form div:has(> .errorlist) select, .form div:has(> .errorlist) textarea { border-color: var(--bad); background-color: var(--bad-soft); }
.form input[type=checkbox] + label, .checkbox label { display: inline; font-weight: 400; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 16px; }
.form-grid .wide { grid-column: 1 / -1; }
.form ul:not(.errorlist) { list-style: none; padding: 0; margin: 0; }
.form ul:not(.errorlist) li { margin: 4px 0; }
.form ul:not(.errorlist) label { font-weight: 400; display: inline-flex; gap: 8px; align-items: center; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--accent); vertical-align: middle; }
.choice-list { display: grid; gap: 10px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
  cursor: pointer; font-weight: 400; transition: border-color .2s, box-shadow .2s; }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

/* ---- блоки ---- */
main { padding: 28px 0 72px; min-height: 60vh; }
.card { background: var(--surface); border-radius: var(--radius); padding: 24px; }
.card.flat { background: var(--surface); }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.grid { display: grid; gap: 20px; }
.grid.products { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.split { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.split.right { grid-template-columns: 1fr 380px; }
.split > * { min-width: 0; }
@media (max-width: 900px) { .split, .split.right { grid-template-columns: 1fr; } }
.crm-main .split.right { grid-template-columns: minmax(0, 1fr) 340px; }
@media (max-width: 1280px) { .crm-main .split.right { grid-template-columns: 1fr; } }
.breadcrumbs { font-size: 12px; color: var(--ink-3); margin-bottom: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.breadcrumbs a { color: var(--ink-3); }
.section-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin: 56px 0 20px; flex-wrap: wrap; }
.section-title h2 { margin: 0; }
.section-title p { margin: 6px 0 0; }
.empty { text-align: center; padding: 48px 24px; }

/* ---- главная: hero и подбор ---- */
.ahero { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 38px 40px;
  padding: 46px 40px 0; background: #181c21; color: #fff; border-radius: 28px; overflow: hidden; }
.ahero__copy { align-self: center; padding: 12px 0; }
.ahero__eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 26px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #c1c6cc; }
.ahero__eyebrow > span { width: 5px; height: 14px; background: var(--brand); transform: skewX(-18deg); }
.ahero h1 { color: #fff; font-size: clamp(38px, 4.5vw, 60px); line-height: 1.06; letter-spacing: -.045em;
  font-weight: 600; margin-bottom: 24px; }
.ahero h1 span { color: #ff7947; }
.ahero__lead { max-width: 420px; margin: 0 0 28px; font-size: 16px; line-height: 1.6; color: #c1c6cc; letter-spacing: -.01em; }
.ahero__cta { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.ahero__cta .btn { background: var(--brand); color: #181c21; border-radius: 10px; padding: 15px 20px; font-size: 15px; font-weight: 600; }
.ahero__cta .btn:hover { background: #ff7947; color: #181c21; }
.ahero__cta .btn > span { margin-left: 14px; font-size: 21px; line-height: .8; }
.ahero__help { color: #f0f1f3; font-size: 13px; padding: 10px 0; }
.ahero__help span { margin-left: 6px; }
.ahero__note { margin: 22px 0 0; font-size: 12px; line-height: 1.6; color: #a4abb4; }
.ahero__media { min-width: 0; align-self: center; }
.ahero__media-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px;
  color: #eef0f2; font-size: 11px; font-weight: 500; letter-spacing: .01em; }
.ahero__media-label > span { color: #a4abb4; font-weight: 400; }
.ahero__panel { margin: 0; }
.ahero__photo { width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: contain; background: #242a31;
  border-radius: 16px; }
.ahero__caption { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; }
.ahero__caption strong { display: block; font-size: 19px; font-weight: 500; line-height: 1.2; }
.ahero__caption div > span { display: block; color: #a4abb4; font-size: 11px; margin-top: 5px; }
.ahero__caption > a { color: #fff; font-size: 12px; border: 1px solid #555c65; border-radius: 8px; padding: 10px 12px; white-space: nowrap; }
.ahero__caption > a:hover { background: #2d333b; text-decoration: none; }
.ahero__caption > a span { margin-left: 10px; }
.ahero__credit { min-height: 2.8em; margin: 10px 0 14px; font-size: 9px; line-height: 1.4; color: #a4abb4; letter-spacing: 0; }
.ahero__credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ahero__switcher { display: flex; flex-wrap: wrap; gap: 6px; }
.ahero__switcher button { border: 1px solid #505761; border-radius: 7px; color: #c1c6cc; background: transparent;
  padding: 9px 12px; min-height: 40px; cursor: pointer; font: 500 11px var(--font); }
.ahero__switcher button span { margin-left: 5px; color: #a4abb4; font-weight: 400; }
.ahero__switcher button:hover { border-color: #b7bdc5; }
.ahero__switcher button[aria-pressed=true] { color: #fff; background: #30363e; border-color: #a4abb4; }
.ahero a:focus-visible, .ahero button:focus-visible { outline: 3px solid #ff986e; outline-offset: 4px; }
.ahero__panel[hidden], .ahero__switcher[hidden] { display: none; }
.ahero__benefits { grid-column: 1 / -1; list-style: none; display: flex; justify-content: space-between; gap: 18px;
  padding: 21px 0 23px; margin: 0; border-top: 1px solid #3b414a; color: #d0d4da; font-size: 12px; }
.ahero__benefits li { display: flex; gap: 12px; align-items: baseline; }
.ahero__benefits li > span { color: #ff7947; font-size: 10px; font-variant-numeric: tabular-nums; }
.ahero--no-photo { grid-template-columns: minmax(0, 1fr); }
.ahero--no-photo .ahero__copy { max-width: 720px; }
.ahero--no-photo .ahero__lead { max-width: 580px; }
@media (max-width: 1080px) and (min-width: 861px) {
  .ahero { padding: 34px 28px 0; gap: 30px 24px; }
  .ahero h1 { font-size: 46px; }
  .ahero__media-label > span { display: none; }
}
@media (max-width: 860px) {
  .ahero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 30px 26px 0; }
  .ahero__copy { padding: 0; }
  .ahero h1 { font-size: clamp(38px, 7vw, 58px); margin-bottom: 18px; }
  .ahero__eyebrow { margin-bottom: 22px; }
  .ahero__lead { max-width: 580px; margin-bottom: 22px; }
  .ahero__note { display: none; }
  .ahero__photo { aspect-ratio: 16 / 9; }
  .ahero__benefits { flex-wrap: wrap; gap: 14px 24px; }
}
@media (max-width: 480px) {
  .ahero { padding: 26px 20px 0; border-radius: 22px; gap: 24px; }
  .ahero__eyebrow { font-size: 9px; }
  .ahero h1 { font-size: 38px; }
  .ahero__lead { font-size: 15px; line-height: 1.5; }
  .ahero__cta { gap: 6px 18px; }
  .ahero__media-label > span { display: none; }
  .ahero__caption strong { font-size: 17px; }
  .ahero__caption div > span { font-size: 10px; }
  .ahero__switcher button { padding: 10px 9px; font-size: 10px; }
  .ahero__switcher button span { margin-left: 2px; }
  .ahero__benefits { flex-direction: column; gap: 11px; padding: 18px 0 22px; }
}
.apicker { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: center;
  background: var(--surface); border-radius: 28px; padding: 36px; scroll-margin-top: 70px; }
.apicker h2 { font-size: clamp(28px, 3.4vw, 40px); }
.apicker .picker { padding: 0; }
@media (max-width: 860px) { .apicker { grid-template-columns: 1fr; padding: 24px; } }
@media (max-width: 1080px) { .apicker { scroll-margin-top: 160px; } }

.picker { border-radius: var(--radius); padding: 20px; background: var(--surface); }
.picker h3 { margin-bottom: 14px; }
.picker .steps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.picker .steps label { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.picker-image { margin: 14px 0; border-radius: var(--radius-sm); background: linear-gradient(180deg, #fbfbfd, #ececf0); aspect-ratio: 16 / 6;
  display: grid; place-items: center; overflow: hidden; color: var(--ink-3); font-size: 13px; text-align: center; padding: 10px 14px; }
.picker-image img { width: 100%; height: 100%; object-fit: contain; }
.placeholder-car { width: 56%; color: var(--ink-4); opacity: .35; }
/* Главная: кузова с фото, марки, как мы работаем, финальный призыв */
.bodies__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.body-card { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: #181c21; color: #fff;
  transition: transform .3s, box-shadow .3s; }
.body-card:hover { text-decoration: none; transform: scale(1.015); box-shadow: var(--shadow-hover); }
.body-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.body-card:hover img { transform: scale(1.04); }
.body-card::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(180deg, rgba(24, 28, 33, 0), rgba(24, 28, 33, .88)); }
.body-card__text { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; display: grid; gap: 2px; }
.body-card__text b { font: 600 17px/1.2 var(--display); letter-spacing: -.01em; }
.body-card__text span { font-size: 13px; color: #c1c6cc; }
.body-card__n { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 4px 10px; border-radius: 980px; font-size: 12px; font-weight: 600;
  background: rgba(24, 28, 33, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.bodies__credits { margin: 10px 0 0; font-size: 11px; line-height: 1.5; color: var(--ink-4); }
.bodies__credits a { color: inherit; }
.chip.empty { color: var(--ink-4); }
.howto__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.howto__steps li { background: var(--surface); border-radius: var(--radius); padding: 24px 22px 22px; }
.howto__steps li > span { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #181c21; color: #fff;
  font-weight: 600; font-size: 14px; margin-bottom: 16px; }
.howto__steps h3 { margin: 0 0 8px; font-size: 19px; }
.howto__steps p { margin: 0; color: var(--ink-3); font-size: 15px; line-height: 1.5; }
.cta-band { margin-top: 56px; display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
  padding: 40px; border-radius: 28px; background: #181c21; color: #fff; }
.cta-band h2 { color: #fff; margin: 0 0 10px; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.03em; }
.cta-band p { margin: 0; max-width: 620px; color: #c1c6cc; line-height: 1.55; }
.cta-band__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cta-band .btn { background: var(--brand); color: #181c21; border-radius: 10px; padding: 15px 22px; font-weight: 600; }
.cta-band .btn:hover { background: #ff7947; color: #181c21; }
@media (max-width: 1000px) { .bodies__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .howto__steps { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .bodies__grid { gap: 10px; } .body-card__text { left: 12px; right: 12px; bottom: 10px; } .body-card__text b { font-size: 15px; }
  .cta-band { padding: 28px 22px; border-radius: 22px; } }

.sections { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 28px; }
.sections a { background: var(--surface); border-radius: var(--radius); padding: 22px 20px; color: var(--ink); display: flex; flex-direction: column;
  gap: 6px; min-height: 128px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.sections a:hover { text-decoration: none; transform: scale(1.015); box-shadow: var(--shadow-hover); }
.sections a strong { font: 600 19px/1.2 var(--display); letter-spacing: -.01em; }
.sections a strong::after { content: " ›"; color: var(--link); }
.sections a span { color: var(--ink-3); font-size: 14px; line-height: 1.4; letter-spacing: -.01em; }
@media (max-width: 960px) { .sections { grid-template-columns: repeat(2, 1fr); } }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 980px; background: var(--surface); color: var(--ink); font-size: 14px;
  letter-spacing: -.01em; transition: background .2s; }
.chip:hover { text-decoration: none; background: var(--surface-3); }
.chip.active { background: var(--ink); color: #fff; }
.chip-n { margin-left: 6px; color: var(--ink-4); font-size: 12px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-3); border-radius: 980px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg a { padding: 7px 14px; border-radius: 980px; color: var(--ink); font-size: 14px; white-space: nowrap; letter-spacing: -.01em; }
.seg a:hover { text-decoration: none; background: rgba(255, 255, 255, .6); }
.seg a.active { background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.seg small { color: var(--ink-3); }

/* ---- карточка товара ---- */
.pcard { background: var(--surface); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.pcard:hover { transform: scale(1.015); box-shadow: var(--shadow-hover); }
.pcard .thumb { aspect-ratio: 4 / 3; background: var(--surface-2); position: relative; overflow: hidden; }
.pcard .thumb img { width: 100%; height: 100%; object-fit: cover; }
.pcard .body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard .name { color: var(--ink); font-weight: 600; line-height: 1.25; font-size: 17px; }
.pcard .name:hover { color: var(--ink); text-decoration: none; }
.pcard .meta { font-size: 12px; color: var(--ink-3); letter-spacing: -.005em; }
.pcard .price { margin-top: auto; padding-top: 6px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.pcard .flags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.price-now { font: 600 19px var(--font); letter-spacing: -.02em; }
.price-old { color: var(--ink-4); text-decoration: line-through; font-size: 14px; }
.price-request { font-weight: 500; color: var(--ink-2); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 980px;
  background: rgba(255, 255, 255, .9); color: var(--ink-2); letter-spacing: -.005em; }
.pcard .body .tag, .gpart__body .tag { background: var(--surface-2); align-self: flex-start; }
.tag.ok { color: var(--ok); }
.pcard .body .tag.ok { background: var(--ok-soft); }
.tag.warn { color: var(--warn); }
.pcard .body .tag.warn { background: var(--warn-soft); }
.tag.bad { color: var(--bad); background: var(--bad-soft); }
.tag.accent { background: var(--bad); color: #fff; }
.tag.dark { background: var(--ink); color: #fff; }
.tag.muted { color: var(--ink-3); }
.fit { font-weight: 500; }
.fit.ok { color: var(--ok); }
.fit.warn { color: var(--warn); }

.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 230px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 2px 16px; scrollbar-width: none; }
.hscroll > * { scroll-snap-align: start; }
.pmini { display: flex; flex-direction: column; gap: 6px; color: var(--ink); background: var(--surface); border-radius: var(--radius); overflow: hidden;
  padding-bottom: 16px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.pmini:hover { color: var(--ink); text-decoration: none; transform: scale(1.02); box-shadow: var(--shadow-hover); }
.pmini__img { aspect-ratio: 4 / 3; background: var(--surface-2); position: relative; display: block; }
.pmini__img img { width: 100%; height: 100%; object-fit: cover; }
.pmini__img .tag { position: absolute; left: 10px; top: 10px; }
.pmini__name { font-weight: 600; font-size: 15px; line-height: 1.3; padding: 6px 14px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.6em; }
.pmini__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; padding: 0 14px; margin-top: auto; flex-wrap: wrap; font-size: 13px; }
.pmini__price { font-weight: 600; font-size: 15px; white-space: nowrap; }
.pmini__price s { color: var(--ink-4); font-weight: 400; font-size: 12px; }

/* ---- каталог ---- */
.filters .picker { padding: 0; }
.filters .picker .steps { grid-template-columns: 1fr; }
.filters .card { padding: 20px; }
.filters h3 { font-size: 12px; font-weight: 600; color: var(--ink-3); margin: 18px 0 8px; letter-spacing: 0; }
.filters h3:first-child { margin-top: 0; }
.filters .cat-list { list-style: none; padding: 0; margin: 0; }
.filters .cat-list a { display: block; padding: 6px 0; color: var(--ink); font-size: 15px; }
.filters .cat-list a.active { color: var(--accent); font-weight: 600; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar select { width: auto; padding-top: 8px; padding-bottom: 8px; font-size: 15px; border-radius: 980px; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; padding: 8px 14px; border-radius: 980px; background: var(--surface); color: var(--ink); text-align: center; font-size: 15px; }
.pagination a:hover { text-decoration: none; background: var(--surface-3); }
.pagination .current { background: var(--ink); color: #fff; }
details.mobile-filters > summary { display: none; }
@media (max-width: 900px) {
  details.mobile-filters > summary { display: flex; cursor: pointer; list-style: none; }
  details.mobile-filters:not([open]) > .card { display: none; }
}

/* ---- страница товара ---- */
.gallery .main { aspect-ratio: 4 / 3; background: var(--surface-2); border-radius: 28px; overflow: hidden; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.gallery .thumbs button { border: 2px solid transparent; padding: 0; border-radius: 12px; overflow: hidden; width: 76px; height: 57px; flex: none; cursor: pointer; background: none; }
.gallery .thumbs button.active { border-color: var(--accent); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buybox { position: sticky; top: 76px; }
.buybox .price-now { font-size: 32px; font-weight: 600; }
.notice { border-radius: var(--radius-sm); padding: 14px 16px; font-size: 15px; border: 0; letter-spacing: -.01em; }
.notice.warn { background: var(--warn-soft); color: #6b3e00; }
.notice.ok { background: var(--ok-soft); color: #0d4f2a; }
.notice.bad { background: var(--bad-soft); color: #8a0010; }
.notice.info { background: var(--accent-soft); color: #0b3d75; }
.notice ul { margin: 6px 0 0; padding-left: 18px; }
.spec { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec th, .spec td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.spec th { color: var(--ink-3); font-weight: 400; width: 45%; }
.qty { width: 90px !important; }

/* ---- таблицы ---- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 14px; letter-spacing: -.01em; }
table.data th, table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
table.data th { font-size: 12px; color: var(--ink-3); font-weight: 600; background: var(--surface); }
table.data tr:hover td { background: #fafafc; }
table.data td.num, table.data th.num { text-align: right; white-space: nowrap; }
.totals { width: 100%; }
.totals td { padding: 7px 0; }
.totals td:last-child { text-align: right; font-weight: 500; white-space: nowrap; }
.totals tr.grand td { font-size: 22px; font-weight: 600; border-top: 1px solid var(--line-soft); padding-top: 14px; }

/* ---- сообщения ---- */
.messages { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.messages li { padding: 13px 18px; border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-size: 15px; box-shadow: var(--shadow); }
.messages li::before { content: "●"; margin-right: 10px; color: var(--accent); font-size: 10px; vertical-align: 2px; }
.messages li.success::before { color: var(--ok); }
.messages li.error::before { color: var(--bad); }
.messages li.warning::before { color: var(--warn); }

/* ---- кабинет ---- */
.progress { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.notif { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
.notif:hover { text-decoration: none; }
.notif.unread strong::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { padding: 10px 14px; border-radius: 10px; color: var(--ink); font-size: 15px; }
.side-nav a:hover { background: var(--surface-2); text-decoration: none; }
.side-nav a.active { background: var(--surface-2); font-weight: 600; }
.tabs { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface-3); border-radius: 980px; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.tabs a { padding: 7px 16px; border-radius: 980px; white-space: nowrap; font-size: 14px; color: var(--ink); letter-spacing: -.01em; }
.tabs a:hover { text-decoration: none; background: rgba(255, 255, 255, .55); }
.tabs a.active { background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); font-weight: 500; }
.tabs .tag { padding: 0 6px; font-size: 11px; }

/* ---- подвал ---- */
.footer { background: var(--surface-2); color: var(--ink-3); padding: 28px 0 36px; font-size: 12px; border-top: 1px solid var(--line-soft); letter-spacing: -.01em; }
.footer a { color: var(--ink-2); }
.footer .logo { font-size: 16px; }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.footer h4 { color: var(--ink); margin: 0 0 10px; font-size: 12px; font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
@media (max-width: 760px) { .footer .cols { grid-template-columns: 1fr 1fr; } }

/* ---- CRM ---- */
body.crm { background: var(--bg); font-size: 14px; letter-spacing: -.01em; }
.crm-shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.crm-side { background: rgba(251, 251, 253, .9); border-right: 1px solid var(--line-soft); color: var(--ink); padding: 18px 10px; position: sticky; top: 0;
  height: 100vh; overflow-y: auto; }
.crm-side .logo { font-size: 17px; margin: 2px 10px 18px; justify-content: flex-start; gap: 8px; }
.crm-nav > summary { display: none; }
.crm-side .badge { font-style: normal; }
.crm-logout { color: var(--ink-3); margin: 4px 0 0 2px; }
.crm-side h5 { font-size: 11px; font-weight: 600; color: var(--ink-4); margin: 18px 10px 6px; }
.crm-side a { display: flex; justify-content: space-between; color: var(--ink); padding: 7px 10px; border-radius: 8px; font-size: 14px; }
.crm-side a:hover { background: rgba(0, 0, 0, .05); text-decoration: none; }
.crm-side a.active { background: var(--accent); color: #fff; }
.crm-main { padding: 24px 28px 48px; min-width: 0; }
.crm-main h1 { font-size: 28px; }
.crm-main .card h2, .crm-main .panel h2 { font-size: 19px; letter-spacing: -.015em; margin-top: 0; }
.crm-main .card { padding: 20px; }
.crm-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border-radius: 16px; padding: 16px 18px; color: var(--ink); transition: box-shadow .2s; }
.stat:hover { text-decoration: none; box-shadow: var(--shadow); }
.stat b { display: block; font: 600 28px var(--display); letter-spacing: -.02em; }
.stat span { color: var(--ink-3); font-size: 13px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; }
.status { display: inline-block; padding: 2px 9px; border-radius: 980px; font-size: 12px; font-weight: 500; background: var(--surface-3); white-space: nowrap; }
.status.new { background: var(--accent-soft); color: #0b3d75; }
.status.checking, .status.in_progress, .status.offer, .status.agreement, .status.in_review, .status.awaiting { background: var(--warn-soft); color: var(--warn); }
.status.confirmed, .status.picking, .status.ready, .status.paid, .status.accepted, .status.won, .status.fulfilled, .status.delivered, .status.sent, .status.published { background: var(--ok-soft); color: var(--ok); }
.status.cancelled, .status.closed, .status.rejected, .status.failed, .status.refunded, .status.problem, .status.archived { background: var(--bad-soft); color: var(--bad); }
.status.hidden, .status.draft { background: var(--surface-3); color: var(--ink-3); }
.filters-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters-bar input, .filters-bar select { width: auto; min-width: 160px; padding-top: 8px; padding-bottom: 8px; font-size: 14px; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline-form input, .inline-form select { width: auto; padding-top: 7px; padding-bottom: 7px; font-size: 14px; }
.timeline { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.timeline li { padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.thumbs-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.thumbs-edit .item { border-radius: 14px; padding: 8px; background: var(--surface-2); }
.thumbs-edit .item.cover { box-shadow: 0 0 0 2px var(--accent); }

/* CRM: поиск и счётчики в меню */
.crm-search { margin: 0 4px 10px; }
.crm-search input { padding: 7px 12px; font-size: 14px; border-radius: 9px; background: var(--surface-3); border-color: transparent; }
.crm-search input:focus { background: var(--surface); border-color: var(--accent); }
.crm-search.big { display: flex; gap: 8px; max-width: 640px; margin: 0 0 20px; }
.crm-search.big input { padding: 11px 16px; font-size: 16px; background: var(--surface); border-color: var(--line); }
.crm-side a .badge { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 980px; background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; }
.crm-side a .badge.muted { background: var(--surface-3); color: var(--ink-2); }
.crm-side a .badge.bad { background: var(--bad); }
.crm-side a.active .badge { background: #fff; color: var(--accent); }

/* CRM: сводка */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.kpi { background: var(--surface); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.kpi span { color: var(--ink-3); font-size: 13px; }
.kpi b { font: 600 30px/1.1 var(--display); letter-spacing: -.025em; white-space: nowrap; }
.kpi b i { font-style: normal; font-size: 18px; color: var(--ink-3); margin-left: 2px; }
.kpi small { font-size: 12px; color: var(--ink-4); }
.kpi small.up { color: var(--ok); }
.kpi small.down { color: var(--bad); }
.dash { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.dash .panel h2, .dash-recent .panel h2 { font-size: 19px; margin: 0; }
.dash-recent { gap: 14px; }
.dash-recent .panel { padding: 18px 8px 8px; }
.dash-recent .panel__head { padding: 0 12px; }
.tasks { list-style: none; margin: 0 -8px; padding: 0; }
.tasks a { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 8px; border-radius: 12px; color: var(--ink); }
.tasks a:hover { background: var(--surface-2); text-decoration: none; }
.tasks li + li a { border-top: 1px solid var(--line-soft); border-radius: 0; }
.tasks li + li a:hover { border-radius: 12px; }
.task-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.task-dot.lead { background: #af52de; }
.task-text { min-width: 0; display: flex; flex-direction: column; }
.task-text b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-text small { color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-due { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.tasks .is-overdue .task-due { color: var(--bad); font-weight: 500; }
.alerts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.alerts a { display: grid; grid-template-columns: 52px minmax(0, 1fr) 12px; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
  background: var(--surface-2); color: var(--ink); }
.alerts a:hover { text-decoration: none; background: var(--surface-3); }
.alerts b { font: 600 22px/1 var(--display); letter-spacing: -.02em; }
.alerts em { font-style: normal; color: var(--ink-4); font-size: 18px; }
.alerts .tone-bad b { color: var(--bad); }
.alerts .tone-warn b { color: var(--warn); }
.alerts .tone-accent b { color: var(--accent); }
.empty-state { display: flex; flex-direction: column; gap: 4px; padding: 18px 4px; }
.bars { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; height: 170px; align-items: end; }
.bar { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.bar span { width: 100%; max-width: 30px; min-height: 2px; background: var(--accent-soft); border-radius: 6px 6px 3px 3px; transition: background .2s; }
.bar:hover span { background: #9cc3f2; }
.bar.today span { background: var(--accent); }
.bar small { font-size: 11px; color: var(--ink-4); }
.funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.funnel a { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(90px, auto); align-items: center; gap: 10px; padding: 8px 10px;
  border-radius: 10px; color: var(--ink); }
.funnel a:hover { background: var(--surface-2); text-decoration: none; }
.funnel .status { justify-self: start; }
.funnel b { text-align: right; font-size: 17px; }
.funnel small { text-align: right; color: var(--ink-3); white-space: nowrap; }

/* CRM: разметка точек зон на фото кузова */
.spot-editor { display: grid; gap: 8px; }
.spot-editor__frame { position: relative; cursor: crosshair; border-radius: 12px; overflow: hidden; }
.tree-version .spot-editor__frame img { display: block; width: 100%; aspect-ratio: auto; object-fit: initial; border-radius: 0; }
.spot-dot { position: absolute; transform: translate(-6px, -6px); pointer-events: none; display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); white-space: nowrap; }
.spot-dot::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(255, 255, 255, .85); }
.spot-dot.active::before { background: var(--brand); }
.spot-dot.flip { flex-direction: row-reverse; transform: translate(calc(-100% + 6px), -6px); }
.spot-editor.invalid .spot-editor__frame { outline: 2px solid var(--bad); }

/* CRM: машины и проекты из гаражей */
.car-cell { display: flex; align-items: center; gap: 12px; min-width: 240px; }
.car-cell > span:last-child { display: grid; gap: 2px; }
.car-thumb { flex: 0 0 auto; width: 84px; height: 52px; border-radius: 10px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; }
.car-thumb img { width: 100%; height: 100%; object-fit: cover; }
.car-thumb.big { width: 132px; height: 82px; }
.crm-cars { display: grid; gap: 4px; }
.crm-car { display: flex; gap: 16px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.crm-car:last-child { border-bottom: 0; padding-bottom: 0; }
.crm-car__body { display: grid; gap: 4px; min-width: 0; }
.crm-car__project { display: grid; gap: 4px; margin-top: 6px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.crm-car__project form { margin-top: 4px; }
.crm-car__log { list-style: none; margin: 6px 0 0; padding: 0; font-size: 13px; display: grid; gap: 2px; }
@media (max-width: 560px) { .crm-car { flex-direction: column; } .car-thumb.big { width: 100%; height: 140px; } }

/* CRM: списки и карточка заказа */
.seg-tabs { display: flex; gap: 2px; padding: 3px; background: var(--surface-3); border-radius: 11px; overflow-x: auto; scrollbar-width: none;
  width: max-content; max-width: 100%; margin-bottom: 12px; }
.seg-tabs a { padding: 6px 12px; border-radius: 8px; color: var(--ink-2); font-size: 13px; font-weight: 500; white-space: nowrap; }
.seg-tabs a:hover { text-decoration: none; color: var(--ink); }
.seg-tabs a small { color: var(--ink-4); font-weight: 400; margin-left: 2px; }
.seg-tabs a.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.toggle { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 980px; background: var(--surface); border: 1px solid var(--line);
  font-size: 14px; font-weight: 400; cursor: pointer; margin: 0; }
.filters-bar .toggle input, .toggle input { width: auto; min-width: 0; padding: 0; border: 0; margin: 0; accent-color: var(--accent); }
.toggle:has(input:checked) { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
table.data tr[data-href] { cursor: pointer; }
table.data tr[data-href]:hover td { background: var(--surface-2); }
.overdue { color: var(--bad); font-weight: 500; }
.note.bad { background: var(--bad-soft); color: #7a0010; }
.crm-main > .note { margin-bottom: 14px; padding: 12px 16px; border-radius: 12px; font-size: 14px; justify-content: flex-start; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0 0 16px; padding: 16px 18px; background: var(--surface);
  border-radius: 18px; counter-reset: step; }
.steps.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13px; color: var(--ink-4); }
.steps li::before { content: ""; position: absolute; top: 11px; left: -50%; right: 50%; height: 2px; background: var(--surface-3); }
.steps li:first-child::before { display: none; }
.steps li.done::before, .steps li.current::before { background: var(--ok); }
.steps i { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center;
  font-style: normal; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.steps i::after { counter-increment: step; content: counter(step); }
.steps li.done { color: var(--ink-2); }
.steps li.done i { background: var(--ok); color: #fff; }
.steps li.done i::after { content: "✓"; }
.steps li.current { color: var(--ink); font-weight: 600; }
.steps li.current i { background: var(--accent); color: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .crm-main { padding: 18px 16px 40px; }
  .kpi b { font-size: 24px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
  .steps li:nth-child(4)::before { display: none; }
  .bars { gap: 3px; }
}
.thumbs-edit img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 10px; margin-bottom: 6px; }
.thumbs-edit input { padding: 6px 9px; font-size: 13px; }
.tree-version { display: grid; grid-template-columns: 160px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.tree-version img { border-radius: 10px; aspect-ratio: 16 / 9; object-fit: contain; background: var(--surface-2); }
@media (max-width: 900px) {
  .crm-shell { grid-template-columns: 1fr; }
  .crm-side { position: sticky; top: 0; z-index: 20; height: auto; max-height: 100vh; display: grid; grid-template-columns: auto 1fr auto;
    align-items: center; gap: 8px; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line-soft); backdrop-filter: saturate(180%) blur(20px); }
  .crm-side .logo { margin: 0; grid-column: 1; grid-row: 1; }
  .crm-side .crm-search { margin: 0; grid-column: 2; grid-row: 1; }
  .crm-nav { grid-column: 3; grid-row: 1; }
  .crm-nav[open] { grid-column: 1 / -1; grid-row: 2; }
  .crm-nav > summary { display: inline-flex; gap: 6px; align-items: center; list-style: none; cursor: pointer; padding: 7px 12px; border-radius: 980px;
    background: var(--surface-3); font-size: 14px; font-weight: 500; }
  .crm-nav > summary::-webkit-details-marker { display: none; }
  .crm-nav[open] > summary { margin-bottom: 8px; }
  .crm-nav .badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 980px; background: var(--accent); color: #fff; font-size: 12px;
    display: inline-grid; place-items: center; }
  .crm-main { padding: 16px; }
  .tree-version { grid-template-columns: 1fr; }
}

/* ---- машина на «студии» ---- */
.stage { position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 2% 0 0; }
.stage__car { position: relative; z-index: 2; width: 92%; }
.stage__img { width: 100%; display: block; }
.stage__mirror { width: 92%; aspect-ratio: 12 / 1; overflow: hidden; opacity: .12; margin-top: -1px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%); mask-image: linear-gradient(180deg, #000, transparent 90%); }
.stage__mirror img { width: 100%; transform: scaleY(-1); filter: blur(1px); }
.stage__photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
/* Реальное фото кузова: кадр по машине, точки зон в процентах от кадра. */
.stage.has-real { padding: 0; }
.stage__real { width: 100%; }
.stage__real .stage__img { height: auto; border-radius: 22px; box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .45); }
.stage__real .hotspot i { box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 3px 12px rgba(0, 0, 0, .35); }
.stage__credit { align-self: flex-end; margin-top: 8px; font-size: 11px; color: var(--ink-3); }
.stage__credit a { color: inherit; }
.stage .placeholder-car { width: 50%; margin: 40px auto; }

/* точки зон тюнинга */
.hotspot { position: absolute; z-index: 5; width: 0; height: 0; color: var(--ink); }
.hotspot:hover { text-decoration: none; }
.hotspot i { position: absolute; left: -13px; top: -13px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .92);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .22); transition: transform .25s var(--ease), background .2s;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hotspot i::before, .hotspot i::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--ink); border-radius: 2px; transform: translate(-50%, -50%); }
.hotspot i::before { width: 11px; height: 2px; }
.hotspot i::after { width: 2px; height: 11px; }
.hotspot.is-free i { animation: hotspot-ping 2.6s var(--ease) infinite; }
.hotspot.is-project i { background: var(--accent); }
.hotspot.is-project i::before, .hotspot.is-project i::after { background: #fff; }
.hotspot.is-installed i { background: var(--ok); }
.hotspot.is-installed i::before { width: 6px; height: 2px; background: #fff; transform: translate(-80%, 30%) rotate(45deg); }
.hotspot.is-installed i::after { width: 2px; height: 10px; background: #fff; transform: translate(60%, -55%) rotate(40deg); }
.hotspot span { position: absolute; left: 20px; top: -17px; white-space: nowrap; padding: 7px 13px; background: rgba(255, 255, 255, .96); border-radius: 980px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .14); font-size: 13px; font-weight: 600; letter-spacing: -.01em; opacity: 0; transform: translateX(-4px) scale(.96);
  pointer-events: none; transition: opacity .2s, transform .25s var(--ease); }
.hotspot span b { color: var(--ink-3); font-weight: 400; margin-left: 4px; }
.hotspot.flip span { left: auto; right: 20px; transform: translateX(4px) scale(.96); }
.hotspot:hover i, .hotspot:focus-visible i, .hotspot.active i { transform: scale(1.18); }
.hotspot:hover span, .hotspot:focus-visible span, .hotspot.active span { opacity: 1; transform: none; }
.hotspot.active i { box-shadow: 0 0 0 5px rgba(0, 113, 227, .25), 0 2px 10px rgba(0, 0, 0, .22); }
@keyframes hotspot-ping { 0% { box-shadow: 0 0 0 0 rgba(0, 113, 227, .45), 0 2px 10px rgba(0, 0, 0, .22); }
  70%, 100% { box-shadow: 0 0 0 14px rgba(0, 113, 227, 0), 0 2px 10px rgba(0, 0, 0, .22); } }
@media (prefers-reduced-motion: reduce) { .hotspot.is-free i { animation: none; } html { scroll-behavior: auto; } }

/* ---- витрина выбранной машины на главной ---- */
.car-hero { text-align: center; padding-top: 20px; }
.car-hero__title { font-size: clamp(44px, 7.5vw, 88px); line-height: 1; font-weight: 700; letter-spacing: -.03em; margin-bottom: 12px; }
.car-hero__title span { color: var(--ink-4); }
.car-hero__sub { font-size: clamp(19px, 2vw, 24px); color: var(--ink-2); margin-bottom: 20px; letter-spacing: -.02em; }
.car-hero__warn { color: var(--warn); font-size: 15px; }
.car-hero__cta { display: flex; gap: 22px; align-items: center; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.car-hero__change { position: relative; }
.car-hero__change > summary { list-style: none; }
.car-hero__change > summary::-webkit-details-marker { display: none; }
.car-hero__picker { position: absolute; z-index: 40; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); width: min(440px, calc(100vw - 32px));
  background: var(--surface); border-radius: 22px; padding: 6px; box-shadow: 0 24px 60px rgba(0, 0, 0, .18); text-align: left; }
.car-hero__picker > a { display: block; text-align: center; padding: 0 0 14px; }
.car-hero__media { max-width: 1040px; margin: 8px auto 0; }
.car-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 820px; margin: 8px auto 0; }
.car-stats a { color: var(--ink); padding: 8px 12px; border-left: 1px solid var(--line-soft); }
.car-stats a:first-child { border-left: 0; }
.car-stats a:hover { text-decoration: none; }
.car-stats a:hover b { color: var(--accent); }
.car-stats b { display: block; font: 600 clamp(30px, 4vw, 44px)/1.1 var(--display); letter-spacing: -.02em; transition: color .2s; }
.car-stats span { font-size: 14px; color: var(--ink-3); }
.car-hero__shelf { text-align: left; }
@media (max-width: 560px) { .car-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; } .car-stats a:nth-child(3) { border-left: 0; } }

/* ---- гараж ---- */
.garage__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.garage__head h1 { margin: 0; font-size: clamp(36px, 5vw, 56px); font-weight: 700; letter-spacing: -.025em; }
.garage__head p { margin: 4px 0 0; }
.carpick { display: flex; gap: 12px; overflow-x: auto; padding: 4px 4px 14px; margin: 0 -4px 6px; scrollbar-width: none; }
.carpick__item { flex: 0 0 172px; display: flex; flex-direction: column; gap: 2px; padding: 14px 14px 12px; background: var(--surface); border-radius: var(--radius);
  color: var(--ink); box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s, transform .3s var(--ease); }
.carpick__item:hover { text-decoration: none; transform: scale(1.02); }
.carpick__item.active { box-shadow: inset 0 0 0 2px var(--accent); }
.carpick__img { height: 50px; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.carpick__img img { max-height: 50px; width: auto; max-width: 100%; object-fit: contain; }
.carpick__img img.real { width: 100%; height: 50px; max-height: none; object-fit: cover; border-radius: 10px; }
.carpick__name { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.carpick__sub { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.carpick__item.add { align-items: center; justify-content: center; text-align: center; background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.carpick__item.add:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.carpick__plus { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-size: 22px; line-height: 1;
  color: var(--ink); margin-bottom: 6px; }

.garage__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.garage__stage { background: linear-gradient(180deg, #ffffff 0%, #f6f6f8 72%, #ececf0 100%); border-radius: 28px; padding: 36px 32px 26px; overflow: hidden; }
.garage__title { text-align: center; }
.garage__title h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1; font-weight: 700; letter-spacing: -.03em; margin-bottom: 10px; }
.garage__title h2 span { color: var(--ink-4); }
.garage__title p { margin: 0 0 4px; }
.garage__meta { font-size: 15px; color: var(--ink-3); }
.garage__meta .link-more { font-size: 15px; }
.garage__car { position: relative; margin: 26px 0 8px; }
.round-btn { position: absolute; top: 42%; z-index: 6; width: 44px; height: 44px; border-radius: 50%; background: rgba(210, 210, 215, .55); color: var(--ink);
  display: grid; place-items: center; font-size: 26px; line-height: 1; padding-bottom: 3px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background .2s; }
.round-btn:hover { text-decoration: none; background: rgba(210, 210, 215, .9); }
.round-btn.prev { left: -12px; }
.round-btn.next { right: -12px; }
.legend { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.legend i.installed { background: var(--ok); }
.legend i.project { background: var(--accent); }
.legend i.free { background: #fff; box-shadow: 0 0 0 1px var(--line), 0 1px 3px rgba(0, 0, 0, .2); }

.garage__side { display: grid; gap: 20px; position: sticky; top: 76px; }
.panel { background: var(--surface); border-radius: 22px; padding: 22px; }
.panel__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.panel__head h3 { margin: 0; }
.big-num { font: 600 34px/1 var(--display); letter-spacing: -.02em; }
.big-num small { font-size: 18px; color: var(--ink-3); margin-left: 1px; }
.count { min-width: 24px; height: 24px; padding: 0 8px; border-radius: 980px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600;
  display: inline-grid; place-items: center; }
.meters { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.meters li { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 15px; }
.meters b { font-weight: 400; color: var(--ink-3); font-size: 14px; }
.meter { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 99px; background: var(--accent); transition: width .8s var(--ease); }
.bag { list-style: none; padding: 0; margin: 0 0 12px; }
.bag li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.bag li:first-child { padding-top: 0; }
.bag__img { width: 52px; height: 40px; border-radius: 10px; overflow: hidden; background: var(--surface-2); display: block; }
.bag__img img { width: 100%; height: 100%; object-fit: cover; }
.bag__text { min-width: 0; display: flex; flex-direction: column; }
.bag__text a { color: var(--ink); font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bag__text small { color: var(--ink-3); font-size: 13px; }
.bag__remove { background: none; border: 0; color: var(--link); font: 13px var(--font); cursor: pointer; padding: 4px 0; }
.bag__remove:hover { text-decoration: underline; }
.note { display: flex; gap: 10px; align-items: center; justify-content: space-between; font-size: 13px; line-height: 1.4; color: var(--ink-2); background: var(--surface-2);
  border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.note.warn { background: var(--warn-soft); color: #6b3e00; }
.summary { margin: 14px 0 16px; display: grid; gap: 8px; }
.summary div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.summary dt { color: var(--ink-3); font-size: 15px; }
.summary dd { margin: 0; font-size: 15px; text-align: right; }
.summary .total dt { color: var(--ink); font-weight: 600; font-size: 17px; }
.summary .total dd { font: 600 24px var(--display); letter-spacing: -.02em; }
.summary small { display: block; font: 400 12px var(--font); color: var(--ink-3); }
.panel .center { margin: 10px 0 0; }
.history { margin-top: 16px; border-top: 1px solid var(--line-soft); padding-top: 14px; font-size: 14px; }
.history summary { cursor: pointer; color: var(--link); }
.history ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.history li { display: flex; justify-content: space-between; gap: 8px; min-width: 0; }
.history li a { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history li span { color: var(--ink-3); white-space: nowrap; }

.garage__shop { scroll-margin-top: 70px; }
.filters-pills { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 14px; margin-bottom: 6px; scrollbar-width: none; }
.filters-pills a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 980px; background: var(--surface); color: var(--ink);
  font-size: 14px; letter-spacing: -.01em; white-space: nowrap; transition: background .2s, color .2s; }
.filters-pills a:hover { text-decoration: none; background: var(--surface-3); }
.filters-pills a.active { background: var(--ink); color: #fff; }
.filters-pills small { color: var(--ink-4); }
.filters-pills a.active small { color: rgba(255, 255, 255, .6); }
.filters-pills i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.filters-pills a.is-installed i { background: var(--ok); }
.filters-pills a.is-project i { background: var(--accent); }
.gparts { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.gpart { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.gpart:hover { transform: scale(1.015); box-shadow: var(--shadow-hover); }
.gpart.in-project { box-shadow: inset 0 0 0 2px var(--accent); }
.gpart__img { aspect-ratio: 4 / 3; position: relative; background: var(--surface-2); display: block; }
.gpart__img img { width: 100%; height: 100%; object-fit: cover; }
.gpart__flags { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.gpart__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.gpart__cat { font-size: 12px; font-weight: 600; color: var(--brand); letter-spacing: 0; }
.gpart__name { color: var(--ink); font-weight: 600; line-height: 1.25; font-size: 17px; }
.gpart__name:hover { color: var(--ink); text-decoration: none; }
.gpart__meta { font-size: 13px; color: var(--ink-3); }
.gpart__req { font-size: 13px; color: var(--warn); }
.gpart__foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.gpart__price { font-weight: 600; font-size: 17px; white-space: nowrap; }
.gpart__price s { font-weight: 400; font-size: 13px; color: var(--ink-4); }
/* Карточка товара: совместимость и проект рядом с покупкой */
.buy-fit { margin: 12px 0 0; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.buy-fit::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.buy-fit.warn { color: var(--warn); } .buy-fit.bad { color: var(--bad); }
.buy-project { margin-top: 8px; display: grid; gap: 6px; text-align: center; }
.buy-project .btn.on { box-shadow: inset 0 0 0 2px var(--accent); color: var(--accent); }

/* Передача проекта менеджеру и история машины */
.handoff { margin-top: 14px; border-top: 1px solid var(--line-soft); padding-top: 14px; font-size: 14px; }
.handoff summary { cursor: pointer; color: var(--link); font-size: 15px; }
.handoff > p { margin: 8px 0 10px; }
.handoff.on { display: grid; gap: 2px; padding: 12px 14px; border: 0; border-radius: var(--radius-sm); background: var(--ok-soft); color: var(--ink-2); }
.handoff.on b { color: var(--ok); }
.handoff.on + .handoff { border-top: 0; padding-top: 4px; }
.form.compact { display: grid; gap: 12px; }
.form.compact > div { margin: 0; }
.form.compact label { margin: 0; display: grid; gap: 6px; }
.form.compact input { font-size: 15px; padding: 9px 12px; }
.form.compact label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.form.compact label.check input { width: auto; }
.form.compact h3 { margin: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.garage__log { margin-top: 56px; scroll-margin-top: 70px; }
.log-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.timeline { list-style: none; margin: 0; padding: 6px 0 0 22px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 12px; bottom: 12px; width: 2px; background: var(--line); border-radius: 2px; }
.timeline__item { position: relative; display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 12px 0 14px; border-bottom: 1px solid var(--line-soft); }
.timeline__item::before { content: ""; position: absolute; left: -22px; top: 17px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 3px var(--accent); }
.timeline__item.own::before { box-shadow: inset 0 0 0 3px var(--ink-3); }
.timeline__item time { color: var(--ink-3); font-size: 14px; white-space: nowrap; }
.timeline__body b { font-size: 16px; margin-right: 6px; }
.timeline__body b a { color: var(--ink); }
.timeline__body .tag { background: var(--surface-2); }
.timeline__body p { margin: 4px 0 0; color: var(--ink-3); font-size: 14px; }
.garage__empty { text-align: center; background: var(--surface); border-radius: 28px; padding: 48px 24px; }
.garage__empty p { max-width: 520px; margin: 0 auto 22px; }

@media (max-width: 1000px) {
  .garage__grid, .log-grid { grid-template-columns: 1fr; }
  .garage__side { position: static; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  main { padding-top: 20px; }
  .grid.products { grid-template-columns: 1fr 1fr; gap: 12px; }
  .pcard .body { padding: 12px; }
  .pcard .name { font-size: 15px; }
  .price-now { font-size: 16px; }
  .hscroll { grid-auto-columns: 64%; }
  .garage__stage { padding: 24px 14px 18px; border-radius: 22px; }
  .garage__car { margin-top: 18px; }
  .round-btn { width: 34px; height: 34px; font-size: 20px; top: -6px; }
  .round-btn.prev { left: 0; }
  .round-btn.next { right: 0; }
  .hotspot i { width: 20px; height: 20px; left: -10px; top: -10px; }
  .hotspot i::before { width: 9px; } .hotspot i::after { height: 9px; }
  .gparts { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gpart__body { padding: 12px; }
  .gpart__name { font-size: 15px; }
  .gpart__foot { flex-direction: column; align-items: stretch; }
  .pill { width: 100%; }
  .garage__head .tabs { width: 100%; }
  .timeline__item { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; }
  .timeline__item time { grid-column: 1 / -1; }
}
.nowrap { white-space: nowrap; }
/* Товар без фото: нейтральная подпись вместо пустого блока */
.no-photo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 100%; min-height: 64px;
  padding: 8px; text-align: center; color: var(--ink-4); font-size: 12px; line-height: 1.3; letter-spacing: .01em; }
.no-photo::before { content: ""; width: clamp(28px, 30%, 96px); aspect-ratio: 1; background: url("../img/apex-crest-256.png") center / contain no-repeat;
  filter: grayscale(1); opacity: .16; mix-blend-mode: multiply; }
.pmini .no-photo { font-size: 0; gap: 0; }
