@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;1,9..144,400&family=Inter:wght@300..800&family=JetBrains+Mono:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:    #C41E1E;
  --brand-dk: #A01818;
  --gold:     #9A7B3F;
  --gold-lt:  #B8964C;
  --ink:      #1A1A1A;
  --ink-soft: #3D3D3D;
  --ink-mute: #6B6B6B;
  --ink-faint:#9E9E9E;
  --paper:    #FFFFFF;
  --paper-wm: #F8F7F5;
  --paper-dp: #F1EFE9;
  --border:   #E2DDD6;
  --border-dk:#C8C2B8;
  --radius:   2px;
  --font-display: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-sans:    Inter, "Helvetica Neue", Arial, sans-serif;
  --font-mono:   "Inter", "Helvetica Neue", Arial, sans-serif;
}

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
  /* ── SPLASH ── */
  .mb-splash {
    position: fixed; inset: 0; z-index: 99999;
    background: var(--paper);
    display: flex; align-items: center; justify-content: center; flex-direction: column;
    pointer-events: none;
    transition: opacity 500ms ease, visibility 500ms;
  }
  .mb-splash[data-done] { opacity: 0; visibility: hidden; }
  .mb-splash__mark {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.02em;
  }
  .mb-splash__mark em { font-style: italic; color: var(--brand); }
  .mb-splash__rule {
    width: 40px; height: 1px;
    background: var(--border-dk);
    margin: 1.25rem 0 1rem;
  }
  .mb-splash__sub {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--ink-faint);
  }

  /* ── PROGRESS ── */
  .mb-progress { position: fixed; top: 0; left: 0; right: 0; height: 1px; z-index: 100000; pointer-events: none; }
  .mb-progress__bar { height: 100%; width: 0%; background: var(--brand); transition: width 220ms ease-out, opacity 300ms ease; }
  .mb-progress[data-state="loading"] .mb-progress__bar { width: 75%; }
  .mb-progress[data-state="loading-slow"] .mb-progress__bar { width: 90%; transition-duration: 1500ms; }
  .mb-progress[data-state="done"] .mb-progress__bar { width: 100%; opacity: 0; }

  /* ── UTILITY BAR ── */
  .utility-bar {
    background: var(--ink);
    color: rgba(255,255,255,0.7);
    font-size: 0.72rem;
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .utility-bar a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.15s; }
  .utility-bar a:hover { color: #fff; }
  .utility-bar .gold { color: var(--gold-lt); }

  /* ── MARQUEE ── */
  .marquee-bar {
    background: var(--brand);
    color: rgba(255,255,255,0.88);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.5rem 0;
    overflow: hidden;
    white-space: nowrap;
  }
  .marquee-track {
    display: inline-flex;
    animation: marquee-scroll 48s linear infinite;
  }
  .marquee-item { padding: 0 3rem; }
  .marquee-sep {
    display: inline-block;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    vertical-align: middle;
    margin-right: 3rem;
  }
  @keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  @media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

  /* ── HEADER ── */
  .site-header {
    position: sticky; top: 0; z-index: 900;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
  }
  .site-header__inner {
    max-width: 1280px; margin: 0 auto; padding: 0 2rem;
    display: flex; align-items: center; justify-content: space-between;
    height: 68px; gap: 2rem;
  }

  .wordmark img { height: 36px; width: auto; display: block; }

  /* ── NAV ── */
  .nav-link {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-mute);
    text-decoration: none;
    padding: 0.3rem 0;
    border-bottom: 1.5px solid transparent;
    transition: color 0.15s, border-color 0.15s;
  }
  .nav-link:hover, .nav-link.active {
    color: var(--ink);
    border-bottom-color: var(--brand);
  }

  /* ── LIVE PILL ── */
  #mb-live-pill {
    font-family: var(--font-mono);
    font-size: 0.67rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--paper-wm);
    border: 1px solid var(--border-dk);
    padding: 0.4rem 0.75rem;
    border-radius: 2px;
    text-decoration: none;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: border-color 0.15s;
  }
  #mb-live-pill:hover { border-color: var(--brand); }
  .live-dot {
    position: relative; display: inline-flex; width: 7px; height: 7px;
  }
  .live-dot::before, .live-dot::after {
    content: ''; position: absolute; inset: 0;
    border-radius: 50%; background: var(--brand);
  }
  .live-dot::before { animation: live-pulse 1.5s ease-in-out infinite; opacity: 0.4; }
  @keyframes live-pulse { 0%,100%{transform:scale(1);opacity:0.4} 50%{transform:scale(1.9);opacity:0} }

  /* ── BUTTONS ── */
  .btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius);
    border: 1.5px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
  }
  .btn-sm { padding: 0.45rem 0.9rem; font-size: 0.72rem; }

  .btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
  .btn-primary:hover { background: var(--brand-dk); border-color: var(--brand-dk); }

  .btn-outline { background: transparent; color: var(--ink); border-color: var(--border-dk); }
  .btn-outline:hover { border-color: var(--ink); }

  .btn-gold { background: var(--gold); color: #fff; border-color: var(--gold); }
  .btn-gold:hover { background: #7d6330; border-color: #7d6330; }

  .btn-ghost { background: transparent; color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.25); }
  .btn-ghost:hover { border-color: rgba(255,255,255,0.6); color: #fff; }

  /* ── FOOTER ── */
  .site-footer {
    background: var(--ink);
    color: rgba(255,255,255,0.65);
    padding: 4rem 0 0;
    margin-top: 6rem;
  }
  .site-footer__inner { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
  .site-footer h4 {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 1.25rem;
  }
  .site-footer a { color: rgba(255,255,255,0.65); text-decoration: none; transition: color 0.15s; }
  .site-footer a:hover { color: #fff; }
  .site-footer ul { list-style: none; }
  .site-footer ul li { margin-bottom: 0.55rem; font-size: 0.88rem; }
  .footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  @media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
  .footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 3rem;
  }
  @media (min-width: 768px) { .footer-top { grid-template-columns: 1fr auto; align-items: end; } }
  .footer-top p { font-size: 0.9rem; line-height: 1.7; max-width: 48ch; margin-top: 1rem; color: rgba(255,255,255,0.5); }
  .footer-legal {
    padding: 1.5rem 0;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.3);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
  }

  /* ── MOBILE MENU ── */
  .mobile-menu {
    border-top: 1px solid var(--border);
    background: var(--paper);
    padding: 1.25rem 2rem 1.5rem;
  }
  .mobile-menu .nav-link {
    display: block;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    letter-spacing: 0.08em;
  }
  .mobile-menu .nav-link:last-child { border-bottom: none; }

  /* ── TOASTS ── */
  #mb-toasts {
    position: fixed; right: 1.25rem; top: 1.25rem;
    z-index: 10000;
    display: flex; flex-direction: column; gap: 0.625rem;
    pointer-events: none;
    max-width: min(360px, calc(100vw - 2.5rem));
  }

  /* ── MISC ── */
  .numeric { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
  .clock { color: var(--gold-lt); }

  @media (max-width: 1024px) {
    .site-header__inner { padding: 0 1.25rem; }
    .mobile-menu { padding: 1rem 1.25rem 1.25rem; }
  }
/* ── СЕТКА И СТРУКТУРА ── */
.paper-grain {
  background: var(--paper-wm);
  border-bottom: 1px solid var(--border);
}

.hairline-full {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-bottom: 1.5rem;
}

/* ── ИНДИКАТОР ШАГОВ (WIZARD) ── */
.reg-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  margin-bottom: 1.5rem;
}
.reg-step-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-dk);
  transition: background 0.2s ease;
}
.reg-step-pill .dot.active { background: var(--brand); }
.reg-step-pill .dot.done   { background: #16a34a; }

/* ── ПРЕМИУМ КАРТОЧКИ (AGREEMENT CARDS) ── */
.agree-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.agree-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  margin: 0 0 0.75rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.agree-card .roman {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--paper);
  background: var(--ink);
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius);
  letter-spacing: 0.05em;
}
.agree-card p, 
.agree-card li { 
  color: var(--ink-soft); 
  font-size: 0.9rem; 
  line-height: 1.6; 
}
.agree-card ul { 
  margin: 0.5rem 0 0; 
  padding: 0; 
  list-style: none; 
}
.agree-card li { 
  padding-left: 1.25rem; 
  position: relative; 
  margin-bottom: 0.4rem; 
}
.agree-card li::before {
  content: '➔';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.75rem;
  color: var(--brand);
}
.agree-card li strong { 
  color: var(--ink); 
  font-weight: 500;
}

