:root {
  --ink: #16202c; --muted: #5b6676; --line: #e3e7ec; --brand: #0b4f8a; --brand-dark: #083a66;
  --bg: #f6f8fa; --free: #0f7b4b; --radius: 8px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, "Noto Sans KR", sans-serif;
  color: var(--ink); background: #fff; line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere; }
a { color: var(--brand); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; padding-top: 48px; padding-bottom: 80px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }

/* 머리글: eurastech.com 메인과 같은 메뉴 (config/nav.py) */
:root { --eu-accent: #32c5d2; --eu-nav: #3a3f45; --eu-sub-bg: #2c3137; --eu-sub: #aab3bd; }
.eu-topbar { border-bottom: 1px solid #eef1f4; font-size: 14px; }
.eu-topbar-in { display: flex; justify-content: space-between; align-items: center; height: 44px; }
.eu-social { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0; }
.ico { display: block; width: 16px; height: 16px; background: #8a96a3; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.ico:hover { background: var(--eu-accent); }
.ico-tw { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M23 5.1c-.8.4-1.7.6-2.6.7a4.5 4.5 0 0 0 2-2.5c-.9.5-1.9.9-2.9 1.1A4.5 4.5 0 0 0 11.8 8.5 12.8 12.8 0 0 1 2.5 3.8a4.5 4.5 0 0 0 1.4 6 4.5 4.5 0 0 1-2-.6v.1a4.5 4.5 0 0 0 3.6 4.4 4.5 4.5 0 0 1-2 .1 4.5 4.5 0 0 0 4.2 3.1A9 9 0 0 1 1 18.8 12.7 12.7 0 0 0 7.9 21c8.3 0 12.8-6.9 12.8-12.8v-.6c.9-.6 1.7-1.4 2.3-2.5z'/></svg>"); }
.ico-fb { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M14 8h3V4h-3c-2.8 0-4 1.7-4 4.3V10H7v4h3v10h4V14h3l1-4h-4V8.6c0-.4.3-.6 1-.6z'/></svg>"); }
.ico-yt { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M23 7.2a3 3 0 0 0-2.1-2.1C19 4.6 12 4.6 12 4.6s-7 0-8.9.5A3 3 0 0 0 1 7.2 31 31 0 0 0 .5 12a31 31 0 0 0 .5 4.8 3 3 0 0 0 2.1 2.1c1.9.5 8.9.5 8.9.5s7 0 8.9-.5a3 3 0 0 0 2.1-2.1 31 31 0 0 0 .5-4.8 31 31 0 0 0-.5-4.8zM9.7 15.1V8.9l5.8 3.1z'/></svg>"); }
.ico-vk { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M2 7h3.3c.2 2.6 1.9 5.6 3.5 6V7h3v3.6c1.5-.2 3-1.9 3.6-3.6h3c-.5 2.3-2.2 4-3.4 4.7 1.2.6 3.2 2.1 3.9 5.3h-3.3c-.6-1.9-2.1-3.3-3.8-3.5V17h-.4C6.2 17 2.6 13.3 2 7z'/></svg>"); }
.eu-util { display: flex; align-items: center; gap: 4px; }
.eu-util > a { color: #7d8691; text-decoration: none; padding: 0 10px; border-left: 1px solid #d5dbe1; line-height: 1; }
.eu-util > a:last-of-type { border-right: 1px solid #d5dbe1; }
.eu-util > a:hover { color: var(--eu-accent); }
.eu-lang { position: relative; margin-left: 14px; }
.eu-lang button { font: inherit; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #7d8691; background: #f2f4f6; border: 0; padding: 7px 10px; cursor: pointer; }
.eu-lang ul { display: none; position: absolute; right: 0; top: 100%; list-style: none; margin: 0; padding: 6px 0; background: var(--eu-sub-bg); min-width: 130px; z-index: 30; }
.eu-lang:hover ul, .eu-lang:focus-within ul { display: block; }
.eu-lang a { display: block; padding: 7px 16px; color: var(--eu-sub); text-decoration: none; font-size: 13px; }
.eu-lang a:hover { color: #fff; }
.eu-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.eu-header-in { display: flex; align-items: center; justify-content: space-between; height: 100px; }
.eu-logo img { height: 70px; width: auto; display: block; }
.eu-nav > ul { display: flex; list-style: none; margin: 0; padding: 0; }
.eu-nav > ul > li { position: relative; }
.eu-nav > ul > li > a { display: block; padding: 38px 15px; color: var(--eu-nav); text-decoration: none; text-transform: uppercase; font-size: 15px; font-weight: 700; letter-spacing: .04em; }
.eu-nav > ul > li:hover > a, .eu-nav > ul > li:focus-within > a, .eu-nav > ul > li.on > a { color: var(--eu-accent); }
.eu-nav li ul { display: none; position: absolute; left: 0; top: 100%; min-width: 230px; list-style: none; margin: 0; padding: 8px 0; background: var(--eu-sub-bg); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.eu-nav > ul > li:last-child ul, .eu-nav > ul > li:nth-last-child(2) ul { left: auto; right: 0; }
.eu-nav li:hover > ul, .eu-nav li:focus-within > ul { display: block; }
.eu-nav li ul a { display: block; padding: 9px 24px; color: var(--eu-sub); text-decoration: none; font-size: 14px; }
.eu-nav li ul a:hover, .eu-nav li ul a.on { color: #fff; }
.eu-nav li ul a.on { font-weight: 700; box-shadow: inset 3px 0 0 var(--eu-accent); }
.eu-toggle, .eu-burger { display: none; }
.dm-bar { background: var(--brand); color: #fff; }
.dm-bar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.dm-title { color: #fff; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.search { display: flex; flex: 1; max-width: 520px; }
.search input { flex: 1; min-width: 0; border: 0; border-radius: var(--radius) 0 0 var(--radius); padding: 11px 14px; font: inherit; font-size: 15px; }
.search button { border: 0; border-radius: 0 var(--radius) var(--radius) 0; padding: 0 18px; background: var(--brand-dark); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }

/* 첫 화면 */
.hero { padding: 56px 0 28px; }
.eyebrow { font-size: 13px; color: var(--brand); font-weight: 700; letter-spacing: .06em; margin: 0; }
.hero h1 { font-size: 38px; line-height: 1.28; letter-spacing: -.025em; margin: 10px 0 12px; }
.lead { font-size: 17px; color: var(--muted); max-width: 720px; margin: 0; }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 32px 0 8px; }
.cat-block.wide { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cat-block.wide .cat-head { flex: 0 1 auto; min-width: 0; gap: 16px; }
.cat-head span { min-width: 0; }
.cat-block.wide .chips { margin: 0; }
.cat-block { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.cat-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 18px; }
.cat-head em { font-style: normal; color: var(--brand); font-size: 14px; white-space: nowrap; }
.cat-head:hover span { color: var(--brand); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.chips a { text-decoration: none; font-size: 14px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.chips a:hover { border-color: var(--brand); color: var(--brand); }
.section { margin: 48px 0; }
.section h2, .ask h2 { font-size: 22px; letter-spacing: -.015em; margin: 0 0 18px; }
.ask { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: var(--bg); border-radius: var(--radius); padding: 28px; margin: 48px 0 72px; }
.ask p { margin: 0; color: var(--muted); }
.btn { display: inline-block; background: var(--brand); color: #fff; text-decoration: none; font-weight: 600; padding: 11px 18px; border-radius: 6px; white-space: nowrap; }
.btn:hover { background: var(--brand-dark); }

/* 카드 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--brand); transform: translateY(-2px); }
.thumb { aspect-ratio: 4 / 3; background: var(--bg); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb span { color: var(--muted); font-weight: 600; padding: 12px; text-align: center; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.kicker { font-size: 13px; color: var(--brand); font-weight: 600; }
.card h3 { font-size: 15.5px; line-height: 1.45; margin: 0; font-weight: 600; flex: 1; }
.free { display: inline-block; font-size: 12px; font-weight: 700; color: var(--free); background: #e8f5ee; border-radius: 4px; padding: 2px 8px; }
.free.big { font-size: 14px; padding: 4px 10px; }

/* 목록 */
.layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding-top: 32px; padding-bottom: 72px; }
.tree h2 { font-size: 15px; color: var(--muted); margin: 0 0 10px; }
.tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul ul { padding-left: 14px; border-left: 1px solid var(--line); margin: 2px 0 6px 6px; }
.tree a { display: flex; justify-content: space-between; gap: 8px; text-decoration: none; color: var(--ink); font-size: 14.5px; padding: 5px 8px; border-radius: 6px; }
.tree a em { font-style: normal; color: var(--muted); font-size: 13px; }
.tree a:hover, .tree a.on { background: var(--bg); color: var(--brand); }
.tree a.on { font-weight: 700; }
.crumbs { font-size: 14px; color: var(--muted); margin: 24px 0 6px; }
.layout .crumbs { margin-top: 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.page-title { font-size: 28px; letter-spacing: -.02em; margin: 6px 0 14px; }
.page-title small { font-size: 15px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.main .chips { margin-bottom: 24px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 36px 0 0; }
.pager a { text-decoration: none; border: 1px solid var(--line); border-radius: 6px; padding: 8px 14px; }
.empty { padding: 40px 0; color: var(--muted); }

/* 상세 */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; margin: 16px 0 40px; }
.main-img { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.main-img.placeholder { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 600; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 10px; }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); border-radius: 6px; }
.info h1 { font-size: 30px; line-height: 1.32; letter-spacing: -.02em; margin: 6px 0 12px; }
.badge-row { margin: 0 0 16px; }
.files { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.files h2 { font-size: 17px; margin: 0 0 10px; }
.files ul { list-style: none; margin: 0; padding: 0; }
.files li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.files li strong { display: block; font-size: 15px; font-weight: 600; }
.files li .muted { font-size: 13px; }
.desc { border-top: 1px solid var(--line); padding-top: 28px; margin-bottom: 24px; max-width: 860px; }
.desc h2 { font-size: 22px; margin: 0 0 14px; }
.prose { font-size: 16px; }
.prose img { border-radius: 6px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 6px 10px; }

/* 바닥글 */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px 24px; font-size: 14px; }

@media (max-width: 1000px) {
  .eu-topbar { display: none; }
  .eu-header-in { height: 72px; }
  .eu-logo img { height: 48px; }
  .eu-burger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; }
  .eu-burger span { width: 24px; height: 2px; background: var(--eu-nav); }
  .eu-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--eu-sub-bg); max-height: calc(100vh - 72px); overflow-y: auto; }
  .eu-toggle:checked ~ .eu-nav { display: block; }
  .eu-nav > ul { flex-direction: column; padding: 8px 0 16px; }
  .eu-nav > ul > li > a { padding: 12px 24px; color: #fff; }
  .eu-nav li ul { display: block; position: static; box-shadow: none; padding: 0 0 6px; min-width: 0; }
  .eu-nav li ul a { padding: 7px 40px; }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 20px; }
  .tree { order: 2; }
  .product { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 28px; }
  .info h1 { font-size: 24px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cats { grid-template-columns: 1fr; }
  .files li { flex-direction: column; align-items: flex-start; }
}
