/* «Импорт Авто» — стили сайта: адаптивный современный дизайн */
:root {
  /* Графит и синий: всё тёмное, акцент — синий из логотипа */
  --ink: #0A0B0E;          /* самые тёмные блоки: шапка, первый экран, подвал */
  --ink-2: #14171C;
  --ink-3: #22262E;
  --ink-4: #2B3039;
  --paper: #0F1115;        /* фон страницы */
  --paper-2: #262A32;      /* полосы и сетка на фоне */
  --white: #1A1D23;        /* карточки и панели (имя осталось от светлой темы) */
  --field: #22262E;        /* поля ввода внутри карточек */
  --steel: #7D8592;
  --steel-2: #4A505B;
  --text: #F0F2F5;
  --text-2: #98A0AD;
  --text-inv: #F0F2F5;
  --text-inv-2: #98A0AD;
  --accent: #2E6BFF;
  --accent-2: #5B8CFF;
  --accent-text: #7FA6FF;  /* акцент для текста: светлее, чтобы читался на тёмном */
  --accent-ink: #FFFFFF;
  --ok: #34C77B;
  --line: rgba(255, 255, 255, .08);
  --line-inv: rgba(255, 255, 255, .10);
  --radius: 4px;
  --shadow: 0 22px 44px -18px rgba(0, 0, 0, .7);
  --font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --font: 'Manrope', system-ui, -apple-system, sans-serif;
  --wrap: 1280px;
  --slant: 14%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.accent { color: var(--accent-text); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Кнопки ---------- */
.btn {
  --b: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 26px;
  border: 0; border-radius: var(--radius);
  background: var(--b); color: var(--accent-ink);
  font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: background .2s, transform .2s;
  white-space: nowrap;
}
.btn:hover { background: var(--accent-2); }
.btn:active { transform: translateY(1px); }
.btn--dark { --b: var(--ink-3); color: var(--text-inv); }
.btn--dark:hover { background: var(--ink-4); }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; clip-path: none; }
.btn--ghost:hover { background: rgba(127,127,127,.12); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 12px; }
.btn--block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.link-arrow::after { content: '→'; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* Скошенная плашка */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  background: var(--ink); color: var(--text-inv);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.tag--accent { background: var(--accent); color: #fff; }
.tag--light { background: var(--white); color: var(--text); }

/* ---------- Верхняя строка курсов ---------- */
.ratebar { background: var(--ink); color: var(--text-inv-2); font-size: 12px; border-bottom: 1px solid var(--line-inv); }
.ratebar .wrap { display: flex; align-items: center; gap: 22px; height: 34px; overflow-x: auto; scrollbar-width: none; }
.ratebar .wrap::-webkit-scrollbar { display: none; }
.ratebar b { color: var(--text-inv); font-weight: 700; }
.ratebar__upd { margin-left: auto; white-space: nowrap; opacity: .7; }
.ratebar span { white-space: nowrap; }

/* ---------- Шапка ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(14, 15, 18, .96); backdrop-filter: blur(10px); color: var(--text-inv); }
.header .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo img { width: 48px; height: 48px; }
.logo__text { font-family: var(--font-display); font-weight: 800; font-size: 16px; line-height: 1; letter-spacing: .01em; }
.logo__text small { display: block; margin-top: 4px; font-family: var(--font); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); }
.nav { display: flex; gap: 4px; margin: 0 auto; }
.nav a { position: relative; padding: 8px 12px; font-size: 13px; font-weight: 700; letter-spacing: .03em; color: var(--text-inv-2); transition: color .2s; }
.nav a:hover, .nav a.is-active { color: var(--text-inv); }
.nav a.is-active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -2px; height: 3px; background: var(--accent); transform: skewX(-30deg); }
.header__right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header__phone { font-weight: 800; font-size: 16px; white-space: nowrap; }
.header__phone small { display: block; font-size: 10px; font-weight: 600; color: var(--text-inv-2); letter-spacing: .04em; }
.icon-btn {
  position: relative; display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--line-inv); border-radius: var(--radius); background: transparent; color: var(--text-inv);
  transition: background .2s, border-color .2s;
}
.icon-btn:hover { background: var(--ink-3); border-color: transparent; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); font-size: 10px; font-weight: 800; display: grid; place-items: center; }
.burger { display: none; }

.mobile-nav { display: none; }

/* ---------- Главный экран ---------- */
.hero { position: relative; background: var(--white); overflow: hidden; }
.hero__stage { position: relative; height: min(640px, calc(100vh - 106px)); min-height: 540px; }
.hero__grid { position: absolute; inset: 0; background-image: linear-gradient(var(--paper-2) 1px, transparent 1px), linear-gradient(90deg, var(--paper-2) 1px, transparent 1px); background-size: 48px 48px; opacity: .55; mask-image: linear-gradient(90deg, transparent 30%, #000 70%); }
.hero__dark { position: absolute; inset: 0; background: var(--ink); clip-path: polygon(0 0, 50% 0, 32% 100%, 0 100%); }
.hero__dark::after { content: ''; position: absolute; inset: 0; background: radial-gradient(90% 70% at 10% 20%, rgba(255,255,255,.06), transparent 60%); }
.hero__stripe { position: absolute; inset: 0; transition: clip-path .8s cubic-bezier(.7,0,.2,1); }
.hero__stripe--accent { background: linear-gradient(160deg, var(--accent-2), var(--accent) 60%, #1B4FD6); clip-path: polygon(51% 12%, 61% 12%, 46% 88%, 36% 88%); }
.hero__stripe--steel { background: linear-gradient(160deg, #3A404B, #22262E); clip-path: polygon(64% 20%, 70% 20%, 57% 100%, 51% 100%); }
.hero__num {
  position: absolute; right: 3%; top: 16%; font-family: var(--font-display); font-weight: 800; font-size: clamp(120px, 17vw, 250px); line-height: .8; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.10); font-style: italic; user-select: none; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0) 90%); -webkit-background-clip: text; background-clip: text;
}
.hero__car { position: absolute; left: 25%; bottom: 30%; width: min(54%, 740px); filter: drop-shadow(0 30px 24px rgba(0,0,0,.35)); transition: opacity .5s, transform .7s cubic-bezier(.2,.7,.2,1); }
.hero__car.is-out { opacity: 0; transform: translateX(-60px); }
.hero__title { position: absolute; left: 0; bottom: 64px; width: 34%; padding-left: max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); color: var(--text-inv); z-index: 2; }
.hero__kicker { margin-bottom: 18px; }
.hero__title h1 { font-size: clamp(30px, 3.6vw, 52px); font-weight: 800; text-transform: uppercase; }
.hero__title h1 em { font-style: normal; color: var(--accent-text); display: block; }
.hero__title p { margin: 16px 0 0; max-width: 360px; color: var(--text-inv-2); font-size: 15px; }
.hero__aside { position: absolute; right: max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); bottom: 64px; width: 300px; z-index: 2; }
.hero__aside h3 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.hero__aside p { margin: 0 0 14px; font-size: 14px; color: var(--text-2); }
.hero__aside .hero__price { font-family: var(--font-display); font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.hero__tabs { position: absolute; top: 28px; right: max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); display: flex; gap: 6px; z-index: 3; }
.hero__tab { border: 0; background: transparent; padding: 8px 4px 10px; margin-left: 18px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); position: relative; }
.hero__tab.is-active { color: var(--text); }
.hero__tab.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); transform: skewX(-30deg); }
.hero__progress { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--accent); width: 0; z-index: 3; }