/* Заметки внутри карточек */
.agree-card .note {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--paper-dp);
  border-left: 2px solid var(--gold);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ── ПОЛЯ ВВОДА И ФОРМЫ ── */
label.form-required {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  margin-bottom: 0.4rem;
}
label.form-required::after {
  content: ' *';
  color: var(--brand);
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  background: var(--paper-wm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
  border-color: var(--border-dk);
  background: var(--paper);
}

/* ── ПРЕДУПРЕЖДЕНИЯ (LEGAL NOTICES) ── */
.legal-warn {
  background: var(--paper-wm);
  border: 1px solid var(--brand);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.6;
}
.legal-warn strong {
  display: block;
  color: var(--brand);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
}

/* ── ЗАГРУЗКА ДОКУМЕНТОВ (KYC UPLOAD TILE) ── */
.upload-tile {
  display: block;
  position: relative;
  cursor: pointer;
  background: var(--paper-wm);
  border: 1.5px dashed var(--border-dk);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: background 0.15s, border-color 0.15s;
}
.upload-tile:hover,
.upload-tile.has-file {
  background: var(--paper);
  border-color: var(--brand);
}
.upload-tile input[type="file"] {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
}
.upload-tile-icon {
  width: 28px;
  height: 28px;
  color: var(--ink-faint);
  margin: 0 auto 0.75rem;
}
.upload-tile-title {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.upload-tile-hint {
  font-size: 0.75rem;
  color: var(--ink-mute);
  margin-bottom: 0.5rem;
}
.upload-tile-types {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
}

/* Превью загруженного файла */
.upload-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
}
.upload-preview-thumb {
  width: 44px;
  height: 44px;
  background: var(--paper-dp);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.upload-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.upload-preview-thumb .pdf-icon {
  width: 20px;
  height: 20px;
  color: var(--brand);
}
.upload-preview-info {
  flex: 1;
  min-w: 0;
}
.upload-preview-name {
  font-size: 0.82rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upload-preview-meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-faint);
  margin-top: 0.15rem;
}
.upload-preview-meta .ok {
  color: #16a34a;
  font-weight: 600;
  margin-right: 0.5rem;
}
.upload-preview-clear {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink-mute);
  cursor: pointer;
  padding: 0.35rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, border-color 0.15s;
}
.upload-preview-clear:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* ── ЗОНА ПОДПИСИ (SIGNATURE CANVAS) ── */
.sig-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  background: var(--paper-wm);
  border: 1px dashed var(--border-dk);
  border-radius: var(--radius);
  overflow: hidden;
  touch-action: none;
}
.sig-wrap.has-content {
  border-style: solid;
  border-color: var(--brand);
}
.sig-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}
.sig-placeholder {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  color: var(--ink-faint);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  opacity: 0.6;
}
.sig-wrap.has-content .sig-placeholder { 
  display: none; 
}

