/* 4 colours only: black, dark grey, red, white */
:root{--bg:#0B0B0B;--panel:#1C1C1C;--red:#E8121C;--white:#FFFFFF;--pad:72px;--sec:88px}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:72px}
body{margin:0;background:var(--bg);color:var(--white);font-family:'Noto Sans KR',sans-serif;line-height:1.7;word-break:keep-all;font-size:18px}
html[lang=zh] body{font-family:'Noto Sans SC',sans-serif;word-break:normal}
a{color:var(--white);text-decoration:none}
a:hover{color:var(--red)}
img{display:block;max-width:100%}
button,input,select,textarea{font:inherit}
:focus-visible{outline:3px solid var(--white);outline-offset:2px}
.en{font-family:Montserrat,'Noto Sans KR','Noto Sans SC',sans-serif}
b{font-weight:900}
.red{color:var(--red)}

/* header */
header{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:8px 24px;padding:12px var(--pad);background:var(--bg);border-bottom:1px solid var(--panel)}
.logo{font-family:Montserrat,sans-serif;font-weight:900;font-size:20px;letter-spacing:.02em;white-space:nowrap}
.logo span{color:var(--red)}
nav.main{display:flex;gap:32px;font-weight:700;font-size:16px}
nav.main a,.menu a{display:inline-flex;align-items:center;min-height:44px}
.on{text-decoration:underline;text-decoration-color:var(--red);text-decoration-thickness:3px;text-underline-offset:6px}
.right{display:flex;align-items:center;gap:12px}
.langs{display:flex;border:1px solid var(--white);border-radius:4px;overflow:hidden}
.langs a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;background:var(--bg);color:var(--white);font-weight:700;font-size:13px}
.langs a[aria-current=true]{background:var(--white);color:var(--bg)}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 24px;border:2px solid var(--white);border-radius:4px;background:none;color:var(--white);font-weight:900;font-size:17px;cursor:pointer;text-align:center}
.btn.primary{background:var(--red);border-color:var(--red)}
.btn.primary:hover{color:var(--white);background:#000;border-color:var(--red)}
.btn.small{min-height:44px;padding:0 16px;font-size:15px;font-weight:700}
.burger{display:none;width:44px;height:44px;align-items:center;justify-content:center;padding:0;border:1px solid var(--white);border-radius:4px;background:var(--bg);color:var(--white);cursor:pointer}
.menu{display:none;position:sticky;top:69px;z-index:19;background:var(--panel);padding:8px 20px 20px;flex-direction:column}
.menu a{min-height:52px;border-bottom:1px solid var(--bg);font-weight:700;font-size:18px}
.menu .langs{align-self:flex-start;margin-top:16px}

/* sections */
section{padding:var(--sec) var(--pad)}
.alt{background:var(--panel)}
h1,h2,h3{margin:0;line-height:1.1}
h2{font-family:Montserrat,'Noto Sans KR','Noto Sans SC',sans-serif;font-weight:900;font-size:52px}
h2 small{font-family:'Noto Sans KR','Noto Sans SC',sans-serif;font-size:.6em}
.split{display:flex;flex-wrap:wrap;gap:40px 64px;align-items:flex-start}
.split>.l{flex:1 1 300px}
.split>.r{flex:2 1 420px;min-width:0;display:flex;flex-direction:column;gap:16px}
.split p{margin:0}
.lead{font-size:24px;font-weight:900}

/* hero */
.hero{position:relative;min-height:640px;padding:0;display:flex;align-items:center;overflow:hidden}
.hero img{position:absolute;right:0;top:0;width:58%;height:100%;object-fit:cover;object-position:50% 57%;-webkit-mask-image:linear-gradient(to right,transparent,#000 35%);mask-image:linear-gradient(to right,transparent,#000 35%)}
.hero .txt{position:relative;padding:72px var(--pad);display:flex;flex-direction:column;gap:16px;max-width:820px}
.hero .eyebrow{font-weight:700;font-size:24px}
.hero h1{font-family:Montserrat,sans-serif;font-weight:900;font-size:88px;line-height:1.02;letter-spacing:-.01em}
.hero .tag{font-family:Montserrat,sans-serif;font-weight:800;font-size:28px;color:var(--red)}
.row{display:flex;flex-wrap:wrap;gap:12px}

.pillars{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:2px;background:var(--panel);padding:2px 0}
.pillars div{background:var(--bg);padding:32px 20px;display:flex;align-items:center;justify-content:center;gap:12px;font-family:Montserrat,sans-serif;font-weight:900;font-size:26px}

/* cards */
.head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:28px}
.more{display:inline-flex;align-items:center;min-height:44px;font-weight:900;font-size:16px;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:20px}
.card{display:block;background:var(--bg);border-radius:8px;overflow:hidden}
.page .card{background:var(--panel)}
.card .ph{position:relative;aspect-ratio:4/3;background:var(--panel)}
.card .ph img{width:100%;height:100%;object-fit:cover}
.card.sold .ph img{opacity:.6}
.badge{position:absolute;left:12px;top:12px;background:var(--bg);color:var(--white);padding:2px 8px;border-radius:4px;font-size:12px;font-weight:900}
.card.sold .badge{background:var(--white);color:var(--bg)}
.card .info{padding:16px 20px 20px}
.card .name{font-size:18px;font-weight:700;line-height:1.4}
.card .km{font-size:15px;margin-top:4px}
.price{font-family:Montserrat,sans-serif;font-weight:900;color:var(--red);font-size:26px;margin-top:8px}
.fee{font-size:14px}

/* forms */
form.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}
label{display:flex;flex-direction:column;gap:8px;font-size:15px;font-weight:700}
input,select,textarea{min-height:52px;padding:0 16px;border-radius:4px;border:1px solid var(--white);background:var(--panel);color:var(--white);font-size:17px;font-weight:400}
.alt input,.alt select,.alt textarea{background:var(--bg)}
textarea{padding:12px 16px}
.full{grid-column:1/-1}
.hp{position:absolute;left:-9999px}
.status{margin:0;font-weight:700}
.note{font-size:14px}

/* about + map */
.contacts{display:flex;flex-direction:column;gap:12px;font-size:17px}
.contacts>*{display:flex;align-items:center;gap:12px}
.mailbtn{min-height:44px;padding:0;border:0;background:none;color:var(--white);font-size:17px;cursor:pointer;text-decoration:underline;text-underline-offset:4px}
.warn{max-width:760px;border:2px solid var(--red);border-radius:8px;padding:16px 20px;font-weight:700}
.map{flex:2 1 420px;min-height:380px;border:0;border-radius:8px;background:var(--panel);width:100%}
.visit .l{display:flex;flex-direction:column;gap:16px}

/* inventory page */
.tools{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:24px}
.tabs{display:flex;border:1px solid var(--white);border-radius:4px;overflow:hidden}
.tabs button{min-height:44px;padding:0 16px;border:0;background:var(--bg);color:var(--white);font-weight:700;font-size:15px;cursor:pointer}
.tabs button[aria-pressed=true]{background:var(--white);color:var(--bg)}
.tools input[type=search]{flex:1 1 220px;min-height:44px}
.tools select{min-height:44px;padding:0 12px}
.svc{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-top:40px}.svc article{background:var(--panel);border-top:3px solid var(--red);padding:28px 24px}.svc .n{font-family:Montserrat,sans-serif;font-weight:900;color:var(--red);font-size:15px}.svc h2{font-size:26px;margin:8px 0 12px}.svc p{margin:0;line-height:1.7}@media(max-width:860px){.svc{grid-template-columns:1fr}}
.pageh{font-family:Montserrat,sans-serif;font-weight:900;font-size:52px;margin-bottom:20px}
.pageh small{font-family:'Noto Sans KR','Noto Sans SC',sans-serif;font-size:.55em}

/* car detail */
.back{display:inline-flex;align-items:center;min-height:44px;font-weight:700;font-size:16px}
.detail{display:flex;flex-wrap:wrap;gap:32px 48px;margin-top:12px}
.detail .gal{flex:3 1 520px;min-width:0}
.detail .side{flex:2 1 360px;min-width:0;display:flex;flex-direction:column;gap:24px}
.bigphoto{position:relative;aspect-ratio:4/3;background:var(--panel);border-radius:8px;overflow:hidden}
.bigphoto img{width:100%;height:100%;object-fit:contain;background:#000}
.counter{position:absolute;right:16px;bottom:16px;background:var(--bg);padding:4px 12px;border-radius:4px;font-size:14px;font-weight:700}
.thumbs{display:flex;gap:8px;overflow-x:auto;margin-top:8px;padding-bottom:4px}
.thumbs button{flex:0 0 96px;height:72px;padding:0;border:1px solid var(--panel);border-radius:4px;background:var(--panel);overflow:hidden;cursor:pointer}
.thumbs button[aria-current=true]{border:3px solid var(--red)}
.thumbs img{width:100%;height:100%;object-fit:cover}
.forsale{display:inline-block;background:var(--panel);padding:2px 8px;border-radius:4px;font-size:13px;font-weight:900;font-family:Montserrat,sans-serif}
.side h1{margin-top:12px;font-family:Montserrat,sans-serif;font-weight:900;font-size:40px;line-height:1.15}
.pricebox{border-top:1px solid var(--panel);border-bottom:1px solid var(--panel);padding:16px 0}
.pricebox .price{font-size:56px;line-height:1.1;margin:0}
.pricebox .fee{font-size:16px;margin-top:8px}
.kmbox{display:flex;align-items:baseline;justify-content:space-between;gap:12px;background:var(--panel);border-radius:8px;padding:16px 20px}
.kmbox strong{font-family:Montserrat,sans-serif;font-size:24px;font-weight:900}
.ids{font-size:15px;text-align:center}
.lines{max-width:800px;font-size:20px;line-height:1.6}
.lines div{padding:12px 0;border-bottom:1px solid var(--panel)}
ol.steps{padding-left:24px;max-width:760px}
ol.steps li{margin-bottom:20px}

footer{padding:28px var(--pad);border-top:1px solid var(--panel);display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;font-size:14px}
footer nav{display:flex;flex-wrap:wrap;gap:4px 20px}
footer a{display:inline-flex;align-items:center;min-height:44px}
.bar{display:none}

@media (max-width:860px){
 :root{--pad:20px;--sec:48px}
 body{font-size:17px;padding-bottom:calc(76px + env(safe-area-inset-bottom))}
 nav.main,.right{display:none}
 .burger{display:flex}
 header.open+.menu{display:flex}
 h2,.pageh{font-size:34px}
 .lead{font-size:20px}
 .hero{min-height:620px;align-items:flex-end}
 .hero img{width:100%;height:58%;-webkit-mask-image:linear-gradient(to bottom,#000 65%,transparent);mask-image:linear-gradient(to bottom,#000 65%,transparent)}
 .hero .txt{padding:0 20px 36px}
 .hero .eyebrow{font-size:18px}
 .hero h1{font-size:44px}
 .hero .tag{font-size:20px}
 .pillars div{padding:20px;font-size:20px}
 .map{min-height:280px}
 .side h1{font-size:30px}
 .pricebox .price{font-size:44px}
 .lines{font-size:18px}
 .bar{display:flex;gap:8px;position:fixed;inset:auto 0 0;z-index:20;padding:8px 12px calc(8px + env(safe-area-inset-bottom));background:var(--bg);border-top:1px solid var(--panel)}
 .bar .btn{flex:1;min-height:52px}
 .bar .btn.primary{flex:2}
}
