/* ═══════════════════════════════════════════════════════════
   СТИЛИ — «Аукционный дом»  |  Ультра-премиум дизайн v2
   Анимации · Glassmorphism · Lucide Icons · Micro-interactions
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #f0f2f5;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #0f172a;
  --brand-light: #1e293b;
  --accent: #3b82f6;
  --accent-dark: #2563eb;
  --accent-light: #dbeafe;
  --green: #10b981;
  --green-bg: #d1fae5;
  --green-light: #ecfdf5;
  --red: #ef4444;
  --red-bg: #fee2e2;
  --red-light: #fef2f2;
  --yellow: #f59e0b;
  --yellow-bg: #fef3c7;
  --yellow-light: #fffbeb;
  --purple: #8b5cf6;
  --purple-bg: #ede9fe;
  --radius: 20px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.03);
  --shadow-md: 0 4px 16px rgba(0,0,0,.06), 0 12px 32px rgba(0,0,0,.04);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.08), 0 24px 56px rgba(0,0,0,.06);
  --shadow-glow: 0 0 40px rgba(59,130,246,.15);
  --transition: .3s cubic-bezier(.4,0,.2,1);
  --transition-bounce: .4s cubic-bezier(.34,1.56,.64,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
img { display: block; max-width: 100%; }

/* ─── BACKGROUND DECORATION ─── */
.bg-decoration {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .35;
  animation: orbFloat 20s ease-in-out infinite;
}
.bg-orb--1 {
  width: 600px; height: 600px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  top: -200px; right: -150px;
  animation-delay: 0s;
}
.bg-orb--2 {
  width: 500px; height: 500px;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  bottom: -100px; left: -200px;
  animation-delay: -7s;
}
.bg-orb--3 {
  width: 400px; height: 400px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
  opacity: .15;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(.95); }
}

/* ─── REVEAL ANIMATION ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  animation: revealUp .7s var(--transition) forwards;
}
.reveal-delay-1 { animation-delay: .1s; }
.reveal-delay-2 { animation-delay: .2s; }
.reveal-delay-3 { animation-delay: .3s; }
.reveal-delay-4 { animation-delay: .4s; }
.reveal-delay-5 { animation-delay: .5s; }
.reveal-delay-6 { animation-delay: .6s; }

@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.9); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(.8); }
}

/* ─── TOPBAR ─── */
.topbar {
  background: rgba(15, 23, 42, .92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  transition: opacity var(--transition);
}
.brand:hover { opacity: .85; }
.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(59,130,246,.3);
}
.brand-icon i { width: 22px; height: 22px; color: #fff; }
.brand strong { font-size: 17px; display: block; letter-spacing: -.01em; }
.brand small { font-size: 12px; color: rgba(255,255,255,.45); display: block; margin-top: 2px; }

.topnav { display: flex; gap: 8px; align-items: center; }
.topnav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  transition: all var(--transition);
}
.topnav-link:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
}
.nav-icon { width: 16px; height: 16px; }

.topnav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border: none;
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(59,130,246,.25);
}
.topnav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(59,130,246,.35);
}
.topnav-btn:active { transform: translateY(0); }

/* ─── HERO ─── */
.hero {
  position: relative;
  z-index: 1;
  padding: 70px 28px 60px;
  background: linear-gradient(180deg, rgba(240,242,245,.8) 0%, rgba(240,242,245,1) 100%);
}
.hero__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 56px;
  align-items: start;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 100px;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  animation: scaleIn .5s var(--transition) both;
}
.badge-icon { width: 16px; height: 16px; }
.hero__text h1 {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--text) 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: revealUp .7s var(--transition) .1s both;
}
.hero__text > p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 520px;
  animation: revealUp .7s var(--transition) .2s both;
}

/* Hero Stats */
.hero__stats {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  animation: revealUp .7s var(--transition) .35s both;
}
.hero__stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.hero__stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.stat-icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
}
.hero__stat strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}
.hero__stat span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