/* Быстрый поиск под первым экраном */
.quick { position: relative; z-index: 5; margin-top: -1px; background: var(--ink); color: var(--text-inv); }
.quick .wrap { padding-top: 22px; padding-bottom: 22px; }
.quick__form { display: grid; grid-template-columns: 1.1fr 1.2fr 1.2fr .8fr .8fr 1fr auto; gap: 10px; align-items: end; }
.quick__title { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 14px; margin-bottom: 6px; }
.quick__title h2 { font-size: 18px; text-transform: uppercase; }
.quick__title span { color: var(--text-inv-2); font-size: 13px; }

/* ---------- Поля ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.dark .field > span, .quick .field > span { color: var(--text-inv-2); }
.input, .select {
  width: 100%; height: 46px; padding: 0 14px; border-radius: var(--radius);
  border: 1px solid var(--line); background-color: var(--field); color: var(--text); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23888' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.input:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46, 107, 255, .25); }
.quick .input, .quick .select, .dark .input, .dark .select { background-color: var(--ink-3); border-color: transparent; color: var(--text-inv); }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
textarea.input { height: auto; min-height: 90px; padding: 12px 14px; resize: vertical; }
.check { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

/* ---------- Секции ---------- */
.section { padding: 96px 0; position: relative; overflow-x: clip; }
.section--tight { padding: 64px 0; }
.section--white { background: var(--white); }
.section--dark { background: var(--ink); color: var(--text-inv); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section__head h2 { font-size: clamp(28px, 3.4vw, 46px); font-weight: 800; text-transform: uppercase; }
.section__head h2 em { font-style: normal; color: var(--accent-text); }
.section__head p { max-width: 460px; margin: 12px 0 0; color: var(--text-2); }
.section--dark .section__head p { color: var(--text-inv-2); }
.section__kicker { margin-bottom: 16px; }
.bgnum { position: absolute; font-family: var(--font-display); font-weight: 800; font-style: italic; line-height: .8; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px var(--line); pointer-events: none; user-select: none; }
.section--dark .bgnum { -webkit-text-stroke-color: var(--line-inv); }

/* ---------- Направления ---------- */
.dirs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.dir {
  position: relative; min-height: 420px; padding: 36px 40px; overflow: hidden; color: var(--text-inv);
  background: var(--ink-2); isolation: isolate; transition: background .3s;
}
.dir:nth-child(2) { background: var(--ink-3); }
.dir:nth-child(3) { background: var(--ink-4); }
.dir::before { content: ''; position: absolute; inset: 0; background: var(--accent); clip-path: polygon(70% 0, 88% 0, 48% 100%, 30% 100%); opacity: 0; transition: opacity .35s, clip-path .5s; z-index: -1; }
.dir:hover::before { opacity: 1; clip-path: polygon(62% 0, 90% 0, 50% 100%, 22% 100%); }
.dir__flag { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--text-inv-2); }
.dir h3 { font-size: 34px; font-weight: 800; text-transform: uppercase; margin: 10px 0 12px; }
.dir p { margin: 0; max-width: 280px; color: var(--text-inv-2); font-size: 14px; }
.dir__count { position: absolute; right: 26px; top: 26px; font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--accent-text); }
.dir img { position: absolute; right: -30px; bottom: 64px; width: 86%; height: 48%; object-fit: contain; object-position: right bottom; transition: transform .6s cubic-bezier(.2,.7,.2,1); filter: drop-shadow(0 18px 18px rgba(0,0,0,.5)); }
.dir:hover img { transform: translateX(-24px); }
.dir .link-arrow { position: absolute; left: 40px; bottom: 32px; }

/* ---------- Карточка лота ---------- */
.lots { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.lot {
  container-type: inline-size;
  position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s, box-shadow .25s; border: 1px solid var(--line);
}
.lot:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.lot__media { position: relative; aspect-ratio: 16 / 10; background: var(--paper); overflow: hidden; }
.lot__media::before { content: ''; position: absolute; inset: 0; background: var(--paper-2); clip-path: polygon(46% 0, 72% 0, 50% 100%, 24% 100%); transition: clip-path .5s; }
.lot__media::after { content: ''; position: absolute; inset: 0; background: var(--accent); clip-path: polygon(74% 0, 78% 0, 56% 100%, 52% 100%); opacity: 0; transition: opacity .3s; }
.lot:hover .lot__media::after { opacity: 1; }
.lot__media img, .lot__media svg { position: absolute; left: 6%; right: 6%; bottom: 10%; width: 88%; height: 76%; object-fit: contain; z-index: 1; filter: drop-shadow(0 12px 10px rgba(0,0,0,.22)); }
.lot__no { position: absolute; left: 0; top: 14px; z-index: 2; }
.lot__grade { position: absolute; right: 12px; top: 12px; z-index: 2; min-width: 38px; height: 38px; padding: 0 6px; display: grid; place-items: center; background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 15px; border-radius: var(--radius); }
.lot__grade small { display: block; font-family: var(--font); font-size: 8px; letter-spacing: .1em; opacity: .85; margin-top: -4px; }
.lot__fav { position: absolute; right: 12px; top: calc(62.5cqw - 48px); z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(10,11,14,.75); color: var(--text-2); transition: color .2s, transform .2s; }
.lot__fav:hover { transform: scale(1.08); }
.lot__fav.is-on { color: var(--accent-text); }
.lot__fav svg { width: 18px; height: 18px; }
.lot__body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; flex: 1; }
.lot__meta { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.lot__title { font-family: var(--font-display); font-size: 17px; font-weight: 700; text-transform: uppercase; line-height: 1.15; }
.lot__title small { display: block; margin-top: 4px; font-family: var(--font); font-size: 12px; font-weight: 600; text-transform: none; color: var(--text-2); letter-spacing: 0; }
.lot__specs { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.lot__specs span { display: block; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); }
.lot__prices { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: auto; font-size: 13px; color: var(--text-2); }
.lot__prices b { font-size: 15px; color: var(--text); }
.lot__turnkey { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 18px; background: var(--ink); color: var(--text-inv); overflow: hidden; isolation: isolate; }
.lot__turnkey::before { content: ''; position: absolute; inset: 0; background: var(--accent); clip-path: polygon(0 0, 8px 0, 0 100%); z-index: -1; transition: clip-path .35s; }
.lot:hover .lot__turnkey::before { clip-path: polygon(0 0, 16px 0, 6px 100%, 0 100%); }
.lot__turnkey span { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-inv-2); line-height: 1.3; }
.lot__turnkey b { font-family: var(--font-display); font-size: 16px; white-space: nowrap; }
.lot__sold { position: absolute; left: 0; bottom: 14px; z-index: 2; }

