:root {
  --navy: #1e2761;
  --navy-dark: #12183e;
  --orange: #f4a261;
  --ice: #cadcfc;
  --ink: #182033;
  --muted: #64748b;
  --line: #e2e8f0;
  --paper: #f8fafc;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, "Malgun Gothic", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.site-header { height: 72px; display: flex; align-items: center; gap: 40px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); background: white; border-bottom: 1px solid var(--line); }
.brand { color: var(--navy); font-size: 23px; font-weight: 900; letter-spacing: -1px; }
.site-header nav { display: flex; gap: 28px; font-size: 14px; font-weight: 700; flex: 1; }
.login-button, .search-box button, .consult-card button { border: 0; border-radius: 10px; background: var(--navy); color: white; padding: 11px 18px; font-weight: 800; cursor: pointer; }
.hero { min-height: 390px; background: linear-gradient(120deg, var(--navy-dark), var(--navy) 60%, #40518f); color: white; display: flex; justify-content: space-between; align-items: center; gap: 40px; padding: 64px max(24px, calc((100vw - 1180px) / 2)) 92px; }
.hero-copy { max-width: 720px; }
.hero h1 { margin: 12px 0 20px; font-size: clamp(42px, 5vw, 66px); line-height: 1.12; letter-spacing: -3px; }
.hero p { max-width: 650px; color: var(--ice); font-size: 18px; line-height: 1.7; }
.eyebrow { color: var(--navy); font-size: 12px; font-weight: 900; letter-spacing: 1.5px; }
.eyebrow.light { color: var(--orange); }
.hero-stat { min-width: 250px; padding: 28px; border: 1px solid rgba(255,255,255,.18); border-radius: 20px; background: rgba(255,255,255,.08); backdrop-filter: blur(10px); }
.hero-stat span, .hero-stat small { display: block; color: var(--ice); }
.hero-stat strong { display: block; color: var(--orange); font-size: 68px; margin: 8px 0; }
.content-shell { max-width: 1180px; margin: -38px auto 80px; padding: 0 24px; position: relative; }
.search-box { display: flex; background: white; padding: 14px; border-radius: 16px; box-shadow: 0 15px 45px rgba(15,23,42,.13); }
.search-box input { flex: 1; min-width: 0; padding: 14px; border: 0; outline: 0; font-size: 16px; }
.search-box button { background: var(--orange); }
.filter-row { display: flex; gap: 8px; margin: 22px 0 38px; overflow-x: auto; }
.chip { white-space: nowrap; padding: 9px 15px; border: 1px solid var(--line); border-radius: 20px; background: white; cursor: pointer; }
.chip.active { color: white; background: var(--navy); border-color: var(--navy); }
.result-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 18px; }
.result-heading h2, .trust-panel h2 { margin: 7px 0 0; font-size: 30px; }
.result-heading > strong { color: var(--navy); }
.auction-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.auction-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: white; transition: transform .18s, box-shadow .18s; }
.auction-card:hover { transform: translateY(-4px); box-shadow: 0 18px 35px rgba(15,23,42,.1); }
.card-visual { height: 150px; padding: 18px; display: flex; justify-content: space-between; align-items: flex-start; color: white; background: linear-gradient(135deg, #34458a, var(--navy)); }
.card-visual span, .card-visual b { padding: 6px 9px; border-radius: 7px; background: rgba(0,0,0,.35); font-size: 12px; }
.card-body { padding: 18px; }
.signal { display: inline-flex; padding: 5px 9px; border-radius: 6px; font-size: 11px; font-weight: 900; }
.signal.stable { background: #ecfdf5; color: #047857; }
.signal.review { background: #fffbeb; color: #b45309; }
.signal.expert { background: #fef2f2; color: #b91c1c; }
.card-body h3 { margin: 13px 0 5px; font-size: 18px; }
.card-body p { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.price-row { display: flex; align-items: baseline; gap: 8px; }
.price-row strong { color: var(--navy); font-size: 22px; }
.price-row span { color: #94a3b8; font-size: 11px; }
.card-meta { display: flex; justify-content: space-between; margin-top: 17px; padding-top: 13px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.card-meta b { color: #dc2626; }
.trust-panel { margin-top: 70px; padding: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; background: #eaf1ff; border-radius: 20px; }
.trust-panel p { margin: 0; color: #475569; line-height: 1.8; }
.detail-shell { max-width: 1180px; margin: 0 auto; padding: 40px 24px 90px; }
.back-link { display: inline-block; margin-bottom: 20px; color: var(--muted); font-weight: 700; }
.detail-hero { min-height: 260px; display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 42px; border-radius: 24px; color: white; background: linear-gradient(130deg, var(--navy-dark), #3e4f8a); }
.detail-hero h1 { margin: 12px 0; font-size: 42px; }
.detail-hero p { color: var(--ice); }
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; margin-top: 24px; }
.detail-main, .consult-card { padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.detail-main h2 { margin: 4px 0 20px; }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 40px; }
.metric-grid div { padding: 18px; border-radius: 12px; background: var(--paper); }
.metric-grid span, .metric-grid strong { display: block; }
.metric-grid span { color: var(--muted); font-size: 12px; margin-bottom: 7px; }
.reason-list { padding: 0; list-style: none; }
.reason-list li { margin: 9px 0; padding: 13px 15px; border-radius: 10px; background: #f1f5f9; }
.source-note { margin-top: 28px; padding: 18px; border-left: 4px solid var(--orange); background: #fffaf4; font-size: 12px; }
.source-note span { margin-left: 12px; color: var(--muted); }
.source-note p { margin-bottom: 0; color: var(--muted); }
.consult-card { align-self: start; position: sticky; top: 24px; }
.consult-card > span { color: var(--orange); font-weight: 800; font-size: 12px; }
.consult-card p { color: var(--muted); line-height: 1.6; }
.consult-card button { width: 100%; margin-top: 10px; padding: 14px; background: var(--orange); }
.favorite-button { margin: 0 0 22px !important; color: var(--navy) !important; background: white !important; border: 1px solid var(--line) !important; width: 100%; height: 44px; font-weight: 800; border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.favorite-button.active { color: #b91c1c !important; background: #fef2f2 !important; border-color: #fecaca !important; }
.simple-shell { max-width: 960px; min-height: 70vh; margin: 0 auto; padding: 64px 24px 100px; }
.simple-shell h1 { margin: 10px 0 34px; font-size: 42px; }
.empty-state { padding: 48px; color: var(--muted); text-align: center; border: 1px dashed #cbd5e1; border-radius: 16px; background: white; }
.favorite-list { display: grid; gap: 12px; }
.favorite-list a { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.favorite-list div span { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; }
.favorite-list > a > strong { color: var(--navy); }
.page-description { max-width: 650px; margin-top: -20px; color: var(--muted); line-height: 1.7; }
.consult-form { display: grid; gap: 12px; margin-top: 18px; }
.consult-form label { display: grid; gap: 6px; color: #475569; font-size: 11px; font-weight: 800; }
.consult-form input, .consult-form select, .consult-form textarea { width: 100%; padding: 10px; border: 1px solid #cbd5e1; border-radius: 8px; background: white; resize: vertical; }
.consult-form .consent-check { display: flex; gap: 8px; align-items: start; font-weight: 500; line-height: 1.45; }
.consult-form .consent-check input { width: auto; margin-top: 2px; }
.consult-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
.consult-success { display: grid; gap: 6px; margin-top: 18px; padding: 16px; color: #047857; border-radius: 10px; background: #ecfdf5; }
.consult-success span { color: #475569; font-size: 11px; }
footer { padding: 30px; color: #94a3b8; text-align: center; background: var(--navy-dark); font-size: 12px; }

@media (max-width: 850px) {
  .site-header nav { display: none; }
  .hero { align-items: flex-start; flex-direction: column; padding-top: 48px; }
  .hero h1 { letter-spacing: -2px; }
  .hero-stat { width: 100%; }
  .auction-grid { grid-template-columns: 1fr; }
  .trust-panel, .detail-grid { grid-template-columns: 1fr; }
  .detail-hero { align-items: flex-start; flex-direction: column; }
  .detail-hero h1 { font-size: 34px; }
  .consult-card { position: static; }
}
