:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --line: #e7eaf0;
  --text: #1f2937;
  --muted: #6b7280;
  --red: #d81f26;
  --red-dark: #b3171d;
  --shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
}


/* ==========================================================================
   Calculator iframe page
   ========================================================================== */

body.calc-app-page {
  min-height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(180deg, #f6f7f9 0%, #eceff3 100%);
  color: var(--text-main);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: background 0.6s ease, color 0.4s ease;
}

body.calc-app-page[data-theme="dark"] {
  background: linear-gradient(180deg, #111216 0%, #1a1c21 100%);
}

.calc-animated-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, #f6f7f9 0%, #eceff3 100%);
  transition: background 0.6s ease;
}

body.calc-app-page[data-theme="dark"] .calc-animated-bg {
  background: linear-gradient(180deg, #111216 0%, #1a1c21 100%);
}

.calc-bg-blob {
  position: absolute;
  border-radius: 999px;
  animation: calcBlobFloat 18s ease-in-out infinite alternate;
  transition: opacity 0.6s ease, background 0.6s ease;
}

.calc-bg-blob--one {
  top: -10%;
  left: -8%;
  width: 52%;
  height: 52%;
  filter: blur(64px);
  opacity: 0.13;
  background: radial-gradient(circle, rgba(239, 28, 37, 1) 0%, transparent 70%);
}

.calc-bg-blob--two {
  top: -6%;
  right: -10%;
  width: 48%;
  height: 48%;
  filter: blur(72px);
  opacity: 0.045;
  background: radial-gradient(circle, rgba(0, 0, 0, 1) 0%, transparent 70%);
  animation-duration: 22s;
  animation-direction: alternate-reverse;
}

.calc-bg-blob--three {
  right: -6%;
  bottom: -8%;
  width: 44%;
  height: 44%;
  filter: blur(60px);
  opacity: 0.08;
  background: radial-gradient(circle, rgba(239, 28, 37, 1) 0%, transparent 70%);
  animation-duration: 20s;
  animation-delay: 4s;
}

.calc-bg-blob--four {
  left: -4%;
  bottom: -4%;
  width: 42%;
  height: 42%;
  filter: blur(56px);
  opacity: 0.45;
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, transparent 70%);
  animation-duration: 24s;
  animation-direction: alternate-reverse;
  animation-delay: 2s;
}

body.calc-app-page[data-theme="dark"] .calc-bg-blob--one {
  opacity: 0.22;
  background: radial-gradient(circle, rgba(255, 59, 48, 1) 0%, transparent 70%);
}

body.calc-app-page[data-theme="dark"] .calc-bg-blob--two {
  opacity: 0.05;
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, transparent 70%);
}

body.calc-app-page[data-theme="dark"] .calc-bg-blob--three {
  opacity: 0.10;
  background: radial-gradient(circle, rgba(255, 59, 48, 1) 0%, transparent 70%);
}

body.calc-app-page[data-theme="dark"] .calc-bg-blob--four {
  opacity: 0.03;
}

.calc-bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.8;
  background-image:
    linear-gradient(rgba(15, 17, 21, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 17, 21, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 72%);
  transition: opacity 0.6s ease, background-image 0.6s ease;
}

body.calc-app-page[data-theme="dark"] .calc-bg-grid {
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
}

@keyframes calcBlobFloat {
  from {
    transform: translate3d(-2%, -1.5%, 0) scale(1);
  }

  to {
    transform: translate3d(2%, 1.5%, 0) scale(1.05);
  }
}

.calc-app-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(15, 17, 21, 0.07);
  background: rgba(246, 247, 249, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.4s ease, border-color 0.4s ease;
}

body.calc-app-page[data-theme="dark"] .calc-app-nav {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: rgba(17, 18, 22, 0.72);
}

.calc-app-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--text-main);
  text-decoration: none;
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.4s ease;
}

body.calc-app-page[data-theme="dark"] .calc-app-logo {
  color: #f3f4f6;
}

.calc-app-logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-red, #ef1c25) 0%, #8b0000 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(239, 28, 37, 0.25);
}

