:root{--bg:#f5f7fb;--card:#fff;--text:#111827;--muted:#6b7280;--line:#e5e7eb;--primary:#5b5ce2;--primary2:#6d5dfc;--dark:#11161d;--green:#13a36f;--danger:#e45252}*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,sans-serif;background:var(--bg);color:var(--text)}a{color:inherit;text-decoration:none}.container{width:min(1440px,calc(100% - 40px));margin:auto}.topbar{background:linear-gradient(90deg,#121820,#191f28);color:#fff;position:sticky;top:0;z-index:20}.nav-wrap{height:72px;display:flex;align-items:center;gap:36px}.brand{display:flex;align-items:center;font-weight:800;letter-spacing:.03em;gap:10px;white-space:nowrap}.brand small{display:block;font-size:10px;letter-spacing:.28em;color:#9ca3af}.brand-mark{color:#7c74ff;font-size:24px}.topbar nav{display:flex;gap:26px;flex:1}.topbar nav a{color:#cbd5e1;font-weight:600;font-size:14px}.topbar nav a:hover{color:#fff}.account{display:flex;align-items:center;gap:12px}.user-chip{font-size:13px;color:#e5e7eb}.link-button{border:0;background:none;color:#aeb6c2;cursor:pointer}.page-shell{padding:34px 0 70px}.hero-row,.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:24px}.hero-row h1,.section-head h1,.detail-title h1{margin:6px 0 8px;font-size:34px;line-height:1.05}.hero-row p{margin:0;color:var(--muted)}.eyebrow{text-transform:uppercase;letter-spacing:.14em;font-size:11px;font-weight:800;color:var(--primary)}.sync-badge{background:#fff;border:1px solid var(--line);border-radius:999px;padding:10px 14px;font-size:12px;color:var(--muted)}.live-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--green);margin-right:6px}.filter-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;display:grid;grid-template-columns:repeat(7,1fr);gap:12px;box-shadow:0 10px 30px rgba(15,23,42,.04)}.field{display:flex;flex-direction:column;gap:7px}.field label,.login-card label{font-size:12px;font-weight:700;color:#4b5563}.field input,.field select,.login-card input,textarea,.table-card select{height:42px;border:1px solid #d8dde6;border-radius:10px;padding:0 11px;background:#fff;font:inherit;font-size:13px;outline:none}.field input:focus,.field select:focus,.login-card input:focus,textarea:focus{border-color:#8c89ef;box-shadow:0 0 0 3px rgba(91,92,226,.1)}.filter-actions{display:flex;gap:8px;align-items:end}.btn{border:0;border-radius:10px;padding:12px 16px;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.btn-primary{background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff}.btn-ghost{background:#fff;border:1px solid #d8dde6;color:#374151}.btn.small{padding:9px 14px}.btn.wide{width:100%}.list-head{display:flex;justify-content:space-between;margin:26px 0 14px}.muted{color:var(--muted)}.car-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.car-card{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:0 7px 25px rgba(15,23,42,.04);transition:.2s}.car-card:hover{transform:translateY(-3px);box-shadow:0 14px 34px rgba(15,23,42,.09)}.image-wrap{height:205px;display:block;position:relative;background:#e5e7eb}.image-wrap img,.gallery-main img,.mini-card img{width:100%;height:100%;object-fit:cover;display:block}.countdown{position:absolute;right:10px;bottom:10px;background:rgba(17,24,39,.9);color:#fff;border-radius:7px;padding:6px 9px;font-size:12px;font-weight:800}.car-body{padding:16px}.card-title-row{display:flex;justify-content:space-between;gap:10px}.car-body h3{font-size:15px;margin:0 0 4px}.car-body p{font-size:12px;color:var(--muted);margin:0 0 12px;min-height:31px}.heart{width:34px;height:34px;border:1px solid var(--line);border-radius:50%;background:#fff;color:#9ca3af;cursor:pointer;font-size:17px}.heart.active{color:#ef476f}.chips{display:flex;gap:6px;flex-wrap:wrap}.chips span{background:#f3f4f6;border-radius:6px;padding:5px 7px;font-size:10px;font-weight:700;color:#4b5563}.chips.large span{font-size:11px}.price-block{margin-top:16px;display:flex;flex-direction:column;gap:3px}.price-block small{color:var(--muted)}.price-block strong{font-size:18px}.price-block span{font-size:12px;color:#4f46e5}.card-footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);margin-top:14px;padding-top:12px;font-size:11px;color:var(--muted)}.card-footer a{color:var(--primary);font-weight:700}.footer{border-top:1px solid var(--line);padding:22px 0;color:var(--muted);font-size:12px;background:#fff}.back-link{display:inline-block;margin-bottom:22px;color:#4b5563;font-size:13px}.detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:24px}.detail-title h2{font-size:18px;margin:0 0 14px;color:#374151}.gallery-main{height:520px;background:#ddd;border-radius:18px;overflow:hidden;margin-top:16px}.thumbs{display:flex;gap:10px;margin:10px 0 22px;overflow:auto}.thumbs button{width:110px;height:72px;border:2px solid transparent;padding:0;border-radius:10px;overflow:hidden;background:none;cursor:pointer}.thumbs button:hover{border-color:var(--primary)}.thumbs img{width:100%;height:100%;object-fit:cover}.tabs-card,.side-card,.table-card,.notice-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;box-shadow:0 6px 22px rgba(15,23,42,.035)}.tabs-card h3,.side-card h3{margin:0 0 16px}.spec-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px 28px}.spec-grid div{display:flex;justify-content:space-between;border-bottom:1px dashed #e6e8ed;padding-bottom:8px}.spec-grid span{color:var(--muted);font-size:12px}.spec-grid strong{font-size:12px}.condition{line-height:1.6;color:#4b5563;font-size:13px}.sticky-side{position:sticky;top:96px;height:max-content;display:flex;flex-direction:column;gap:12px}.countdown-card{text-align:center}.countdown-card small{color:var(--muted)}.big-countdown{display:block;font-size:34px;margin-top:8px}.huge-price{font-size:29px;font-weight:800;margin-top:7px}.rub-price{margin-top:5px;color:#4f46e5;font-weight:700}.calc-card div{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--line);font-size:12px}.calc-card p{font-size:11px;color:var(--muted);line-height:1.5}.request-card textarea{width:100%;height:90px;padding:10px;resize:vertical;margin-bottom:10px}.request-card small{display:block;margin-top:10px;color:var(--muted);line-height:1.4}.related{margin-top:30px}.mini-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.mini-card{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}.mini-card img{height:120px}.mini-card div{padding:12px;display:flex;flex-direction:column;gap:5px}.mini-card span{font-size:11px;color:var(--muted)}.mini-card b{font-size:13px}.login-shell{min-height:65vh;display:grid;place-items:center}.login-card{width:min(440px,100%);background:#fff;border:1px solid var(--line);border-radius:20px;padding:30px;box-shadow:0 18px 50px rgba(15,23,42,.08)}.login-card h1{margin:8px 0}.login-card p{color:var(--muted);font-size:13px}.login-card label{display:flex;flex-direction:column;gap:7px;margin:15px 0}.demo-box{margin-top:18px;background:#f7f7ff;border:1px solid #e4e2ff;border-radius:12px;padding:12px;font-size:12px;line-height:1.7;color:#5553a7}.alert{border-radius:12px;padding:12px 14px;margin:10px 0;font-size:13px}.alert.error{background:#fff0f0;color:#b42318}.alert.success{background:#ecfdf3;color:#027a48}.empty{grid-column:1/-1;background:#fff;border:1px dashed #cfd5df;border-radius:16px;padding:50px;text-align:center;color:var(--muted)}.table-card{overflow:auto;padding:0}.table-title{padding:18px 20px}.table-card table{width:100%;border-collapse:collapse;font-size:12px}.table-card th,.table-card td{text-align:left;padding:13px 16px;border-top:1px solid var(--line);vertical-align:middle}.table-card th{background:#fafbfc;color:#6b7280;font-size:11px;text-transform:uppercase}.status{display:inline-block;padding:5px 8px;border-radius:999px;font-size:10px;font-weight:800}.status.new{background:#fff7ed;color:#c2410c}.status.contacted{background:#eef2ff;color:#4338ca}.status.closed{background:#ecfdf3;color:#047857}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.stats-grid div{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px}.stats-grid span{display:block;color:var(--muted);font-size:12px}.stats-grid strong{font-size:30px}.notice-card{margin-top:18px}.notice-card code{background:#f3f4f6;padding:2px 5px;border-radius:5px}@media(max-width:1200px){.filter-card{grid-template-columns:repeat(4,1fr)}.car-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:900px){.topbar nav{display:none}.detail-grid{grid-template-columns:1fr}.sticky-side{position:static}.car-grid{grid-template-columns:repeat(2,1fr)}.mini-grid{grid-template-columns:repeat(2,1fr)}.filter-card{grid-template-columns:repeat(2,1fr)}.gallery-main{height:400px}.stats-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:620px){.container{width:min(100% - 22px,1440px)}.page-shell{padding-top:22px}.hero-row,.section-head{align-items:flex-start;flex-direction:column}.hero-row h1,.section-head h1,.detail-title h1{font-size:28px}.filter-card{grid-template-columns:1fr}.car-grid,.mini-grid{grid-template-columns:1fr}.image-wrap{height:230px}.gallery-main{height:290px}.spec-grid{grid-template-columns:1fr}.nav-wrap{gap:12px}.account{margin-left:auto}.user-chip{display:none}}
.source-pill{position:absolute;left:10px;top:10px;background:rgba(91,92,226,.92);color:#fff;font-size:9px;font-weight:800;letter-spacing:.09em;padding:5px 8px;border-radius:7px}.sync-badge.demo .live-dot{background:#f59e0b}.sync-help{display:flex;gap:10px;align-items:flex-start;flex-direction:column;margin-top:18px}.no-image{height:100%;display:grid;place-items:center;color:#6b7280;background:#eef1f5}.no-image.big{min-height:420px}.option-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px 18px;font-size:12px;color:#374151}.option-grid span{padding:8px 10px;background:#f8f9fb;border-radius:8px}.accident-badge{display:inline-block;background:#ecfdf3;color:#047857;border:1px solid #a7f3d0;padding:8px 10px;border-radius:10px;font-size:12px;font-weight:700;margin-bottom:10px}.previous-prices{display:flex;gap:8px;flex-wrap:wrap}.previous-prices span{background:#f3f4f6;padding:8px 10px;border-radius:8px;font-size:12px;font-weight:700}.offer-range{margin-top:14px;padding-top:12px;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:4px}.offer-range strong{font-size:12px}.error-text{color:#b42318}@media(max-width:620px){.option-grid{grid-template-columns:1fr}}
.pagination{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;margin:30px 0 0}.page-btn{min-width:40px;height:40px;padding:0 12px;border:1px solid var(--line);background:#fff;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;color:#4b5563}.page-btn:hover{border-color:#aaa7ef;color:var(--primary)}.page-btn.active{background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;border-color:transparent}.page-btn.nav{padding:0 15px}.page-gap{color:var(--muted);padding:0 3px}@media(max-width:620px){.list-head{gap:8px;flex-direction:column}.page-btn.nav{flex:1}.pagination{justify-content:stretch}}

/* v6 — AvtoVovasCar branding, current FX, safer filters, richer gallery */
.company-brand{width:192px;height:68px;overflow:hidden;border-radius:9px;flex:0 0 auto;background:#0d141c}.company-brand img{width:100%;height:100%;object-fit:cover;object-position:center 54%;display:block}
.footer-row{display:flex;align-items:center;justify-content:space-between;gap:20px}.footer-row a{color:#667085;text-decoration:underline}.rate-line{color:var(--muted);font-size:13px}.rate-line b{color:#374151}.rate-note{font-size:10px;color:var(--muted);margin-top:8px;line-height:1.45}

/* Full-size photo viewer: show the entire auction image instead of cropping it. */
.gallery{margin-top:16px}.gallery-main{position:relative;width:100%;height:min(74vh,720px);min-height:520px;margin:0;padding:0;border:0;background:#10151c;border-radius:18px;overflow:hidden;cursor:zoom-in;display:flex;align-items:center;justify-content:center}.gallery-main img{width:100%;height:100%;object-fit:contain;background:#10151c}.gallery-main.no-photo{cursor:default}.gallery-counter{position:absolute;right:16px;bottom:14px;background:rgba(0,0,0,.72);color:#fff;padding:7px 10px;border-radius:9px;font-size:12px;font-weight:800}.gallery-zoom{position:absolute;right:16px;top:14px;width:38px;height:38px;border-radius:10px;background:rgba(0,0,0,.62);display:grid;place-items:center;color:#fff;font-size:18px}.gallery-controls{display:grid;grid-template-columns:46px minmax(0,1fr) 46px;gap:10px;align-items:center;margin:12px 0 24px}.gallery-arrow{height:76px;border:1px solid var(--line);background:#fff;border-radius:11px;font-size:21px;cursor:pointer}.gallery-arrow:hover{border-color:#8c89ef;color:var(--primary)}.thumbs{display:flex;gap:10px;margin:0;overflow-x:auto;scroll-behavior:smooth;padding:2px 1px 5px;scrollbar-width:thin}.thumbs .thumb{flex:0 0 112px;width:112px;height:76px;border:2px solid transparent;padding:0;border-radius:11px;overflow:hidden;background:#e5e7eb;cursor:pointer}.thumbs .thumb:hover,.thumbs .thumb.active{border-color:var(--primary);box-shadow:0 0 0 2px rgba(91,92,226,.12)}.thumbs .thumb img{width:100%;height:100%;object-fit:cover;display:block}
.lightbox{position:fixed;inset:0;background:rgba(4,8,14,.96);z-index:1000;display:none;align-items:center;justify-content:center;padding:24px}.lightbox.open{display:flex}.lightbox img{max-width:calc(100vw - 150px);max-height:calc(100vh - 70px);object-fit:contain}.lightbox-close{position:absolute;right:22px;top:16px;border:0;background:rgba(255,255,255,.12);color:#fff;width:46px;height:46px;border-radius:50%;font-size:32px;line-height:1;cursor:pointer}.lightbox-arrow{position:absolute;top:50%;transform:translateY(-50%);width:54px;height:74px;border:0;border-radius:12px;background:rgba(255,255,255,.12);color:#fff;font-size:45px;cursor:pointer}.lightbox-arrow.left{left:22px}.lightbox-arrow.right{right:22px}.lightbox-counter{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);background:rgba(255,255,255,.12);color:#fff;padding:7px 12px;border-radius:999px;font-size:12px}.no-photo{background:#eef1f5}

.condition-list{display:flex;flex-direction:column;gap:8px}.condition-list>div{display:flex;gap:9px;align-items:flex-start;padding:9px 11px;background:#f8fafc;border-radius:9px}.condition-list span{color:var(--primary);font-weight:800}.condition-list p{margin:0;color:#4b5563;font-size:13px;line-height:1.55}.detail-pending{font-size:13px;padding:12px 14px;background:#f8fafc;border-radius:10px}.option-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.option-grid span{line-height:1.45}.spec-grid strong{max-width:60%;text-align:right;overflow-wrap:anywhere}

@media(max-width:1100px){.company-brand{width:164px}.option-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){.gallery-main{height:min(68vh,620px);min-height:420px}.company-brand{width:155px;height:58px}.nav-wrap{height:68px}}
@media(max-width:620px){.company-brand{width:120px;height:52px}.nav-wrap{height:62px}.gallery-main{height:58vh;min-height:330px;border-radius:14px}.gallery-controls{grid-template-columns:38px minmax(0,1fr) 38px}.gallery-arrow{height:68px}.thumbs .thumb{flex-basis:96px;width:96px;height:66px}.lightbox{padding:10px}.lightbox img{max-width:100vw;max-height:calc(100vh - 80px)}.lightbox-arrow{width:42px;height:60px}.lightbox-arrow.left{left:8px}.lightbox-arrow.right{right:8px}.footer-row{align-items:flex-start;flex-direction:column}.option-grid{grid-template-columns:1fr}}

/* v6.1 — compact header branding + comfortable in-page gallery */
.topbar{overflow:hidden}
.nav-wrap{height:66px;min-height:66px}
.company-brand{
  width:188px !important;
  height:54px !important;
  max-width:188px;
  max-height:54px;
  overflow:hidden;
  border-radius:7px;
  flex:0 0 188px !important;
  background:#101720;
}
.company-brand img{
  display:block !important;
  width:188px !important;
  height:54px !important;
  max-width:188px !important;
  max-height:54px !important;
  object-fit:cover !important;
  object-position:center center !important;
}

/* Full image stays visible, but the normal page view no longer fills the screen. */
.gallery-main{
  height:clamp(380px,42vw,560px) !important;
  min-height:380px !important;
  max-height:60vh !important;
  background:#11161d;
}
.gallery-main img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
}
.gallery-controls{margin-top:12px}
.thumbs .thumb{flex:0 0 120px;width:120px;height:80px}
.sticky-side{top:82px}

@media(max-width:1100px){
  .company-brand{width:170px !important;max-width:170px;flex-basis:170px !important}
  .company-brand img{width:170px !important;max-width:170px !important}
  .gallery-main{height:clamp(360px,48vw,520px) !important;min-height:360px !important;max-height:58vh !important}
}
@media(max-width:900px){
  .company-brand{width:158px !important;height:50px !important;max-width:158px;max-height:50px;flex-basis:158px !important}
  .company-brand img{width:158px !important;height:50px !important;max-width:158px !important;max-height:50px !important}
  .nav-wrap{height:62px;min-height:62px}
  .gallery-main{height:clamp(340px,60vw,500px) !important;min-height:340px !important;max-height:56vh !important}
}
@media(max-width:620px){
  .company-brand{width:132px !important;height:44px !important;max-width:132px;max-height:44px;flex-basis:132px !important}
  .company-brand img{width:132px !important;height:44px !important;max-width:132px !important;max-height:44px !important}
  .nav-wrap{height:58px;min-height:58px}
  .gallery-main{height:360px !important;min-height:300px !important;max-height:52vh !important}
  .thumbs .thumb{flex-basis:104px;width:104px;height:70px}
}


/* Lotte Auction Mirror v1 */
:root{
  --primary:#e51b23;
  --primary2:#ff4a4f;
  --lotte:#e51b23;
  --lotte-dark:#15191f;
}
body{background:#f5f6f8}
.topbar{background:#fff!important;border-bottom:1px solid #e5e7eb;box-shadow:0 2px 12px rgba(16,24,40,.04)}
.topbar nav a{color:#20242a!important}
.topbar nav a:hover{color:var(--lotte)!important}
.account .link-button,.user-chip{color:#333!important}
.company-brand{background:#111821!important}
.footer{background:#fff;border-top:1px solid #e5e7eb}
.lotte-hero{
  margin:8px 0 26px;
  min-height:330px;
  border-radius:24px;
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(0,1.65fr) minmax(300px,.65fr);
  background:
    radial-gradient(circle at 78% 28%,rgba(255,255,255,.16),transparent 19%),
    linear-gradient(120deg,#111820 0%,#1c252e 50%,#cf151d 150%);
  color:#fff;
  box-shadow:0 20px 60px rgba(16,24,40,.12);
}
.lotte-hero-copy{padding:54px 58px;align-self:center}
.lotte-source{display:inline-flex;align-items:center;gap:8px;color:#ffb0b3;font-weight:800;font-size:12px;letter-spacing:.13em}
.lotte-source:before{content:"";width:30px;height:3px;background:#f3272f;border-radius:99px}
.lotte-hero h1{font-size:46px;line-height:1.05;margin:14px 0 14px;max-width:740px}
.lotte-hero p{max-width:720px;color:#d8dde4;font-size:16px;line-height:1.7}
.hero-actions{display:flex;gap:10px;margin-top:24px}
.btn-lotte{background:linear-gradient(135deg,#e51b23,#ff4148);color:#fff;border:none}
.btn-lotte:hover{filter:brightness(.96)}
.lotte-hero-stat{margin:28px;background:rgba(255,255,255,.96);color:#161b22;border-radius:20px;padding:28px;align-self:center;box-shadow:0 18px 38px rgba(0,0,0,.17)}
.lotte-hero-stat>span{color:#777;font-size:12px;text-transform:uppercase;letter-spacing:.12em}
.lotte-hero-stat>strong{display:block;font-size:25px;margin:6px 0 22px}
.lotte-hero-stat>div{display:flex;align-items:center;gap:9px;color:#505761;font-size:13px;border-top:1px solid #eee;padding-top:18px}
.demo-dot{background:#f59e0b!important}
.catalog-section{scroll-margin-top:85px}
.section-title-row{display:flex;justify-content:space-between;gap:20px;align-items:end;margin:0 0 14px}
.section-title-row h2{margin:4px 0 0;font-size:29px}
.lotte-filter{border-top:3px solid var(--lotte)}
.lotte-notice{border-left:4px solid var(--lotte)}
.lotte-pill{background:rgba(229,27,35,.94)!important}
.lotte-card{transition:transform .18s ease,box-shadow .18s ease}
.lotte-card:hover{transform:translateY(-3px);box-shadow:0 14px 32px rgba(16,24,40,.11)}
.lotte-text{color:var(--lotte)!important}
.page-btn.active{background:linear-gradient(135deg,#e51b23,#ff4148)}
.heart.active{color:var(--lotte)}
@media(max-width:900px){
  .lotte-hero{grid-template-columns:1fr}
  .lotte-hero-copy{padding:38px 30px 20px}
  .lotte-hero-stat{margin:10px 30px 30px}
  .lotte-hero h1{font-size:38px}
  .section-title-row{align-items:flex-start;flex-direction:column}
}
@media(max-width:620px){
  .lotte-hero{border-radius:18px}
  .lotte-hero-copy{padding:30px 22px 16px}
  .lotte-hero-stat{margin:10px 22px 22px;padding:22px}
  .lotte-hero h1{font-size:31px}
  .hero-actions{flex-direction:column}
}

.admin-user-form{display:grid;grid-template-columns:minmax(160px,1fr) minmax(190px,1fr) auto auto;gap:10px;align-items:center}
.admin-user-form input[type=text],.admin-user-form input[type=password],.admin-user-form input:not([type]){width:100%}
@media(max-width:850px){.admin-user-form{grid-template-columns:1fr}}