/* ── ЭЛЕМЕНТЫ СЕТКИ ОТЗЫВОВ ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold-lt);
}
.responsive-terminal-box {
  display: flex;
    justify-content: space-between;
}

@media (max-width: 900px) {
    .responsive-terminal-box {
        display: flex;
        flex-direction: column;
        justify-content: space-between;    
    }
}

.stat-tile{
    padding: 10px;
    border: 1px solid black;
    text-align: center
}
.value, .numeric{ 
    font-size: 20px
}

.dash-tabs {
    display: flex;
    flex-direction: column;
    gap: 10px;
     padding: 10px;
}
.dash-tab.active{
      background: black;
    width: 100px;
   
    color: white;
}

@media (max-width: 900px) {
  * {
    max-width: 100%;
  }
  .lot-main-grid,
  .lot-main-grid > div {
    min-width: 0;
    overflow-x: hidden;
  }
  div[style*="grid-template-columns:repeat(3,1fr)"] {
    min-width: 0;
  }
  div[style*="grid-template-columns:repeat(3,1fr)"] > div {
    min-width: 0;
    overflow: hidden;
  }
  div[style*="font-family:var(--font-display);font-size:1.25rem"] {
    font-size: 1rem !important;
    word-break: break-word;
  }

  /* ===== Bids tab ===== */
  div[x-show="currentTab==='bids'"] {
    padding: 1rem !important;
  }
  div[x-show="currentTab==='bids'"] > div {
    max-height: 320px !important;
  }

  .bid-entry {
    padding: 0.7rem 0 !important;
    gap: 0.5rem;
    min-width: 0;
  }
  .bid-entry > div:first-child {
    gap: 0.5rem !important;
    min-width: 0;
    flex: 1;
    overflow: hidden;
  }
  .bid-entry div[style*="width:32px;height:32px"] {
    width: 26px !important;
    height: 26px !important;
    font-size: 0.55rem !important;
    flex-shrink: 0;
  }
  .bid-entry div[style*="font-size:0.88rem;font-weight:500"] {
    font-size: 0.8rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
  }
  .bid-entry div[style*="font-family:var(--font-mono);font-size:0.58rem"] {
    font-size: 0.5rem !important;
  }
  .bid-entry div[style*="text-align:right"] {
    flex-shrink: 0;
  }
  .bid-entry div[style*="font-size:1rem;font-weight:700;color:var(--brand)"] {
    font-size: 0.85rem !important;
  }
  .bid-entry div[style*="text-transform:uppercase;letter-spacing:0.14em;color:#15803d"] {
    font-size: 0.48rem !important;
  }

  /* Заголовок таба Bids (N) */

}@media (max-width: 900px) {


  /* Фикс-панель снизу — только нужная часть: время + текущая ставка + форма ставки */
  .lot-mobile-bid-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--paper);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  }



  .lot-mobile-bid-bar .lot-mobile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
  }

  .lot-mobile-bid-bar input[type="number"] {
    font-size: 1.1rem !important;
  }

  .lot-mobile-bid-bar .btn-primary {
    padding: 0.7rem !important;
    font-size: 0.78rem !important;
  }
}