/* ---------- Этапы ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-inv); border: 1px solid var(--line-inv); }
.step { position: relative; padding: 34px 32px 38px; background: var(--ink); overflow: hidden; min-height: 230px; }
.step__n { font-family: var(--font-display); font-size: 72px; font-weight: 800; font-style: italic; line-height: .9; color: transparent; -webkit-text-stroke: 1.5px var(--steel-2); margin-bottom: 18px; transition: color .3s, -webkit-text-stroke-color .3s; }
.step:hover .step__n { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.step h3 { font-size: 18px; text-transform: uppercase; margin-bottom: 10px; }
.step p { margin: 0; color: var(--text-inv-2); font-size: 14px; }

/* ---------- Преимущества ---------- */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.perk { padding: 28px 24px; background: var(--white); border-left: 4px solid var(--accent); border-radius: var(--radius); }
.perk b { display: block; font-family: var(--font-display); font-size: 34px; font-weight: 800; margin-bottom: 8px; }
.perk p { margin: 0; color: var(--text-2); font-size: 14px; }

/* ---------- Калькулятор ---------- */
.calc { display: grid; grid-template-columns: 1.05fr .95fr; gap: 0; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.calc__form { padding: 36px 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; align-content: start; }
.calc__form .full { grid-column: 1 / -1; }
.seg { display: flex; gap: 0; background: var(--paper); border-radius: var(--radius); padding: 4px; }
.seg button { flex: 1; height: 40px; border: 0; background: transparent; border-radius: 3px; font-weight: 700; font-size: 13px; color: var(--text-2); transition: background .2s, color .2s; }
.seg button.is-active { background: var(--accent); color: #fff; }
.dark .seg { background: var(--ink-3); }
.dark .seg button { color: var(--text-inv-2); }
.dark .seg button.is-active { background: var(--accent); color: #fff; }
.calc__result { position: relative; padding: 36px 40px; background: var(--ink); color: var(--text-inv); overflow: hidden; isolation: isolate; }
.calc__result::before { content: ''; position: absolute; inset: 0; background: var(--ink-3); clip-path: polygon(78% 0, 100% 0, 100% 100%, 58% 100%); z-index: -1; }
.calc__total span { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-inv-2); }
.calc__total b { display: block; font-family: var(--font-display); font-size: clamp(32px, 3.4vw, 46px); font-weight: 800; margin: 6px 0 4px; }
.calc__total small { color: var(--text-inv-2); font-size: 12px; }
.breakdown { list-style: none; margin: 26px 0 24px; padding: 0; counter-reset: st; }
.breakdown li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line-inv); font-size: 14px; }
.breakdown li::before { counter-increment: st; content: '0' counter(st); font-weight: 800; font-size: 11px; color: var(--accent-text); padding-top: 3px; }
.breakdown li b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.breakdown li small { display: block; color: var(--text-inv-2); font-size: 12px; margin-top: 2px; }
.breakdown li.sub { grid-template-columns: 28px 1fr auto; font-size: 12px; color: var(--text-inv-2); padding: 4px 0; border: 0; }
.breakdown li.sub::before { content: ''; counter-increment: none; }
.note { font-size: 12px; color: var(--text-inv-2); margin: 0; }
.light-note { font-size: 12px; color: var(--text-2); }

/* ---------- Страница аукциона ---------- */
.pagehead { position: relative; background: var(--ink); color: var(--text-inv); overflow: hidden; isolation: isolate; }
.pagehead::before { content: ''; position: absolute; inset: 0; background: var(--accent); clip-path: polygon(64% 0, 70% 0, 62% 100%, 56% 100%); z-index: -1; }
.pagehead::after { content: ''; position: absolute; inset: 0; background: var(--ink-3); clip-path: polygon(71% 0, 100% 0, 100% 100%, 63% 100%); z-index: -1; }
.pagehead .wrap { padding-top: 44px; padding-bottom: 0; }
.pagehead h1 { font-size: clamp(28px, 4vw, 54px); font-weight: 800; text-transform: uppercase; }
.pagehead p { margin: 10px 0 0; color: var(--text-inv-2); max-width: 560px; }
.pagehead__num { position: absolute; right: max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); top: 26px; text-align: right; font-family: var(--font-display); }
.pagehead__num b { display: block; font-size: clamp(48px, 7vw, 96px); font-weight: 800; font-style: italic; line-height: .9; }
.pagehead__num span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-inv-2); }
.tabs { display: flex; gap: 4px; margin-top: 34px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 14px 22px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-inv-2); background: var(--ink-2); clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); white-space: nowrap; }
.tabs a.is-active { background: var(--paper); color: var(--text); }
.breadcrumbs { font-size: 12px; color: var(--text-inv-2); margin-bottom: 14px; }
.breadcrumbs a:hover { color: var(--text-inv); }

.days { display: flex; gap: 8px; margin: 24px 0 0; overflow-x: auto; padding-bottom: 4px; }
.day { flex-shrink: 0; padding: 10px 16px; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); text-align: left; transition: border-color .2s; }
.day b { display: block; font-size: 13px; text-transform: uppercase; }
.day span { font-size: 11px; color: var(--text-2); }
.day.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.day.is-active span { color: rgba(255,255,255,.8); }

