:root {
  --bg: #0B0B0C; --surface: #161618; --photo: #232326; --line: #2A2A2E; --line2: #4A4A50;
  --text: #F5F5F2; --muted: #A3A3A8; --dim: #6F6F76; --red: #FF3B30; --red-text: #FF5A50;
  --display: Unbounded, "Arial Black", sans-serif; --body: "Golos Text", system-ui, sans-serif;
  --tabs: 76px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: var(--body); }
body { overscroll-behavior-y: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, p { margin: 0; }
#view { max-width: 560px; margin: 0 auto; padding-bottom: calc(var(--tabs) + 16px + env(safe-area-inset-bottom)); }
.notabs #view { padding-bottom: 20px; }

.head { padding: 18px 16px 14px; display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.logo { font: 800 21px var(--display); letter-spacing: -.5px; }
.logo span { color: var(--red); }
.title { font: 800 24px var(--display); letter-spacing: -.6px; }
.sub { font-size: 14px; line-height: 20px; color: var(--muted); }
.pill { display: flex; align-items: center; gap: 7px; padding: 7px 11px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.pill.off i { background: var(--dim); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 13px; font-weight: 600; }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.list { padding: 0 16px; display: flex; flex-direction: column; gap: 12px; }

.photo { position: relative; display: flex; align-items: center; justify-content: center; background: var(--photo); color: var(--dim); overflow: hidden; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; pointer-events: none; }
.tag { position: absolute; padding: 6px 9px; border-radius: 9px; font: 700 12px var(--display); z-index: 1; }
.tag.deal { background: var(--red); color: var(--bg); }
.tag.plain { background: var(--bg); border: 1px solid var(--line2); }
.tag.age { background: var(--bg); font: 600 12px var(--body); }
.tl { left: 10px; top: 10px; } .tr { right: 10px; top: 10px; } .bl { left: 14px; bottom: 14px; } .br { right: 14px; bottom: 14px; }

.ad { display: block; width: 100%; padding: 0; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.ad .photo { height: 168px; }
.ad .info { padding: 12px 14px 13px; display: flex; flex-direction: column; gap: 5px; }
.ad h2 { font-size: 16px; font-weight: 700; line-height: 21px; }
.price { flex: none; font: 800 16px var(--display); }
.meta { font-size: 13px; line-height: 18px; color: var(--muted); }
.row.top { align-items: baseline; }

.mini { display: flex; gap: 12px; width: 100%; padding: 10px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.mini .photo { flex: none; width: 96px; height: 96px; border-radius: 12px; }
.mini .info { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.mini h2 { font-size: 15px; font-weight: 700; line-height: 20px; }
.drop { font-size: 13px; font-weight: 700; color: var(--red-text); }

.gallery { height: 268px; }
.gallery .scroller { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery .scroller::-webkit-scrollbar { display: none; }
.gallery .scroller div { position: relative; flex: none; width: 100%; scroll-snap-align: start; }
.round { position: absolute; top: 12px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 14px; background: var(--bg); z-index: 2; }
.round.on { color: var(--red); }
.summary { padding: 18px 16px 16px; display: flex; flex-direction: column; gap: 7px; }
.summary h1 { font-size: 22px; font-weight: 700; line-height: 28px; margin-top: 6px; }
.badge { align-self: flex-start; padding: 6px 9px; border-radius: 9px; font: 700 12px var(--display); }
.badge.deal { background: var(--red); color: var(--bg); }
.badge.plain { border: 1px solid var(--line2); }
.bigprice { margin-top: 8px; font: 800 29px var(--display); letter-spacing: -.8px; }
.box { margin: 0 16px 12px; padding: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; display: flex; flex-direction: column; gap: 10px; }
.box h2 { font-size: 15px; font-weight: 700; }
.box p { font-size: 14px; line-height: 20px; }
.box .desc { line-height: 21px; white-space: pre-line; overflow-wrap: anywhere; }
.track { position: relative; height: 22px; }
.track b { position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 2px; background: var(--line); }
.track u { position: absolute; top: 9px; height: 4px; border-radius: 2px; background: var(--dim); }
.track i { position: absolute; top: 2px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--red); border: 3px solid var(--surface); }
.scale { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.meter { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 6px; background: var(--red); }
.haggle { margin: 0 16px 12px; padding: 15px; border-radius: 18px; background: var(--red); color: var(--bg); display: flex; flex-direction: column; gap: 4px; }
.haggle span { font-size: 13px; font-weight: 700; }
.haggle b { font: 800 20px var(--display); letter-spacing: -.4px; }
.actions { margin: 2px 16px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.btn { min-height: 48px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 14px; background: transparent; font-size: 14px; font-weight: 600; text-decoration: none; display: flex; align-items: center; justify-content: center; text-align: center; }
.btn.light { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 700; }
.btn.red { min-height: 54px; background: var(--red); color: var(--bg); border: 0; border-radius: 16px; font: 700 14px var(--display); }
.btn.wide { grid-column: 1 / -1; }

.search { padding: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; display: flex; flex-direction: column; gap: 11px; }
.search h2 { font-size: 17px; font-weight: 700; line-height: 22px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stats div { padding: 10px; background: var(--bg); border-radius: 12px; display: flex; flex-direction: column; gap: 2px; }
.stats b { font: 700 16px var(--display); }
.stats span { font-size: 12px; color: var(--muted); }
.switch { position: relative; flex: none; width: 50px; height: 44px; padding: 0; border: 0; background: none; }
.switch::before { content: ""; position: absolute; left: 0; top: 7px; width: 50px; height: 30px; border-radius: 15px; background: #3A3A3F; transition: background .15s; }
.switch::after { content: ""; position: absolute; left: 3px; top: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--text); transition: left .15s; }
.switch[aria-checked="true"]::before { background: var(--red); }
.switch[aria-checked="true"]::after { left: 23px; }

.deck { position: relative; margin: 0 16px; height: calc(100dvh - var(--tabs) - 176px - env(safe-area-inset-bottom)); min-height: 400px; }
.swipe { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.swipe.top { touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; transform-origin: 50% 120%; }
.swipe .photo { flex: 1; min-height: 0; }
.swipe .info { padding: 16px; display: flex; flex-direction: column; gap: 5px; }
.swipe h2 { font-size: 20px; font-weight: 700; line-height: 26px; }
.swipe .amount { font: 800 24px var(--display); letter-spacing: -.5px; }
.stamp { position: absolute; top: 24px; padding: 6px 12px; border: 4px solid; border-radius: 12px; background: var(--bg); font: 800 25px var(--display); opacity: 0; z-index: 2; pointer-events: none; }
.stamp.yes { left: 18px; color: var(--red-text); transform: rotate(-12deg); }
.stamp.no { right: 18px; transform: rotate(12deg); }
.controls { margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.circle { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--line2); border-radius: 50%; background: transparent; }
.circle.big { width: 66px; height: 66px; background: var(--surface); }
.circle.yes { background: var(--red); color: var(--bg); border: 0; }
.circle:disabled { color: var(--dim); }

.plan { margin: 0 16px 12px; padding: 16px; border-radius: 20px; background: var(--red); color: var(--bg); display: flex; flex-direction: column; gap: 5px; }
.plan.off { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.plan b { font: 800 22px var(--display); letter-spacing: -.5px; }
.plan span { font-size: 14px; font-weight: 500; }
.plan .go { margin-top: 9px; min-height: 48px; border: 0; border-radius: 14px; background: var(--bg); color: var(--text); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.plan.off .go { background: var(--red); color: var(--bg); }
.menu { margin: 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.menu button { width: 100%; min-height: 54px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 0; border-bottom: 1px solid var(--line); background: none; font-size: 15px; font-weight: 600; text-align: left; }
.menu button:last-child { border-bottom: 0; }
.menu span { font-size: 14px; font-weight: 500; color: var(--muted); }
.contact { margin-top: 14px; text-align: center; font-size: 13px; color: var(--muted); }

.empty { margin: 40px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.empty h2 { font: 800 20px var(--display); line-height: 27px; }
.empty p { font-size: 15px; line-height: 22px; color: var(--muted); }
.empty .btn { padding: 0 20px; min-width: 200px; }
.skeleton { height: 262px; border-radius: 18px; background: var(--surface); animation: pulse 1.2s infinite alternate; }
@keyframes pulse { to { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }

#tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 8px 6px calc(12px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
#tabs[hidden] { display: none; }
#tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 11px; font-weight: 600; }
#tabs button[aria-current="page"] { color: var(--red); }
#toast { position: fixed; left: 16px; right: 16px; bottom: calc(var(--tabs) + 14px + env(safe-area-inset-bottom)); z-index: 6; padding: 13px 15px; border-radius: 14px; background: var(--text); color: var(--bg); font-size: 14px; font-weight: 600; text-align: center; }
#toast[hidden] { display: none; }

.form { padding: 0 16px; display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.input { width: 100%; min-height: 48px; padding: 12px 13px; border: 1px solid var(--line2); border-radius: 12px; background: var(--surface); color: var(--text); font: 500 16px var(--body); resize: vertical; }
.input:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: transparent; }
.code { padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; overflow-wrap: anywhere; user-select: text; }
.desc { font-size: 14px; line-height: 20px; white-space: pre-line; overflow-wrap: anywhere; }
.answer { padding: 11px 12px; border-radius: 12px; background: var(--bg); font-size: 14px; line-height: 20px; white-space: pre-line; overflow-wrap: anywhere; }
.fact { min-height: 46px; padding: 11px 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.fact:last-child { border-bottom: 0; }
.fact span { font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.search .btn { width: 100%; }
.meta { white-space: pre-line; }
.fresh { animation: fresh 2.4s ease-out; }
@keyframes fresh { from { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); } }
.newpill { position: fixed; left: 50%; top: 12px; z-index: 6; transform: translateX(-50%); min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--red); color: var(--bg); font-size: 13px; font-weight: 700; white-space: nowrap; }
.newpill[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .fresh { animation: none; } }
.tag.warn { background: var(--text); color: var(--bg); font: 700 12px var(--body); }

/* ---------- оживление ---------- */
body::before { content: ""; position: fixed; left: -20%; right: -20%; top: -140px; height: 300px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 59, 48, .17), transparent); }
button, .btn, .chip { transition: transform .12s ease, background-color .15s, border-color .15s, color .15s; }
button:active, .btn:active, a.btn:active { transform: scale(.965); }
.ad:active, .mini:active { transform: scale(.985); }

#splash { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: var(--bg); transition: opacity .35s ease, transform .35s ease; }
#splash.gone { opacity: 0; transform: scale(1.04); pointer-events: none; }
.splash-logo { font: 800 27px var(--display); letter-spacing: -.6px; animation: rise .55s cubic-bezier(.2, .8, .2, 1) both; }
.splash-logo span { color: var(--red); }
.splash-line { width: 150px; height: 3px; border-radius: 2px; overflow: hidden; background: var(--line); }
.splash-line i { display: block; width: 45%; height: 3px; border-radius: 2px; background: var(--red); animation: sweep 1s ease-in-out infinite; }
@keyframes sweep { from { transform: translateX(-110%); } to { transform: translateX(250%); } }

.in-tab { animation: rise .32s cubic-bezier(.2, .8, .2, 1); }
.in-forward { animation: from-right .3s cubic-bezier(.2, .8, .2, 1); }
.in-back { animation: from-left .26s cubic-bezier(.2, .8, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes from-right { from { opacity: 0; transform: translateX(34px); } to { opacity: 1; transform: none; } }
@keyframes from-left { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }

.stagger > * { animation: rise .42s cubic-bezier(.2, .8, .2, 1) backwards; }
.stagger > *:nth-child(1) { animation-delay: .03s; } .stagger > *:nth-child(2) { animation-delay: .08s; }
.stagger > *:nth-child(3) { animation-delay: .13s; } .stagger > *:nth-child(4) { animation-delay: .18s; }
.stagger > *:nth-child(5) { animation-delay: .23s; } .stagger > *:nth-child(n+6) { animation-delay: .27s; }

.photo img { opacity: 0; transform: scale(1.04); transition: opacity .35s ease, transform .5s ease; }
.photo img.ready { opacity: 1; transform: none; }
.tag.deal { animation: glow 2.6s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 16px rgba(255, 59, 48, .6); } }
.logo { background: linear-gradient(100deg, var(--text) 42%, var(--red) 50%, var(--text) 58%); background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
.logo span { color: var(--red); }
@keyframes shine { from { background-position: 130% 0; } to { background-position: -130% 0; } }
.pill i { position: relative; }
.pill:not(.off) i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--red); animation: ping 1.7s ease-out infinite; }
@keyframes ping { to { transform: scale(3); opacity: 0; } }

.skeleton { position: relative; overflow: hidden; animation: none; }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .06) 50%, transparent 80%); animation: skim 1.15s linear infinite; }
@keyframes skim { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.track i { animation: slide .8s cubic-bezier(.2, .9, .3, 1.2) backwards .1s; }
@keyframes slide { from { left: 0; opacity: 0; } }
.track u { animation: rise-x .7s ease-out backwards; transform-origin: left; }
@keyframes rise-x { from { transform: scaleX(0); } }
.meter i { animation: rise-x .9s cubic-bezier(.2, .8, .2, 1) backwards .15s; transform-origin: left; }
.haggle { animation: rise .45s ease-out backwards .1s; }

.round.pop { animation: pop .4s cubic-bezier(.2, 1.6, .4, 1); }
.round { overflow: visible; }
@keyframes pop { 40% { transform: scale(1.28); } }
.burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; z-index: 4; }
.burst i { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: fly-out .6s ease-out forwards; }
@keyframes fly-out { from { transform: rotate(var(--a)) translateY(0) scale(1); opacity: 1; } to { transform: rotate(var(--a)) translateY(-44px) scale(.2); opacity: 0; } }
.circle { position: relative; }
.circle.yes:active { transform: scale(.88); }

.swipe.top.rise { animation: card-in .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes card-in { from { opacity: .4; } }
.swipe { box-shadow: 0 14px 34px rgba(0, 0, 0, .55); }
.hint { position: absolute; left: 50%; top: 14px; z-index: 3; transform: translateX(-50%); padding: 9px 13px; border-radius: 999px; background: var(--text); color: var(--bg);
  font-size: 12px; font-weight: 700; white-space: nowrap; pointer-events: none; animation: nudge 1.5s ease-in-out infinite; }
@keyframes nudge { 25% { transform: translateX(calc(-50% - 7px)); } 75% { transform: translateX(calc(-50% + 7px)); } }

#tabs { overflow: hidden; }
.tab-mark { position: absolute; top: 0; left: 6px; width: calc((100% - 12px) / 5); height: 3px; display: flex; justify-content: center;
  transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .28s cubic-bezier(.3, 1.3, .5, 1); }
.tab-mark::after { content: ""; width: 34px; height: 3px; border-radius: 0 0 3px 3px; background: var(--red); box-shadow: 0 0 12px var(--red); }
#tabs button[aria-current="page"] span { animation: pop .35s cubic-bezier(.2, 1.6, .4, 1); }
#toast { animation: toast-in .25s cubic-bezier(.2, .9, .3, 1.15); }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px); } }
.fresh { animation: fresh-in .5s cubic-bezier(.2, .9, .3, 1.1), fresh 2.4s ease-out; }
@keyframes fresh-in { from { opacity: 0; transform: translateY(-22px) scale(.97); } }
.avatar { position: relative; flex: none; width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; overflow: hidden;
  border-radius: 50%; background: var(--red); color: var(--bg); font: 800 22px var(--display); }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plan { position: relative; overflow: hidden; }
.plan:not(.off)::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%);
  transform: translateX(-100%); animation: skim 3.8s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .logo { background: none; color: var(--text); }
}

/* новый поиск и проверка по номеру */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pair .input { min-width: 0; }
.wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.wrap .chip { color: var(--text); }
.wrap .chip.on { color: var(--bg); }
.clip { max-width: 58%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: right; }
.list-hint { padding: 14px; font-size: 13px; line-height: 18px; color: var(--muted); }
.tick { width: 24px; height: 24px; flex: none; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line2); border-radius: 8px; }
.menu .tick.on { background: var(--red); border-color: var(--red); color: var(--bg); font-weight: 800; }
.job { align-items: center; text-align: center; padding-top: 30px; }
.job-line { font-size: 15px; line-height: 22px; color: var(--muted); white-space: pre-line; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--line2); border-top-color: var(--red); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.plate { display: flex; align-items: stretch; min-height: 72px; border: 3px solid #101012; outline: 2px solid var(--text); border-radius: 12px; background: var(--text); color: #101012; overflow: hidden; }
.plate:focus-within { outline-color: var(--red); }
.plate input { flex: 1; min-width: 0; padding: 0 12px; border: 0; outline: 0; background: none; color: #101012; font: 800 23px var(--display); text-transform: uppercase; }
.plate input::placeholder { color: #A9A9A4; }
.plate-side { flex: none; width: 74px; border-left: 3px solid #101012; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.plate-side b { font: 800 21px var(--display); }
.plate-side small { display: flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 800; }
.plate-side i { width: 14px; height: 9px; border: 1px solid #101012; background: linear-gradient(#fff 33%, #1C3FA8 33% 66%, #D52B1E 66%); }
.plate-region { font: 800 18px var(--display); text-align: center; animation: rise .3s ease-out; }
.stack { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }

/* ---------- правки внешнего вида ---------- */
/* фон страницы лежит на html: иначе body закрывает красное свечение сверху и оно видно только полосой */
body { background: transparent; }
.tag.plain, .tag.age { color: var(--text); }
.tag.plain, .tag.age, .round { background: rgba(11, 11, 12, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
#tabs { background: rgba(11, 11, 12, .84); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }

.ad .photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 50px; pointer-events: none; background: linear-gradient(transparent, rgba(0, 0, 0, .35)); }
.ad.hot { border-color: rgba(255, 59, 48, .55); box-shadow: 0 0 22px rgba(255, 59, 48, .16); }
.ad.hot .price { color: var(--red-text); }
/* пока фото грузится, по нему идет блик; машин без фото не растягиваем на пустой серый блок */
.ad .photo:has(img:not(.ready))::before, .mini .photo:has(img:not(.ready))::before, .swipe .photo:has(img:not(.ready))::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, .07) 50%, transparent 75%); animation: skim 1.15s linear infinite; }
.ad .photo:not(:has(img)) { height: 92px; }
.mini.pick { align-items: center; }
.mini.pick .info { flex: 1; }
.mini.pick.on { border-color: var(--red); }
.compare-go { position: fixed; left: 16px; right: 16px; bottom: calc(var(--tabs) + 12px + env(safe-area-inset-bottom)); z-index: 4; box-shadow: 0 10px 28px rgba(255, 59, 48, .35); animation: rise .25s ease-out; }
.compare-go[hidden] { display: none; }

.pulse { padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid rgba(255, 59, 48, .35); border-radius: 18px; background: linear-gradient(135deg, rgba(255, 59, 48, .2), var(--surface) 70%); }
.pulse > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pulse b { font: 800 30px var(--display); letter-spacing: -.8px; }
.pulse span { font-size: 13px; color: var(--muted); }
.pulse .pill { flex: none; background: rgba(11, 11, 12, .55); }

.lightbox { position: fixed; inset: 0; z-index: 30; background: #000; animation: lb-in .2s ease-out; }
@keyframes lb-in { from { opacity: 0; } }
.lb-strip { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lb-strip::-webkit-scrollbar { display: none; }
.lb-strip div { flex: none; width: 100%; height: 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; }
.lb-strip img { max-width: 100%; max-height: 100%; object-fit: contain; opacity: 0; transition: opacity .25s; }
.lb-strip img.ready { opacity: 1; }
.lb-count { position: absolute; left: 16px; top: 22px; padding: 6px 10px; border-radius: 9px; background: rgba(11, 11, 12, .72); font: 700 13px var(--display); }
.gallery .scroller { cursor: zoom-in; }

.cmp-cells { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 8px; }
.cmp-cells.heads { margin: 0 16px 10px; }
.cmp-car { padding: 0; border: 0; background: none; text-align: left; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cmp-car .photo { height: 72px; border-radius: 12px; }
.cmp-car b { font-size: 12px; line-height: 16px; font-weight: 700; overflow-wrap: anywhere; }
.cmp { gap: 0; padding: 4px 12px; }
.cmp-row { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.cmp-row:last-child { border-bottom: 0; }
.cmp .cmp-name { font-size: 12px; line-height: 16px; color: var(--muted); }
.cmp-cells span { font-size: 13px; line-height: 18px; font-weight: 600; overflow-wrap: anywhere; }
.cmp-cells span.win { color: var(--red-text); font-weight: 800; }
.menu button { padding-top: 9px; padding-bottom: 9px; }
.stats div { background: var(--surface); border: 1px solid var(--line); }
.search .stats div { background: var(--bg); border: 0; }

/* обучение в подборе: показывается один раз и исчезает при первом касании */
.coach { position: absolute; inset: 0; z-index: 3; padding: 18px; display: flex; flex-direction: column; justify-content: center; gap: 20px; pointer-events: none; color: var(--text);
  background: rgba(8, 8, 9, .72); animation: lb-in .25s ease-out; }
.coach-sides { display: flex; justify-content: space-between; gap: 12px; }
.coach-side { display: flex; flex-direction: column; gap: 4px; }
.coach-side.yes { align-items: flex-end; text-align: right; }
.coach-side i { font: 800 32px var(--display); font-style: normal; }
.coach-side.no i { animation: coach-left 1.3s ease-in-out infinite; }
.coach-side.yes i { color: var(--red-text); animation: coach-right 1.3s ease-in-out infinite; }
.coach-side b { font: 800 20px var(--display); }
.coach-side.yes b { color: var(--red-text); }
.coach-side span { font-size: 13px; color: var(--text); }
.coach p { text-align: center; font-size: 14px; line-height: 20px; font-weight: 600; }
@keyframes coach-left { 50% { transform: translateX(-9px); } }
@keyframes coach-right { 50% { transform: translateX(9px); } }

/* кнопка объявления всегда под рукой */
.sticky-cta { position: sticky; bottom: 0; z-index: 3; margin-top: 12px; padding: 18px 16px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 40%); animation: rise .4s ease-out backwards .15s; }
.sticky-cta .btn { width: 100%; box-shadow: 0 10px 26px rgba(255, 59, 48, .32); }
.notabs #view:has(.sticky-cta) { padding-bottom: 0; }
/* пустой экран: машинка слегка покачивается */
.empty::before { content: ""; width: 64px; height: 64px; background: var(--dim); animation: float 3s ease-in-out infinite;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 17H3v-5l2-5h12l4 5v5h-2'/%3E%3Cpath d='M3 12h18'/%3E%3Ccircle cx='7.5' cy='17' r='2'/%3E%3Ccircle cx='16.5' cy='17' r='2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 17H3v-5l2-5h12l4 5v5h-2'/%3E%3Cpath d='M3 12h18'/%3E%3Ccircle cx='7.5' cy='17' r='2'/%3E%3Ccircle cx='16.5' cy='17' r='2'/%3E%3C/svg%3E") center / contain no-repeat; }
@keyframes float { 50% { transform: translateY(-7px); } }

.whoami { margin: 3px 0 2px; padding: 3px 0; border: 0; background: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; font-weight: 600; color: var(--text); text-align: left; }
.whoami span:nth-child(2) { color: var(--muted); font-weight: 500; }
.whoami > span:last-child { color: var(--muted); }
.btn.danger { margin-top: 10px; border-color: rgba(255, 90, 80, .5); color: var(--red-text); }

.step { padding: 14px; display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.step > b { flex: none; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--red); color: var(--bg); font: 800 15px var(--display); }
.step h2 { font-size: 15px; font-weight: 700; line-height: 20px; margin-bottom: 3px; }
.search .pair { gap: 8px; }

/* снятые, подешевевшие, приглашения */
html { overflow-x: clip; }
.ad.gone { opacity: .62; }
.sold-box { border-color: rgba(255, 90, 80, .5); }
.sold-box h2 { color: var(--red-text); }
.gift { padding: 10px 14px; border-radius: 12px; background: rgba(255, 59, 48, .14); color: var(--text) !important; font-weight: 600; }
.ending { width: calc(100% - 32px); margin: 0 16px 12px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid rgba(255, 59, 48, .55); border-radius: 14px; background: rgba(255, 59, 48, .12); font-size: 14px; text-align: left; }
.ending b { font-weight: 700; }
.ending span { flex: none; color: var(--red-text); font-weight: 700; }
.ref-hero { margin: 16px; padding: 20px; display: flex; flex-direction: column; gap: 4px; border-radius: 22px; background: var(--red); color: var(--bg); position: relative; overflow: hidden; }
.ref-hero span { font-size: 13px; font-weight: 700; }
.ref-hero b { font: 800 40px var(--display); letter-spacing: -1px; }
.ref-hero p { font-size: 14px; line-height: 20px; font-weight: 500; }
.ref-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%); transform: translateX(-100%); animation: skim 3.8s ease-in-out infinite; }
.fact .paid { color: var(--red-text); font-weight: 700; }
.menu button > span:last-child { flex: none; white-space: nowrap; }
.menu button > .stack + span:last-child { flex: none; }
.title { overflow-wrap: anywhere; }