/* ─── SEARCH FORM (Glass Card) ─── */
.hero__form-wrap {
  position: relative;
  animation: revealUp .7s var(--transition) .3s both;
}
.form-glow {
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(135deg, var(--accent), var(--purple), var(--green));
  opacity: .15;
  filter: blur(20px);
  z-index: 0;
  animation: pulse 4s ease-in-out infinite;
}
.search-form {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.search-form__header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.search-header-icon { width: 20px; height: 20px; color: var(--accent); }

.search-input-wrap {
  position: relative;
}
.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
  z-index: 2;
}
.input-icon--light { color: rgba(255,255,255,.4); }

.search-form__input {
  width: 100%;
  height: 54px;
  padding: 0 16px 0 48px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
}
.search-form__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(59,130,246,.1), var(--shadow-glow);
}

.phone-block {
  background: var(--brand);
  border-radius: var(--radius-sm);
  padding: 20px;
  color: #fff;
}
.phone-block__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.phone-icon { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.phone-block__header strong { display: block; font-size: 15px; margin-bottom: 3px; }
.phone-block__header span { font-size: 13px; color: rgba(255,255,255,.55); }
.search-form__input--phone {
  border-color: rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  color: #fff;
}
.search-form__input--phone::placeholder { color: rgba(255,255,255,.3); }
.search-form__input--phone:focus {
  border-color: rgba(255,255,255,.4);
  box-shadow: 0 0 0 4px rgba(255,255,255,.06);
}

.btn-primary {
  height: 54px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,.1), transparent);
  transform: translateX(-100%);
  transition: transform .6s;
}
.btn-primary:hover::before { transform: translateX(100%); }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15,23,42,.2);
}
.btn-primary:active { transform: translateY(0); }
.btn-icon { width: 18px; height: 18px; }
.btn-icon-sm { width: 16px; height: 16px; }

/* ─── MAIN ─── */
.main-content {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 28px 100px;
}

/* ─── CAR HEADER ─── */
.car-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 32px 0;
}
.car-header__logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(15,23,42,.15);
  position: relative;
  overflow: hidden;
}
.car-header__logo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,.1));
}
.car-header__info { flex: 1; }
.car-header__title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -.02em;
}
.car-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  font-size: 14px;
  color: var(--muted);
}
.car-header__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.car-header__meta strong { color: var(--text); font-weight: 600; }
.meta-icon { width: 14px; height: 14px; color: var(--accent); }
.car-header__right {
  text-align: right;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.car-header__right span {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}
.right-icon { width: 14px; height: 14px; color: var(--muted); }

/* ─── STATUS CHIP ─── */
.status-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 28px;
  border: 1px solid transparent;
  transition: all var(--transition);
}
.status-chip:hover { transform: translateX(4px); }
.status-chip__icon { width: 22px; height: 22px; flex-shrink: 0; }
.status-chip__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: dotPulse 2s ease-in-out infinite;
}
.status-chip--present {
  background: var(--green-light);
  border-color: rgba(16,185,129,.2);
  color: #065f46;
}
.status-chip--present .status-chip__dot { background: var(--green); box-shadow: 0 0 8px rgba(16,185,129,.4); }
.status-chip--warning {
  background: var(--yellow-light);
  border-color: rgba(245,158,11,.2);
  color: #92400e;
}
.status-chip--warning .status-chip__dot { background: var(--yellow); box-shadow: 0 0 8px rgba(245,158,11,.4); }
.status-chip--absent {
  background: var(--red-light);
  border-color: rgba(239,68,68,.2);
  color: #991b1b;
}
.status-chip--absent .status-chip__dot { background: var(--red); box-shadow: 0 0 8px rgba(239,68,68,.4); }

/* ─── CARDS / PANELS ─── */
.card {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226,232,240,.6);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card:hover::before { opacity: 1; }