.auc { display: grid; grid-template-columns: 290px 1fr; gap: 28px; padding: 28px 0 80px; }
.filters { position: sticky; top: 90px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; background: var(--white); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 16px; border: 1px solid var(--line); scrollbar-width: thin; }
.filters__head { display: flex; justify-content: space-between; align-items: center; }
.filters__head h3 { font-size: 15px; text-transform: uppercase; }
.filters__reset { border: 0; background: none; color: var(--accent-text); font-size: 12px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 32px; min-width: 38px; padding: 0 10px; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); font-size: 12px; font-weight: 700; transition: all .15s; }
.chip:hover { border-color: var(--text-2); }
.chip.is-on { background: var(--accent); color: #fff; border-color: var(--accent); }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--white); box-shadow: 0 0 0 1px var(--line); padding: 0; }
.swatch.is-on { box-shadow: 0 0 0 2px var(--accent); }
.filters__close { display: none; }

.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar__count { font-size: 14px; color: var(--text-2); margin-right: auto; }
.toolbar__count b { font-family: var(--font-display); font-size: 20px; color: var(--text); margin-right: 4px; }
.toolbar .select { height: 40px; width: auto; }
.toolbar .seg { padding: 3px; }
.toolbar .seg button { height: 34px; padding: 0 12px; flex: none; }
.filters-open { display: none; }

.demo-note { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; margin-bottom: 18px; border-radius: var(--radius); background: rgba(46, 107, 255, .10); border: 1px solid rgba(46, 107, 255, .35); font-size: 13px; color: #C3D4FF; }
.demo-note b { white-space: nowrap; }

/* Таблица лотов (как на аукционных сайтах) */
.table-wrap { overflow-x: auto; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.ltable { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 860px; }
.ltable th { position: sticky; top: 0; background: var(--ink); color: var(--text-inv); text-align: left; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 12px 12px; font-weight: 800; }
.ltable td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ltable tr:hover td { background: rgba(255, 255, 255, .03); }
.ltable td.thumb { width: 110px; }
.ltable td.thumb div { width: 96px; height: 60px; background: var(--paper); border-radius: 3px; display: grid; place-items: center; overflow: hidden; }
.ltable td.thumb img, .ltable td.thumb svg { width: 90%; height: 90%; object-fit: contain; }
.ltable .lotno { font-weight: 800; color: var(--accent-text); }
.ltable small { display: block; color: var(--text-2); font-size: 11px; }
.grade-pill { display: inline-block; min-width: 30px; padding: 2px 6px; text-align: center; border-radius: 3px; background: var(--ink); color: #fff; font-weight: 800; font-size: 12px; }

.pager { display: flex; justify-content: center; gap: 6px; margin-top: 30px; flex-wrap: wrap; }
.pager button { min-width: 40px; height: 40px; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); font-weight: 700; }
.pager button.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager button:disabled { opacity: .4; cursor: default; }
.empty { padding: 60px 20px; text-align: center; background: var(--white); border-radius: var(--radius); border: 1px dashed var(--line); }
.empty h3 { font-size: 18px; margin-bottom: 8px; text-transform: uppercase; }

/* ---------- Страница лота ---------- */
.lotpage { display: grid; grid-template-columns: 1fr 420px; gap: 28px; padding: 28px 0 60px; }
.gallery { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gallery__main { position: relative; aspect-ratio: 16 / 9; background: var(--paper); overflow: hidden; }
.gallery__main::before { content: ''; position: absolute; inset: 0; background: var(--ink); clip-path: polygon(0 0, 38% 0, 22% 100%, 0 100%); }
.gallery__main::after { content: ''; position: absolute; inset: 0; background: var(--accent); clip-path: polygon(40% 0, 46% 0, 30% 100%, 24% 100%); }
.gallery__main img, .gallery__main svg { position: absolute; left: 8%; bottom: 10%; width: 84%; height: 78%; object-fit: contain; z-index: 1; filter: drop-shadow(0 22px 18px rgba(0,0,0,.3)); }
.gallery__year { position: absolute; right: 4%; top: 6%; font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: clamp(60px, 9vw, 130px); line-height: .8; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.10); }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.gallery__thumbs button { aspect-ratio: 16 / 10; border: 0; background: var(--paper); padding: 8px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; }
.gallery__thumbs button img, .gallery__thumbs button svg { max-height: 100%; }
.gallery__thumbs button.is-active { box-shadow: inset 0 -3px 0 var(--accent); }

.lot-head { margin-bottom: 18px; }
.lot-head__row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.lot-head h1 { font-size: clamp(26px, 3vw, 40px); font-weight: 800; text-transform: uppercase; }
.lot-head h1 small { display: block; font-family: var(--font); font-size: 15px; font-weight: 600; text-transform: none; color: var(--text-2); margin-top: 8px; letter-spacing: 0; }

.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 20px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specs div { background: var(--white); padding: 14px 16px; }
.specs span { display: block; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); margin-bottom: 4px; }
.specs b { font-size: 15px; }

.panel { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); padding: 24px; margin-top: 20px; }
.panel h3 { font-size: 15px; text-transform: uppercase; margin-bottom: 14px; }
.equip { display: flex; flex-wrap: wrap; gap: 6px; }
.equip span { padding: 6px 10px; background: var(--paper); border-radius: 3px; font-size: 12px; font-weight: 700; }

.sheet { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: start; }
.sheet__grade { position: relative; aspect-ratio: 1; background: var(--ink); color: #fff; display: grid; place-items: center; text-align: center; clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%); }
.sheet__grade b { font-family: var(--font-display); font-size: 64px; font-weight: 800; line-height: 1; }
.sheet__grade span { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-inv-2); margin-top: 6px; }
.sheet dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; }
.sheet dt { color: var(--text-2); }
.sheet dd { margin: 0; font-weight: 700; }

.side { position: sticky; top: 90px; align-self: start; display: flex; flex-direction: column; gap: 16px; }
.pricebox { background: var(--ink); color: var(--text-inv); border-radius: var(--radius); overflow: hidden; }
.pricebox__top { position: relative; padding: 24px 26px; background: var(--ink-2); isolation: isolate; }
.pricebox__top::before { content: ''; position: absolute; inset: 0; background: var(--accent); clip-path: polygon(86% 0, 92% 0, 84% 100%, 78% 100%); z-index: -1; }
.pricebox__row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-inv-2); padding: 3px 0; }
.pricebox__row b { color: var(--text-inv); }
.pricebox__big { font-family: var(--font-display); font-size: 30px; font-weight: 800; margin: 2px 0 10px; }
.pricebox__body { padding: 20px 26px 26px; }
.pricebox .breakdown { margin: 14px 0 18px; }
.pricebox .field > span { color: var(--text-inv-2); }
.pricebox .input, .pricebox .select { background-color: var(--ink-3); border-color: transparent; color: var(--text-inv); }
.pricebox__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.timer { display: flex; gap: 6px; }
.timer div { flex: 1; text-align: center; background: var(--ink-3); padding: 8px 4px; border-radius: 3px; }
.timer b { display: block; font-family: var(--font-display); font-size: 20px; }
.timer span { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-inv-2); }

