/* 원진트랜스 — site styles */
:root {
  --navy-900: #0b1f44;
  --navy-800: #102a5c;
  --navy-700: #163a7d;
  --blue-600: #1d4fb3;
  --blue-50: #eef3fc;
  --accent: #f2a900;
  --accent-ink: #1b1400;
  --ink: #15192a;
  --ink-2: #454c63;
  --muted: #6b7288;
  --line: #e3e7ef;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 32, 70, .06), 0 8px 24px rgba(16, 32, 70, .06);
  --wrap: 1200px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px; line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.3; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
h2 { font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mt { margin-top: 40px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 10px; font-weight: 700; font-size: 16px;
  border: 2px solid transparent; cursor: pointer; text-decoration: none !important; transition: .15s ease;
  font-family: inherit; white-space: nowrap;
}
.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: var(--navy-700); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { filter: brightness(1.06); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--blue-600); color: var(--blue-600); }
.btn-ghost-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy-800); text-decoration: none !important; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%; background: var(--blue-600); color: #fff;
  display: grid; place-items: center; font-weight: 900; font-size: 22px; letter-spacing: -1px;
  box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--blue-600);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 21px; font-weight: 800; letter-spacing: -0.03em; }
.brand-text small { font-size: 10.5px; letter-spacing: .18em; color: var(--muted); font-weight: 600; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav > a, .has-mega > a {
  display: block; padding: 10px 14px; color: var(--ink); font-weight: 600; border-radius: 8px; text-decoration: none;
}
.site-nav > a:hover, .has-mega > a:hover { background: var(--bg-alt); }
.site-nav a[aria-current="page"] { color: var(--blue-600); }
.nav-tel { margin-left: 10px; background: var(--navy-800); color: #fff !important; }
.nav-tel:hover { background: var(--navy-700) !important; }
.has-mega { position: relative; }
.mega {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 12px; width: 560px; grid-template-columns: repeat(3, 1fr); gap: 2px;
}
.mega a { padding: 8px 12px; border-radius: 8px; color: var(--ink); font-size: 15px; }
.mega a:hover { background: var(--blue-50); color: var(--blue-600); text-decoration: none; }
.has-mega:hover .mega, .has-mega:focus-within .mega { display: grid; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* hero */
.hero { background: radial-gradient(1200px 500px at 80% 20%, #1c4594 0%, transparent 60%), var(--navy-900); color: #fff; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 88px 20px 96px; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); margin-bottom: 20px; }
.hero h1 span { color: var(--accent); }
.hero-lead { color: #c9d4ec; font-size: 18px; max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-plate {
  width: min(380px, 100%); aspect-ratio: 1 / 1.05; border-radius: 28px;
  background: linear-gradient(160deg, #ffffff 0%, #e8eef9 100%);
  display: grid; place-items: center; box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.hero-plate img { width: 70%; }
.hero-tag {
  position: absolute; bottom: 18px; left: 0; background: #fff; color: var(--ink); border-radius: 12px;
  padding: 12px 16px; box-shadow: var(--shadow); font-size: 15px; line-height: 1.4; border-left: 4px solid var(--accent);
}
.hero-tag small { color: var(--muted); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 10px; }
.eyebrow.light { color: var(--accent); }

/* stats */
.stats { background: var(--navy-800); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-grid > div { padding: 26px 20px; border-left: 1px solid rgba(255,255,255,.12); }
.stats-grid > div:first-child { border-left: 0; }
.stats b { display: block; font-size: 28px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.stats span { color: #aebbd8; font-size: 14px; }

/* sections */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; }
.link-more { font-weight: 700; white-space: nowrap; }
.lead { font-size: 18px; color: var(--ink-2); }
.two-col { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }

/* cards */
.grid { display: grid; gap: 20px; }
.cat-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.product-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; color: var(--ink); text-decoration: none !important; transition: .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfd8ea; }
.card-img { aspect-ratio: 4 / 3; background: #fff; display: grid; place-items: center; padding: 14px; border-bottom: 1px solid var(--line); }
.card-img, .gallery-main, .thumb { position: relative; overflow: hidden; }
.card-img img, .gallery-main img, .thumb img {
  position: absolute; inset: var(--pad, 14px); width: calc(100% - 2 * var(--pad, 14px)); height: calc(100% - 2 * var(--pad, 14px)); object-fit: contain;
}
.gallery-main { --pad: 20px; }
/* 원본이 작은 사진은 억지로 키우지 않음 (키우면 흐려짐) */
.gallery-main img { object-fit: scale-down; }
.thumb { --pad: 4px; }
.card-body { padding: 16px 18px 18px; }
.card-body h3 { font-size: 17px; margin-bottom: 6px; }
.card-body p { color: var(--muted); font-size: 14.5px; margin-bottom: 10px; }
.product-card .card-body h3 { font-size: 15.5px; font-weight: 600; margin: 0; }
.count { font-size: 14px; font-weight: 700; color: var(--blue-600); }

/* feature list */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feature-list li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 4px; }
.feature-list b { font-size: 17px; }
.feature-list span { color: var(--ink-2); }

/* partners */
.partner-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.partner-list li { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 2px; }
.partner-list strong { font-size: 18px; color: var(--navy-800); }
.partner-list span { font-size: 13px; color: var(--muted); }
.partner-list em { font-style: normal; color: var(--ink-2); font-size: 15px; }
.clients { margin-top: 36px; padding: 24px; background: var(--bg-alt); border-radius: var(--radius); }
.clients h3 { font-size: 16px; }
.clients p { color: var(--ink-2); margin: 0; }
.client-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.client-cloud span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 15px; }

/* CTA + footer */
.cta-band { background: var(--blue-600); color: #fff; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 48px 20px; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { margin: 0; color: #dbe6ff; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.site-footer { background: var(--navy-900); color: #b8c3dc; padding: 56px 0 28px; font-size: 15px; }
.site-footer a { color: #fff; }
.brand-footer, .brand-footer .brand-text strong { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.6fr 1fr; gap: 40px; }
.footer-info { margin: 0; display: grid; gap: 6px; }
.footer-info div { display: grid; grid-template-columns: 56px 1fr; }
.footer-info dt { color: #7f8db0; }
.footer-info dd { margin: 0; }
.footer-links { display: grid; gap: 8px; align-content: start; }
.copyright { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; font-size: 13px; color: #7f8db0; }
.fab-tel {
  display: none; position: fixed; right: 16px; bottom: 16px; width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-size: 24px; place-items: center; z-index: 60;
  box-shadow: 0 8px 20px rgba(0,0,0,.25); text-decoration: none !important;
}

/* page head */
.page-head { background: var(--navy-900); color: #fff; padding: 56px 0 52px; }
.page-head h1 { margin-bottom: 8px; }
.page-head .lead { color: #c9d4ec; margin: 0; }
.page-head .eyebrow { color: var(--accent); }
.page-head.slim { padding: 18px 0; background: var(--bg-alt); color: var(--ink); border-bottom: 1px solid var(--line); }
.crumbs { font-size: 14px; color: #aebbd8; margin-bottom: 16px; }
.crumbs a { color: inherit; }
.crumbs span { margin: 0 4px; opacity: .6; }
.page-head.slim .crumbs { color: var(--muted); margin: 0; }

/* prose */
.prose { color: var(--ink-2); }
.prose h3 { color: var(--ink); margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose b, .prose strong { color: var(--ink); }
.info-list { display: grid; gap: 10px; margin: 0 0 24px; }
.info-list div { display: grid; grid-template-columns: 100px 1fr; }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); background: var(--bg-alt); }

/* tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0 24px; border: 1px solid var(--line); border-radius: 10px; }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14.5px; }
.table-wrap th, .table-wrap td { border: 1px solid var(--line); padding: 8px 10px; text-align: center; vertical-align: middle; }
.table-wrap tr:first-child td, .table-wrap th { background: var(--bg-alt); font-weight: 700; color: var(--ink); }
/* 제목 줄(thead)이 따로 있는 표는 첫 줄도 보통 칸으로 */
.table-wrap thead + tbody tr:first-child td { background: none; font-weight: 400; color: inherit; }
.table-wrap.spec th, .table-wrap.spec td { white-space: nowrap; }
.data-table { min-width: 0 !important; }
.data-table th, .data-table td { text-align: left !important; }
.data-table tbody th { background: #fff !important; color: var(--navy-800); }

/* service */
.service-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.service-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.service-card .num { font-size: 13px; font-weight: 800; color: var(--blue-600); }
.service-card .big { font-size: 24px; font-weight: 800; color: var(--navy-800); margin-bottom: 12px; }
.service-card ul { padding-left: 1.1em; color: var(--ink-2); margin: 0; }
.note-box { margin-top: 32px; background: var(--bg-alt); border-radius: var(--radius); padding: 28px; }
.note-box ul { color: var(--ink-2); }

/* contact */
.contact-ways { display: grid; gap: 14px; align-content: start; }
.contact-way { display: grid; gap: 2px; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; color: var(--ink); text-decoration: none !important; }
a.contact-way:hover { border-color: var(--blue-600); }
.contact-way span { font-size: 13px; color: var(--muted); font-weight: 600; }
.contact-way b { font-size: 22px; color: var(--navy-800); }
.contact-way small { color: var(--muted); }
.quote-form { display: grid; gap: 16px; background: var(--bg-alt); padding: 28px; border-radius: var(--radius); }
.quote-form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.quote-form input, .quote-form select, .quote-form textarea {
  font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid #cfd6e4; border-radius: 10px; background: #fff; width: 100%;
}
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: 2px solid var(--blue-600); outline-offset: 0; border-color: transparent; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* products */
.search-bar input {
  width: 100%; font: inherit; font-size: 17px; padding: 14px 18px 14px 46px; border: 2px solid var(--line); border-radius: 12px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%236b7288' stroke-width='2'%3E%3Ccircle cx='9' cy='9' r='7'/%3E%3Cpath d='m14 14 5 5'/%3E%3C/svg%3E") no-repeat 16px center;
}
.search-bar input:focus { outline: none; border-color: var(--blue-600); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 36px; }
.chips a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); font-size: 14.5px; text-decoration: none; background: #fff; }
.chips a:hover { border-color: var(--blue-600); color: var(--blue-600); }
.chips a[aria-current] { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.product-group { margin-bottom: 56px; }
.search-empty { padding: 24px; background: var(--bg-alt); border-radius: var(--radius); }

.product-top { padding-top: 40px; }
.product-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.gallery-main { border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 20px; background: #fff; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin-top: 10px; }
.thumb { border: 2px solid var(--line); border-radius: 8px; background: #fff; padding: 4px; aspect-ratio: 1; cursor: pointer; display: grid; place-items: center; }
.thumb.is-active { border-color: var(--blue-600); }
.product-summary { position: sticky; top: calc(var(--header-h) + 20px); }
.product-summary h1 { font-size: clamp(24px, 3vw, 34px); }
.summary-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.assure { list-style: none; padding: 16px 0 0; margin: 0; border-top: 1px solid var(--line); display: grid; gap: 6px; color: var(--ink-2); font-size: 15px; }
.assure li::before { content: "✓"; color: var(--blue-600); font-weight: 800; margin-right: 8px; }
.detail { padding-top: 0; }
.detail-title { border-top: 2px solid var(--ink); padding-top: 24px; font-size: 22px; }
.product-content { max-width: 900px; }
.product-content img { margin: 12px auto; border-radius: 8px; }
.product-content p { margin: 0 0 .7em; }
.video { position: relative; aspect-ratio: 16 / 9; margin: 20px 0; max-width: 800px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 10px; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-weight: 600; }
.pager a { max-width: 48%; }

/* responsive */
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; padding: 8px 16px 20px; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0,0,0,.08); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .site-nav.open { display: flex; }
  .site-nav > a, .has-mega > a { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .mega { display: grid !important; position: static; transform: none; width: auto; border: 0; box-shadow: none; padding: 4px 0 8px 12px; grid-template-columns: 1fr 1fr; }
  .mega a { font-size: 14.5px; padding: 8px; }
  .nav-tel { margin: 14px 0 0; text-align: center; border-radius: 10px !important; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero-inner { grid-template-columns: 1fr; padding: 56px 20px 64px; }
  .hero-visual { display: none; }
  .two-col, .product-layout { grid-template-columns: 1fr; gap: 32px; }
  .product-summary { position: static; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .fab-tel { display: grid; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .section { padding: 56px 0; }
  .cta-inner { padding-top: 40px; padding-bottom: 40px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid > div { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); padding: 18px 16px; }
  .stats-grid > div:nth-child(-n+2) { border-top: 0; }
  .stats b { font-size: 22px; }
  .hero-lead { font-size: 16px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-card .card-body { padding: 12px; }
  .product-card .card-body h3 { font-size: 14.5px; }
  .row2 { grid-template-columns: 1fr; }
  .quote-form { padding: 20px; }
  .brand-text strong { font-size: 19px; }
  .cta-actions .btn, .hero-actions .btn { flex: 1 1 auto; }
  .pager { flex-direction: column; }
  .pager a { max-width: none; }
}

/* ---------------- 견적문의 게시판 */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.board-cta { background: var(--bg-alt); border-radius: var(--radius); padding: 32px; }
.board-cta .btn { margin: 4px 6px 4px 0; }
.board-write { grid-template-columns: 1.5fr 1fr; }
.consent { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font-size: 14.5px; color: var(--ink-2); }
.consent p { margin: 0 0 4px; }
.consent ul { margin: 0 0 10px; padding-left: 1.1em; }
.quote-form .check { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.quote-form .check input { width: 18px; height: 18px; padding: 0; }
.form-error { background: #fdecec; color: #b42318; border-radius: 8px; padding: 10px 14px; margin: 0; font-weight: 600; font-size: 15px; }
.notice-ok { background: #e8f6ee; color: #146c3a; border-radius: 8px; padding: 12px 16px; font-weight: 600; }
.board-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.board-top p { margin: 0; }
.board-list { border-top: 2px solid var(--ink); }
.board-row {
  display: grid; grid-template-columns: 70px 1fr 90px 110px 90px; gap: 10px; align-items: center;
  padding: 14px 8px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none !important;
}
a.board-row:hover { background: var(--bg-alt); }
.board-head { font-weight: 700; font-size: 14px; color: var(--muted); background: var(--bg-alt); padding: 10px 8px; }
.board-row .c-no, .board-row .c-name, .board-row .c-date { color: var(--muted); font-size: 14.5px; text-align: center; }
.board-head span { text-align: center; }
.board-head span:nth-child(2) { text-align: left; }
.c-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.lock-ico { font-style: normal; font-size: 13px; opacity: .6; }
.c-status { display: inline-block; justify-self: center; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #eef0f4; color: var(--ink-2); white-space: nowrap; }
.st-new { background: #fff4d6; color: #8a5a00; }
.st-progress { background: var(--blue-50); color: var(--blue-600); }
.st-done { background: #e8f6ee; color: #146c3a; }
.board-empty, .board-loading { padding: 40px 0; text-align: center; color: var(--muted); }
.board-pages { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 28px; }
.board-pages a { min-width: 40px; height: 40px; padding: 0 10px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--ink-2); text-decoration: none; }
.board-pages a[aria-current] { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.board-view { max-width: 860px; }
.pw-gate { max-width: 440px; margin: 0 auto 32px; text-align: center; background: var(--bg-alt); border-radius: var(--radius); padding: 36px 28px; }
.pw-gate .lock { font-size: 36px; margin: 0; }
.pw-row { display: flex; gap: 8px; margin: 16px 0 12px; }
.pw-row input { flex: 1; min-width: 0; font: inherit; padding: 12px 14px; border: 1px solid #cfd6e4; border-radius: 10px; }
.post { margin-bottom: 32px; }
.post-head { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 16px; }
.post-head h2 { margin: 10px 0 4px; }
.post-head .c-status { justify-self: auto; }
.post-info { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 24px; margin: 0 0 20px; font-size: 15px; }
.post-info dt { color: var(--muted); font-size: 13px; }
.post-info dd { margin: 0; font-weight: 600; }
.post-body { white-space: pre-wrap; line-height: 1.8; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.post-reply { margin-top: 24px; background: var(--blue-50); border-radius: var(--radius); padding: 20px 22px; }
.post-reply h3 { margin: 0; color: var(--navy-800); }
.post-reply .post-body { border-color: #d6e2f8; margin-top: 8px; }
.post-reply.empty { background: var(--bg-alt); color: var(--muted); }
.post-reply.empty p { margin: 0; }

/* ---------------- 관리자 */
.admin-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.admin-head h1 { font-size: 28px; margin: 0; }
.admin-tabs { margin: 12px 0 20px; }
.admin-tabs b { font-weight: 800; margin-left: 4px; }
.admin-grid { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: start; }
.admin-list { display: grid; gap: 8px; max-height: 75vh; overflow-y: auto; padding-right: 4px; }
.admin-item { text-align: left; font: inherit; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; display: grid; gap: 4px; }
.admin-item:hover { border-color: #b9c6e0; }
.admin-item.is-active { border-color: var(--blue-600); box-shadow: 0 0 0 1px var(--blue-600); }
.admin-item .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.admin-item strong { font-size: 15.5px; }
.admin-detail { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; min-height: 300px; position: sticky; top: calc(var(--header-h) + 16px); }
.admin-detail h2 { font-size: 22px; }
.reply-form { margin-top: 20px; display: grid; gap: 10px; }
.reply-form label { display: grid; gap: 6px; font-weight: 600; }
.reply-form textarea, .reply-form select { font: inherit; padding: 12px 14px; border: 1px solid #cfd6e4; border-radius: 10px; width: 100%; }
.reply-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.reply-actions select { width: auto; }
.btn.danger { color: #b42318; }
.btn.danger:hover { border-color: #b42318; color: #b42318; }

@media (max-width: 960px) {
  .board-write { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-list { max-height: none; }
  .admin-detail { position: static; }
}
@media (max-width: 640px) {
  .board-head { display: none; }
  .board-row { grid-template-columns: 1fr auto; grid-template-areas: "title status" "meta meta"; gap: 4px 10px; padding: 14px 4px; }
  .board-row .c-title { grid-area: title; }
  .board-row .c-status { grid-area: status; }
  .board-row .c-no { display: none; }
  .board-row .c-name, .board-row .c-date { grid-row: 2; text-align: left; font-size: 13.5px; }
  .board-row .c-name { grid-column: 1; }
  .board-row .c-date { grid-column: 1; margin-left: 60px; }
  .board-cta { padding: 22px; }
  .pw-gate { padding: 28px 18px; }
}
.notify-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--bg-alt); border-radius: 10px; padding: 10px 14px; font-size: 15px; margin: 8px 0 4px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.form-group { border: 0; margin: 0; padding: 0; display: grid; gap: 16px; min-width: 0; }
.form-group legend { font-size: 17px; font-weight: 800; color: var(--navy-800); padding: 0 0 12px; margin-bottom: 4px; border-bottom: 1px solid #dfe4ee; width: 100%; }
.form-group + .form-group { margin-top: 12px; }

/* 로고 이미지 */
.brand-logo { display: block; height: 38px; width: auto; }
.brand-footer .brand-logo { height: 34px; margin-bottom: 14px; }
@media (max-width: 640px) { .brand-logo { height: 32px; } }

/* 사진이 없는 제품 자리 */
.no-photo { display: grid; justify-items: center; gap: 10px; width: 100%; color: var(--muted); font-style: normal; }
.no-photo img { position: static !important; width: 46% !important; height: auto !important; opacity: .28; filter: grayscale(1); }
.no-photo em { font-style: normal; font-size: 14px; }

/* 첫 화면 제품 슬라이드 */
.hero-visual { flex-direction: column; align-items: center; gap: 18px; }
.hero-slides { display: grid; width: min(440px, 100%); }
.hero-slide {
  grid-area: 1 / 1; position: relative; display: flex; justify-content: center; color: var(--ink); text-decoration: none !important;
  opacity: 0; transform: translateX(18px); transition: opacity .7s ease, transform .7s ease; pointer-events: none;
}
.hero-slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.hero-slide .hero-plate { transition: transform .3s ease; }
.hero-slide:hover .hero-plate, .hero-slide:focus-visible .hero-plate { transform: translateY(-4px); }
.hero-plate img { width: auto; max-width: 76%; max-height: 74%; mix-blend-mode: multiply; /* 사진의 흰 바탕이 판 색에 녹아들게 */ }
.hero-tag b { color: var(--navy-800); }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.35); cursor: pointer; transition: width .3s, background .3s; }
.hero-dots button[aria-current="true"] { width: 28px; background: var(--accent); }
.hero-dots button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 960px) {
  .hero-visual { display: flex; margin-top: 8px; }
  .hero-slides { width: min(360px, 100%); }
  .hero-plate { width: min(300px, 86%); }
  .hero-tag { font-size: 14px; padding: 10px 14px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; transform: none; } }

/* 협력 제조사 카드 = 해당 회사 홈페이지 링크 */
.partner-list li { padding: 0; }
.partner-list a { display: grid; gap: 2px; padding: 18px 20px; height: 100%; border-radius: inherit; color: inherit; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.partner-list li:hover { border-color: #cfd8ea; box-shadow: var(--shadow); }
.partner-list a:hover strong { color: var(--blue-600); }
.partner-list .ext { font-style: normal; font-size: 13px; font-weight: 600; color: var(--blue-600); margin-top: 6px; }

/* 슬라이드 좌우 화살표 (반투명) */
.hero-slides { position: relative; }
.hero-arrow {
  position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; padding: 0;
  display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(11, 31, 68, .35); color: #fff; opacity: .7;
  backdrop-filter: blur(2px); transition: opacity .2s, background .2s, transform .2s;
}
.hero-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.hero-arrow.prev { left: 6px; }
.hero-arrow.next { right: 6px; }
.hero-arrow:hover, .hero-arrow:focus-visible { opacity: 1; background: rgba(11, 31, 68, .7); }
.hero-arrow:active { transform: scale(.94); }
.hero-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 960px) { .hero-arrow { width: 40px; height: 40px; margin-top: -20px; } .hero-arrow.prev { left: 0; } .hero-arrow.next { right: 0; } }

/* ---------------- 관리자: 메뉴 탭 */
.admin-sections { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 22px; border-bottom: 2px solid var(--line); }
.admin-sections button {
  border: 0; background: none; padding: 10px 16px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.admin-sections button[aria-selected="true"] { color: var(--navy-800); border-bottom-color: var(--blue-600); }
.admin-sections button:hover { color: var(--navy-800); }

/* ---------------- 관리자: 제품 관리 */
.pm-grid { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
.pm-side { position: sticky; top: calc(var(--header-h) + 12px); display: grid; gap: 10px; }
.pm-tools { display: grid; gap: 8px; }
.pm-tools select, .pm-tools input { width: 100%; }
.pm-new { justify-self: start; }
.pm-list { max-height: calc(100vh - var(--header-h) - 190px); overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; background: #fff; }
.pm-cat-title { font-size: 13px; color: var(--muted); margin: 10px 8px 4px; font-weight: 700; }
.pm-item { display: flex; align-items: center; gap: 4px; border-radius: 8px; }
.pm-item.is-active { background: #e9f0ff; }
.pm-item.is-hidden .pm-name { color: var(--muted); }
.pm-pick { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px; border: 0; background: none; text-align: left; font: inherit; font-size: 14px; cursor: pointer; border-radius: 8px; color: var(--ink); }
.pm-pick:hover { background: var(--bg-alt); }
.pm-thumb { flex: none; width: 44px; height: 34px; border: 1px solid var(--line); border-radius: 6px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.pm-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pm-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-badge { font-style: normal; font-size: 11px; background: #eef0f5; color: var(--muted); border-radius: 999px; padding: 1px 7px; margin-left: 6px; }
.pm-move { display: flex; gap: 2px; flex: none; }
.pm-move button, .pm-photo-bar button {
  width: 28px; height: 28px; border: 1px solid var(--line); background: #fff; border-radius: 6px; cursor: pointer; font-size: 14px; line-height: 1; color: var(--ink-2);
}
.pm-move button:hover:not(:disabled), .pm-photo-bar button:hover:not(:disabled) { border-color: var(--blue-600); color: var(--blue-600); }
.pm-move button:disabled, .pm-photo-bar button:disabled { opacity: .3; cursor: default; }
.pm-del:hover:not(:disabled) { border-color: #c62828 !important; color: #c62828 !important; }

.pm-edit { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 24px; min-height: 320px; }
.pm-empty ul { padding-left: 18px; margin: 8px 0 0; }
.pm-form { display: grid; gap: 16px; }
.pm-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pm-head h2 { margin: 0; font-size: 22px; }
.pm-row2 { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
.pm-field { display: grid; gap: 6px; }
.pm-label { font-weight: 700; font-size: 15px; color: var(--navy-800); }
.pm-label small { font-weight: 400; color: var(--muted); }
.pm-form input:not([type="checkbox"]), .pm-form select, .pm-form textarea { width: 100%; }
.pm-photos { border: 1px dashed #c9d2e3; border-radius: var(--radius); padding: 14px; margin: 0; min-width: 0; }
.pm-photos legend { font-weight: 700; color: var(--navy-800); padding: 0 6px; }
.pm-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.pm-photo { position: relative; border: 2px solid var(--line); border-radius: 10px; background: #fff; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.pm-photo.is-main { border-color: var(--accent); }
.pm-photo img { max-width: 88%; max-height: 70%; object-fit: contain; }
.pm-main-badge { position: absolute; top: 6px; left: 6px; background: var(--accent); color: #1b1300; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 2px 8px; }
.pm-photo-bar { position: absolute; bottom: 6px; left: 0; right: 0; display: flex; justify-content: center; gap: 4px; }
.pm-up-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.pm-upload { cursor: pointer; }
.pm-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--bg-alt); margin-bottom: -16px; }
.pm-toolbar button { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 5px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.pm-toolbar button:hover, .pm-toolbar button.on { border-color: var(--blue-600); color: var(--blue-600); }
.pm-html-toggle { margin-left: auto; font-family: monospace !important; }
.pm-content { min-height: 260px; max-height: 70vh; overflow: auto; border: 1px solid var(--line); border-radius: 0 0 10px 10px; padding: 16px; outline: none; }
.pm-content:focus { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(29,79,179,.12); }
.pm-html { font-family: Consolas, monospace; font-size: 13px; border-radius: 0 0 10px 10px; }
.pm-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; position: sticky; bottom: 0; background: #fff; padding: 12px 0 4px; border-top: 1px solid var(--line); }
.pm-msg.ok, #sl-status.ok { color: #1b7f3b; font-weight: 700; }

/* ---------------- 관리자: 첫 화면 슬라이드 */
.sl-intro { margin-bottom: 14px; }
.sl-intro p { margin: 0 0 4px; }
.sl-list { display: grid; gap: 10px; }
.sl-row { display: grid; grid-template-columns: 28px 64px 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; background: #fff; }
.sl-num { font-weight: 800; color: var(--muted); text-align: center; }
.sl-thumb { width: 64px; height: 52px; }
.sl-fields { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 8px; }
.sl-fields select, .sl-fields input { width: 100%; min-width: 0; }
.sl-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

@media (max-width: 960px) {
  .pm-grid { grid-template-columns: 1fr; }
  .pm-side { position: static; }
  .pm-list { max-height: 320px; }
  .sl-fields { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pm-edit { padding: 16px; }
  .pm-row2 { grid-template-columns: 1fr; }
  .sl-row { grid-template-columns: 52px 1fr; }
  .sl-num { display: none; }
  .sl-thumb { width: 52px; height: 44px; }
  .sl-move { grid-column: 1 / -1; justify-content: flex-end; }
}
.pm-form input:not([type="checkbox"]), .pm-form select, .pm-form textarea, .pm-tools select, .pm-tools input, .sl-fields select, .sl-fields input {
  font: inherit; font-weight: 400; font-size: 15px; padding: 9px 12px; border: 1px solid #cfd6e4; border-radius: 8px; background: #fff; color: var(--ink);
}
.pm-form input:focus, .pm-form select:focus, .pm-form textarea:focus, .pm-tools select:focus, .pm-tools input:focus, .sl-fields select:focus, .sl-fields input:focus {
  outline: 2px solid var(--blue-600); outline-offset: 0; border-color: transparent;
}

/* 관리자 로그인 상태에서만 보이는 제품 수정/추가 버튼 */
.admin-fab { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.admin-fab-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 15px;
  background: #fff; color: var(--navy-800); border: 2px solid var(--navy-800); box-shadow: 0 10px 24px rgba(11,31,68,.25); text-decoration: none !important;
  transition: transform .15s, box-shadow .15s;
}
.admin-fab-btn.primary { background: var(--navy-800); color: #fff; }
.admin-fab-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(11,31,68,.3); }
@media (max-width: 960px) { .admin-fab { right: 16px; bottom: 92px; } .admin-fab-btn { padding: 10px 16px; font-size: 14px; } }

/* 제품이 아직 없는 제품군 */
.empty-cat { text-align: center; padding: 48px 20px; border: 1px dashed #c9d2e3; border-radius: var(--radius); background: var(--bg-alt); }
.empty-cat p { margin: 0 0 8px; }
.empty-cat .btn { margin: 8px 4px 0; }

/* 자주 묻는 질문 */
.faq { display: grid; gap: 12px; }
.faq > * { max-width: 880px; width: 100%; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 22px; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--blue-600); font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item summary h2 { font-size: 18px; margin: 0; color: var(--navy-800); }
.faq-item summary:hover h2 { color: var(--blue-600); }
.faq-item .prose { padding: 0 22px 18px; }
.faq-item .prose p { margin: 0; }
.faq-more { margin-top: 18px; padding: 22px; background: var(--bg-alt); border-radius: var(--radius); }
.faq-more p { margin: 0 0 8px; }
@media (max-width: 640px) { .faq-item summary { padding: 16px 44px 16px 16px; } .faq-item summary h2 { font-size: 16px; } .faq-item .prose { padding: 0 16px 16px; } }
.faq-tools input { width: 100%; font: inherit; padding: 12px 16px; border: 1px solid #cfd6e4; border-radius: 10px; background: #fff; }
.faq-tools input:focus { outline: 2px solid var(--blue-600); border-color: transparent; }

/* 관리자: 자주 묻는 질문 */
.fq-help { margin: 0; }
.fq-pick { align-items: flex-start; }
.fq-num { flex: none; width: 22px; text-align: right; color: var(--muted); font-weight: 700; font-size: 13px; padding-top: 1px; }
.fq-pick .pm-name { white-space: normal; line-height: 1.4; }
.fq-content { min-height: 200px; }

/* 관리자 글쓰기 편집기 (admin-editor.js) */
.rte-bar { align-items: center; }
.rte-sel { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 5px 6px; font: inherit; font-size: 13px; height: 31px; cursor: pointer; }
.pm-form .rte-bar select.rte-sel { width: auto; flex: none; padding: 4px 6px; height: 31px; font-size: 13px; border-radius: 6px; }
.pm-form .rte-bar select.rte-block { width: 84px; } .pm-form .rte-bar select.rte-font { width: 100px; } .pm-form .rte-bar select.rte-size { width: 92px; }
.rte-gap { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.pm-toolbar button.rte-b { font-weight: 800; }
.pm-toolbar button.rte-i { font-style: italic; font-family: Georgia, serif; }
.pm-toolbar button.rte-u { text-decoration: underline; }
.pm-toolbar button.rte-s { text-decoration: line-through; }
.pm-toolbar button.rte-b, .pm-toolbar button.rte-i, .pm-toolbar button.rte-u, .pm-toolbar button.rte-s { min-width: 31px; padding: 5px 8px; }
.pm-toolbar button.on { background: #eaf1ff; }
.rte-color { position: relative; display: inline-flex; }
.pm-toolbar button.rte-color-btn { font-weight: 700; min-width: 31px; padding: 5px 8px; box-shadow: inset 0 -4px 0 var(--pick, #c62828); }
.rte-palette { position: absolute; top: 36px; left: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 26px); gap: 6px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.rte-palette[hidden] { display: none; }
.pm-toolbar .rte-palette button { width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.pm-toolbar .rte-palette button.rte-color-reset { grid-column: 1 / -1; width: auto; height: auto; border-radius: 6px; padding: 4px; font-size: 12px; box-shadow: none; border: 1px solid var(--line); }
.rte-al i { display: block; width: 14px; height: 12px; background:
  linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
  linear-gradient(currentColor, currentColor) var(--x2, 0) 5px / 64% 2px no-repeat,
  linear-gradient(currentColor, currentColor) 0 10px / 100% 2px no-repeat; }
.pm-toolbar button.rte-al { padding: 7px 8px; }
.rte-al-center i { --x2: 50%; } .rte-al-right i { --x2: 100%; }
.rte-al-justify i { background: linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) 0 5px / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) 0 10px / 100% 2px no-repeat; }
.rte-box { position: relative; }
.rte-box[hidden] { display: none; }
.pm-content .video iframe { pointer-events: none; }
.pm-content .video { outline: 2px dashed transparent; outline-offset: 3px; }
.pm-content .video:hover { outline-color: var(--blue-600); }
.rte-vid-del { position: absolute; z-index: 5; border: 0; border-radius: 6px; background: rgba(198,40,40,.92); color: #fff; font: inherit; font-size: 13px; padding: 6px 10px; cursor: pointer; }
.rte-vid-del[hidden] { display: none; }
.prose blockquote { margin: 1em 0; padding: 10px 16px; border-left: 4px solid var(--line); color: var(--ink-2); background: var(--bg-alt); }
.prose h4 { color: var(--ink); margin: 1.4em 0 .4em; font-size: 1.05em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