.card__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -.01em;
}
.card__title-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.card__title-icon i { width: 20px; height: 20px; }
.card__title-icon--red    { background: var(--red-bg); color: var(--red); }
.card__title-icon--green  { background: var(--green-bg); color: var(--green); }
.card__title-icon--blue   { background: var(--accent-light); color: var(--accent); }
.card__title-icon--purple { background: var(--purple-bg); color: var(--purple); }
.card__title-icon--dark   { background: #f1f5f9; color: var(--text); }

.card__subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.65;
  padding-left: 52px;
}

/* ─── INFO TABLE ─── */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
}
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  gap: 16px;
  transition: all var(--transition);
}
.info-row:hover {
  background: rgba(59,130,246,.02);
  padding-left: 8px;
  padding-right: 8px;
  margin-left: -8px;
  margin-right: -8px;
  border-radius: 8px;
}
.info-row:last-child { border-bottom: none; }
.info-row dt {
  color: var(--muted);
  font-size: 14px;
  flex-shrink: 0;
}
.info-row dd {
  text-align: right;
  font-weight: 600;
  font-size: 14px;
}

/* Colored values */
.val-green { color: var(--green); font-weight: 700; }
.val-red   { color: var(--red); font-weight: 700; }
.val-green-check {
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--green), #059669);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(16,185,129,.3);
}

/* ─── BOTTOM CARDS ROW ─── */
.bottom-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.mini-card {
  background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(248,250,252,.92) 100%);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(226,232,240,.6);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.mini-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.mini-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--yellow), var(--green));
  opacity: 0;
  transition: opacity var(--transition);
}
.mini-card:hover::after { opacity: 1; }

/* Score Circle (animated) */
.score-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  position: relative;
}
.score-circle__bg {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  transition: background 1s ease;
}
.score-circle__inner {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.score-circle__inner small {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
}
.mini-card__text strong { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 700; }
.mini-card__text p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0; }

.mini-card__meta {
  margin-top: 12px;
  display: grid;
  gap: 6px;
}
.mini-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.mini-meta-icon {
  width: 14px;
  height: 14px;
  color: #94a3b8;
}

.auction-badge {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid transparent;
}
.auction-badge i { width: 26px; height: 26px; }
.auction-badge--present {
  background: var(--green-light);
  border-color: rgba(16,185,129,.25);
}
.auction-badge--present i { color: var(--green); }
.auction-badge--warning {
  background: var(--yellow-light);
  border-color: rgba(245,158,11,.25);
}
.auction-badge--warning i { color: var(--yellow); }
.auction-badge--absent {
  background: var(--red-light);
  border-color: rgba(239,68,68,.25);
}
.auction-badge--absent i { color: var(--red); }