@media (min-width: 901px) {
  .lot-mobile-bid-bar { display: none; }
}@media (max-width: 900px) {


  .lot-mobile-bid-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--paper);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
    padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
    max-height: 70vh;
    overflow-y: auto;
  }
}

@media (min-width: 901px) {
  .lot-mobile-bid-bar { display: none; }
  
}
@media (max-width: 900px) {
  .lot-sidebar-sticky {
    display: none !important;
  }
}


@media (max-width: 900px) {
  footer div[style*="grid-template-columns:1fr auto"] {
    grid-template-columns: 1fr !important;
    align-items: start !important;
    gap: 1.25rem !important;
    padding: 2rem 0 1.75rem !important;
  }

  footer div[style*="grid-template-columns:1fr auto"] > div:last-child {
    width: 100%;
  }

  footer div[style*="grid-template-columns:1fr auto"] .btn {
    flex: 1;
    text-align: center;
    justify-content: center;
  }

  footer div[style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 1.75rem 1.25rem !important;
    padding: 1.75rem 0 !important;
  }

  footer address {
    font-size: 0.8rem !important;
  }

  footer div[style*="justify-content:space-between"][style*="font-family:var(--font-mono);font-size:0.6rem"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
  }
}

@media (max-width: 480px) {
  footer div[style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  footer a[href^="tel:"] {
    font-size: 0.85rem !important;
  }
}
@media (max-width: 900px) {
  section[style*="padding:4rem 0;border-top"] {
    padding: 2.5rem 0 !important;
  }

  section[style*="padding:4rem 0;border-top"] > div {
    padding: 0 1.25rem !important;
  }

  section[style*="padding:4rem 0;border-top"] div[style*="align-items:flex-end;justify-content:space-between"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }

  section[style*="padding:4rem 0;border-top"] h2 {
    font-size: 1.3rem !important;
  }

  section[style*="padding:4rem 0;border-top"] div[style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }

  section[style*="padding:4rem 0;border-top"] p[style*="font-style:italic"] {
    font-size: 0.88rem !important;
    line-height: 1.55 !important;
  }
}
.lot-mobile-bid-bar {
  background: var(--paper);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 20px rgba(0,0,0,0.1);
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
}

.lot-mobile-bid-bar .lot-mobile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  background: var(--paper-wm);
  border: 1px solid var(--border);
  margin-bottom: 0.6rem;
}

.lot-mobile-bid-bar .lot-mobile-row > div:first-child {
  display: flex;
  flex-direction: column;
}