.calc-app-logo__dot {
  color: var(--brand-red, #ef1c25);
}

.calc-app-nav__links {
  display: flex;
  gap: 4px;
}

.calc-app-nav__links a {
  position: relative;
  border-radius: 8px;
  color: var(--text-muted);
  padding: 6px 14px;
  text-decoration: none;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease;
}

.calc-app-nav__links a:hover {
  color: var(--text-main);
}

.calc-app-nav__links a.is-active {
  background: rgba(239, 28, 37, 0.07);
  color: var(--brand-red, #ef1c25);
  font-weight: 600;
}

body.calc-app-page[data-theme="dark"] .calc-app-nav__links a {
  color: #b8bdc7;
}

body.calc-app-page[data-theme="dark"] .calc-app-nav__links a:hover {
  color: #f3f4f6;
}

body.calc-app-page[data-theme="dark"] .calc-app-nav__links a.is-active {
  background: rgba(255, 59, 48, 0.10);
  color: #ff3b30;
}

.calc-theme-switcher {
  position: relative;
  display: flex;
  align-items: center;
  width: 72px;
  height: 36px;
  border: 1px solid rgba(15, 17, 21, 0.10);
  border-radius: 999px;
  background: linear-gradient(135deg, #f6f7f9 0%, #eceff3 100%);
  box-shadow:
    0 2px 16px rgba(15, 17, 21, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  padding: 3px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

body.calc-app-page[data-theme="dark"] .calc-theme-switcher {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, #1a1c21 0%, #111216 100%);
  box-shadow:
    0 2px 16px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.calc-theme-switcher__glow {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: radial-gradient(circle at 80% 50%, rgba(255, 59, 48, 0.18), transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

body.calc-app-page[data-theme="dark"] .calc-theme-switcher__glow {
  opacity: 1;
}

.calc-theme-switcher__icons {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 9px;
  pointer-events: none;
}

.calc-theme-switcher__sun-bg {
  color: #f3f4f6;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.calc-theme-switcher__moon-bg {
  color: #0f1115;
  opacity: 0.5;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

body.calc-app-page[data-theme="dark"] .calc-theme-switcher__sun-bg {
  opacity: 0.3;
  transform: scale(1);
}

body.calc-app-page[data-theme="dark"] .calc-theme-switcher__moon-bg {
  opacity: 0;
  transform: scale(0.6);
}

.calc-theme-switcher__thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff 0%, #f0f2f5 100%);
  color: var(--brand-red, #ef1c25);
  box-shadow:
    0 2px 8px rgba(15, 17, 21, 0.15),
    0 1px 2px rgba(15, 17, 21, 0.08);
  transform: translateX(0);
  transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, box-shadow 0.3s ease;
}

body.calc-app-page[data-theme="dark"] .calc-theme-switcher__thumb {
  transform: translateX(36px);
  background: linear-gradient(135deg, #ff3b30 0%, #c0392b 100%);
  color: #fff;
  box-shadow:
    0 0 12px rgba(255, 59, 48, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.4);
}

.calc-theme-switcher__sun,
.calc-theme-switcher__moon {
  position: absolute;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.calc-theme-switcher__sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.calc-theme-switcher__moon {
  opacity: 0;
  transform: rotate(-30deg) scale(0.5);
}

body.calc-app-page[data-theme="dark"] .calc-theme-switcher__sun {
  opacity: 0;
  transform: rotate(30deg) scale(0.5);
}

body.calc-app-page[data-theme="dark"] .calc-theme-switcher__moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.calc-page {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 32px 80px;
  animation: calcPageEnter 0.45s cubic-bezier(0.32, 0.72, 0, 1) both;
}

@keyframes calcPageEnter {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.calc-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 32px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.calc-back:hover {
  color: var(--text-main);
  transform: translateX(-3px);
}

.calc-header__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 28px;
}

.calc-header .badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  border: 1px solid rgba(239, 28, 37, 0.16);
  border-radius: 999px;
  background: rgba(239, 28, 37, 0.08);
  color: var(--brand-red);
  padding: 6px 10px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
}

.calc-title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-main);
  margin: 14px 0 8px;
}

.calc-desc {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  transition: opacity 0.25s ease;
}

.calc-tabs {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border-radius: 16px;
  background: rgba(15, 17, 21, 0.06);
  border: 1px solid rgba(15, 17, 21, 0.08);
  transition: background 0.4s, border-color 0.4s;
  flex-shrink: 0;
}

[data-theme="dark"] .calc-tabs {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.10);
}

.calc-tabs__slider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 12px rgba(15, 17, 21, 0.12);
  transition:
    transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
    width 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.4s ease,
    box-shadow 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] .calc-tabs__slider {
  background: linear-gradient(135deg, #2a2c31 0%, #1e2024 100%);
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.calc-tabs__btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: 12px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.25s ease;
  white-space: nowrap;
  font-family: inherit;
}

.calc-tabs__btn.is-active {
  color: var(--text-main);
}

.calc-tabs__icon {
  transition: color 0.25s ease, transform 0.25s ease;
  color: var(--text-muted);
}

.calc-tabs__btn.is-active .calc-tabs__icon {
  color: var(--brand-red);
  transform: scale(1.12);
}

.calc-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(15, 17, 21, 0.08);
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 24px 64px rgba(15, 17, 21, 0.10);
  transition:
    background 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

[data-theme="dark"] .calc-card {
  background: linear-gradient(135deg, #2a2c31 0%, #17181c 100%);
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.calc-card__stripe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--brand-red) 20%,
    var(--brand-red) 80%,
    transparent 100%
  );
  opacity: 0.85;
  z-index: 5;
}

.calc-card__glow {
  position: absolute;
  inset: -1px;
  background: radial-gradient(
    circle at 12% 16%,
    rgba(239, 28, 37, 0.16),
    transparent 36%
  );
  border-radius: 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

[data-theme="dark"] .calc-card__glow {
  opacity: 1;
}

.calc-loader {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(246, 247, 249, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 24px;
  transition: opacity 0.35s ease;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

[data-theme="dark"] .calc-loader {
  background: rgba(17, 18, 22, 0.65);
}

.calc-loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.calc-loader__spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid rgba(15, 17, 21, 0.10);
  border-top-color: var(--brand-red);
  animation: calcSpin 0.9s linear infinite;
}

[data-theme="dark"] .calc-loader__spinner {
  border-color: rgba(255, 255, 255, 0.10);
  border-top-color: var(--brand-red);
}

@keyframes calcSpin {
  to {
    transform: rotate(360deg);
  }
}

.calc-iframe {
  display: none;
  width: 100%;
  height: 820px;
  border: none;
  border-radius: 24px;
  position: relative;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.calc-iframe.is-active {
  display: block;
}

.calc-iframe.is-loaded {
  opacity: 1;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.calc-iframe.is-active.tab-enter {
  animation: tabFadeIn 0.32s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

@media (max-width: 680px) {
  .calc-app-nav {
    height: auto;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
  }

  .calc-app-nav__links {
    display: none;
  }

  .calc-page {
    padding: 32px 16px 60px;
  }

  .calc-header__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .calc-tabs {
    width: 100%;
  }

  .calc-tabs__btn {
    flex: 1;
    justify-content: center;
    padding: 10px 14px;
  }

  .calc-iframe {
    height: 680px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .calc-bg-blob,
  .calc-loader__spinner,
  .calc-page,
  .calc-iframe.is-active.tab-enter {
    animation: none !important;
  }

  .calc-tabs__slider,
  .calc-theme-switcher__thumb,
  .calc-desc {
    transition: none !important;
  }
}

/* Modern auction filter card */
body.main-page--stats-focus .auction-filter-card {
  --filter-bg: rgba(255, 255, 255, 0.92);
  --filter-text: #111318;
  --filter-muted: #6b7280;
  --filter-red: #ef1c25;
  --filter-red-dark: #b8141b;
  --filter-border: rgba(17, 19, 24, 0.08);
  display: grid;
  gap: 18px;
  border-radius: 28px;
  border: 1px solid var(--filter-border);
  background: var(--filter-bg);
  box-shadow: 0 18px 50px rgba(17, 19, 24, 0.07);
  padding: 24px;
  overflow: visible;
}

body.main-page--stats-focus .auction-filter-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

body.main-page--stats-focus .auction-filter-card__head h2 {
  margin: 0;
  color: var(--filter-text);
  font-size: 24px;
  line-height: 30px;
  font-weight: 800;
  letter-spacing: 0;
}

body.main-page--stats-focus .auction-filter-card__head p {
  margin: 4px 0 0;
  color: var(--filter-muted);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

body.main-page--stats-focus .auction-filter-card__status {
  display: grid;
  gap: 3px;
  justify-items: end;
  color: var(--filter-muted);
  font-size: 12px;
  line-height: 16px;
  text-align: right;
}

body.main-page--stats-focus .auction-filter-card__status span:first-child {
  color: var(--filter-text);
  font-size: 15px;
  line-height: 20px;
  font-weight: 800;
}

body.main-page--stats-focus .auction-filter-form {
  display: grid;
  gap: 16px;
}

body.main-page--stats-focus .auction-filter-grid {
  display: grid;
  gap: 14px;
}

body.main-page--stats-focus .auction-filter-grid--main {
  grid-template-columns: minmax(150px, 1.2fr) minmax(150px, 1.2fr) minmax(190px, 1fr) minmax(190px, 1fr) minmax(140px, 0.82fr) minmax(150px, 0.8fr);
  align-items: end;
}

body.main-page--stats-focus .auction-filter-grid--advanced {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.main-page--stats-focus .auction-field {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--filter-muted);
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
}

body.main-page--stats-focus .auction-field > span:first-child,
body.main-page--stats-focus .auction-output-settings label > span,
body.main-page--stats-focus .auction-view-setting > span {
  color: var(--filter-muted);
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
}

body.main-page--stats-focus .auction-filter-form input,
body.main-page--stats-focus .auction-filter-form select,
body.main-page--stats-focus .auction-output-settings select,
body.main-page--stats-focus .auction-multi-select__trigger {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(17, 19, 24, 0.12);
  border-radius: 14px;
  background: #fff;
  color: var(--filter-text);
  padding: 0 14px;
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

body.main-page--stats-focus .auction-filter-form input:focus,
body.main-page--stats-focus .auction-filter-form select:focus,
body.main-page--stats-focus .auction-output-settings select:focus,
body.main-page--stats-focus .auction-multi-select.is-open .auction-multi-select__trigger,
body.main-page--stats-focus .auction-multi-select__trigger:focus-visible {
  border-color: var(--filter-red);
  box-shadow: 0 0 0 4px rgba(239, 28, 37, 0.1);
}

body.main-page--stats-focus .auction-range-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.main-page--stats-focus .auction-stats__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

body.main-page--stats-focus .auction-stats__actions .btn-main,
body.main-page--stats-focus .auction-filter-actions .btn-light {
  min-height: 52px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 20px;
  font-weight: 800;
}

body.main-page--stats-focus .auction-stats__actions .btn-main {
  border: 0;
  background: linear-gradient(135deg, var(--filter-red), var(--filter-red-dark));
  color: #fff;
  box-shadow: 0 14px 30px rgba(239, 28, 37, 0.22);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

body.main-page--stats-focus .auction-stats__actions .btn-main:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(239, 28, 37, 0.28);
}

body.main-page--stats-focus .auction-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

body.main-page--stats-focus .auction-preset-chip {
  min-height: 38px;
  border: 1px solid rgba(17, 19, 24, 0.1);
  border-radius: 999px;
  background: #fff;
  color: var(--filter-text);
  padding: 0 14px;
  font-size: 14px;
  line-height: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

body.main-page--stats-focus .auction-preset-chip:hover {
  border-color: rgba(239, 28, 37, 0.28);
  transform: translateY(-1px);
}

body.main-page--stats-focus .auction-preset-chip.is-active {
  border-color: rgba(239, 28, 37, 0.25);
  background: rgba(239, 28, 37, 0.1);
  color: var(--filter-red-dark);
}

body.main-page--stats-focus .auction-filter-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

body.main-page--stats-focus .auction-filter-actions .btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(17, 19, 24, 0.1);
  background: #fff;
  color: var(--filter-text);
  padding: 0 16px;
  box-shadow: none;
}

body.main-page--stats-focus .auction-advanced-toggle.has-active-filters {
  border-color: rgba(239, 28, 37, 0.25);
  color: var(--filter-red-dark);
}

body.main-page--stats-focus .auction-advanced-toggle__arrow {
  transition: transform 0.2s ease;
}

body.main-page--stats-focus .auction-advanced.is-open + .auction-advanced-toggle__arrow,
body.main-page--stats-focus .auction-advanced-toggle[aria-expanded="true"] .auction-advanced-toggle__arrow {
  transform: rotate(180deg);
}

body.main-page--stats-focus .auction-advanced {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-8px);
  transition: max-height 0.22s ease-out, opacity 0.2s ease-out, transform 0.2s ease-out;
}

body.main-page--stats-focus .auction-advanced.is-open {
  max-height: 760px;
  opacity: 1;
  overflow: visible;
  transform: translateY(0);
}

body.main-page--stats-focus .auction-output-settings {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  border-top: 1px solid var(--filter-border);
  padding-top: 16px;
}

body.main-page--stats-focus .auction-output-settings > p {
  margin: 0;
  color: var(--filter-text);
  font-size: 14px;
  line-height: 20px;
  font-weight: 800;
}

body.main-page--stats-focus .auction-output-settings__sort {
  display: grid;
  gap: 6px;
  min-width: 240px;
}

body.main-page--stats-focus .auction-output-settings select {
  min-height: 44px;
  border-radius: 12px;
  font-size: 14px;
}

body.main-page--stats-focus .auction-quick-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

body.main-page--stats-focus .auction-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #374151;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
}

body.main-page--stats-focus .auction-switch__slider {
  width: 38px;
  height: 22px;
  background: #d1d5db;
}

body.main-page--stats-focus .auction-switch__slider::after {
  width: 16px;
  height: 16px;
  top: 3px;
  left: 3px;
}

body.main-page--stats-focus .auction-switch input:checked + .auction-switch__slider {
  background: var(--filter-red);
}

body.main-page--stats-focus .auction-switch input:checked + .auction-switch__slider::after {
  transform: translateX(16px);
}

body.main-page--stats-focus .auction-view-setting {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

body.main-page--stats-focus .auction-view-toggle {
  border: 1px solid rgba(17, 19, 24, 0.1);
  border-radius: 12px;
  background: #fff;
}

body.main-page--stats-focus .auction-view-toggle__btn {
  width: 40px;
  height: 40px;
}

body.main-page--stats-focus .auction-view-toggle__btn.is-active {
  background: var(--filter-red);
  color: #fff;
}

body.main-page--stats-focus .catalog-filter-message {
  margin: 0;
  min-height: 18px;
}

body.main-page--stats-focus .auction-stats__chips-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--filter-border);
  padding-top: 14px;
}

body.main-page--stats-focus .auction-stats__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.main-page--stats-focus .auction-chip {
  min-height: 32px;
  border: 1px solid rgba(239, 28, 37, 0.25);
  background: rgba(239, 28, 37, 0.1);
  color: var(--filter-red-dark);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

body.main-page--stats-focus .auction-chip button {
  color: inherit;
}

body.main-page--stats-focus .auction-stats__chips-clear {
  color: var(--filter-red);
}

@media (max-width: 1280px) {
  body.main-page--stats-focus .auction-filter-grid--main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.main-page--stats-focus .auction-filter-grid--advanced {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.main-page--stats-focus .auction-filter-card__head {
    display: grid;
  }

  body.main-page--stats-focus .auction-filter-card__status {
    justify-items: start;
    text-align: left;
  }

  body.main-page--stats-focus .auction-filter-grid--main,
  body.main-page--stats-focus .auction-filter-grid--advanced {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.main-page--stats-focus .auction-view-setting {
    margin-left: 0;
  }
}

@media (max-width: 760px) {
  body.main-page--stats-focus .auction-filter-card {
    border-radius: 22px;
    padding: 18px;
  }

  body.main-page--stats-focus .auction-filter-card__head h2 {
    font-size: 22px;
    line-height: 28px;
  }

  body.main-page--stats-focus .auction-filter-grid--main,
  body.main-page--stats-focus .auction-filter-grid--advanced {
    grid-template-columns: 1fr;
  }

  body.main-page--stats-focus .auction-stats__actions .btn-main {
    width: 100%;
  }

  body.main-page--stats-focus .auction-preset-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: -18px;
    padding: 0 18px 4px;
    scrollbar-width: none;
  }

  body.main-page--stats-focus .auction-preset-row::-webkit-scrollbar {
    display: none;
  }

  body.main-page--stats-focus .auction-preset-chip {
    flex: 0 0 auto;
  }

  body.main-page--stats-focus .auction-filter-actions,
  body.main-page--stats-focus .auction-output-settings,
  body.main-page--stats-focus .auction-quick-filters {
    align-items: stretch;
    flex-direction: column;
  }

  body.main-page--stats-focus .auction-filter-actions .btn-light,
  body.main-page--stats-focus .auction-output-settings__sort {
    width: 100%;
  }

  body.main-page--stats-focus .auction-view-setting {
    width: 100%;
    justify-content: space-between;
    flex-direction: row;
  }

  body.main-page--stats-focus .auction-stats__chips-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ===== Triumph Auto Red-Branded Statistics (targeted overrides) ===== */
:root {
  --brand-red: #EF1C25;
  --brand-red-hover: #FF3B30;
  --brand-red-soft: rgba(239, 28, 37, 0.10);
  --brand-black: #111111;
  --brand-dark: #16181D;
  --brand-graphite: #2A2C31;
  --text-main: #0F1115;
  --text-muted: #6B7280;
  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --page-bg: #F6F7F9;
  --page-bg-2: #ECEFF3;
  --grid-color: rgba(15, 17, 21, 0.065);
  --surface: #FFFFFF;
  --surface-muted: var(--page-bg);
  --border: #E5E7EB;
  --danger-soft: rgba(239, 28, 37, 0.08);
  --danger-soft-border: rgba(239, 28, 37, 0.18);
  --card-bg: rgba(255, 255, 255, 0.86);
  --card-border: rgba(15, 17, 21, 0.08);
  --card-shadow: 0 22px 60px rgba(15, 17, 21, 0.08);
  --nav-bg: rgba(246, 247, 249, 0.72);
  --nav-border: rgba(15, 17, 21, 0.07);
  --shadow-soft: 0 10px 30px rgba(17, 17, 17, 0.04);

  --bg: var(--surface-muted);
  --card: var(--surface);
  --line: var(--border);
  --text: var(--text-primary);
  --muted: var(--text-secondary);
  --red: var(--brand-red);
  --red-dark: var(--brand-red-hover);
  --shadow: var(--shadow-soft);
}

[data-theme="dark"] {
  --brand-red: #FF3B30;
  --brand-red-hover: #EF1C25;
  --brand-red-soft: rgba(255, 59, 48, 0.16);
  --text-main: #F3F4F6;
  --text-muted: #B8BDC7;
  --text-primary: #F3F4F6;
  --text-secondary: #B8BDC7;
  --page-bg: #111216;
  --page-bg-2: #1A1C21;
  --grid-color: rgba(255, 255, 255, 0.055);
  --surface: rgba(34, 35, 40, 0.84);
  --surface-muted: var(--page-bg);
  --border: rgba(255, 255, 255, 0.10);
  --danger-soft: rgba(255, 59, 48, 0.12);
  --danger-soft-border: rgba(255, 59, 48, 0.28);
  --card-bg: rgba(34, 35, 40, 0.84);
  --card-border: rgba(255, 255, 255, 0.10);
  --card-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  --nav-bg: rgba(17, 18, 22, 0.72);
  --nav-border: rgba(255, 255, 255, 0.08);
  --bg: var(--page-bg);
  --card: var(--card-bg);
  --line: var(--card-border);
  --text: var(--text-main);
  --muted: var(--text-muted);
}

body.main-page {
  background: var(--surface-muted);
  color: var(--text-primary);
}

body.main-page--stats-focus .container {
  margin-top: 0.6rem;
  gap: 24px;
}

body.main-page--stats-focus .site-header {
  position: sticky;
  top: 0;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body.main-page--stats-focus .top-nav {
  width: min(1280px, calc(100% - 64px));
}

body.main-page--stats-focus .site-header.site-header--scrolled {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: 0 14px 34px rgba(15, 17, 21, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body.main-page--stats-focus .auction-stats {
  --auction-accent: var(--brand-red);
  --auction-accent-soft: var(--danger-soft);
  --auction-card-line: var(--border);
  --auction-muted: var(--text-secondary);
  gap: 24px;
}

body.main-page--stats-focus .auction-stats__head {
  align-items: flex-start;
  gap: 16px;
}

body.main-page--stats-focus .auction-stats__head h1,
body.main-page--stats-focus .auction-stats__head h2 {
  margin: 0;
  font-size: clamp(42px, 4.2vw, 56px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #111827;
}

body.main-page--stats-focus .auction-stats__head p {
  margin: 10px 0 0;
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
  color: var(--text-secondary);
}

body.main-page--stats-focus .auction-stats__how {
  border: 1px solid var(--border);
  background: var(--surface);
  color: #374151;
  border-radius: 999px;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
}

body.main-page--stats-focus .auction-stats__how:hover {
  border-color: var(--danger-soft-border);
  color: var(--brand-red);
}

body.main-page--stats-focus .auction-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

body.main-page--stats-focus .auction-summary__card {
  min-height: 132px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 24px;
  display: grid;
  align-content: start;
  gap: 8px;
  position: relative;
}

body.main-page--stats-focus .auction-summary__card--visual {
  min-height: 430px;
  padding: 24px 26px;
  isolation: isolate;
  border-radius: 30px;
  border-color: rgba(255, 255, 255, 0.92);
  background:
    radial-gradient(circle at 86% 76%, rgba(239, 28, 37, 0.2) 0, rgba(239, 28, 37, 0) 34%),
    linear-gradient(145deg, #ffffff 0%, #f9fafb 58%, #ffffff 100%);
  box-shadow:
    0 26px 52px rgba(17, 24, 39, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  overflow: hidden;
}

body.main-page--stats-focus .auction-summary__card--visual::before,
body.main-page--stats-focus .auction-summary__card--visual::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

body.main-page--stats-focus .auction-summary__card--visual::before {
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74) 0%, rgba(255, 255, 255, 0) 48%),
    radial-gradient(circle at 50% 112%, rgba(239, 28, 37, 0.24) 0, rgba(239, 28, 37, 0) 37%);
}

body.main-page--stats-focus .auction-summary__card--visual::after {
  left: 28px;
  right: 28px;
  bottom: -14px;
  z-index: 1;
  height: 38px;
  border-radius: 999px;
  background: rgba(239, 28, 37, 0.72);
  filter: blur(16px);
}

body.main-page--stats-focus .auction-summary__card--visual > :not(.auction-summary__art) {
  position: relative;
  z-index: 2;
}

body.main-page--stats-focus .auction-summary__card--visual .auction-summary__metric-head {
  gap: 14px;
}

body.main-page--stats-focus .auction-summary__card--visual .auction-summary__icon {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.main-page--stats-focus .auction-summary__card--visual .auction-summary__icon-img {
  width: 48px;
  height: 48px;
  display: block;
  object-fit: contain;
}

body.main-page--stats-focus .auction-summary__card--visual .auction-summary__label {
  color: #626a78;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 0;
}

body.main-page--stats-focus .auction-summary__card--visual .auction-summary__value {
  margin-top: 26px;
  color: #050505;
  font-size: 48px;
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: 0;
}

body.main-page--stats-focus .auction-summary__card--visual .auction-summary__value--long {
  font-size: 40px;
}

body.main-page--stats-focus .auction-summary__card--visual .auction-currency {
  color: #050505;
  font-size: 0.42em;
  margin-left: 6px;
  letter-spacing: 0;
}

body.main-page--stats-focus .auction-summary__card--visual .auction-summary__hint {
  margin-top: 12px;
  color: #6d7480;
  font-size: 18px;
  line-height: 24px;
}

body.main-page--stats-focus .auction-summary__art {
  position: absolute;
  z-index: 1;
  max-width: none;
  height: auto;
  pointer-events: none;
  user-select: none;
}

body.main-page--stats-focus .auction-summary__art--price {
  left: 50%;
  bottom: -12px;
  width: 121%;
  transform: translateX(-51%);
}

body.main-page--stats-focus .auction-summary__metric-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.main-page--stats-focus .auction-summary__icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 999px;
  border: 1px solid var(--danger-soft-border);
  background: var(--danger-soft);
  color: var(--brand-red);
}

body.main-page--stats-focus .auction-summary__icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

body.main-page--stats-focus .auction-summary__icon--yen {
  background: transparent;
  border: 0;
  color: inherit;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
}

body.main-page--stats-focus .auction-summary__icon--yen svg {
  width: 44px;
  height: 44px;
  display: block;
}

body.main-page--stats-focus .auction-summary__icon--yen .auction-summary__yen-circle {
  fill: #fdecef;
  stroke: none;
}

body.main-page--stats-focus .auction-summary__icon--yen path {
  fill: none;
  stroke: #ef1c25;
  stroke-width: 3.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.main-page--stats-focus .auction-summary__icon--average-price-art {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
}

body.main-page--stats-focus .auction-summary__icon--average-price-art svg {
  width: 44px;
  height: 44px;
  display: block;
  fill: none;
  stroke: none;
}

body.main-page--stats-focus .auction-summary__icon--currency-art {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
}

body.main-page--stats-focus .auction-summary__icon--currency-art svg {
  width: 44px;
  height: 44px;
  display: block;
  fill: none;
  stroke: none;
}

body.main-page--stats-focus .auction-summary__icon--lots-art {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
}

body.main-page--stats-focus .auction-summary__icon--lots-art svg {
  width: 44px;
  height: 44px;
  display: block;
  fill: none;
  stroke: none;
}

body.main-page--stats-focus .auction-summary__icon--mileage-art {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
}

body.main-page--stats-focus .auction-summary__icon--mileage-art svg {
  width: 44px;
  height: 44px;
  display: block;
  fill: none;
  stroke: none;
}

body.main-page--stats-focus .auction-summary__label {
  margin: 0;
  font-size: 13px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

body.main-page--stats-focus .auction-summary__value {
  margin: 0;
  font-size: clamp(34px, 2.2vw, 40px);
  line-height: 1.04;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

body.main-page--stats-focus .auction-summary__card--range .auction-summary__value {
  font-size: clamp(28px, 1.8vw, 34px);
  line-height: 1.1;
}

body.main-page--stats-focus .auction-summary__card--currency-rate .auction-summary__value {
  display: grid;
  gap: 4px;
  margin-top: 2px;
  white-space: normal;
  letter-spacing: 0;
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
}

body.main-page--stats-focus .auction-summary__card--currency-visual .auction-summary__value--rates {
  gap: 3px;
  margin-top: 10px;
  font-size: 16px;
  line-height: 20px;
  font-weight: 800;
}

body.main-page--stats-focus .auction-summary__card--currency-visual .auction-summary__hint {
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 12px;
  line-height: 16px;
}

body.main-page--stats-focus .auction-summary__hint-sub {
  display: block;
  margin-top: 0;
  color: #9ca3af;
  font-size: 11px;
  line-height: 14px;
}

body.main-page--stats-focus .auction-summary__card--currency-visual .auction-summary__meta {
  display: none;
  margin-top: 0;
  font-size: 11px;
  line-height: 14px;
}

body.main-page--stats-focus .auction-summary__card--currency-visual .auction-summary__currency-line {
  color: #050505;
}

body.main-page--stats-focus .auction-summary__art--currency {
  left: 50%;
  bottom: 0;
  width: 100%;
  height: auto;
  transform: translateX(-50%);
}

body.main-page--stats-focus .auction-summary__art--lots {
  left: 50%;
  bottom: 0;
  width: 100%;
  height: auto;
  transform: translateX(-50%);
}

body.main-page--stats-focus .auction-summary__art--mileage {
  left: 50%;
  bottom: 0;
  width: 100%;
  height: auto;
  transform: translateX(-50%);
}

body.main-page--stats-focus .auction-summary__card--lots-visual .auction-summary__hint {
  margin-top: -6px;
  font-size: 13px;
  line-height: 18px;
}

body.main-page--stats-focus .auction-summary__card--mileage-visual .auction-summary__hint {
  margin-top: -6px;
  font-size: 13px;
  line-height: 18px;
}

body.main-page--stats-focus .auction-summary__currency-line {
  display: block;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

body.main-page--stats-focus .auction-summary__hint {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--text-secondary);
}

body.main-page--stats-focus .auction-summary__meta {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: #9ca3af;
}

body.main-page--stats-focus .auction-summary__mini-chart,
body.main-page--stats-focus .auction-summary__spark,
body.main-page--stats-focus .auction-summary__bars {
  display: none !important;
}

body.main-page--stats-focus .auction-currency {
  font-size: 0.5em;
  margin-left: 4px;
  color: #374151;
}

body.main-page--stats-focus .auction-stats__filters-card {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 24px;
  gap: 14px;
}

body.main-page--stats-focus .auction-stats__form {
  gap: 14px 16px;
}

body.main-page--stats-focus .auction-stats__form label {
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  color: #374151;
}

body.main-page--stats-focus .auction-stats__form input,
body.main-page--stats-focus .auction-stats__form select,
body.main-page--stats-focus .auction-results-toolbar__controls select,
body.main-page--stats-focus .auction-multi-select__trigger {
  min-height: 52px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: #1f2937;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}

body.main-page--stats-focus .auction-stats__form input:focus,
body.main-page--stats-focus .auction-stats__form select:focus,
body.main-page--stats-focus .auction-results-toolbar__controls select:focus,
body.main-page--stats-focus .auction-multi-select.is-open .auction-multi-select__trigger,
body.main-page--stats-focus .auction-multi-select__trigger:focus-visible {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(239, 28, 37, 0.12);
}

body.main-page--stats-focus .auction-multi-select__menu {
  border: 1px solid var(--border);
}

body.main-page--stats-focus .auction-multi-select__option input {
  accent-color: var(--brand-red);
}

body.main-page--stats-focus .auction-stats__actions .btn-main {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  box-shadow: none;
}

body.main-page--stats-focus .auction-stats__actions .btn-main:hover {
  background: var(--brand-red-hover);
  border-color: var(--brand-red-hover);
}

body.main-page--stats-focus .auction-stats__actions .btn-light {
  background: #fff;
  border: 1px solid var(--border);
  color: #374151;
  font-size: 16px;
  font-weight: 600;
}

body.main-page--stats-focus .auction-stats__chips-row {
  gap: 12px;
}

body.main-page--stats-focus .auction-chip {
  min-height: 32px;
  border: 1px solid var(--danger-soft-border);
  background: var(--danger-soft);
  color: #3f3f46;
}

body.main-page--stats-focus .auction-stats__chips-clear {
  color: var(--brand-red);
}

body.main-page--stats-focus .auction-stats__chips-clear:hover {
  color: var(--brand-red-hover);
}

body.main-page--stats-focus .auction-insights {
  display: none !important;
}

body.main-page--stats-focus .auction-results-toolbar {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

body.main-page--stats-focus .auction-results-toolbar__main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-right: auto;
}

body.main-page--stats-focus .auction-results-toolbar__count {
  font-size: 40px;
  line-height: 1;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

body.main-page--stats-focus .auction-results-toolbar__path {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-secondary);
  font-weight: 500;
}

body.main-page--stats-focus .auction-results-toolbar__controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

body.main-page--stats-focus .auction-results-toolbar__controls label {
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  color: #374151;
}

body.main-page--stats-focus .auction-results-toolbar__controls select {
  min-height: 44px;
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
}

body.main-page--stats-focus .auction-quick-filters {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.main-page--stats-focus .auction-switch {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: #374151;
}

body.main-page--stats-focus .auction-switch__slider {
  width: 38px;
  height: 22px;
  background: #d1d5db;
}

body.main-page--stats-focus .auction-switch__slider::after {
  width: 16px;
  height: 16px;
  top: 3px;
  left: 3px;
}

body.main-page--stats-focus .auction-switch input:checked + .auction-switch__slider {
  background: var(--brand-red);
}

body.main-page--stats-focus .auction-switch input:checked + .auction-switch__slider::after {
  transform: translateX(16px);
}

body.main-page--stats-focus .auction-view-toggle {
  border: 1px solid var(--border);
  border-radius: 12px;
}

body.main-page--stats-focus .auction-view-toggle__btn {
  width: 40px;
  height: 40px;
}

body.main-page--stats-focus .auction-view-toggle__btn.is-active {
  background: var(--brand-red);
  color: #fff;
}

body.main-page--stats-focus .auction-stats__cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

body.main-page--stats-focus .lot-card {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  min-height: 560px;
}

body.main-page--stats-focus .lot-card:hover {
  border-color: var(--danger-soft-border);
  box-shadow: 0 14px 28px rgba(17, 17, 17, 0.08);
}

body.main-page--stats-focus .lot-card__image-wrap {
  height: 240px;
}

body.main-page--stats-focus .lot-card__score {
  background: #fff;
  color: var(--brand-red);
  border: 1px solid var(--danger-soft-border);
  box-shadow: 0 4px 14px rgba(239, 28, 37, 0.14);
}

body.main-page--stats-focus .lot-card__photo-count {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  color: #374151;
}

body.main-page--stats-focus .lot-card__title-row h3 {
  font-size: 30px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

body.main-page--stats-focus .lot-card__year {
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  color: var(--text-secondary);
}

body.main-page--stats-focus .lot-card__grade {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

body.main-page--stats-focus .lot-card__specs strong {
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
}

body.main-page--stats-focus .lot-card__spec::before {
  border-color: rgba(239, 28, 37, 0.38);
}

body.main-page--stats-focus .lot-card__meta span {
  color: #9ca3af;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

body.main-page--stats-focus .lot-card__meta strong {
  color: #374151;
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
}

body.main-page--stats-focus .lot-card__price-row {
  border: 1px solid #f0d6d8;
  background: linear-gradient(180deg, #ffffff 0%, #fdf8f8 100%);
}

body.main-page--stats-focus .lot-card__price {
  font-size: clamp(40px, 2.1vw, 46px);
  line-height: 1.04;
  color: var(--brand-dark);
}

body.main-page--stats-focus .lot-card__price-sub {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 20px;
}

body.main-page--stats-focus .lot-badge {
  border-radius: 999px;
  border: 1px solid var(--danger-soft-border);
  background: var(--danger-soft);
  color: #8a1a1e;
}

body.main-page--stats-focus .lot-badge--good,
body.main-page--stats-focus .lot-badge--value,
body.main-page--stats-focus .lot-badge--popular {
  color: #8a1a1e;
  background: var(--danger-soft);
  border-color: var(--danger-soft-border);
}

body.main-page--stats-focus .lot-card__footer {
  border-top: 1px solid #f1f3f6;
}

body.main-page--stats-focus .lot-card__link {
  color: #6b7280;
}

body.main-page--stats-focus .lot-card__link::before {
  border-color: #c7ccd5;
}

body.main-page--stats-focus .lot-card__link:hover,
body.main-page--stats-focus .lot-card__favorite:hover {
  color: var(--brand-red);
}

body.main-page--stats-focus .auction-stats__page-btn:hover {
  border-color: var(--danger-soft-border);
  color: var(--brand-red);
}

body.main-page--stats-focus .auction-stats__page-btn.is-active {
  background: var(--brand-red);
  border-color: var(--brand-red);
}

@media (max-width: 1200px) {
  body.main-page--stats-focus .auction-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.main-page--stats-focus .auction-stats__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.main-page--stats-focus .auction-results-toolbar {
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  body.main-page--stats-focus .top-nav {
    width: min(1280px, calc(100% - 24px));
  }

  body.main-page--stats-focus .container {
    width: min(1280px, calc(100% - 24px));
  }

  body.main-page--stats-focus .auction-summary {
    grid-template-columns: 1fr;
  }

  body.main-page--stats-focus .auction-summary__card--visual {
    min-height: 500px;
    padding: 22px;
    border-radius: 26px;
  }

  body.main-page--stats-focus .auction-summary__art--price {
    bottom: -10px;
    width: 112%;
  }

  body.main-page--stats-focus .auction-summary__card--visual .auction-summary__value {
    margin-top: 22px;
    font-size: 46px;
  }

  body.main-page--stats-focus .auction-summary__card--visual .auction-summary__value--long {
    font-size: 42px;
  }

  body.main-page--stats-focus .auction-summary__card--currency-visual .auction-summary__value--rates {
    margin-top: 10px;
    font-size: 16px;
    line-height: 20px;
  }

  body.main-page--stats-focus .auction-summary__card--visual .auction-summary__hint {
    font-size: 16px;
    line-height: 22px;
  }

  body.main-page--stats-focus .auction-summary__card--currency-visual .auction-summary__hint {
    font-size: 12px;
    line-height: 16px;
  }

  body.main-page--stats-focus .auction-stats__head h1,
  body.main-page--stats-focus .auction-stats__head h2 {
    font-size: clamp(34px, 12vw, 46px);
  }

  body.main-page--stats-focus .auction-results-toolbar__count {
    font-size: 32px;
  }

  body.main-page--stats-focus .auction-results-toolbar__controls {
    width: 100%;
  }

  body.main-page--stats-focus .auction-stats__cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  body.main-page--stats-focus .lot-card__title-row h3 {
    font-size: 26px;
  }
}

@media (max-width: 420px) {
  body.main-page--stats-focus .auction-summary__card--visual {
    min-height: 488px;
  }

  body.main-page--stats-focus .auction-summary__card--visual .auction-summary__value {
    font-size: 40px;
  }

  body.main-page--stats-focus .auction-summary__card--visual .auction-summary__value--long {
    font-size: 36px;
  }

  body.main-page--stats-focus .auction-summary__card--currency-visual .auction-summary__value--rates {
    font-size: 16px;
    line-height: 20px;
  }

  body.main-page--stats-focus .auction-summary__art--price {
    bottom: -12px;
    width: 112%;
  }
}

* {
  box-sizing: border-box;
}

body.main-page {
  margin: 0;
  font-family: Inter, "Segoe UI", sans-serif;
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(180deg, var(--page-bg) 0%, var(--page-bg-2) 100%);
  transition: color 0.4s ease, background 0.4s ease;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.page-bg__base {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--page-bg) 0%, var(--page-bg-2) 100%);
  transition: background 0.6s ease;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  animation: blobFloat 18s ease-in-out infinite alternate;
  transition: opacity 0.6s ease, background 0.6s ease;
}

.blob--1 {
  top: -10%;
  left: -8%;
  width: 52%;
  height: 52%;
  background: radial-gradient(circle, rgba(239, 28, 37, 1) 0%, transparent 70%);
  opacity: 0.13;
  filter: blur(64px);
  animation-duration: 18s;
}

[data-theme="dark"] .blob--1 {
  background: radial-gradient(circle, rgba(255, 59, 48, 1) 0%, transparent 70%);
  opacity: 0.22;
}

.blob--2 {
  top: -6%;
  right: -10%;
  width: 48%;
  height: 48%;
  background: radial-gradient(circle, rgba(0, 0, 0, 1) 0%, transparent 70%);
  opacity: 0.045;
  filter: blur(72px);
  animation-duration: 22s;
  animation-direction: alternate-reverse;
}

[data-theme="dark"] .blob--2 {
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, transparent 70%);
  opacity: 0.05;
}

.blob--3 {
  bottom: -8%;
  right: -6%;
  width: 44%;
  height: 44%;
  background: radial-gradient(circle, rgba(239, 28, 37, 1) 0%, transparent 70%);
  opacity: 0.08;
  filter: blur(60px);
  animation-duration: 20s;
  animation-delay: 4s;
}

[data-theme="dark"] .blob--3 {
  background: radial-gradient(circle, rgba(255, 59, 48, 1) 0%, transparent 70%);
  opacity: 0.10;
}

.blob--4 {
  bottom: -4%;
  left: -4%;
  width: 42%;
  height: 42%;
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, transparent 70%);
  opacity: 0.45;
  filter: blur(56px);
  animation-duration: 24s;
  animation-delay: 2s;
  animation-direction: alternate-reverse;
}

[data-theme="dark"] .blob--4 {
  opacity: 0.03;
}

.page-bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 72%);
  opacity: 0.8;
  transition: opacity 0.6s ease;
}

[data-theme="dark"] .page-bg__grid {
  opacity: 0.5 !important;
}

@keyframes blobFloat {
  from {
    transform: translate3d(-2%, -1.5%, 0) scale(1);
  }

  to {
    transform: translate3d(2%, 1.5%, 0) scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .blob {
    animation: none !important;
  }

  .hero-visual__slide,
  .hero-visual__caption,
  .hero-visual__accent-line,
  .hero-visual__dot::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

.page-content {
  position: relative;
  z-index: 2;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: none;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, backdrop-filter 0.2s ease;
}

body.triumph-page .site-header,
body.lot-detail-page .site-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(229, 231, 235, 0.82);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

.top-nav {
  width: min(1280px, calc(100% - 4rem));
  margin: 0 auto;
  min-height: 0;
  padding: 0.24rem 0;
  display: grid;
  grid-template-columns: minmax(178px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  line-height: 0;
  user-select: none;
  -webkit-user-select: none;
}

.brand img {
  width: 178px;
  height: auto;
  max-height: 70px;
  object-fit: contain;
  object-position: left center;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 0.35rem;
}

.nav-item {
  position: relative;
}

.nav-link,
.nav-dropdown a {
  text-decoration: none;
  color: #121620;
  font-weight: 600;
  font-size: 0.88rem;
  position: relative;
}

.nav-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0 0.72rem;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-link:hover,
.nav-item--dropdown:hover .nav-link,
.nav-item--dropdown:focus-within .nav-link {
  background: rgba(17, 24, 39, 0.06);
  color: var(--red);
}

.nav-links a.is-active {
  color: var(--red);
}

/* Dark theme: the forced-white header (triumph/lot pages) must follow the dark
   theme like the rest of the site, otherwise it stays a white bar in dark mode. */
[data-theme="dark"] body.triumph-page .site-header,
[data-theme="dark"] body.lot-detail-page .site-header {
  background: var(--nav-bg);
  border-bottom-color: var(--nav-border);
  box-shadow: none;
}

/* Dark theme: the top-bar nav links sit on a dark glassy header, so their
   default ink (#121620) is unreadable. Lift them to a light tone with the
   usual red hover. The dropdown panel stays white, so it is left untouched. */
[data-theme="dark"] body.main-page .nav-link,
[data-theme="dark"] body.lot-detail-page .nav-link,
[data-theme="dark"] body.triumph-page .nav-link {
  color: var(--text-muted);
}

[data-theme="dark"] body.main-page .nav-link:hover,
[data-theme="dark"] body.main-page .nav-item--dropdown:hover .nav-link,
[data-theme="dark"] body.main-page .nav-item--dropdown:focus-within .nav-link,
[data-theme="dark"] body.lot-detail-page .nav-link:hover,
[data-theme="dark"] body.lot-detail-page .nav-item--dropdown:hover .nav-link,
[data-theme="dark"] body.lot-detail-page .nav-item--dropdown:focus-within .nav-link,
[data-theme="dark"] body.triumph-page .nav-link:hover,
[data-theme="dark"] body.triumph-page .nav-item--dropdown:hover .nav-link,
[data-theme="dark"] body.triumph-page .nav-item--dropdown:focus-within .nav-link {
  color: var(--brand-red);
}

[data-theme="dark"] body.main-page .nav-links a.is-active,
[data-theme="dark"] body.lot-detail-page .nav-links a.is-active,
[data-theme="dark"] body.triumph-page .nav-links a.is-active {
  color: var(--brand-red);
}

.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.45rem;
  height: 2px;
  background: var(--red);
  border-radius: 999px;
}

.nav-caret {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.18s ease;
}

.nav-item--dropdown:hover .nav-caret,
.nav-item--dropdown:focus-within .nav-caret {
  transform: translateY(1px) rotate(225deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 168px;
  display: grid;
  gap: 2px;
  padding: 0.42rem;
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.13);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

/* Transparent bridge over the 8px gap between the menu item and the dropdown,
   so moving the cursor from "Направления" down to a link keeps the hover state
   alive (the dropdown is a descendant, so hovering the bridge counts). */
.nav-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}

.nav-dropdown a {
  display: block;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  color: #1f2937;
  white-space: nowrap;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
  background: rgba(239, 28, 37, 0.08);
  color: var(--red);
  outline: none;
}

.nav-dropdown hr {
  margin: 4px 6px;
  border: 0;
  border-top: 1px solid rgba(229, 231, 235, 0.86);
}

.nav-item--dropdown:hover .nav-dropdown,
.nav-item--dropdown:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  flex-direction: row-reverse;
  gap: 12px;
  justify-self: end;
  margin-left: 0;
}

/* Hamburger: hidden on desktop, shown in the mobile breakpoint below. */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--nav-border);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle__box {
  position: relative;
  width: 18px;
  height: 12px;
}

.nav-toggle__bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle__bar:nth-child(1) { top: 0; }
.nav-toggle__bar:nth-child(2) { top: 5px; }
.nav-toggle__bar:nth-child(3) { top: 10px; }

.site-header.nav-open .nav-toggle__bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header.nav-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle__bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Single CTA button in the header; legacy duplicate removed. */

.theme-toggle {
  position: relative;
  display: flex;
  align-items: center;
  width: 72px;
  height: 36px;
  border: 1px solid rgba(15, 17, 21, 0.10);
  border-radius: 999px;
  padding: 3px;
  background: linear-gradient(135deg, #F6F7F9 0%, #ECEFF3 100%);
  box-shadow:
    0 2px 16px rgba(15, 17, 21, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  cursor: pointer;
  outline: none;
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .theme-toggle {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, #1A1C21 0%, #111216 100%);
  box-shadow:
    0 2px 16px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.theme-toggle__glow {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: radial-gradient(circle at 80% 50%, rgba(255, 59, 48, 0.18), transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

[data-theme="dark"] .theme-toggle__glow {
  opacity: 1;
}

.theme-toggle__icons {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 9px;
  pointer-events: none;
}

.theme-toggle__icons svg {
  width: 12px;
  height: 12px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.icon-sun {
  color: #F3F4F6;
  opacity: 0;
  transform: scale(0.6);
}

.icon-moon {
  color: #0F1115;
  opacity: 0.5;
  transform: scale(1);
}

[data-theme="dark"] .icon-sun {
  opacity: 0.3;
  transform: scale(1);
}

[data-theme="dark"] .icon-moon {
  opacity: 0;
  transform: scale(0.6);
}

.theme-toggle__thumb {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #F0F2F5 100%);
  box-shadow:
    0 2px 8px rgba(15, 17, 21, 0.15),
    0 1px 2px rgba(15, 17, 21, 0.08);
  transform: translateX(0);
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.3s ease,
    box-shadow 0.3s ease;
}

[data-theme="dark"] .theme-toggle__thumb {
  transform: translate3d(36px, 0, 0) !important;
  background: linear-gradient(135deg, #FF3B30 0%, #C0392B 100%);
  box-shadow:
    0 0 12px rgba(255, 59, 48, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.4);
}

.thumb-icon {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.thumb-icon svg {
  width: 14px;
  height: 14px;
}

.thumb-icon--sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.thumb-icon--moon {
  opacity: 0;
  transform: rotate(30deg) scale(0.5);
}

[data-theme="dark"] .thumb-icon--sun {
  opacity: 0;
  transform: rotate(-30deg) scale(0.5);
}

[data-theme="dark"] .thumb-icon--moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.btn-cta {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 10px;
  padding: 0 1rem;
  font-weight: 700;
  font-size: 0.88rem;
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 22px rgba(216, 31, 38, 0.24);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-cta:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(216, 31, 38, 0.3);
}

.container {
  width: min(1280px, calc(100% - 4rem));
  margin: 1rem auto 2.2rem;
  display: grid;
  gap: 1.5rem;
}

body.main-page--stats-focus .container {
  margin-top: 0.7rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(380px, 1fr);
  align-items: center;
  gap: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.4rem;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.9)),
    radial-gradient(circle at 80% 50%, rgba(216, 31, 38, 0.1), transparent 45%);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

[data-theme="dark"] .hero {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.10);
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 59, 48, 0.14), transparent 38%),
    linear-gradient(135deg, #2A2C31 0%, #17181C 100%);
  box-shadow:
    0 24px 60px rgba(15, 17, 21, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .hero-typing__base,
[data-theme="dark"] .hero-typing__cursor {
  color: #F3F4F6;
}

[data-theme="dark"] .hero-line {
  color: #B8BDC7;
}

.hero-content {
  max-width: 580px;
  width: 100%;
}

.hero-kicker {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3em;
  margin: 0;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(1.3rem, 2.3vw, 1.62rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1;
}

.hero-kicker__mark {
  color: var(--text);
}

.hero-kicker__accent {
  color: var(--red);
}

.hero h1 {
  margin: 0.5rem 0 1rem;
  width: 100%;
  font-size: 3.5rem;
  line-height: 4rem;
  font-weight: 500;
  letter-spacing: -0.035rem;
  white-space: pre-line;
}

.hero h1.hero-typing {
  margin: 0.5rem 0 1rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 40px;
  line-height: 60px;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: normal;
}

.hero-typing__base {
  white-space: nowrap;
  color: #000000;
}

.hero-typing__country-wrap {
  position: relative;
  min-width: 272px;
  height: 60px;
  display: inline-flex;
  align-items: flex-end;
  overflow: visible;
  white-space: nowrap;
  --flag-left: 0px;
}

.hero-typing__country-line {
  display: inline-flex;
  align-items: flex-end;
}

.hero-typing__flag-tile {
  position: absolute;
  left: var(--flag-left);
  top: -26px;
  width: 38px;
  height: 24px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  box-shadow: 0 8px 16px rgba(16, 19, 26, 0.16);
  overflow: hidden;
  display: grid;
  place-items: center;
}

/* Temporary: keep SVG flags in markup/JS, but hide the tile visually. */
.hero-typing__flag-tile {
  display: none;
}

.hero-typing__flag {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-typing__measure {
  position: absolute;
  left: -9999px;
  top: -9999px;
  visibility: hidden;
  pointer-events: none;
  white-space: nowrap;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

.hero-typing__country {
  display: inline-block;
  min-width: 1ch;
  background: linear-gradient(109.87deg, #ff0004 -3.85%, #1652e9 82.5%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-typing__cursor {
  margin-left: 2px;
  color: #111111;
  animation: hero-caret-blink 0.9s steps(1, end) infinite;
}

@keyframes hero-caret-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.hero-line {
  margin: 0 0 0.9rem;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: -0.01rem;
  font-weight: 400;
}

.hero-text {
  margin: 0.8rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.hero-list {
  margin: 0.95rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.hero-list li {
  position: relative;
  padding-left: 1.25rem;
  color: #1f2633;
  font-weight: 500;
}

.hero-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--red);
}

.hero-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.85rem;
}

.hero-actions__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 4px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--red-dark);
  text-decoration: none;
  transition: gap 0.16s ease, color 0.16s ease;
}

.hero-actions__link svg {
  width: 17px;
  height: 17px;
}

.hero-actions__link:hover {
  gap: 10px;
  color: var(--red);
}

[data-theme="dark"] .hero-actions__link {
  color: #ff6a60;
}

.hero-visual {
  position: relative;
  width: 100%;
  align-self: stretch;
  min-height: 360px;
  display: grid;
  align-items: center;
  gap: 12px;
}

.hero-visual__slides {
  position: relative;
  width: 100%;
  aspect-ratio: 1642 / 958;
  min-height: 340px;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  background: #0F1115;
  box-shadow:
    0 26px 56px rgba(17, 24, 39, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

/* Slide change — a soft focus-pull crossfade: the new photo sharpens and
   fades in while the previous one blurs out gently underneath it. */
.hero-visual__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  z-index: 0;
  transform: scale(1.05);
  filter: blur(16px);
  transition: opacity 0.7s ease, filter 0.9s ease,
    transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hero-visual__slide.is-active {
  opacity: 1;
  z-index: 1;
  transform: scale(1);
  filter: blur(0);
}

.hero-visual__shade,
.hero-visual__side-shade,
.hero-visual__accent-line,
.hero-visual__caption,
.hero-visual__nav {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}

.hero-visual__shade {
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 17, 21, 0.72) 0%, transparent 42%, rgba(15, 17, 21, 0.16) 100%);
}

.hero-visual__side-shade {
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 17, 21, 0.45) 0%, transparent 34%, rgba(15, 17, 21, 0.18) 100%);
}

.hero-visual__accent-line {
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--brand-red), transparent);
  opacity: 0.96;
  animation: hero-accent-line 5s linear infinite;
}

.hero-visual__caption {
  left: 24px;
  bottom: 24px;
  display: grid;
  max-width: min(78%, 360px);
  gap: 6px;
  color: #F8FAFC;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.hero-visual__caption.is-changing {
  animation: hero-caption-in 0.45s cubic-bezier(0.32, 0.72, 0, 1);
}

.hero-visual__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 5px 12px 5px 6px;
  background: rgba(15, 17, 21, 0.5);
  color: #F3F4F6;
  font: 700 11px / 1 Inter, system-ui, -apple-system, sans-serif;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.hero-visual__flag {
  width: 20px;
  height: 13px;
  flex: 0 0 auto;
  display: block;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero-visual__caption strong {
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero-visual__caption span:last-child {
  max-width: 320px;
  color: rgba(243, 244, 246, 0.82);
  font-size: 14px;
  line-height: 1.45;
}

.hero-visual__nav {
  top: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: rgba(15, 17, 21, 0.4);
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0.55;
  transform: translateY(-50%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
  transition: opacity 0.25s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-visual__nav svg {
  width: 19px;
  height: 19px;
}

.hero-visual:hover .hero-visual__nav {
  opacity: 1;
}

.hero-visual__nav:hover {
  opacity: 1;
  border-color: rgba(239, 28, 37, 0.7);
  background: rgba(239, 28, 37, 0.88);
  transform: translateY(-50%) scale(1.09);
}

.hero-visual__nav:active {
  transform: translateY(-50%) scale(0.95);
}

.hero-visual__nav--prev {
  left: 16px;
}

.hero-visual__nav--next {
  right: 16px;
}

.hero-visual__dots {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 8px;
  width: fit-content;
  min-height: 32px;
  border: 1px solid rgba(15, 17, 21, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 24px rgba(15, 17, 21, 0.10);
  backdrop-filter: blur(12px);
  padding: 10px 14px;
}

.hero-visual__dot {
  position: relative;
  width: 26px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  overflow: hidden;
  background: rgba(15, 17, 21, 0.16);
  cursor: pointer;
  transition: width 0.28s cubic-bezier(0.22, 0.61, 0.36, 1), background 0.22s ease, transform 0.22s ease;
}

.hero-visual__dot.is-active {
  width: 52px;
}

.hero-visual__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--brand-red);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
}

.hero-visual__dot.is-active {
  background: rgba(239, 28, 37, 0.20);
}

.hero-visual__dots.is-progressing .hero-visual__dot.is-active::after {
  opacity: 1;
  animation: hero-slide-progress var(--hero-slide-duration, 5000ms) linear forwards;
}

.hero-visual__dots.is-paused .hero-visual__dot.is-active::after {
  animation-play-state: paused;
}

.hero-visual__dot:not(.is-active)::after {
  opacity: 0;
}

.hero-visual__dot:hover {
  transform: translateY(-1px);
  background: rgba(239, 28, 37, 0.34);
}

[data-theme="dark"] .hero-visual__dots {
  border-color: rgba(255, 255, 255, 0.10);
  background: rgba(23, 24, 28, 0.72);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .hero-visual__dot {
  background: rgba(255, 255, 255, 0.18);
}

[data-theme="dark"] .hero-visual__dot.is-active {
  background: rgba(255, 59, 48, 0.20);
}

@keyframes hero-slide-progress {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes hero-caption-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-accent-line {
  from {
    transform: translateX(-35%);
  }

  to {
    transform: translateX(35%);
  }
}

.btn-main,
.btn-light {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.btn-main {
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, var(--brand-red) 0%, #C0392B 100%);
  box-shadow: 0 4px 20px rgba(239, 28, 37, 0.35);
}

.btn-light {
  color: var(--text-main);
  background: rgba(15, 17, 21, 0.05);
  border: 1px solid rgba(15, 17, 21, 0.10);
}

[data-theme="dark"] .btn-light {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
}

.btn-main:hover,
.btn-light:hover {
  transform: scale(1.03);
}

.btn-main:hover {
  box-shadow: 0 8px 32px rgba(239, 28, 37, 0.45);
}

.btn-main:active,
.btn-light:active {
  transform: scale(0.97);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 0.85rem 0.95rem;
  display: grid;
  gap: 0.2rem;
}

.stat-value {
  font-family: Manrope, Inter, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #121826;
}

.stat-text {
  color: var(--muted);
  font-size: 0.93rem;
}

.stat-card--rating {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(239, 242, 247, 0.82), rgba(221, 226, 234, 0.62));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 16px;
  min-height: 1px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 14px 30px rgba(6, 12, 24, 0.12);
}

.rating-strip {
  display: none;
}

.rating-widget {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0;
}

.rating-logo {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
}

.rating-logo svg,
.rating-logo img {
  width: 100%;
  height: 100%;
  display: block;
}

.rating-logo img {
  object-fit: cover;
  object-position: center;
}

.rating-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.rating-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 10px;
  border: 1.8px solid #000000;
  border-radius: 999px;
  background: #000000;
  line-height: 0;
}

.rating-title svg {
  width: 66px;
  height: 14px;
  display: block;
}

.rating-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rating-number {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
  color: #fea500;
}

.rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rating-stars span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  color: #fea500;
}

.rating-caption {
  display: block;
  margin: 0;
  padding: 0;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  color: #5f6775;
  font-size: 14px;
  line-height: 1.1;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.section-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.section-card h2 {
  margin: 0;
  font-size: 1.14rem;
}

.section-card p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.faq details + details {
  margin-top: 0.6rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.lead {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.auction-stats {
  --auction-accent: #ff6a00;
  --auction-accent-soft: #fff1e3;
  --auction-card-line: #e7eaf0;
  --auction-muted: #6b7280;
  display: grid;
  gap: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.auction-stats__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.auction-stats__head h1,
.auction-stats__head h2 {
  margin: 0;
  font-size: clamp(2.25rem, 4.4vw, 56px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #1f2937;
}

.auction-stats__head p {
  margin: 10px 0 0;
  color: var(--auction-muted);
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
}

.auction-stats__how {
  text-decoration: none;
  border: 1px solid #dbe2ee;
  background: #fff;
  color: #374151;
  border-radius: 999px;
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  padding: 13px 18px;
  white-space: nowrap;
}

.auction-stats__how:hover {
  border-color: #cfd8e8;
  color: #111827;
}

.auction-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.auction-summary__card {
  background: #ffffff;
  border: 1px solid #ecf0f6;
  border-radius: 13px;
  padding: 12px 13px;
  min-height: 102px;
  box-shadow: none;
  overflow: hidden;
}

.auction-summary__label {
  margin: 0;
  color: #758297;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.auction-summary__value {
  margin: 5px 0 0;
  font-size: 28px;
  line-height: 32px;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.auction-summary__value .auction-currency {
  margin-left: 4px;
}

.auction-currency {
  font-size: 0.52em;
  font-weight: 700;
  color: #4b5563;
  letter-spacing: 0;
}

.auction-summary__hint {
  margin: 3px 0 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
}

.auction-summary__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.auction-summary__icon {
  width: 33px;
  height: 33px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffe8d2;
  background: #fff7f1;
  color: #ff6a00;
  flex: 0 0 auto;
}

.auction-summary__icon svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.auction-summary__card--mileage .auction-summary__icon {
  background: #f2fbf4;
  border-color: #d8f1dd;
  color: #37af4a;
}

.auction-summary__card--range .auction-summary__icon,
.auction-summary__card--year .auction-summary__icon {
  background: #fff7ef;
  border-color: #ffe8d2;
  color: #ff7a1a;
}

.auction-summary__mini-chart {
  width: 100%;
  height: 16px;
  display: block;
  margin-top: 4px;
}

.auction-summary__mini-area {
  stroke: none;
}

.auction-summary__mini-line {
  fill: none;
  stroke: #ff6a00;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auction-summary__mini-chart--green .auction-summary__mini-line {
  stroke: #3aaf51;
}

.auction-summary__mini-chart--bars rect {
  fill: #ff9a3d;
  opacity: 0.8;
}

.auction-summary__mini-chart--bars rect:nth-child(1) { opacity: 0.54; }
.auction-summary__mini-chart--bars rect:nth-child(2) { opacity: 0.86; }
.auction-summary__mini-chart--bars rect:nth-child(3) { opacity: 0.74; }
.auction-summary__mini-chart--bars rect:nth-child(4) { opacity: 0.48; }
.auction-summary__mini-chart--bars rect:nth-child(5) { opacity: 0.62; }
.auction-summary__mini-chart--bars rect:nth-child(6) { opacity: 0.95; }

.auction-summary__spark {
  margin-top: 10px;
  height: 16px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.auction-summary__spark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 106, 0, 0.15), rgba(255, 106, 0, 0));
}

.auction-summary__spark::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: #ff6a00;
  opacity: 0.35;
}

.auction-summary__spark--up::after {
  clip-path: polygon(0 82%, 18% 67%, 33% 57%, 47% 34%, 60% 49%, 76% 36%, 100% 56%, 100% 100%, 0 100%);
}

.auction-summary__spark--down::before {
  background: linear-gradient(180deg, rgba(58, 171, 81, 0.14), rgba(58, 171, 81, 0));
}

.auction-summary__spark--down::after {
  background: #3aab51;
  clip-path: polygon(0 40%, 16% 45%, 34% 30%, 50% 50%, 66% 44%, 82% 56%, 100% 66%, 100% 100%, 0 100%);
}

.auction-summary__bars {
  margin-top: 10px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 20px;
}

.auction-summary__card--range .auction-summary__value {
  font-size: 22px;
  line-height: 28px;
  white-space: normal;
  letter-spacing: -0.01em;
}

.auction-summary__card--range .auction-currency {
  font-size: 0.48em;
}

.auction-summary__bars span {
  flex: 1 1 auto;
  background: linear-gradient(180deg, #ffd8ac, #ff8a24);
  border-radius: 4px 4px 2px 2px;
  opacity: 0.7;
}

.auction-summary__bars span:nth-child(1) { height: 46%; }
.auction-summary__bars span:nth-child(2) { height: 76%; }
.auction-summary__bars span:nth-child(3) { height: 58%; }
.auction-summary__bars span:nth-child(4) { height: 33%; }
.auction-summary__bars span:nth-child(5) { height: 44%; }
.auction-summary__bars span:nth-child(6) { height: 90%; }

.auction-stats__filters-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--auction-card-line);
  background: #ffffff;
  box-shadow: none;
}

.auction-stats__form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 16px;
  align-items: end;
}

.auction-stats__form label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  line-height: 18px;
  color: #374151;
  font-weight: 600;
}

.auction-stats__form input,
.auction-stats__form select,
.auction-results-toolbar__controls select {
  width: 100%;
  border: 1px solid #d8dfeb;
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 52px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  background: #fff;
  color: #1f2937;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.auction-stats__form input:focus,
.auction-stats__form select:focus,
.auction-results-toolbar__controls select:focus {
  border-color: rgba(255, 106, 0, 0.85);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.14);
}

.auction-stats__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  grid-column: span 1;
}

.auction-stats__actions .btn-main,
.auction-stats__actions .btn-light {
  min-height: 52px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  white-space: nowrap;
}

.auction-stats__actions .btn-main {
  background: #ff6a00;
  color: #fff;
  box-shadow: none;
}

.auction-stats__actions .btn-light {
  background: #fff;
  color: #4b5563;
  border-color: #d8dfeb;
}

.auction-stats__actions .btn-main:hover {
  background: #f76200;
}

.auction-stats__actions .btn-light:hover {
  border-color: #cfd8e7;
  color: #374151;
}

.catalog-filter-message {
  min-height: 20px;
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 20px;
}

.auction-score-filter {
  position: relative;
}

.auction-multi-select {
  position: relative;
}

.auction-multi-select__trigger {
  width: 100%;
  min-height: 52px;
  border-radius: 12px;
  border: 1px solid #d8dfeb;
  background: #fff;
  color: #1f2937;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
}

.auction-multi-select.is-open .auction-multi-select__trigger,
.auction-multi-select__trigger:focus-visible {
  border-color: rgba(255, 106, 0, 0.85);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.14);
  outline: none;
}

.auction-multi-select__caret {
  width: 8px;
  height: 8px;
  border-right: 2px solid #6b7280;
  border-bottom: 2px solid #6b7280;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-right: 2px;
}

.auction-multi-select.is-open .auction-multi-select__caret {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.auction-multi-select__menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  border-radius: 12px;
  border: 1px solid #d8dfeb;
  background: #fff;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.12);
  max-height: 264px;
  overflow: auto;
  z-index: 14;
  padding: 8px;
  display: none;
}

.auction-multi-select.is-open .auction-multi-select__menu {
  display: grid;
  gap: 2px;
}

.auction-multi-select__option {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  padding: 8px 10px;
  color: #1f2937;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  cursor: pointer;
}

.auction-multi-select__option:hover {
  background: #f6f8fb;
}

.auction-multi-select__option input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
  accent-color: #ff6a00;
  border-radius: 4px;
  padding: 0;
}

.auction-stats__chips-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.auction-stats__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auction-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 0 12px;
  min-height: 30px;
  font-size: 14px;
  line-height: 20px;
  border: 1px solid #dbe2ee;
  color: #374151;
  background: #f9fafc;
}

.auction-chip button {
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.auction-chip button:hover {
  color: #1f2937;
}

.auction-stats__chips-clear {
  border: 0;
  background: transparent;
  color: #ff6a00;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.auction-stats__chips-clear:hover {
  color: #ea580c;
}

.auction-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.auction-insights__card {
  background: #ffffff;
  border: 1px solid var(--auction-card-line);
  border-radius: 16px;
  padding: 14px;
  min-height: 172px;
  box-shadow: none;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 8px;
}

.auction-insights__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid #edf2f8;
}

.auction-insights__head h3 {
  margin: 0;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: #1f2937;
}

.auction-insights__head span {
  color: #6b7280;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

.auction-insights__trend-wrap {
  position: relative;
  border-radius: 11px;
  border: 1px solid #e9eef6;
  background: #fbfcff;
  padding: 8px 10px 8px;
  min-height: 140px;
}

.auction-insights__sparkline {
  width: 100%;
  height: 108px;
  background: transparent;
  border: 0;
}

.auction-insights__sparkline line {
  stroke: #edf1f6;
  stroke-width: 1;
}

.auction-insights__sparkline text {
  fill: #9ca3af;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

.auction-insights__sparkline polyline {
  fill: none;
  stroke: #ff6a00;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auction-insights__point {
  fill: #ff6a00;
  stroke: #fff;
  stroke-width: 2;
  transition: r 0.15s ease;
}

.auction-insights__point:hover {
  r: 6;
}

.auction-insights__trend-axis {
  margin-top: -2px;
  pointer-events: none;
  display: grid;
  gap: 5px;
}

.auction-insights__x-labels {
  display: flex;
  justify-content: space-between;
  color: #9ca3af;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

.auction-insights__x-labels {
  padding-left: 52px;
  text-transform: capitalize;
}

.auction-insights__empty {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.auction-insights__grades {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  align-self: start;
  margin-top: 2px;
  padding: 8px;
  border: 1px solid #eef2f8;
  border-radius: 12px;
  background: #fbfcff;
}

.auction-grade {
  border: 1px solid #e5ebf4;
  border-radius: 10px;
  background: #ffffff;
  min-height: 68px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  color: #4f5c73;
  text-align: center;
}

.auction-grade.is-active {
  border-color: #ffd4b0;
  background: linear-gradient(180deg, #fff7ef 0%, #fffaf4 100%);
  box-shadow: inset 0 0 0 1px #ffe0c4;
  color: #ff6a00;
}

.auction-grade__label {
  font-size: 17px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.auction-grade__percent {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}

.auction-insights__models {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 8px 10px;
  border: 1px solid #eef2f8;
  border-radius: 12px;
  background: #fbfcff;
}

.auction-model-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) minmax(96px, 1fr) auto;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  line-height: 18px;
  color: #4a556a;
}

.auction-model-row__index {
  color: #8b96ab;
  font-weight: 600;
}

.auction-model-row__name {
  color: #2b3950;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auction-model-row__bar {
  height: 8px;
  border-radius: 999px;
  background: #eef1f7;
  overflow: hidden;
}

.auction-model-row__bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--bar-color, #ff6a00);
}

.auction-model-row__percent {
  color: #5a677d;
  font-size: 14px;
  line-height: 18px;
  font-weight: 700;
}

.auction-results-toolbar {
  display: grid;
  gap: 4px;
  border: 1px solid #e7eaf0;
  background: #ffffff;
  border-radius: 13px;
  padding: 8px 12px;
  box-shadow: none;
}

.auction-results-toolbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.auction-results-toolbar__main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.auction-results-toolbar__count {
  margin: 0;
  font-size: 19px;
  line-height: 24px;
  font-weight: 700;
  color: #1f2937;
}

.auction-results-toolbar__path {
  margin: 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

.auction-results-toolbar__controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.auction-results-toolbar__controls label {
  display: grid;
  gap: 3px;
  font-size: 11px;
  line-height: 14px;
  color: #4b5563;
  font-weight: 600;
}

.auction-results-toolbar__controls select {
  min-height: 38px;
  padding: 7px 11px;
  font-size: 13px;
  line-height: 18px;
}

.auction-view-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d8dfeb;
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}

.auction-view-toggle__btn {
  border: 0;
  background: #ffffff;
  color: #6b7280;
  width: 34px;
  height: 34px;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auction-view-toggle__btn + .auction-view-toggle__btn {
  border-left: 1px solid #d8dfeb;
}

.auction-view-toggle__btn.is-active {
  background: #ff6a00;
  color: #fff;
}

.auction-view-toggle__icon {
  width: 15px;
  height: 15px;
  color: currentColor;
  display: block;
  position: relative;
}

.auction-view-toggle__icon--grid {
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 6px 6px no-repeat,
    linear-gradient(currentColor, currentColor) 10px 0 / 6px 6px no-repeat,
    linear-gradient(currentColor, currentColor) 0 10px / 6px 6px no-repeat,
    linear-gradient(currentColor, currentColor) 10px 10px / 6px 6px no-repeat;
  opacity: 0.95;
}

.auction-view-toggle__icon--list {
  background:
    linear-gradient(currentColor, currentColor) 0 1px / 16px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 7px / 16px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 13px / 16px 2px no-repeat;
  opacity: 0.95;
}

.auction-results-toolbar__row--bottom {
  align-items: center;
  gap: 7px;
}

.auction-filter-toggle-btn {
  border: 1px solid #d8dfeb;
  background: #fff;
  color: #374151;
  border-radius: 11px;
  padding: 0 16px;
  min-height: 34px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  cursor: pointer;
  min-width: 110px;
}

.auction-filter-toggle-btn:hover {
  border-color: #ffd2aa;
  color: #ff6a00;
}

.auction-quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.auction-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  line-height: 16px;
  color: #4b5563;
  font-weight: 600;
}

.auction-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auction-switch__slider {
  width: 34px;
  height: 18px;
  border-radius: 999px;
  background: #d1d5db;
  position: relative;
  transition: background-color 0.18s ease;
}

.auction-switch__slider::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #fff;
  position: absolute;
  top: 3px;
  left: 3px;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.22);
  transition: transform 0.18s ease;
}

.auction-switch input:checked + .auction-switch__slider {
  background: linear-gradient(135deg, #ff8c2c, #ff6a00);
}

.auction-switch input:checked + .auction-switch__slider::after {
  transform: translateX(16px);
}

.auction-stats__meta {
  display: none;
}

.auction-stats__status {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
}

.auction-stats__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.auction-stats__cards--list {
  grid-template-columns: 1fr;
}

.lot-card {
  background: #ffffff;
  border: 1px solid #e9edf4;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 560px;
  box-shadow: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.lot-card:hover {
  border-color: #dde4ef;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.045);
}

.auction-stats__cards--list .lot-card {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
}

.auction-stats__cards--list .lot-card__image-wrap {
  height: 100%;
  aspect-ratio: auto;
}

.lot-card__image-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: #edf1f6;
}

.lot-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lot-card__image--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 0.88rem;
  background: #edf1f6;
}

.lot-card__score {
  position: absolute;
  left: 12px;
  top: 12px;
  background: #fff7ed;
  color: #f97316;
  border: 1px solid #ffd6ad;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 12px;
}

.lot-card__photo-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: #374151;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lot-card__photo-count::before {
  content: "";
  width: 12px;
  height: 9px;
  border: 1.4px solid #64748b;
  border-radius: 2px;
  background:
    radial-gradient(circle at 50% 50%, #64748b 0 1.5px, transparent 1.6px),
    linear-gradient(#64748b, #64748b) 1px -2px / 4px 2px no-repeat;
  display: inline-block;
}

.lot-card__body {
  padding: 14px 16px 11px;
  display: grid;
  gap: 8px;
  flex: 1 1 auto;
}

.lot-card__title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.lot-card__title-row h3 {
  margin: 0;
  color: #1f2937;
  font-size: 17px;
  line-height: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.lot-card__title-link {
  text-decoration: none;
  color: inherit;
}

.lot-card__title-link:hover {
  color: #c2410c;
}

.lot-card__year {
  color: #6b7280;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  white-space: nowrap;
}

.lot-card__grade {
  margin: 0;
  color: #768297;
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
}

.lot-card__specs,
.lot-card__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding-top: 9px;
  border-top: 1px solid #eef3f8;
}

.lot-card__specs {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr) minmax(0, 0.8fr);
  gap: 6px;
}

.lot-card__spec {
  position: relative;
  padding-left: 20px;
}

.lot-card__spec::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 12px;
  height: 12px;
  border: 1.8px solid #a0acbe;
  border-radius: 999px;
}

.lot-card__spec--engine::before {
  border-radius: 4px;
}

.lot-card__spec--mileage::before {
  border-radius: 999px;
  border-style: dashed;
}

.lot-card__spec--transmission::before {
  transform: rotate(45deg);
}

.lot-card__specs strong {
  display: block;
  color: #1f2937;
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  white-space: nowrap;
}

.lot-card__meta span {
  display: block;
  color: #a7b1c1;
  font-size: 10px;
  line-height: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.lot-card__meta strong {
  margin-top: 1px;
  display: block;
  color: #2f3b4f;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  white-space: nowrap;
}

.lot-card__price-row {
  display: grid;
  gap: 3px;
  margin-top: 4px;
  padding: 9px 11px;
  border: 1px solid #edf2f8;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
}

.lot-card__price {
  margin: 0;
  font-size: clamp(38px, 2.15vw, 45px);
  line-height: 1.04;
  font-weight: 700;
  color: #253145;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  white-space: nowrap;
}

.lot-card__currency {
  font-size: 0.52em;
  font-weight: 700;
  color: #4b5563;
  vertical-align: baseline;
  letter-spacing: 0;
}

.lot-card__price-sub {
  margin: 0;
  color: #7a8699;
  font-size: 12px;
  line-height: 17px;
  font-weight: 500;
}

.lot-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lot-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 10px;
  line-height: 13px;
  font-weight: 600;
  border: 1px solid transparent;
}

.lot-badge--good {
  color: #3b8855;
  background: #f5fbf7;
  border-color: #e0efe5;
}

.lot-badge--value {
  color: #c27619;
  background: #fff8f1;
  border-color: #f7e8d8;
}

.lot-badge--popular {
  color: #5073d6;
  background: #f6f8ff;
  border-color: #e2e8fb;
}

.lot-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid #f0f4f9;
  padding-top: 6px;
  margin-top: auto;
}

.lot-card__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.lot-card__link {
  text-decoration: none;
  color: #8793a7;
  border-radius: 8px;
  padding: 1px 0;
  font-size: 11px;
  line-height: 15px;
  font-weight: 500;
  border: 0;
}

.lot-card__link::before {
  content: "";
  width: 0.62rem;
  height: 0.62rem;
  display: inline-block;
  margin-right: 0.28rem;
  vertical-align: -0.12rem;
  border: 1px solid #c6d1de;
  border-radius: 2px;
}

.lot-card__link:hover {
  color: #ff6a00;
}

.lot-card__favorite {
  border: 0;
  background: transparent;
  color: #c2cbd9;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.lot-card__favorite:hover {
  color: #ff6a00;
}

.lot-card__empty {
  margin: 0;
  color: #6b7280;
  font-size: 16px;
  line-height: 24px;
}

.auction-stats__pagination-wrap {
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auction-stats__pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.auction-page-size {
  position: absolute;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.auction-page-size select {
  border: 1px solid #d8dfeb;
  background: #fff;
  color: #1f2937;
  border-radius: 12px;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 20px;
}

.auction-stats__page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid #d8dfeb;
  background: #ffffff;
  color: #4b5563;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.auction-stats__page-btn--nav {
  font-size: 18px;
  font-weight: 700;
}

.auction-stats__page-btn:hover {
  border-color: #ffc690;
  color: #ff6a00;
}

.auction-stats__page-btn:disabled {
  cursor: not-allowed;
  color: #a5aebe;
  border-color: #dce2ee;
  background: #f8f9fc;
}

.auction-stats__page-btn.is-active {
  background: #ff6a00;
  border-color: #ff6a00;
  color: #ffffff;
}

.auction-stats__page-gap {
  color: #9ca3af;
  font-size: 14px;
  line-height: 20px;
  padding: 0 6px;
}

.result-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.17rem 0.52rem;
  font-size: 0.74rem;
  font-weight: 700;
}

.result-chip.is-sold {
  color: #166534;
  background: #dcfce7;
}

.result-chip.is-not-sold {
  color: #9a3412;
  background: #ffedd5;
}

body.lot-detail-page {
  margin: 0;
  font-family: Inter, "Segoe UI", sans-serif;
  color: #f4f7ff;
  background:
    radial-gradient(circle at 12% 0%, rgba(216, 31, 38, 0.1), transparent 34%),
    #222834;
}

.lot-detail-container {
  width: min(1200px, calc(100% - 2rem));
  margin: 1rem auto 2rem;
}

.lot-detail__top {
  margin-bottom: 1rem;
}

.lot-detail__back {
  color: #d8deea;
  text-decoration: none;
  border-bottom: 1px dashed rgba(216, 222, 234, 0.65);
}

.lot-detail__back:hover {
  border-bottom-color: #ffffff;
}

.lot-detail-card {
  background:
    linear-gradient(165deg, #252a35 0%, #1f232d 55%, #191d25 100%);
  border: 1px solid #59606f;
  border-radius: 20px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.lot-detail-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(280px, 1fr);
  gap: 1rem;
}

.lot-detail-gallery__main {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.lot-detail-gallery__main img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.lot-detail-gallery__main-trigger {
  width: 100%;
  display: block;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: zoom-in;
}

.lot-detail-gallery__thumbs {
  margin-top: 0.65rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 0.5rem;
}

.lot-detail-gallery__thumb {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: zoom-in;
}

.lot-detail-gallery__thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.lot-detail-sheet {
  margin-top: 1rem;
}

.lot-detail-sheet h2 {
  margin: 0 0 0.55rem;
  font-size: 1.55rem;
  line-height: 1.2;
}

.lot-detail-sheet__image-wrap {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0;
  margin: 0;
  width: 100%;
  background: transparent;
  cursor: zoom-in;
}

.lot-detail-sheet__image-wrap img {
  display: block;
  width: 100%;
  background: #fff;
}

.lot-detail-title {
  margin: 0;
  font-size: 2rem;
  line-height: 1.2;
}

.lot-detail-subtitle {
  margin: 0.55rem 0 0;
  color: #a9b1c1;
  font-size: 0.97rem;
}

.lot-detail-price {
  margin: 1rem 0 0.6rem;
  font-size: 2.1rem;
  font-weight: 800;
}

.lot-detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 0.75rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.lot-detail-facts div {
  display: grid;
  gap: 0.1rem;
}

.lot-detail-facts span {
  color: #9aa7bd;
  font-size: 0.83rem;
}

.lot-detail-facts strong {
  font-size: 0.96rem;
  color: #ffffff;
}

.lot-detail-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.lot-detail-actions a {
  text-decoration: none;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: #ffffff;
  padding: 0.62rem 1rem;
  font-weight: 700;
}

.lot-detail-note {
  margin-top: 0.8rem;
  color: #a9b1c1;
  font-size: 0.88rem;
}

.lot-detail-empty {
  text-align: center;
  padding: 2.2rem 1rem;
}

.lot-lightbox[hidden] {
  display: none;
}

.lot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.lot-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 16, 0.86);
}

.lot-lightbox__panel {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  justify-items: center;
  padding: 1rem;
}

.lot-lightbox__viewport {
  position: relative;
  width: min(95vw, 1400px);
  height: min(82vh, 920px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
}

.lot-lightbox__viewport img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.16s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.lot-lightbox__close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  border: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.lot-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.lot-lightbox__nav--prev {
  left: max(0.6rem, calc(50% - (min(95vw, 1400px) / 2) + 0.6rem));
}

.lot-lightbox__nav--next {
  right: max(0.6rem, calc(50% - (min(95vw, 1400px) / 2) + 0.6rem));
}

.lot-lightbox__toolbar {
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(17, 20, 30, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 0.38rem 0.5rem;
}

.lot-lightbox__tool {
  border: 0;
  border-radius: 999px;
  min-width: 2.2rem;
  height: 2rem;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.lot-lightbox__counter {
  color: #d8deea;
  font-size: 0.9rem;
  min-width: 4.6rem;
  text-align: center;
}

@media (max-width: 980px) {
  /* Contain any horizontal bleed from page content (hero collages, animated
     widgets) on phones. Clips at the content wrapper, which is a sibling of the
     sticky header — so the header keeps sticking and vertical scroll is intact. */
  .page-content {
    overflow-x: clip;
  }

  /* Header collapses to: brand | (theme + hamburger). The CTA lives in the
     opened menu instead, so the row fits a phone without overflowing. */
  .top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-actions .btn-cta {
    display: none;
  }

  /* Closed by default; opens as a full-width panel under the sticky header. */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    /* Override desktop's justify-self:center, which would otherwise shrink-wrap
       and centre this absolutely-positioned panel instead of stretching it. */
    justify-self: stretch;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    /* Opaque: a nested backdrop-filter under the header's own blur doesn't
       frost, so the panel needs a solid fill to stay readable. */
    background: #f6f7f9;
    border-bottom: 1px solid var(--nav-border);
    box-shadow: 0 24px 44px rgba(15, 23, 42, 0.16);
    max-height: calc(100vh - 100%);
    overflow-y: auto;
  }

  [data-theme="dark"] .nav-links {
    background: #111216;
  }

  .site-header.nav-open .nav-links {
    display: flex;
  }

  /* Flatten the hover dropdowns into a static, always-expanded list. */
  .nav-item,
  .nav-item--dropdown {
    position: static;
    width: 100%;
  }

  .nav-links .nav-link {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border-radius: 10px;
  }

  .nav-caret {
    display: none;
  }

  .nav-dropdown {
    position: static;
    display: block;
    min-width: 0;
    padding: 0 0 4px 0.7rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .nav-dropdown::before {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-content {
    max-width: none;
  }

  .hero-visual {
    min-height: 0;
  }

  .hero-visual__slides {
    min-height: 280px;
  }

  .stats-strip,
  .section-grid {
    grid-template-columns: 1fr;
  }

  .auction-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auction-insights {
    grid-template-columns: 1fr;
  }

  .auction-stats__form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auction-stats__actions {
    grid-column: span 2;
  }

  .auction-results-toolbar__row {
    align-items: flex-start;
  }

  .auction-results-toolbar__controls {
    width: 100%;
    justify-content: space-between;
  }

  .auction-quick-filters {
    gap: 10px;
  }

  .auction-stats__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auction-stats__cards--list .lot-card {
    grid-template-columns: 1fr;
  }

  .auction-page-size {
    position: static;
    margin-left: auto;
  }
}

@media (max-width: 760px) {
  .top-nav {
    width: min(1280px, calc(100% - 1.5rem));
    min-height: 0;
    padding: 0.3rem 0;
  }

  .container {
    width: min(1280px, calc(100% - 1.5rem));
  }

  .btn-cta {
    padding: 0.62rem 1rem;
    font-size: 0.9rem;
  }

  .nav-links {
    display: none;
  }

  .brand img {
    width: 150px;
    height: auto;
    max-height: 60px;
  }

  .hero h1 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
    line-height: 3rem;
  }

  .hero h1.hero-typing {
    font-size: 28px;
    line-height: 42px;
    gap: 6px;
  }

  .hero-typing__country-wrap {
    min-width: 208px;
    height: 42px;
  }

  .hero-typing__flag-tile {
    top: -18px;
    width: 28px;
    height: 18px;
    border-radius: 5px;
  }

  .hero-typing__flag {
    width: 100%;
    height: 100%;
  }

  .hero-visual__slides {
    min-height: 220px;
    border-radius: 18px;
  }

  .hero-visual__caption {
    left: 16px;
    bottom: 16px;
    max-width: calc(100% - 86px);
  }

  .hero-visual__caption strong {
    font-size: 22px;
  }

  .hero-visual__caption span:last-child {
    display: none;
  }

  .hero-visual__nav {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }

  .hero-visual__nav--prev {
    left: 10px;
  }

  .hero-visual__nav--next {
    right: 10px;
  }

  .hero-visual__dots {
    min-height: 34px;
    padding: 7px 11px;
  }

  .hero-visual__dot {
    width: 38px;
  }

  .auction-stats__head {
    flex-direction: column;
  }

  .auction-stats__head h1,
  .auction-stats__head h2 {
    font-size: clamp(34px, 12vw, 44px);
  }

  .auction-stats__head p {
    font-size: 16px;
    line-height: 24px;
  }

  .auction-summary {
    grid-template-columns: 1fr;
  }

  .auction-stats__form {
    grid-template-columns: 1fr;
  }

  .auction-stats__actions {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  .auction-stats__chips-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .auction-results-toolbar__main,
  .auction-results-toolbar__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .auction-results-toolbar__controls {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .auction-view-toggle {
    width: auto;
  }

  .auction-view-toggle__btn {
    flex: 0 0 auto;
  }

  .auction-quick-filters {
    flex-direction: column;
    align-items: flex-start;
  }

  .auction-stats__cards {
    grid-template-columns: 1fr;
  }

  .auction-stats__pagination-wrap {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }

  .auction-page-size {
    position: static;
    margin-left: 0;
  }

  .lot-card__specs,
  .lot-card__meta {
    grid-template-columns: 1fr 1fr;
  }

  .lot-card__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .lot-detail-grid {
    grid-template-columns: 1fr;
  }

  .lot-detail-title {
    font-size: 1.55rem;
  }

  .lot-detail-price {
    font-size: 1.75rem;
  }
}

/* Lot cards: match the supplied reference card. */
body.main-page--stats-focus .auction-stats__cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: stretch;
  gap: 24px;
}

body.main-page--stats-focus .auction-stats__cards--list {
  grid-template-columns: 1fr;
}

body.main-page--stats-focus .auction-stats__cards--list .lot-card {
  grid-template-columns: 1fr;
}

body.main-page--stats-focus .lot-card {
  overflow: hidden;
  min-height: 0;
  border: 1px solid #e5e7eb;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(17, 24, 39, 0.07);
}

body.main-page--stats-focus .lot-card:hover {
  border-color: #e5e7eb;
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.09);
}

body.main-page--stats-focus .lot-card__image-wrap {
  height: auto;
  aspect-ratio: 1.755 / 1;
  background: #eef1f4;
}

body.main-page--stats-focus .lot-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.main-page--stats-focus .lot-card__score {
  left: 16px;
  top: 16px;
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 2px solid #ef1c25;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: none;
  color: #ef1c25;
  font-size: 32px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
}

body.main-page--stats-focus .lot-card__score--good {
  border-color: #16a34a;
  color: #16a34a;
}

body.main-page--stats-focus .lot-card__photo-count {
  right: 16px;
  bottom: 16px;
  min-width: 62px;
  min-height: 38px;
  padding: 0 11px;
  gap: 7px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.11);
  color: #4b5563;
  font-size: 16px;
  line-height: 1;
  font-weight: 600;
}

body.main-page--stats-focus .lot-card__photo-count::before {
  display: none;
}

body.main-page--stats-focus .lot-card__photo-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #111827;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.main-page--stats-focus .lot-card__body {
  padding: 16px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.main-page--stats-focus .lot-card__title-row {
  align-items: baseline;
  gap: 18px;
  margin-bottom: 8px;
}

body.main-page--stats-focus .lot-card__title-row h3 {
  color: #111827;
  font-size: 26px;
  line-height: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

body.main-page--stats-focus .lot-card__title-link:hover {
  color: #111820;
}

body.main-page--stats-focus .lot-card__year {
  color: #6b7280;
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
}

body.main-page--stats-focus .lot-card__grade {
  margin: 0 0 16px;
  color: #6b7280;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.main-page--stats-focus .lot-card__specs {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr) minmax(0, 0.72fr);
  gap: 0;
  margin-bottom: 16px;
  padding: 0 0 16px;
  border-top: 0;
  border-bottom: 1px solid #eef2f7;
}

body.main-page--stats-focus .lot-card__spec {
  min-width: 0;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #111820;
}

body.main-page--stats-focus .lot-card__spec:first-child {
  padding-left: 0;
}

body.main-page--stats-focus .lot-card__spec + .lot-card__spec {
  border-left: 1px solid #eef2f7;
}

body.main-page--stats-focus .lot-card__spec::before {
  display: none;
}

body.main-page--stats-focus .lot-card__spec-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: #EF1C25;
  stroke-width: 1.95;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #EF1C25;
}

body.main-page--stats-focus .lot-card__spec-icon--engine-filled {
  fill: #EF1C25;
  stroke: none;
}

body.main-page--stats-focus .lot-card__spec-icon--engine-filled path {
  fill: #EF1C25;
  stroke: none;
}

body.main-page--stats-focus .lot-card__spec-icon--mileage-custom {
  fill: none;
  stroke: #EF1C25;
}

body.main-page--stats-focus .lot-card__spec-icon--mileage-custom circle {
  fill: #EF1C25;
  stroke: none;
}

body.main-page--stats-focus .lot-card__spec-icon--transmission-custom {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: #EF1C25;
}

body.main-page--stats-focus .lot-card__specs strong {
  min-width: 0;
  color: #111827;
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

body.main-page--stats-focus .lot-card__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
  padding: 0;
  border-top: 0;
}

body.main-page--stats-focus .lot-card__meta span {
  margin-bottom: 4px;
  color: #9ca3af;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

body.main-page--stats-focus .lot-card__meta strong {
  color: #111827;
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0;
}

body.main-page--stats-focus .lot-card__price-row {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 18px 18px 16px;
  border: 1px solid rgba(239, 28, 37, 0.18);
  border-radius: 18px;
  background: #fffdfd;
}

body.main-page--stats-focus .lot-card__price-mark {
  position: absolute;
  right: 18px;
  top: 10px;
  color: rgba(239, 28, 37, 0.045);
  font-size: 86px;
  line-height: 1;
  font-weight: 800;
  pointer-events: none;
}

body.main-page--stats-focus .lot-card__price {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #111827;
  font-size: 34px;
  line-height: 38px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

body.main-page--stats-focus .lot-card__currency {
  margin-left: 8px;
  color: #111827;
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: 0;
}

body.main-page--stats-focus .lot-card__price-sub {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

body.main-page--stats-focus .lot-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

body.main-page--stats-focus .lot-card__badges:empty {
  display: none;
}

body.main-page--stats-focus .lot-badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(239, 28, 37, 0.18);
  border-radius: 999px;
  background: rgba(239, 28, 37, 0.08);
  color: #D9151E;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  white-space: nowrap;
}

body.main-page--stats-focus .lot-badge--good,
body.main-page--stats-focus .lot-badge--value,
body.main-page--stats-focus .lot-badge--popular {
  border-color: rgba(239, 28, 37, 0.18);
  background: rgba(239, 28, 37, 0.08);
  color: #D9151E;
}

body.main-page--stats-focus .lot-badge__icon {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.main-page--stats-focus .lot-badge--popular .lot-badge__icon {
  fill: none;
  stroke: currentColor;
}

body.main-page--stats-focus .lot-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #eef2f7;
}

body.main-page--stats-focus .lot-card__links {
  gap: 24px;
}

body.main-page--stats-focus .lot-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  text-decoration: none;
}

body.main-page--stats-focus .lot-card__link::before {
  display: none;
}

body.main-page--stats-focus .lot-card__footer-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #6b7280;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.main-page--stats-focus .lot-card__favorite {
  width: 30px;
  height: 30px;
  color: #ef1c25;
  font-size: 31px;
  line-height: 0.85;
  font-weight: 300;
}

body.main-page--stats-focus .lot-card__favorite:hover,
body.main-page--stats-focus .lot-card__link:hover {
  color: #ef1c25;
}

@media (max-width: 1200px) {
  body.main-page--stats-focus .auction-stats__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.main-page--stats-focus .auction-stats__cards {
    grid-template-columns: minmax(0, 1fr);
  }

  body.main-page--stats-focus .auction-stats__cards--list .lot-card {
    grid-template-columns: 1fr;
  }

  body.main-page--stats-focus .lot-card {
    border-radius: 22px;
  }

  body.main-page--stats-focus .lot-card__body {
    padding: 16px 18px 18px;
  }

  body.main-page--stats-focus .lot-card__score {
    width: 64px;
    height: 64px;
    font-size: 30px;
  }

  body.main-page--stats-focus .lot-card__photo-count {
    min-width: 62px;
    min-height: 38px;
    right: 16px;
    bottom: 16px;
    font-size: 16px;
  }

  body.main-page--stats-focus .lot-card__title-row h3 {
    font-size: 26px;
    line-height: 30px;
  }

  body.main-page--stats-focus .lot-card__year {
    font-size: 15px;
    line-height: 20px;
  }

  body.main-page--stats-focus .lot-card__grade {
    font-size: 14px;
    line-height: 20px;
  }

  body.main-page--stats-focus .lot-card__specs {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.main-page--stats-focus .lot-card__spec {
    padding: 0;
  }

  body.main-page--stats-focus .lot-card__spec + .lot-card__spec {
    border-left: 0;
  }

  body.main-page--stats-focus .lot-card__meta {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body.main-page--stats-focus .lot-card__price-row {
    padding: 18px 18px 16px;
  }

  body.main-page--stats-focus .lot-card__price {
    white-space: normal;
    font-size: 34px;
    line-height: 38px;
  }

  body.main-page--stats-focus .lot-card__badges {
    gap: 8px;
  }

  body.main-page--stats-focus .lot-badge {
    min-height: 28px;
    padding: 6px 10px;
    font-size: 12px;
  }

  body.main-page--stats-focus .lot-card__links {
    gap: 18px;
  }

  body.main-page--stats-focus .lot-card__link {
    font-size: 14px;
  }

  body.main-page--stats-focus .lot-card__footer {
    flex-direction: row;
    align-items: center;
  }
}

/* Final auction filter overrides kept at the end to beat legacy filter rules. */
body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card {
  display: grid;
  gap: 18px;
  border-radius: 28px;
  border: 1px solid rgba(17, 19, 24, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 50px rgba(17, 19, 24, 0.07);
  padding: 24px;
  overflow: visible;
}

body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card,
body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card * {
  box-sizing: border-box;
}

body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-stats__actions .btn-main {
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #ef1c25, #b8141b);
  color: #fff;
  font-size: 15px;
  line-height: 20px;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(239, 28, 37, 0.22);
}

body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-stats__actions .btn-main:hover {
  background: linear-gradient(135deg, #ef1c25, #b8141b);
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(239, 28, 37, 0.28);
}

body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-filter-actions .btn-light {
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(17, 19, 24, 0.1);
  background: #fff;
  color: #111318;
  font-size: 15px;
  line-height: 20px;
  font-weight: 800;
}

body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-filter-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
}

body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-filter-grid--main {
  grid-template-columns: minmax(150px, 1.2fr) minmax(150px, 1.2fr) minmax(190px, 1fr) minmax(190px, 1fr) minmax(140px, 0.82fr) minmax(150px, 0.8fr);
  align-items: end;
}

body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-preset-row {
  justify-content: flex-start;
}

body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-advanced.is-open {
  max-height: 900px;
}

@media (max-width: 1280px) {
  body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-filter-grid--main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-filter-grid--main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card {
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-filter-grid--main {
    grid-template-columns: 1fr;
  }

  body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-range-control {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-output-settings,
  body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-quick-filters {
    width: 100%;
  }

  body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-view-toggle {
    flex: 0 0 auto;
  }

  body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-advanced.is-open {
    max-height: 1400px;
  }
}

/* Reference-matched auction filter composition */
body.main-page--stats-focus {
  background: #f6f7f9;
}

body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card {
  width: 100%;
  max-width: 100%;
  display: grid;
  gap: 22px;
  padding: 30px;
  border: 1px solid rgba(17, 19, 24, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 50px rgba(17, 19, 24, 0.07);
  color: #111318;
  overflow: visible;
}

body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card,
body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card * {
  box-sizing: border-box;
}

body.main-page--stats-focus .auction-filter-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

body.main-page--stats-focus .auction-filter-card__head h2 {
  margin: 0;
  color: #111318;
  font-size: 30px;
  line-height: 36px;
  font-weight: 800;
  letter-spacing: 0;
}

body.main-page--stats-focus .auction-filter-card__head p {
  margin: 5px 0 0;
  color: #6b7280;
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
}

body.main-page--stats-focus .auction-filter-card__status {
  display: grid;
  justify-items: end;
  gap: 4px;
  min-width: 270px;
  padding-top: 16px;
  color: #6b7280;
  text-align: right;
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
}

body.main-page--stats-focus .auction-filter-card__status-note {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: #6b7280;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

body.main-page--stats-focus .auction-filter-card__status > span.auction-filter-card__status-note {
  color: #6b7280;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

body.main-page--stats-focus .auction-status-clock {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border: 1.8px solid #9ca3af;
  border-radius: 999px;
}

body.main-page--stats-focus .auction-status-clock::before,
body.main-page--stats-focus .auction-status-clock::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.8px;
  border-radius: 999px;
  background: #9ca3af;
  transform-origin: 50% 0;
}

body.main-page--stats-focus .auction-status-clock::before {
  height: 5px;
  transform: translate(-50%, -1px) rotate(0deg);
}

body.main-page--stats-focus .auction-status-clock::after {
  height: 4px;
  transform: translate(-50%, -1px) rotate(-45deg);
}

body.main-page--stats-focus .auction-filter-card__status #auctionResultsCount {
  color: #111318;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
}

body.main-page--stats-focus .auction-filter-card__status #auctionResultsPath {
  max-width: 360px;
  color: #9ca3af;
  font-size: 12px;
  line-height: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.main-page--stats-focus .auction-filter-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
}

body.main-page--stats-focus .auction-filter-mainline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 242px;
  gap: 24px;
  align-items: end;
}

body.main-page--stats-focus .auction-filter-grid {
  display: grid;
  gap: 16px;
}

body.main-page--stats-focus .auction-filter-grid--main {
  grid-template-columns: minmax(150px, 0.9fr) minmax(150px, 0.9fr) minmax(220px, 1.15fr) minmax(260px, 1.35fr) minmax(140px, 0.75fr);
  align-items: end;
}

body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-filter-grid--main {
  grid-template-columns: minmax(145px, 0.85fr) minmax(145px, 0.85fr) minmax(210px, 1.15fr) minmax(250px, 1.4fr) minmax(130px, 0.7fr);
  align-items: end;
}

body.main-page--stats-focus .auction-field {
  display: grid;
  min-width: 0;
  gap: 9px;
  color: #6b7280;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
}

body.main-page--stats-focus .auction-field > span:first-child,
body.main-page--stats-focus .auction-output-settings label > span,
body.main-page--stats-focus .auction-view-setting > span {
  color: #4b5563;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
}

body.main-page--stats-focus .auction-filter-form input,
body.main-page--stats-focus .auction-filter-form select,
body.main-page--stats-focus .auction-output-settings select,
body.main-page--stats-focus .auction-multi-select__trigger {
  width: 100%;
  min-width: 0;
  min-height: 56px;
  border: 1px solid rgba(17, 19, 24, 0.12);
  border-radius: 14px;
  background: #fff;
  color: #111318;
  padding: 0 16px;
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  outline: none;
  box-shadow: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

body.main-page--stats-focus .auction-filter-form input::placeholder {
  color: #6b7280;
  opacity: 1;
}

body.main-page--stats-focus .auction-filter-form input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

body.main-page--stats-focus .auction-filter-form input[type="number"]::-webkit-inner-spin-button,
body.main-page--stats-focus .auction-filter-form input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

body.main-page--stats-focus .auction-filter-form input:focus,
body.main-page--stats-focus .auction-filter-form select:focus,
body.main-page--stats-focus .auction-output-settings select:focus,
body.main-page--stats-focus .auction-multi-select.is-open .auction-multi-select__trigger,
body.main-page--stats-focus .auction-multi-select__trigger:focus-visible {
  border-color: #ef1c25;
  box-shadow: 0 0 0 4px rgba(239, 28, 37, 0.1);
}

body.main-page--stats-focus .auction-range-control {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  height: 56px;
  min-width: 0;
  border: 1px solid rgba(17, 19, 24, 0.12);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

body.main-page--stats-focus .auction-range-control::before {
  content: "—";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  color: #9ca3af;
  font-size: 15px;
  line-height: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

body.main-page--stats-focus .auction-range-control:focus-within {
  border-color: #ef1c25;
  box-shadow: 0 0 0 4px rgba(239, 28, 37, 0.1);
}

body.main-page--stats-focus .auction-range-control input {
  min-height: 54px;
  height: 54px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0 10px;
  font-size: 13px;
  box-shadow: none;
}

body.main-page--stats-focus .auction-range-control input:focus {
  box-shadow: none;
}

body.main-page--stats-focus .auction-filter-action-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

body.main-page--stats-focus .auction-filter-action-stack .btn-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  height: 56px;
  min-height: 56px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #ef1c25, #b8141b);
  color: #fff;
  font-size: 16px;
  line-height: 20px;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(239, 28, 37, 0.22);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body.main-page--stats-focus .auction-filter-action-stack .btn-main:hover {
  background: linear-gradient(135deg, #ef1c25, #b8141b);
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(239, 28, 37, 0.28);
}

body.main-page--stats-focus .auction-filter-action-stack__icon {
  font-size: 26px;
  line-height: 1;
  font-weight: 500;
}

body.main-page--stats-focus .auction-advanced-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  min-height: 52px;
  border: 1px solid rgba(17, 19, 24, 0.12);
  border-radius: 14px;
  background: #fff;
  color: #111318;
  padding: 0 16px;
  font-size: 14px;
  line-height: 18px;
  font-weight: 700;
  box-shadow: none;
  cursor: pointer;
}

body.main-page--stats-focus .auction-advanced-toggle:hover {
  border-color: rgba(239, 28, 37, 0.35);
  background: rgba(239, 28, 37, 0.04);
}

body.main-page--stats-focus .auction-advanced-toggle.has-active-filters {
  border-color: rgba(239, 28, 37, 0.25);
  color: #b8141b;
}

body.main-page--stats-focus .auction-advanced-toggle__arrow {
  transition: transform 0.2s ease;
}

body.main-page--stats-focus .auction-advanced-toggle[aria-expanded="true"] .auction-advanced-toggle__arrow {
  transform: rotate(180deg);
}

body.main-page--stats-focus .auction-preset-group {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 18px;
}

body.main-page--stats-focus .auction-preset-group > p {
  margin: 0;
  color: #111318;
  font-size: 15px;
  line-height: 20px;
  font-weight: 800;
}

body.main-page--stats-focus .auction-preset-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}

body.main-page--stats-focus .auction-preset-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid rgba(17, 19, 24, 0.1);
  border-radius: 14px;
  background: #fff;
  color: #111318;
  padding: 0 16px;
  font-size: 14px;
  line-height: 18px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

body.main-page--stats-focus .auction-preset-chip:hover {
  border-color: rgba(239, 28, 37, 0.35);
  background: rgba(239, 28, 37, 0.04);
  transform: translateY(-1px);
}

body.main-page--stats-focus .auction-preset-chip.is-active {
  border-color: rgba(239, 28, 37, 0.25);
  background: rgba(239, 28, 37, 0.1);
  color: #b8141b;
}

body.main-page--stats-focus .auction-preset-chip__icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: #ef1c25;
}

body.main-page--stats-focus .auction-preset-chip__icon::before,
body.main-page--stats-focus .auction-preset-chip__icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

body.main-page--stats-focus .auction-preset-chip__icon--power::before {
  left: 7px;
  top: 1px;
  width: 7px;
  height: 18px;
  background: currentColor;
  clip-path: polygon(60% 0, 10% 48%, 48% 48%, 32% 100%, 95% 38%, 58% 38%);
}

body.main-page--stats-focus .auction-preset-chip__icon--age::before {
  inset: 3px 2px 2px;
  border: 1.8px solid currentColor;
  border-radius: 4px;
}

body.main-page--stats-focus .auction-preset-chip__icon--age::after {
  left: 4px;
  right: 4px;
  top: 7px;
  height: 1.8px;
  background: currentColor;
  box-shadow: 0 -3px 0 currentColor;
}

body.main-page--stats-focus .auction-preset-chip__icon--hybrid::before {
  left: 4px;
  top: 3px;
  width: 12px;
  height: 15px;
  border: 1.8px solid currentColor;
  border-radius: 70% 12% 70% 12%;
  transform: rotate(38deg);
}

body.main-page--stats-focus .auction-preset-chip__icon--hybrid::after {
  left: 5px;
  top: 12px;
  width: 12px;
  height: 1.8px;
  background: currentColor;
  transform: rotate(-38deg);
}

body.main-page--stats-focus .auction-preset-chip__icon--drive::before,
body.main-page--stats-focus .auction-preset-chip__icon--drive::after {
  width: 5px;
  height: 5px;
  border: 1.8px solid currentColor;
  border-radius: 999px;
}

body.main-page--stats-focus .auction-preset-chip__icon--drive::before {
  left: 3px;
  top: 3px;
  box-shadow: 9px 0 0 -1.8px #fff, 9px 0 0 0 currentColor, 0 9px 0 -1.8px #fff, 0 9px 0 0 currentColor;
}

body.main-page--stats-focus .auction-preset-chip__icon--drive::after {
  right: 3px;
  bottom: 3px;
}

body.main-page--stats-focus .auction-preset-chip__icon--photo::before {
  left: 2px;
  top: 5px;
  width: 16px;
  height: 12px;
  border: 1.8px solid currentColor;
  border-radius: 4px;
}

body.main-page--stats-focus .auction-preset-chip__icon--photo::after {
  left: 7px;
  top: 8px;
  width: 6px;
  height: 6px;
  border: 1.8px solid currentColor;
  border-radius: 999px;
}

body.main-page--stats-focus .auction-preset-chip__icon--score::before {
  inset: 1px;
  background: currentColor;
  clip-path: polygon(50% 0, 62% 35%, 100% 35%, 69% 57%, 82% 95%, 50% 72%, 18% 95%, 31% 57%, 0 35%, 38% 35%);
}

body.main-page--stats-focus .auction-preset-chip__icon--price::before {
  inset: 3px 2px 3px 4px;
  border: 1.8px solid currentColor;
  border-radius: 4px;
  transform: rotate(-38deg);
}

body.main-page--stats-focus .auction-preset-chip__icon--price::after {
  right: 5px;
  top: 6px;
  width: 4px;
  height: 4px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
}

body.main-page--stats-focus .auction-advanced {
  display: grid;
  gap: 0;
  max-height: 0;
  margin-top: 0;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0);
  opacity: 0;
  overflow: hidden;
  transform: translateY(-8px);
  transition: max-height 0.22s ease-out, opacity 0.2s ease-out, transform 0.2s ease-out, margin 0.2s ease-out, padding 0.2s ease-out;
}

body.main-page--stats-focus .auction-advanced.is-open {
  gap: 22px;
  max-height: 980px;
  margin-top: 22px;
  padding: 22px;
  border-color: rgba(17, 19, 24, 0.08);
  background: rgba(255, 255, 255, 0.72);
  opacity: 1;
  overflow: visible;
  transform: translateY(0);
}

body.main-page--stats-focus .auction-advanced__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

body.main-page--stats-focus .auction-advanced__head h3 {
  margin: 0;
  color: #111318;
  font-size: 18px;
  line-height: 24px;
  font-weight: 800;
  letter-spacing: 0;
}

body.main-page--stats-focus .auction-advanced__arrow {
  color: #111318;
  font-size: 18px;
  line-height: 1;
}

body.main-page--stats-focus .auction-filter-grid--advanced {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 18px;
}

body.main-page--stats-focus .auction-advanced .auction-filter-form input,
body.main-page--stats-focus .auction-advanced .auction-filter-form select,
body.main-page--stats-focus .auction-advanced .auction-multi-select__trigger {
  min-height: 52px;
}

body.main-page--stats-focus .auction-output-settings {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(250px, 1fr) minmax(300px, auto) minmax(142px, auto);
  align-items: center;
  gap: 14px 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(17, 19, 24, 0.08);
}

body.main-page--stats-focus .auction-output-settings > p {
  margin: 0;
  color: #111318;
  font-size: 18px;
  line-height: 24px;
  font-weight: 800;
}

body.main-page--stats-focus .auction-output-settings__sort {
  display: grid;
  gap: 7px;
  min-width: 0;
}

body.main-page--stats-focus .auction-output-settings select {
  min-height: 52px;
  border-radius: 14px;
  font-size: 14px;
}

body.main-page--stats-focus .auction-quick-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px 26px;
}

body.main-page--stats-focus .auction-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #4b5563;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  white-space: nowrap;
}

body.main-page--stats-focus .auction-switch__slider {
  position: relative;
  width: 40px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #d1d5db;
  transition: background 0.18s ease;
}

body.main-page--stats-focus .auction-switch__slider::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(17, 19, 24, 0.18);
  transform: translateX(0);
  transition: transform 0.18s ease;
}

body.main-page--stats-focus .auction-switch input:checked + .auction-switch__slider {
  background: #ef1c25;
}

body.main-page--stats-focus .auction-switch input:checked + .auction-switch__slider::after {
  transform: translateX(16px);
}

body.main-page--stats-focus .auction-view-setting {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-left: 0;
}

body.main-page--stats-focus .auction-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.main-page--stats-focus .auction-view-toggle__btn {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(17, 19, 24, 0.1);
  border-radius: 12px;
  background: #fff;
  color: #111318;
}

body.main-page--stats-focus .auction-view-toggle__btn.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #ef1c25, #b8141b);
  color: #fff;
  box-shadow: 0 10px 22px rgba(239, 28, 37, 0.2);
}

body.main-page--stats-focus .catalog-filter-message {
  margin: -4px 0 0;
  min-height: 0;
  color: #6b7280;
}

body.main-page--stats-focus .auction-active-filters {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
  gap: 14px 22px;
  padding-top: 0;
  border-top: 0;
}

body.main-page--stats-focus .auction-active-filters__label {
  margin: 0;
  color: #111318;
  font-size: 18px;
  line-height: 24px;
  font-weight: 800;
}

body.main-page--stats-focus .auction-stats__chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

body.main-page--stats-focus .auction-active-filters__empty {
  color: #9ca3af;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

body.main-page--stats-focus .auction-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  border: 1px solid rgba(239, 28, 37, 0.22);
  border-radius: 12px;
  background: rgba(239, 28, 37, 0.06);
  color: #ef1c25;
  padding: 0 14px;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
}

body.main-page--stats-focus .auction-chip button {
  width: 18px;
  height: 18px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

body.main-page--stats-focus .auction-stats__chips-clear {
  border: 0;
  background: transparent;
  color: #ef1c25;
  padding: 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

@media (max-width: 1320px) {
  body.main-page--stats-focus .auction-filter-mainline {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 18px;
  }

  body.main-page--stats-focus .auction-filter-grid--main {
    grid-template-columns: minmax(142px, 0.9fr) minmax(142px, 0.9fr) minmax(205px, 1.15fr) minmax(240px, 1.35fr) minmax(132px, 0.75fr);
    gap: 14px;
  }

  body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-filter-grid--main {
    grid-template-columns: minmax(132px, 0.85fr) minmax(132px, 0.85fr) minmax(190px, 1.1fr) minmax(225px, 1.35fr) minmax(122px, 0.7fr);
    gap: 14px;
  }

  body.main-page--stats-focus .auction-preset-group {
    grid-template-columns: 126px minmax(0, 1fr);
  }
}

@media (max-width: 1100px) {
  body.main-page--stats-focus .auction-filter-card__head {
    display: grid;
  }

  body.main-page--stats-focus .auction-filter-card__status {
    justify-items: start;
    min-width: 0;
    padding-top: 0;
    text-align: left;
  }

  body.main-page--stats-focus .auction-filter-mainline {
    grid-template-columns: 1fr;
  }

  body.main-page--stats-focus .auction-filter-grid--main,
  body.main-page--stats-focus .auction-filter-grid--advanced {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.main-page--stats-focus .auction-filter-action-stack {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  body.main-page--stats-focus .auction-output-settings {
    grid-template-columns: 1fr 1fr;
  }

  body.main-page--stats-focus .auction-quick-filters {
    justify-content: flex-start;
  }

  body.main-page--stats-focus .auction-view-setting {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card {
    gap: 18px;
    padding: 18px;
    border-radius: 22px;
  }

  body.main-page--stats-focus .auction-filter-card__head h2 {
    font-size: 24px;
    line-height: 30px;
  }

  body.main-page--stats-focus .auction-filter-card__head p {
    font-size: 14px;
    line-height: 20px;
  }

  body.main-page--stats-focus .auction-filter-grid--main,
  body.main-page--stats-focus .auction-filter-grid--advanced,
  body.main-page--stats-focus .auction-output-settings,
  body.main-page--stats-focus .auction-filter-action-stack,
  body.main-page--stats-focus .auction-active-filters {
    grid-template-columns: 1fr;
  }

  body.main-page--stats-focus .auction-filter-action-stack .btn-main,
  body.main-page--stats-focus .auction-advanced-toggle {
    width: 100%;
  }

  body.main-page--stats-focus .auction-preset-group {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 16px;
  }

  body.main-page--stats-focus .auction-preset-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: -18px;
    padding: 0 18px 4px;
    scrollbar-width: none;
  }

  body.main-page--stats-focus .auction-preset-row::-webkit-scrollbar {
    display: none;
  }

  body.main-page--stats-focus .auction-preset-chip {
    flex: 0 0 auto;
  }

  body.main-page--stats-focus .auction-advanced.is-open {
    max-height: 1500px;
    padding: 18px;
  }

  body.main-page--stats-focus .auction-view-setting {
    justify-content: space-between;
  }

  body.main-page--stats-focus .auction-active-filters {
    align-items: flex-start;
  }

  body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-filter-mainline,
  body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-filter-grid--main,
  body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-filter-grid--advanced,
  body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-filter-action-stack,
  body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-output-settings,
  body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-active-filters {
    grid-template-columns: 1fr;
    min-width: 0;
    max-width: 100%;
  }

  body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-field,
  body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-range-control,
  body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card input,
  body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card select,
  body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-multi-select,
  body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-multi-select__trigger {
    min-width: 0;
    max-width: 100%;
  }

  body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-filter-action-stack .btn-main {
    justify-content: center;
    min-width: 0;
  }
}

/* Auction filter action buttons and empty-state refinements */
body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-filter-mainline {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 380px);
  gap: 20px;
  align-items: end;
}

body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-filter-grid--main {
  grid-template-columns: minmax(120px, 0.85fr) minmax(120px, 0.9fr) minmax(178px, 1.14fr) minmax(230px, 1.34fr) minmax(120px, 0.7fr);
}

body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-filter-action-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-self: end;
}

body.main-page--stats-focus .auction-filter-primary-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-filter-primary-actions .btn-main,
body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-filter-primary-actions .auction-reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  height: 56px;
  border-radius: 16px;
  padding: 0 18px;
  font-size: 16px;
  line-height: 20px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-filter-primary-actions .btn-main {
  border: 0;
  background: linear-gradient(135deg, #ef1c25, #b8141b);
  color: #fff;
  box-shadow: 0 14px 30px rgba(239, 28, 37, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-filter-primary-actions .btn-main:hover {
  background: linear-gradient(135deg, #ef1c25, #b8141b);
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(239, 28, 37, 0.28);
}

body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-filter-primary-actions .auction-reset-btn {
  border: 1px solid rgba(17, 19, 24, 0.12);
  background: #fff;
  color: #1f2937;
  box-shadow: 0 10px 24px rgba(17, 19, 24, 0.04);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-filter-primary-actions .auction-reset-btn:hover {
  border-color: rgba(17, 19, 24, 0.18);
  background: #f9fafb;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(17, 19, 24, 0.07);
}

body.main-page--stats-focus .auction-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

body.main-page--stats-focus .auction-action-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.main-page--stats-focus .auction-action-icon--search {
  color: #fff;
}

body.main-page--stats-focus .auction-action-icon--reset {
  color: #4b5563;
}

body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-advanced-toggle {
  min-height: 52px;
  height: 52px;
}

body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-output-settings {
  margin-top: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(17, 19, 24, 0.08);
}

body.main-page--stats-focus .auction-range-control::before {
  content: "-";
}

body.main-page--stats-focus .auction-empty-state {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 96px;
  padding: 24px 28px;
  border: 1px solid rgba(239, 28, 37, 0.16);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 46px rgba(17, 19, 24, 0.07);
  color: #4b5563;
}

body.main-page--stats-focus .auction-empty-state__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid rgba(239, 28, 37, 0.28);
  border-radius: 999px;
  background: rgba(239, 28, 37, 0.08);
  color: #ef1c25;
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
}

body.main-page--stats-focus .auction-empty-state p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
  line-height: 26px;
  font-weight: 600;
}

body.main-page--stats-focus .auction-stats__cards--list .auction-empty-state {
  max-width: none;
}

@media (max-width: 1320px) {
  body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-filter-mainline {
    grid-template-columns: 1fr;
  }

  body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-filter-grid--main {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-filter-action-stack {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.45fr);
    align-items: end;
  }
}

@media (max-width: 1100px) {
  body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-filter-grid--main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-filter-action-stack {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-filter-grid--main,
  body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-filter-action-stack,
  body.main-page--stats-focus .auction-filter-primary-actions {
    grid-template-columns: 1fr;
  }

  body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-filter-primary-actions .btn-main,
  body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-filter-primary-actions .auction-reset-btn {
    min-height: 56px;
    width: 100%;
  }

  body.main-page--stats-focus .auction-empty-state {
    align-items: flex-start;
    padding: 20px;
    border-radius: 22px;
  }

  body.main-page--stats-focus .auction-empty-state p {
    font-size: 15px;
    line-height: 22px;
  }
}

/* Action buttons under quick presets and output toolbar after lot status */
body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-filter-mainline {
  grid-template-columns: 1fr;
}

body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-filter-grid--main {
  grid-template-columns: minmax(130px, 0.85fr) minmax(140px, 0.9fr) minmax(210px, 1.12fr) minmax(250px, 1.34fr) minmax(150px, 0.72fr);
}

body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-filter-action-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
  margin-top: 18px;
  align-self: stretch;
}

body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-filter-primary-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  width: 100%;
}

body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-filter-primary-actions .btn-main,
body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-filter-primary-actions .auction-reset-btn {
  min-height: 58px;
  height: 58px;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 800;
}

body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-filter-primary-actions .btn-main {
  background: linear-gradient(135deg, #f01923 0%, #cc111b 100%);
  box-shadow: 0 16px 34px rgba(239, 28, 37, 0.24);
}

body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-filter-primary-actions .auction-reset-btn {
  border-color: rgba(17, 19, 24, 0.14);
  color: #111827;
  box-shadow: 0 12px 30px rgba(17, 19, 24, 0.05);
}

body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-advanced-toggle {
  width: 100%;
  min-height: 52px;
  height: 52px;
  border-radius: 15px;
  border-color: rgba(17, 19, 24, 0.12);
  background: #fff;
  color: #111318;
  font-size: 15px;
  font-weight: 800;
}

body.main-page--stats-focus .auction-output-settings.auction-output-settings--results {
  display: grid;
  grid-template-columns: minmax(170px, 0.85fr) minmax(260px, 1.15fr) minmax(330px, auto) minmax(150px, auto);
  align-items: center;
  gap: 14px 26px;
  width: 100%;
  margin: 0 0 20px;
  padding: 18px 22px;
  border: 1px solid rgba(17, 19, 24, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 38px rgba(17, 19, 24, 0.05);
}

body.main-page--stats-focus .auction-output-settings.auction-output-settings--results > p {
  margin: 0;
  font-size: 17px;
  line-height: 24px;
}

body.main-page--stats-focus .auction-output-settings.auction-output-settings--results select {
  min-height: 50px;
}

body.main-page--stats-focus .auction-stats__status + .auction-output-settings.auction-output-settings--results {
  margin-top: -4px;
}

@media (max-width: 1320px) {
  body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-filter-grid--main {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-filter-action-stack {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-filter-grid--main,
  body.main-page--stats-focus .auction-output-settings.auction-output-settings--results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.main-page--stats-focus .auction-output-settings.auction-output-settings--results .auction-view-setting {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-filter-grid--main,
  body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-filter-primary-actions,
  body.main-page--stats-focus .auction-output-settings.auction-output-settings--results {
    grid-template-columns: 1fr;
  }

  body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-filter-primary-actions .btn-main,
  body.main-page--stats-focus .auction-stats__filters-card.auction-filter-card .auction-filter-primary-actions .auction-reset-btn {
    min-height: 56px;
    height: 56px;
    font-size: 16px;
  }

  body.main-page--stats-focus .auction-output-settings.auction-output-settings--results {
    padding: 16px;
    border-radius: 20px;
  }
}

/* ==========================================================================
   Shared UI button primitives
   Inspired by the provided React UI kit: one consistent button behavior layer.
   ========================================================================== */

button {
  font: inherit;
}

button:not(:disabled) {
  cursor: pointer;
}

button:disabled,
button[aria-disabled="true"],
.is-disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

:where(
  .btn,
  .btn-main,
  .btn-light,
  .btn-cta,
  .btn-outline,
  .btn-dark,
  .btn-red,
  .calc-back,
  .calc-tabs__btn,
  .hero-visual__nav,
  .hero-visual__dot,
  .auction-reset-btn,
  .auction-advanced-toggle,
  .auction-preset-chip,
  .auction-view-toggle__btn,
  .auction-stats__page-btn,
  .auction-stats__how,
  .auction-chip button,
  .auction-stats__chips-clear,
  .lot-card__favorite,
  .lot-detail-gallery__main-trigger,
  .lot-detail-gallery__thumb,
  .lot-lightbox__close,
  .lot-lightbox__nav,
  .lot-lightbox__tool,
  .motor-remove
) {
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  touch-action: manipulation;
  outline: none;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

:where(
  .btn,
  .btn-main,
  .btn-light,
  .btn-cta,
  .btn-outline,
  .btn-dark,
  .btn-red,
  .calc-tabs__btn,
  .auction-reset-btn,
  .auction-advanced-toggle,
  .auction-preset-chip,
  .auction-view-toggle__btn,
  .auction-stats__page-btn,
  .auction-stats__how,
  .auction-chip button,
  .auction-stats__chips-clear,
  .lot-card__favorite,
  .lot-lightbox__close,
  .lot-lightbox__nav,
  .lot-lightbox__tool,
  .motor-remove
):focus-visible {
  box-shadow:
    0 0 0 3px rgba(239, 28, 37, 0.18),
    0 0 0 1px rgba(239, 28, 37, 0.42);
}

:where(.btn-main, .btn-cta, .btn-red) {
  border: 1px solid transparent;
  background: linear-gradient(135deg, #ef1c25 0%, #b8141b 100%);
  color: #fff;
  box-shadow:
    0 12px 28px rgba(239, 28, 37, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

:where(.btn-main, .btn-cta, .btn-red):hover {
  background: linear-gradient(135deg, #ff2a32 0%, #c4131c 100%);
  box-shadow:
    0 16px 36px rgba(239, 28, 37, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

:where(.btn-light, .btn-outline, .auction-reset-btn, .auction-advanced-toggle) {
  border: 1px solid rgba(17, 19, 24, 0.10);
  background: rgba(255, 255, 255, 0.88);
  color: #111318;
  box-shadow:
    0 8px 22px rgba(17, 19, 24, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

:where(.btn-light, .btn-outline, .auction-reset-btn, .auction-advanced-toggle):hover {
  border-color: rgba(17, 19, 24, 0.16);
  background: #fff;
  box-shadow:
    0 12px 28px rgba(17, 19, 24, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

:where(.btn-dark) {
  border: 1px solid rgba(17, 19, 24, 0.92);
  background: #111827;
  color: #fff;
  box-shadow:
    0 12px 26px rgba(17, 24, 39, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

:where(.btn-dark):hover {
  background: #0b1020;
  transform: translateY(-1px);
}

:where(.btn, .btn-main, .btn-light, .btn-cta, .btn-outline, .btn-dark, .btn-red):active {
  transform: translateY(0) scale(0.98);
}

:where(.btn svg, .btn-main svg, .btn-light svg, .btn-cta svg, .btn-outline svg, .btn-dark svg, .btn-red svg) {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  pointer-events: none;
}

.calculator-switcher-frame {
  width: min(1280px, calc(100% - 4rem));
  margin: 1rem auto 0;
  display: grid;
  justify-items: end;
}

.calculator-switcher-frame + .import-calc-shell,
.calculator-switcher-frame + .myron-shell {
  margin-top: 18px;
}

.calculator-switcher-frame,
.import-calc-shell,
.myron-shell {
  animation: calculatorPageEnter 0.34s cubic-bezier(0.32, 0.72, 0, 1) both;
}

.calculator-switcher-frame {
  animation-duration: 0.26s;
}

body.calculator-page-leaving .calculator-switcher-frame,
body.calculator-page-leaving .import-calc-shell,
body.calculator-page-leaving .myron-shell {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

@keyframes calculatorPageEnter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.calculator-switcher {
  --switch-padding: 4px;
  --switch-index: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 560px);
  min-height: 54px;
  padding: var(--switch-padding);
  border: 1px solid rgba(17, 19, 24, 0.12);
  border-radius: 18px;
  background: rgba(17, 19, 24, 0.06);
  box-shadow:
    0 16px 34px rgba(17, 19, 24, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
  overflow: hidden;
  isolation: isolate;
}

.calculator-switcher[data-active="import"] {
  --switch-index: 0;
}

.calculator-switcher[data-active="util"] {
  --switch-index: 1;
}

.calculator-switcher[data-active="customs"] {
  --switch-index: 2;
}

.calculator-switcher__thumb {
  position: absolute;
  z-index: 0;
  top: var(--switch-padding);
  bottom: var(--switch-padding);
  left: var(--switch-padding);
  width: calc((100% - (var(--switch-padding) * 2)) / 3);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 8px 22px rgba(17, 19, 24, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transform: translate3d(calc(var(--switch-index) * 100%), 0, 0);
  transition:
    transform 0.36s cubic-bezier(0.34, 1.56, 0.64, 1),
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.calculator-switcher__item {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #6b7280;
  padding: 0 16px;
  font: inherit;
  font-size: 14px;
  line-height: 18px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  outline: none;
  transition:
    color 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
}

.calculator-switcher__item svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: color 0.2s ease, transform 0.2s ease;
}

.calculator-switcher__item:hover {
  color: #111318;
}

.calculator-switcher__item.is-active {
  color: #111318;
}

.calculator-switcher__item.is-active svg {
  color: #ef1c25;
  transform: scale(1.08);
}

.calculator-switcher__item:focus-visible {
  box-shadow:
    0 0 0 3px rgba(239, 28, 37, 0.16),
    0 0 0 1px rgba(239, 28, 37, 0.38);
}

[data-theme="dark"] .calculator-switcher {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, #2a2d34 0%, #171a20 100%);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .calculator-switcher__thumb {
  background: linear-gradient(135deg, #111318 0%, #22252c 100%);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .calculator-switcher__item {
  color: rgba(243, 244, 246, 0.64);
}

[data-theme="dark"] .calculator-switcher__item:hover,
[data-theme="dark"] .calculator-switcher__item.is-active {
  color: #f3f4f6;
}

[data-theme="dark"] :where(.btn-light, .btn-outline, .auction-reset-btn, .auction-advanced-toggle) {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-main);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] :where(.btn-light, .btn-outline, .auction-reset-btn, .auction-advanced-toggle):hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.18);
}

/* Keep calculator pages on the same global theme system as the main header. */
[data-theme="dark"] body.calc-app-page {
  background: linear-gradient(180deg, #111216 0%, #1a1c21 100%);
}

[data-theme="dark"] .calc-animated-bg {
  background: linear-gradient(180deg, #111216 0%, #1a1c21 100%);
}

[data-theme="dark"] .calc-bg-grid {
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
}

[data-theme="dark"] .calc-bg-blob--one {
  opacity: 0.22;
  background: radial-gradient(circle, rgba(255, 59, 48, 1) 0%, transparent 70%);
}

[data-theme="dark"] .calc-bg-blob--two {
  opacity: 0.05;
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, transparent 70%);
}

[data-theme="dark"] .calc-bg-blob--three {
  opacity: 0.10;
  background: radial-gradient(circle, rgba(255, 59, 48, 1) 0%, transparent 70%);
}

[data-theme="dark"] .calc-bg-blob--four {
  opacity: 0.03;
}

/* Premium slideshow polish for the main page hero. */
.hero-visual {
  isolation: isolate;
}

.hero-visual__slides {
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: #111318;
  box-shadow:
    0 30px 80px rgba(17, 19, 24, 0.16),
    0 10px 28px rgba(239, 28, 37, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.hero-visual__slides::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.20), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 34%);
  mix-blend-mode: screen;
}

.hero-visual__slide {
  transform: translateX(5%) scale(1.055);
  filter: saturate(1.04) contrast(1.02);
  transition:
    opacity 0.72s cubic-bezier(0.32, 0.72, 0, 1),
    transform 0.72s cubic-bezier(0.32, 0.72, 0, 1),
    filter 0.72s ease;
}

.hero-visual__slide.is-active {
  transform: translateX(0) scale(1);
  filter: saturate(1.08) contrast(1.04);
}

.hero-visual__shade {
  background:
    linear-gradient(0deg, rgba(15, 17, 21, 0.78) 0%, rgba(15, 17, 21, 0.08) 46%, rgba(15, 17, 21, 0.12) 100%),
    radial-gradient(circle at 72% 80%, rgba(239, 28, 37, 0.28), transparent 34%);
}

.hero-visual__side-shade {
  background:
    linear-gradient(90deg, rgba(15, 17, 21, 0.50) 0%, transparent 38%, rgba(15, 17, 21, 0.16) 100%);
}

.hero-visual__accent-line {
  height: 5px;
  background:
    linear-gradient(90deg, transparent, rgba(239, 28, 37, 0.92) 18%, rgba(255, 99, 71, 0.74) 50%, rgba(239, 28, 37, 0.92) 82%, transparent);
  box-shadow: 0 -10px 36px rgba(239, 28, 37, 0.46);
}

/* No background panel — caption sits directly on the photo (legibility
   comes from the bottom shade gradient and text-shadow). */
.hero-visual__caption {
  max-width: min(420px, calc(100% - 128px));
}

.hero-visual__nav {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-visual__nav:hover {
  background: rgba(239, 28, 37, 0.86);
}

.hero-visual__dots {
  width: fit-content;
  margin: 14px auto 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 14px 34px rgba(17, 19, 24, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-visual__dot {
  border-radius: 999px;
}

.hero-visual__dot.is-active {
  background: rgba(239, 28, 37, 0.22);
}

@media (max-width: 760px) {
  .calculator-switcher-frame {
    width: min(1280px, calc(100% - 1.5rem));
    justify-items: stretch;
  }

  .calculator-switcher {
    width: 100%;
    min-height: 50px;
    border-radius: 16px;
  }

  .calculator-switcher__item {
    min-height: 42px;
    padding: 0 8px;
    font-size: 12px;
    gap: 6px;
  }

  .calculator-switcher__item svg {
    width: 15px;
    height: 15px;
  }

  .hero-visual__slides {
    border-radius: 22px;
  }
}

/* Hero slider switcher — white indicators on a translucent dark pill. */
.hero-visual__dots,
[data-theme="dark"] .hero-visual__dots {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(15, 17, 21, 0.42);
  box-shadow: 0 14px 30px rgba(15, 17, 21, 0.22);
}
.hero-visual__dot,
[data-theme="dark"] .hero-visual__dot {
  background: rgba(255, 255, 255, 0.34);
}
.hero-visual__dot.is-active,
[data-theme="dark"] .hero-visual__dot.is-active {
  background: rgba(255, 255, 255, 0.42);
}
.hero-visual__dot:hover {
  background: rgba(255, 255, 255, 0.62);
}
.hero-visual__dot::after {
  background: #ffffff;
}

/* ============================ Заявка — модальное окно =================== */
.lead-modal {
  margin: auto;
  width: min(94vw, 460px);
  max-height: min(92vh, 760px);
  padding: 0;
  border: none;
  border-radius: 22px;
  background: transparent;
  overflow: visible;
}
.lead-modal::backdrop {
  background: rgba(10, 12, 18, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.lead-modal[open] { animation: leadModalIn 0.22s cubic-bezier(0.22, 0.61, 0.36, 1); }
@keyframes leadModalIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .lead-modal[open] { animation: none; } }

.lead-modal__card {
  position: relative;
  display: grid;
  gap: 0.85rem;
  max-height: inherit;
  overflow-y: auto;
  padding: clamp(1.4rem, 3.5vw, 2rem);
  border-radius: 22px;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.55);
}
.lead-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  border-radius: 11px;
  background: color-mix(in srgb, var(--text) 7%, transparent);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.lead-modal__close:hover { background: color-mix(in srgb, var(--text) 13%, transparent); color: var(--text); }
.lead-modal__close svg { width: 20px; height: 20px; }

.lead-modal__head { display: grid; gap: 0.3rem; margin-bottom: 0.3rem; padding-right: 2.4rem; }
.lead-modal__kicker {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.lead-modal__head h2 {
  margin: 0;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.lead-modal__sub { margin: 0.1rem 0 0; font-size: 0.9rem; line-height: 1.45; color: var(--muted); }

.lead-field { display: grid; gap: 0.38rem; }
.lead-field > span { font-size: 0.84rem; font-weight: 700; color: var(--text); }
.lead-field > span i { font-weight: 500; font-style: normal; color: var(--muted); }
.lead-field input,
.lead-field textarea {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font: inherit;
  font-size: 0.97rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.lead-field textarea { resize: vertical; min-height: 2.7rem; }
.lead-field input::placeholder,
.lead-field textarea::placeholder { color: var(--muted); opacity: 0.7; }
.lead-field input:focus,
.lead-field textarea:focus {
  outline: none;
  border-color: var(--red);
  background: var(--card);
  box-shadow: 0 0 0 3px rgba(216, 31, 38, 0.16);
}
.lead-field.is-error input,
.lead-field.is-error textarea { border-color: var(--red); }

.lead-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.lead-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.7rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.lead-chip input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.lead-chip:hover { border-color: color-mix(in srgb, var(--text) 22%, transparent); }
.lead-chip:has(input:checked) { border-color: var(--red); background: rgba(216, 31, 38, 0.07); }
.lead-chip:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(216, 31, 38, 0.18); }
.lead-chip__ic { display: inline-flex; flex: 0 0 auto; }
.lead-chip__ic svg { width: 22px; height: 22px; display: block; }
.lead-chip__ic--call { color: var(--red); }

.lead-consent {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
  cursor: pointer;
}
.lead-consent input {
  margin-top: 0.1rem;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--red);
  cursor: pointer;
}
.lead-consent.is-error span { color: var(--red); }
.lead-consent__more { font-size: 0.78rem; margin-top: -0.2rem; }
.lead-consent__more summary { cursor: pointer; color: var(--red); width: max-content; }
.lead-consent__more p { margin: 0.4rem 0 0; font-size: 0.78rem; line-height: 1.45; color: var(--muted); }

.lead-error { margin: 0; font-size: 0.82rem; font-weight: 600; color: var(--red); }

.lead-submit {
  margin-top: 0.25rem;
  padding: 0.85rem 1.2rem;
  border: none;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.lead-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(216, 31, 38, 0.7); }
.lead-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.lead-state--done { place-items: center; text-align: center; gap: 0.55rem; padding: clamp(1.5rem, 4vw, 2.5rem) 0.5rem; }
.lead-done__ic {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 0.3rem;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
}
.lead-done__ic svg { width: 30px; height: 30px; }
.lead-state--done h3 { margin: 0; font-size: 1.3rem; color: var(--text); }
.lead-state--done p { margin: 0; max-width: 330px; font-size: 0.95rem; color: var(--muted); }
.lead-state--done .lead-submit { width: 100%; margin-top: 0.6rem; }

@media (max-width: 420px) {
  .lead-chips { grid-template-columns: 1fr; }
}