.mini-card--status {
  position: relative;
}
.mini-card--status::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.mini-card--present::before { background: linear-gradient(90deg, #34d399, #10b981); }
.mini-card--warning::before { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.mini-card--absent::before { background: linear-gradient(90deg, #f87171, #ef4444); }

.warranty-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform var(--transition-bounce);
}
.warranty-icon:hover { transform: scale(1.1) rotate(-5deg); }
.warranty-icon--red { background: var(--red-bg); }
.warranty-icon--green { background: var(--green-bg); }
.warranty-icon i { width: 28px; height: 28px; }

/* ─── PHOTOS GALLERY ─── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.photo-card {
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  min-height: 200px;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  border: 1px solid rgba(226,232,240,.6);
  cursor: pointer;
  transition: all var(--transition);
}
.photo-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-lg);
}
.photo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.3));
  opacity: 0;
  transition: opacity var(--transition);
}
.photo-card:hover::after { opacity: 1; }
.photo-card__zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  z-index: 2;
  opacity: 0;
  transform: scale(.8);
  transition: all var(--transition);
}
.photo-card:hover .photo-card__zoom {
  opacity: 1;
  transform: scale(1);
}
.photo-card__zoom i { width: 16px; height: 16px; color: var(--text); }
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.photo-card:hover img { transform: scale(1.07); }
.photo-card__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 20px;
  gap: 8px;
}
.photo-card__empty i { width: 32px; height: 32px; color: var(--line); }

/* ─── LIGHTBOX ─── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(20px);
  justify-content: center;
  align-items: center;
  animation: fadeIn .3s ease;
}
.lightbox.open { display: flex; }
.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
  animation: scaleIn .3s ease;
}
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  border-radius: 14px;
  cursor: pointer;
  transition: all var(--transition);
  display: grid;
  place-items: center;
}
.lightbox__close { top: 20px; right: 20px; width: 48px; height: 48px; }
.lightbox__prev  { left: 20px; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; }
.lightbox__next  { right: 20px; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; }
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255,255,255,.2);
  transform: scale(1.05);
}
.lightbox__prev:hover { transform: translateY(-50%) scale(1.05); }
.lightbox__next:hover { transform: translateY(-50%) scale(1.05); }
.lightbox__close i,
.lightbox__prev i,
.lightbox__next i { width: 22px; height: 22px; }
.lightbox__counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.1);
  padding: 8px 20px;
  border-radius: 100px;
  color: rgba(255,255,255,.8);
  font-size: 14px;
  font-weight: 600;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero__text h1 { font-size: 34px; }
  .hero__stats { flex-wrap: wrap; gap: 12px; }
  .hero__stat { flex: 1; min-width: 120px; }
  .info-grid { grid-template-columns: 1fr; }
  .bottom-cards { grid-template-columns: 1fr; }
  .car-header { flex-direction: column; align-items: flex-start; }
  .car-header__right { text-align: left; }
  .car-header__right span { justify-content: flex-start; }
  .modal { max-width: 95vw; max-height: 90vh; }
}
@media (max-width: 600px) {
  .topbar__inner { height: auto; flex-direction: column; padding: 14px 16px; gap: 12px; align-items: flex-start; }
  .topnav { flex-wrap: wrap; gap: 8px; }
  .hero { padding: 32px 16px; }
  .hero__text h1 { font-size: 28px; }
  .main-content { padding: 20px 16px 60px; }
  .card { padding: 22px; }
  .info-row { flex-direction: column; gap: 2px; }
  .info-row dd { text-align: left; }
  .form-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
}

/* ─── MODAL ─── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15,23,42,.6);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  justify-content: center;
  align-items: flex-start;
  padding: 40px 16px;
  overflow-y: auto;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--surface);
  border-radius: 24px;
  width: 100%;
  max-width: 800px;
  box-shadow: 0 32px 100px rgba(0,0,0,.2);
  animation: modalIn .35s var(--transition-bounce);
  border: 1px solid rgba(226,232,240,.5);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(30px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 32px 0;
}
.modal__header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.modal__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-light), var(--purple-bg));
  display: grid;
  place-items: center;
}
.modal__icon i { width: 24px; height: 24px; color: var(--accent); }
.modal__header h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.modal__sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}
.modal__close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: all var(--transition);
}
.modal__close i { width: 18px; height: 18px; }
.modal__close:hover { background: var(--red-bg); color: var(--red); border-color: transparent; }

/* ─── ADMIN FORM ─── */
.admin-form {
  padding: 24px 32px 32px;
}
.admin-form fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin-bottom: 20px;
  transition: all var(--transition);
  background: rgba(248,250,252,.5);
}
.admin-form fieldset:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,.06);
}
.admin-form legend {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
  padding: 0 10px;
}
.legend-icon { width: 16px; height: 16px; color: var(--accent); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.field-icon { width: 13px; height: 13px; color: var(--accent); }
.form-field input,
.form-field select {
  height: 46px;
  padding: 0 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius-xs);
  background: #fff;
  font-size: 14px;
  color: var(--text);
  transition: all var(--transition);
}
.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(59,130,246,.08);
}
.form-hint {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 14px;
  line-height: 1.5;
}

/* ─── PHOTO UPLOAD ─── */
.photo-upload-area {
  border: 2px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: rgba(248,250,252,.5);
}
.photo-upload-area:hover,
.photo-upload-area.dragover {
  border-color: var(--accent);
  background: rgba(59,130,246,.04);
  transform: scale(1.01);
}
.upload-icon { width: 48px; height: 48px; color: var(--accent); margin: 0 auto 12px; }
.photo-upload-area p {
  color: var(--muted);
  font-size: 14px;
}
.photo-upload-area p strong {
  color: var(--accent);
  cursor: pointer;
}