.lot-mobile-bid-bar .lot-mobile-row > div:last-child {
  text-align: right;
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .profile-stats-grid { grid-template-columns: 1fr !important; }
  .profile-main-inner { grid-template-columns: 1fr !important; }
  aside nav { flex-direction: row !important; overflow-x: auto; scrollbar-width: none; }
  aside nav a, aside nav button { white-space: nowrap; border-bottom: none !important; border-right: 1px solid var(--border) !important; flex-shrink: 0; }

  /* ===== Masthead ===== */
  div[style*="background:var(--ink);border-bottom:2px solid var(--brand)"] > div {
    padding: 1.5rem 1.25rem !important;
  }
  div[style*="background:var(--ink);border-bottom:2px solid var(--brand)"] h1 {
    font-size: 1.3rem !important;
  }
  div[style*="background:var(--ink);border-bottom:2px solid var(--brand)"] > div > div {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
  }
  div[style*="background:var(--ink);border-bottom:2px solid var(--brand)"] .btn {
    width: 100%;
    justify-content: center;
    display: flex;
  }

  /* ===== Stats strip ===== */
  .profile-stats-grid > div {
    border-right: none !important;
    border-bottom: 1px solid var(--border);
    padding: 1.1rem 0 !important;
  }
  .profile-stats-grid > div:last-child { border-bottom: none; }
  .profile-stats-grid div[style*="font-size:2.4rem"] { font-size: 1.8rem !important; }

  .profile-main-grid { padding: 1.25rem 1rem 3rem !important; }
  .profile-main-inner { gap: 1.25rem !important; }

  h2[style*="font-size:1.5rem"] { font-size: 1.2rem !important; }
  div[style*="align-items:flex-end;justify-content:space-between;margin-bottom:1.5rem"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
  }

  /* ===== ТАБЛИЦЫ -> карточки ===== */
  div[x-show] table,
  div[x-show] thead,
  div[x-show] tbody,
  div[x-show] tr,
  div[x-show] td {
    display: block !important;
    width: 100% !important;
  }
  div[x-show] thead { display: none !important; }
  div[x-show] tr {
    border: 1px solid var(--border) !important;
    border-bottom: none !important;
    padding: 0.85rem 1rem !important;
    position: relative;
  }
  div[x-show] tbody tr:last-child { border-bottom: 1px solid var(--border) !important; }
  div[x-show] td {
    padding: 0.3rem 0 !important;
    border: none !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }
  /* подпись поля слева, как label, через data-label */
  div[x-show] td::before {
    content: attr(data-label);
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-faint);
    flex-shrink: 0;
  }
  /* первая колонка (Vehicle) — без лейбла, крупнее, отдельной строкой сверху */
  div[x-show] td:first-child {
    padding-bottom: 0.6rem !important;
    margin-bottom: 0.4rem;
    border-bottom: 1px solid var(--border) !important;
    justify-content: flex-start;
  }
  div[x-show] td:first-child::before { content: none; }
  div[x-show] td:first-child a {
    width: 100%;
  }

  /* ===== Won/Watchlist rows ===== */
  a[href^="/v/"][style*="padding:1rem;border:1px solid var(--border)"] {
    padding: 0.75rem !important;
    gap: 0.75rem !important;
  }
  a[href^="/v/"][style*="padding:1rem;border:1px solid var(--border)"] div[style*="width:72px;height:52px"] {
    width: 56px !important;
    height: 42px !important;
  }
  a[href^="/v/"][style*="padding:1rem;border:1px solid var(--border)"] div[style*="font-size:1rem"] { font-size: 0.85rem !important; }
  a[href^="/v/"][style*="padding:1rem;border:1px solid var(--border)"] div[style*="font-size:1.1rem"] { font-size: 0.95rem !important; }

  /* ===== Notifications ===== */
  div[style*="padding:1.25rem 1.5rem;border:1px solid var(--border);border-left:3px"] { padding: 1rem !important; }
  div[style*="padding:1.25rem 1.5rem;border:1px solid var(--border);border-left:3px"] > div {
    flex-direction: column !important;
    gap: 0.4rem !important;
  }

  /* ===== Profile settings form ===== */
  div[style*="background:var(--paper);border:1px solid var(--border);padding:2rem"] { padding: 1.25rem !important; }
  form div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; gap: 1rem !important; }
  form button[type="submit"] { width: 100%; justify-content: center; }
}
@media (max-width: 768px) {

  aside nav {
    flex-direction: row !important;
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x;
    scrollbar-width: none;
  }

  aside nav::-webkit-scrollbar {
    display: none;
  }

  aside nav a,
  aside nav button {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.25rem !important;
    padding: 0.65rem 0.9rem !important;
    font-size: 0.62rem !important;
    text-align: center;
    flex-shrink: 0 !important;
  }

  aside nav a span,
  aside nav button span {
    white-space: nowrap;
  }

  aside nav a svg,
  aside nav button svg {
    width: 17px !important;
    height: 17px !important;
  }

  aside nav button {
    border-top: none !important;
    border-left: 1px solid var(--border) !important;
  }
}@media (max-width: 768px) {
  div[x-show] td::before {
    content: attr(data-label);
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-faint);
    flex-shrink: 0;
  }
}
@media (max-width: 900px) {
  body:has(.lot-mobile-bid-bar) footer {
    padding-bottom: 280px !important;
  }
}

.showContactModal{
     position:fixed; inset:0;z-index:999;display:flex;align-items:center;justify-content:center;padding:1rem;background:rgba(26,26,26,0.6);backdrop-filter:blur(6px);">

}