/* ---------- Статистика ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.kpi { background: var(--white); border-radius: var(--radius); padding: 20px 22px; border: 1px solid var(--line); }
.kpi span { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.kpi b { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 800; margin-top: 6px; }
.kpi small { color: var(--text-2); font-size: 12px; }
.chart { position: relative; background: var(--white); border-radius: var(--radius); padding: 22px 22px 14px; border: 1px solid var(--line); margin-bottom: 20px; }
.chart h3 { font-size: 14px; text-transform: uppercase; margin-bottom: 4px; }
.chart p { margin: 0 0 12px; font-size: 13px; color: var(--text-2); }
.chart svg { width: 100%; height: 260px; display: block; overflow: visible; }
.chart .bar { fill: var(--accent); transition: opacity .15s; }
.chart .bar-hit { fill: transparent; cursor: pointer; }
.chart .bar-hit:hover + .bar, .chart g:hover .bar { opacity: .8; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--text-2); font-size: 11px; font-family: var(--font); }
.chart .val { fill: var(--text); font-size: 11px; font-weight: 700; font-family: var(--font); }
.tooltip { position: absolute; pointer-events: none; background: var(--ink); color: var(--text-inv); padding: 8px 12px; border-radius: var(--radius); font-size: 12px; line-height: 1.45; transform: translate(-50%, calc(-100% - 10px)); opacity: 0; transition: opacity .12s; white-space: nowrap; z-index: 5; }
.tooltip.is-on { opacity: 1; }
.tooltip b { font-size: 14px; }
.stats-filter { display: grid; grid-template-columns: repeat(5, 1fr) auto; gap: 10px; align-items: end; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); padding: 18px; margin: 24px 0 20px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 900px; }
.faq details { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 800; font-size: 16px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 18px; clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%); transition: background .2s; }
.faq details[open] summary::after { content: '−'; background: var(--accent); }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--text-2); }

/* ---------- Заявка ---------- */
.lead { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); color: var(--text-inv); border-radius: var(--radius); overflow: hidden; isolation: isolate; }
.lead::before { content: ''; position: absolute; inset: 0; background: var(--accent); clip-path: polygon(44% 0, 52% 0, 44% 100%, 36% 100%); z-index: -1; }
.lead__text { padding: 56px 48px; }
.lead__text h2 { font-size: clamp(26px, 3vw, 40px); font-weight: 800; text-transform: uppercase; margin-bottom: 14px; }
.lead__text p { color: var(--text-inv-2); max-width: 380px; }
.lead__form { padding: 48px; display: grid; gap: 12px; background: var(--ink-2); align-content: center; }
.lead__form .input, .lead__form .select { background-color: var(--ink-3); border-color: transparent; color: var(--text-inv); }
.lead__form .check { color: var(--text-inv-2); font-size: 12px; }
.form-ok { padding: 18px; border-radius: var(--radius); background: rgba(31,157,85,.15); color: #7EE2A8; font-weight: 700; }

/* ---------- Подвал ---------- */
.footer { background: var(--ink); color: var(--text-inv-2); padding: 64px 0 28px; font-size: 14px; position: relative; overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer h4 { color: var(--text-inv); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a:hover { color: var(--text-inv); }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line-inv); font-size: 12px; }
.footer__big { position: absolute; right: -20px; bottom: -30px; font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 200px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.05); pointer-events: none; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: var(--radius); font-size: 14px; font-weight: 700; opacity: 0; transition: all .25s; z-index: 100; box-shadow: var(--shadow); border-left: 4px solid var(--accent); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.page-enter { animation: pageIn .35s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.prose p { color: var(--text-2); margin: 0 0 14px; }
.prose h3 { font-size: 18px; text-transform: uppercase; margin: 24px 0 10px; }
.contact-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.contact-list div { background: var(--white); padding: 18px 22px; }
.contact-list span { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }
.contact-list b { font-size: 17px; }

/* ---------- Навигация лота (Вкладки из аукционного листа) ---------- */
.lot-nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  background: var(--ink-2);
  padding: 8px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.lot-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text-2);
  background: transparent;
  transition: all .2s;
  text-decoration: none;
  cursor: pointer;
}
.lot-nav-tab svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.lot-nav-tab:hover {
  color: var(--text);
  background: var(--ink-3);
}
.lot-nav-tab.is-active {
  color: #fff;
  background: var(--accent);
}