.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.photo-preview {
  position: relative;
  border-radius: var(--radius-xs);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #f1f5f9;
  animation: scaleIn .3s ease;
}
.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-preview__remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: rgba(239,68,68,.9);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 14px;
  transition: all var(--transition);
  opacity: 0;
}
.photo-preview:hover .photo-preview__remove { opacity: 1; }
.photo-preview__remove:hover { background: var(--red); transform: scale(1.1); }

/* ─── DYNAMIC ROWS ─── */
.summary-rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.summary-row {
  display: grid;
  grid-template-columns: 1fr 1fr 110px 40px;
  gap: 10px;
  align-items: end;
  animation: scaleIn .2s ease;
}
.summary-row input,
.summary-row select {
  height: 42px;
  padding: 0 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius-xs);
  font-size: 13px;
  background: #fff;
  color: var(--text);
  transition: all var(--transition);
}
.summary-row input:focus,
.summary-row select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,.08);
}
.btn-remove-row {
  width: 40px;
  height: 42px;
  border: none;
  border-radius: var(--radius-xs);
  background: var(--red-bg);
  color: var(--red);
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all var(--transition);
}
.btn-remove-row:hover { background: #fca5a5; transform: scale(1.05); }

.btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: none;
  border: 2px dashed var(--line);
  border-radius: var(--radius-xs);
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  transition: all var(--transition);
  width: 100%;
}
.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(59,130,246,.04);
  transform: translateY(-1px);
}
.btn-outline-icon { width: 16px; height: 16px; }

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  padding-top: 10px;
}
.btn-secondary {
  height: 50px;
  padding: 0 28px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-secondary:hover { border-color: var(--brand); color: var(--text); }

.btn-primary--form {
  height: 50px;
  padding: 0 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 4px 12px rgba(59,130,246,.25);
}
.btn-primary--form:hover {
  box-shadow: 0 8px 24px rgba(59,130,246,.35);
}

/* ─── TOAST ─── */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--green), #059669);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 8px 32px rgba(16,185,129,.25);
  z-index: 2000;
  animation: toastIn .4s var(--transition-bounce);
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast i { width: 20px; height: 20px; }
.toast--error {
  background: linear-gradient(135deg, var(--red), #dc2626);
  box-shadow: 0 8px 32px rgba(239,68,68,.25);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px) scale(.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── NOT FOUND STATE ─── */
.not-found {
  text-align: center;
  padding: 60px 28px;
}
.not-found__icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--red-bg);
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
}
.not-found__icon i { width: 32px; height: 32px; color: var(--red); }
.not-found h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
}
.not-found p {
  color: var(--muted);
  max-width: 400px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.6;
}

/* ─── LOADING ANIMATION ─── */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 20px;
}

.loading--search {
  flex-direction: column;
  gap: 12px;
  color: var(--muted);
}

.loading__ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--accent-light);
  border-top-color: var(--accent);
  animation: spin .8s linear infinite;
  box-shadow: 0 0 0 6px rgba(59,130,246,.08);
}

.loading__text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .01em;
}

.loading__dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.loading__dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: loadingBounce .8s ease-in-out infinite;
}
.loading__dots span:nth-child(2) { animation-delay: .12s; }
.loading__dots span:nth-child(3) { animation-delay: .24s; }

@keyframes loadingBounce {
  0%, 100% { transform: translateY(0); opacity: .4; }
  50% { transform: translateY(-7px); opacity: 1; }
}

/* ─── DELETE BUTTON (for admin) ─── */
.btn-delete {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 5;
  opacity: 0;
}
.card:hover .btn-delete { opacity: 1; }
.btn-delete:hover {
  background: var(--red-bg);
  color: var(--red);
  border-color: transparent;
  transform: scale(1.1);
}
.btn-delete i { width: 16px; height: 16px; }