/* ---------- Проверка номера кузова и месяца выпуска ---------- */
.chassis-lookup-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 20px;
}
.chassis-stamp {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid var(--accent);
  padding: 6px 14px;
  border-radius: 4px;
  background: var(--ink-2);
}
.chassis-stamp__jp {
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--accent-text);
  font-weight: 700;
}
.chassis-stamp__num {
  font-family: monospace;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .06em;
}
.chassis-lookup-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.chassis-lookup-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.chassis-input-group {
  display: flex;
  gap: 8px;
}
.chassis-input-group input {
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--text);
  min-width: 170px;
  font-family: monospace;
}
.chassis-input-group .btn-blue {
  background: #2E6BFF;
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}
.chassis-input-group .btn-blue:hover {
  background: #1B56EB;
}
.chassis-result-box {
  background: var(--ink-2);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 24px;
}
.chassis-result-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
}
.chassis-result-status.pass { color: #34C77B; }
.chassis-result-status.fail { color: #FF5C5C; }
.chassis-result-status.warn { color: #FFB340; }
.chassis-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 12px;
  font-size: 13px;
}
.chassis-result-grid div {
  background: var(--white);
  padding: 10px 14px;
  border-radius: 4px;
  border: 1px solid var(--line);
}
.chassis-result-grid span {
  display: block;
  font-size: 11px;
  color: var(--text-2);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.chassis-result-grid b {
  font-size: 14px;
  color: var(--text);
}

/* ---------- Баннер сверки пробега ---------- */
.auc-sheet-verify-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  background: linear-gradient(90deg, #C29320 0%, #E8B936 100%);
  color: #111;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}
.auc-sheet-verify-banner b {
  font-size: 16px;
  text-decoration: underline;
}
.auc-sheet-verify-banner small {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  opacity: .9;
}

/* ---------- Японский аукционный лист (Детальный вид) ---------- */
.auc-sheet-official {
  background: #FFF;
  color: #111;
  border: 2px solid #333;
  border-radius: 4px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 12px;
  line-height: 1.3;
  overflow: hidden;
  margin-bottom: 24px;
}
.auc-sheet-official table {
  width: 100%;
  border-collapse: collapse;
}
.auc-sheet-official th, .auc-sheet-official td {
  border: 1px solid #777;
  padding: 4px 6px;
  text-align: left;
  vertical-align: middle;
}
.auc-sheet-official th {
  background: #EFEFEF;
  font-size: 10px;
  color: #444;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}
.auc-sheet-official .th-sub {
  display: block;
  font-size: 9px;
  color: #666;
  font-weight: normal;
}
.auc-sheet-official td b {
  font-size: 13px;
  color: #000;
}
.auc-sheet-grade-score {
  font-size: 24px !important;
  color: #B30000 !important;
  font-family: 'Unbounded', sans-serif;
  text-align: center;
  display: block;
}
.auc-sheet-split-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #777;
}
.auc-sheet-notes-col {
  padding: 10px;
  border-right: 1px solid #777;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #FAFAFA;
}
.auc-sheet-notes-title {
  font-size: 11px;
  font-weight: 800;
  background: #E0E0E0;
  padding: 3px 6px;
  margin: -10px -10px 8px -10px;
  border-bottom: 1px solid #CCC;
}
.auc-sheet-diag-col {
  padding: 10px;
  background: #FFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* ---------- Схема повреждений кузова ---------- */
.auc-car-diagram {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 10px auto;
}
.auc-car-diagram svg {
  width: 100%;
  height: auto;
  display: block;
}
.auc-mark-tag {
  position: absolute;
  background: #D92525;
  color: #FFF;
  font-family: monospace;
  font-weight: 900;
  font-size: 11px;
  padding: 2px 5px;
  border-radius: 3px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
  transform: translate(-50%, -50%);
  transition: transform .15s, background .15s;
  z-index: 2;
}
.auc-mark-tag:hover {
  background: #000;
  transform: translate(-50%, -50%) scale(1.2);
  z-index: 10;
}
.auc-mark-tag[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 11, 14, 0.95);
  color: #FFF;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-family: var(--font);
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 20;
}

/* ---------- Справочник обозначений ---------- */
.auc-glossary {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}
.auc-glossary h3 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--accent-text);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.auc-glossary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  font-size: 13px;
}
.auc-glossary-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 4px;
}
.auc-glossary-code {
  font-family: monospace;
  font-weight: 800;
  color: #E64646;
  min-width: 32px;
}
.auc-glossary-desc {
  color: var(--text);
  font-weight: 500;
}

/* ---------- Таблица предыдущих торгов ---------- */
.prev-auctions-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.prev-auctions-panel h3 {
  font-size: 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.prev-auctions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.prev-auctions-table th {
  text-align: left;
  padding: 10px 12px;
  background: var(--ink-2);
  color: var(--text-2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--line);
}
.prev-auctions-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.prev-auctions-table tr:hover td {
  background: rgba(255,255,255,0.03);
}
.auc-badge-sold {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(52, 199, 123, 0.15);
  color: #34C77B;
  border-radius: 3px;
  font-weight: 700;
  font-size: 11px;
}
.auc-badge-unsold {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(255, 92, 92, 0.15);
  color: #FF5C5C;
  border-radius: 3px;
  font-weight: 700;
  font-size: 11px;
}

/* ---------- Адаптив ---------- */
@media (max-width: 1280px) and (min-width: 961px) {
  .hero__aside p { display: none; }
  .hero__aside { width: 260px; }
}
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: grid; }
  .header .wrap { justify-content: space-between; }
  .mobile-nav { position: fixed; inset: 106px 0 0; z-index: 49; background: var(--ink); padding: 24px; flex-direction: column; gap: 4px; overflow-y: auto; }
  .mobile-nav.is-open { display: flex; }
  .mobile-nav a { padding: 14px 4px; font-size: 18px; font-weight: 800; text-transform: uppercase; color: var(--text-inv); border-bottom: 1px solid var(--line-inv); }
  .quick__form { grid-template-columns: repeat(3, 1fr); }
  .quick__form .btn { grid-column: 1 / -1; }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .lotpage { grid-template-columns: 1fr 380px; }
}
@media (max-width: 960px) {
  .header__phone { display: none; }
  .hero__stage { height: auto; min-height: 0; padding-bottom: 32px; display: flex; flex-direction: column; }
  .hero__dark, .hero__stripe, .hero__grid, .hero__num { display: none; }
  .hero__title { order: 1; position: relative; width: auto; bottom: auto; padding: 76px 24px 140px; background: var(--ink); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 70px), 0 100%); isolation: isolate; }
  .hero__title::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 100%; background: var(--accent); clip-path: polygon(0 calc(100% - 8px), 100% calc(100% - 78px), 100% calc(100% - 70px), 0 100%); z-index: -1; }
  .hero__car { order: 2; position: relative; left: auto; bottom: auto; width: 94%; margin: -120px auto 0; z-index: 3; }
  .hero__aside { order: 3; position: relative; right: auto; bottom: auto; width: auto; padding: 16px 24px 0; }
  .hero__tabs { top: 22px; left: 24px; right: auto; }
  .hero__tab { margin: 0 14px 0 0; color: var(--text-inv-2); }
  .hero__tab.is-active { color: var(--text-inv); }
  .dirs { grid-template-columns: 1fr; }
  .dir { min-height: 340px; }
  .dir img { width: 70%; }
  .steps { grid-template-columns: 1fr 1fr; }
  .calc { grid-template-columns: 1fr; }
  .auc { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0; z-index: 60; max-height: none; border-radius: 0; transform: translateX(-100%); transition: transform .3s; }
  .filters.is-open { transform: none; }
  .filters__close { display: block; }
  .filters-open { display: inline-flex; }
  .lotpage { grid-template-columns: 1fr; }
  .side { position: static; }
  .lead { grid-template-columns: 1fr; }
  .lead::before { clip-path: polygon(0 46%, 100% 40%, 100% 43%, 0 49%); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .stats-filter { grid-template-columns: 1fr 1fr; }
  .stats-filter .btn { grid-column: 1 / -1; }
  .two-col { grid-template-columns: 1fr; }
  .pagehead__num { position: static; text-align: left; margin-top: 16px; }
  .pagehead::before { clip-path: polygon(92% 0, 96% 0, 90% 100%, 86% 100%); }
  .pagehead::after { clip-path: polygon(97% 0, 100% 0, 100% 100%, 91% 100%); }
  .pagehead .wrap > p, .pagehead h1 { padding-right: 14%; }
  .auc-sheet-split-box { grid-template-columns: 1fr; }
  .auc-sheet-notes-col { border-right: 0; border-bottom: 1px solid #777; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .ratebar__upd { display: none; }
  .header .wrap { height: 64px; gap: 10px; }
  .mobile-nav { inset: 98px 0 0; }
  .logo img { width: 40px; height: 40px; }
  .logo__text { font-size: 13px; }
  .header__right .icon-btn--hide-sm { display: none; }
  .section { padding: 64px 0; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .quick__form { grid-template-columns: 1fr 1fr; }
  .quick__form .field:first-of-type { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; }
  .perks { grid-template-columns: 1fr; }
  .calc__form, .calc__result { padding: 26px 20px; }
  .calc__form { grid-template-columns: 1fr; }
  .lot__specs { grid-template-columns: repeat(2, 1fr); }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .sheet { grid-template-columns: 1fr; }
  .sheet__grade { max-width: 160px; }
  .lead__text, .lead__form { padding: 32px 20px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi b { font-size: 20px; }
  .stats-filter { grid-template-columns: 1fr; }
  .hero__title { padding-left: 16px; padding-right: 16px; }
  .hero__aside { padding-left: 16px; padding-right: 16px; }
  .hero__tabs { left: 16px; }
  .lots { grid-template-columns: 1fr; }
  .auc-glossary-grid { grid-template-columns: 1fr; }
  .lot-nav-tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .lot-nav-tabs::-webkit-scrollbar { display: none; }
  .lot-nav-tab { white-space: nowrap; }
  .chassis-lookup-bar { flex-direction: column; align-items: stretch; }
  .chassis-input-group { width: 100%; }
  .chassis-input-group input { flex: 1; }
  .prev-auctions-panel { overflow-x: auto; }
  .prev-auctions-table { min-width: 580px; }
  .auc-sheet-official { overflow-x: auto; }
  .auc-sheet-official table { min-width: 480px; }
}

/* ===== правки 30.09: логотип и название «Автолидер МДВ» крупно ===== */
.header .wrap { height: 80px; }
.logo__img { width: 56px; height: 56px; border-radius: 50%; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 4px 14px rgba(46,107,255,.35)); }
.logo__text { font-size: 21px; letter-spacing: .02em; white-space: nowrap; }
.logo__text small { font-size: 10.5px; letter-spacing: .12em; }
.footer .logo__img { width: 72px; height: 72px; }
.footer .logo__text { font-size: 24px; }
@media (max-width: 1280px) { .header .wrap { gap: 18px; } .logo__text { font-size: 18px; } }
@media (max-width: 720px) {
  .header .wrap { height: 72px; gap: 10px; }
  .logo { flex: 1 1 auto; min-width: 0; gap: 10px; }
  .logo__img { width: 50px; height: 50px; }
  .logo__text { font-size: clamp(16px, 5.4vw, 22px); overflow: hidden; text-overflow: ellipsis; }
  .logo__text small { font-size: 9px; letter-spacing: .08em; }
}
/* подсказки в поиске фильтра */
.suggest-field { position: relative; }
.suggest { position: absolute; left: 0; right: 0; top: 100%; margin-top: 6px; z-index: 30; background: #16181D; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; box-shadow: 0 18px 40px -12px rgba(0,0,0,.7); overflow: hidden; }
.suggest button { display: flex; width: 100%; align-items: baseline; justify-content: space-between; gap: 10px; padding: 11px 14px; background: none; border: 0; border-bottom: 1px solid rgba(255,255,255,.06); color: #fff; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.suggest button:last-child { border-bottom: 0; }
.suggest button:hover, .suggest button:focus { background: rgba(46,107,255,.18); }
.suggest button span { font-size: 12px; color: var(--accent-text); white-space: nowrap; }

/* ===== правки 30.09: мобильная версия (карточки и страница лота не шире экрана) ===== */
.lotpage > * { min-width: 0; }
.auc-sheet-official { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.auc-sheet-official table { min-width: 560px; }
@media (max-width: 960px) {
  .lotpage { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 720px) {
  .logo__text { font-size: clamp(13px, 4.2vw, 19px); overflow: visible; text-overflow: clip; }
  .lotpage { padding: 18px 0 40px; }
  .lot-nav-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .lot-nav-tabs::-webkit-scrollbar { display: none; }
  .lot-nav-tab { flex: none; padding: 9px 12px; font-size: 12px; }
  .specs { grid-template-columns: 1fr 1fr; }
  .gallery__thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .panel { padding-left: 16px; padding-right: 16px; }
  .panel h2, .panel h3 { overflow-wrap: anywhere; }
  .pricebox__top, .pricebox__body { padding-left: 18px; padding-right: 18px; }
  .pricebox__big { font-size: 26px; }
  .pricebox__grid { grid-template-columns: 1fr; }
  .pricebox .btn, .side .btn { width: 100%; }
  .breakdown li { gap: 10px; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .lot__specs { grid-template-columns: 1fr 1fr; }
  .lot__turnkey b { font-size: 20px; }
}
.lot__turnkey .lot__turnkey-soft { font-size: 15px; white-space: normal; text-align: right; line-height: 1.2; }
@media (max-width: 720px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 14px; min-width: 0; }
  .kpi b { font-size: clamp(15px, 4.6vw, 20px); overflow-wrap: anywhere; }
  .kpi span { font-size: 10px; }
}
/* логотип в блоке заявки и на «О компании» — чтобы бренд запоминался */
.lead__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.lead__brand img { width: 64px; height: 64px; border-radius: 50%; filter: drop-shadow(0 6px 18px rgba(46,107,255,.4)); }
.lead__brand span { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: .03em; color: #fff; }
.nav a { white-space: nowrap; }
@media (max-width: 1500px) and (min-width: 961px) { .logo__img { width: 48px; height: 48px; } .logo__text { font-size: 17px; } .logo__text small { font-size: 9px; letter-spacing: .08em; } }
@media (max-width: 1320px) and (min-width: 961px) { .logo__text small { display: none; } .header .wrap { gap: 14px; } }
@media (max-width: 720px) { .footer .logo__img { width: 56px; height: 56px; } .footer .logo__text { font-size: clamp(16px, 5vw, 20px); } }
/* каталог в режиме «Таблица» на телефоне: колонка не растягивается под ширину таблицы, таблица листается внутри */
.auc > * { min-width: 0; }
@media (max-width: 720px) { .toolbar { flex-wrap: wrap; } }
/* настоящий аукционный лист (картинка с аукциона) */
.auc-sheet-real { display: block; position: relative; margin-bottom: 20px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.auc-sheet-real img { display: block; width: 100%; height: auto; }
.auc-sheet-real span { position: absolute; right: 10px; bottom: 10px; padding: 6px 10px; border-radius: 8px; background: rgba(14,15,18,.82); color: #fff; font-size: 12px; font-weight: 700; }
.auc-sheet-empty { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; margin-bottom: 20px; border-radius: var(--radius); border: 1px dashed rgba(127,166,255,.45); background: rgba(46,107,255,.08); }
.auc-sheet-empty b { font-size: 15px; }
.auc-sheet-empty span { font-size: 13px; color: var(--text-2); line-height: 1.45; }
/* дата торгов вместо таймера (время торгов не публикуется) */
.auc-when { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,.06); display: flex; flex-direction: column; gap: 4px; }
.auc-when b { font-size: 16px; color: #fff; }
.auc-when span { font-size: 12.5px; color: var(--text-inv-2); line-height: 1.4; }
.filters .checks { display: flex; flex-direction: column; gap: 10px; }
.filters .checks .check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }

/* ---------- Кнопка менеджера в Telegram ---------- */
.btn--tg { gap: 10px; }
.btn__ic { width: 18px; height: 18px; flex: none; }
.tg-hint { margin: 10px 0 0; font-size: 12px; line-height: 1.45; color: var(--text-inv-2); text-align: center; }

/* ---------- Сворачиваемые справочники ---------- */
.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary h3 { margin: 0; }
.fold > summary::after { content: ''; flex: none; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .2s; opacity: .6; }
.fold[open] > summary::after { transform: rotate(-135deg) translateY(-3px); }
.fold[open] > summary { margin-bottom: 14px; }
.fold > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* ---------- Липкая панель лота (телефон) ---------- */
.lot-sticky { display: none; }
@media (max-width: 960px) {
  .lot-sticky { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(10,11,14,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--ink-4); color: var(--text-inv); transition: transform .25s ease; }
  .lot-sticky.is-hidden { transform: translateY(110%); }
  .lot-sticky__sum { flex: 1; min-width: 0; display: grid; line-height: 1.15; }
  .lot-sticky__sum span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-inv-2); }
  .lot-sticky__sum b { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lot-sticky .btn { height: 46px; padding: 0 20px; flex: none; }
  body:has(.lot-sticky:not(.is-hidden)) .toast { bottom: 84px; }
  body:has(.lot-sticky) .footer { padding-bottom: 72px; }
}

/* ---------- Правки 02.10 ---------- */
/* Эмблема в шапке крупнее — «не как точка» */
.header .wrap { height: 84px; }
.header .logo__img { width: 68px; height: 68px; }
@media (max-width: 1500px) and (min-width: 961px) { .header .logo__img { width: 62px; height: 62px; } }
@media (max-width: 720px) {
  .header .wrap { height: 76px; }
  .header .logo__img { width: 54px; height: 54px; }
}

/* «Назад к лотам» */
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; padding: 8px 14px 8px 10px; border-radius: var(--radius); background: rgba(255,255,255,.08); color: var(--text-inv); font-size: 13px; font-weight: 700; text-decoration: none; transition: background .2s; }
.back-link:hover { background: rgba(255,255,255,.16); }
.back-link svg { width: 16px; height: 16px; }

/* Выбор мессенджера в заявке */
.msgr { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.msgr legend { padding: 0; margin-bottom: 8px; font-size: 12px; font-weight: 700; color: var(--text-inv-2); }
.msgr__opt { position: relative; cursor: pointer; }
.msgr__opt input { position: absolute; opacity: 0; pointer-events: none; }
.msgr__opt span { display: block; padding: 10px 4px; text-align: center; font-size: 13px; font-weight: 700; border-radius: var(--radius); background: var(--ink-3); color: var(--text-inv-2); border: 1.5px solid transparent; transition: all .15s; }
.msgr__opt input:checked + span { background: rgba(46,107,255,.16); border-color: var(--accent); color: #fff; }
.msgr__opt input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }
@media (max-width: 380px) { .msgr { grid-template-columns: repeat(2, 1fr); } }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead__form .check a { color: var(--accent-text); }
.btn:disabled { opacity: .6; cursor: progress; }

/* Связь с менеджером */
.contact-strip { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.contact-strip h3 { margin-bottom: 6px; font-size: 20px; }
.contact-strip p { margin: 0; }
.contact-strip__btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* Таблица продаж прокручивается внутри себя и не растягивает страницу на телефоне */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lotpage > * { min-width: 0; }
.prev-auctions-panel { overflow: hidden; }
.prev-auctions-table small { font-size: 11px; }

.footer__bottom { flex-wrap: wrap; }
.footer__req { flex-basis: 100%; color: var(--text-inv-2); }
.footer__req a { color: inherit; text-decoration: underline; }

/* ---------- Правки 02.10 (вечер): заявка показывает машину, «Мои заявки» ---------- */
.form-ok__car { display: flex; gap: 14px; align-items: center; padding: 12px; margin-bottom: 14px; border-radius: var(--radius); background: rgba(255,255,255,.06); }
.form-ok__car img { width: 96px; height: 64px; object-fit: cover; border-radius: var(--radius); flex: none; }
.form-ok__car span, .my-lead span { display: grid; gap: 2px; min-width: 0; }
.form-ok__car small, .my-lead small { color: var(--text-inv-2); font-size: 12px; }
.form-ok p { margin: 0 0 8px; }
.form-ok__hint a { color: var(--accent-text); }
.my-leads { margin-bottom: 36px; }
.my-leads h3 { margin-bottom: 14px; }
.my-lead { display: flex; gap: 14px; align-items: center; padding: 12px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: inherit; text-decoration: none; }
.my-lead:hover { border-color: var(--accent); }
.my-lead img { width: 88px; height: 58px; object-fit: cover; border-radius: var(--radius); flex: none; }
.my-lead small { color: var(--text-2); }
