/* 브니엘테크 시안
   색: 간판의 파랑, 크로메이트 도금의 금색, 도면 치수선의 빨강
   간격: 8px 단위 */
:root {
  --paper: #f2f4f7;
  --white: #ffffff;
  --ink: #131a26;
  --steel: #566173;
  --line: #d3d9e1;
  --blue: #27348b;
  --blue-deep: #1b2566;
  --gold: #b58e22;
  --red: #d2232a;
  --wrap: 1200px;
  --gut: 32px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }

/* ── 머리 ── */
.top { position: sticky; top: 0; z-index: 10; background: var(--white); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.brand__ko { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--blue); }
.brand__en { font-size: 13px; font-weight: 500; color: var(--steel); }
.nav { display: flex; gap: 32px; margin-left: auto; }
.nav a { font-size: 15px; font-weight: 500; text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--blue); }
.call {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px;
  background: var(--blue); color: var(--white); border-radius: 4px;
  font-weight: 600; font-size: 15px; text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.call:hover { background: var(--blue-deep); }

/* ── 첫 화면 ── */
.hero { background: var(--white); border-bottom: 1px solid var(--line); }
.hero__in { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(40px, 5.2vw, 68px); line-height: 1.16; font-weight: 700; letter-spacing: -0.035em; }
.hero__lead { margin-top: 24px; max-width: 26em; font-size: 18px; color: var(--steel); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 24px; border-radius: 4px; font-weight: 600; text-decoration: none; border: 2px solid var(--blue); }
.btn--solid { background: var(--blue); color: var(--white); }
.btn--solid:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn--line { color: var(--blue); }
.btn--line:hover { background: #eef0f8; }
.hero__photo { position: relative; }
.hero__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.hero__photo figcaption { margin-top: 12px; font-size: 14px; color: var(--steel); padding-left: 12px; border-left: 3px solid var(--gold); line-height: 1.4; }

/* ── 구역 공통 ── */
main > section:not(.hero) { padding: 96px 0; }
.sec-head { margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(28px, 3vw, 36px); line-height: 1.3; font-weight: 700; letter-spacing: -0.03em; }
.sec-head p { margin-top: 8px; color: var(--steel); max-width: 38em; }

/* ── 형식 찾기 ── */
.finder__grid { display: grid; grid-template-columns: 7fr 5fr; gap: 32px; align-items: start; }
.finder__panel { background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 32px; }
.field + .field { margin-top: 32px; }
.field__label { display: block; margin-bottom: 12px; font-size: 14px; font-weight: 600; color: var(--steel); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--blue); border-radius: 4px; overflow: hidden; }
.seg button { height: 48px; background: var(--white); border: 0; border-left: 1px solid var(--blue); font-weight: 600; color: var(--blue); cursor: pointer; }
.seg button:first-child { border-left: 0; }
.seg button[aria-checked="true"] { background: var(--blue); color: var(--white); }
.torque { display: flex; align-items: baseline; gap: 12px; }
.torque input { width: 152px; height: 64px; padding: 0 16px; border: 1px solid var(--line); border-radius: 4px; font-size: 36px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; background: var(--paper); }
.torque__unit { font-size: 18px; font-weight: 500; }
.range { width: 100%; margin: 24px 0 0; accent-color: var(--blue); height: 24px; }
.range__scale { display: flex; justify-content: space-between; font-size: 13px; color: var(--steel); font-variant-numeric: tabular-nums; }

.results { margin-top: 32px; border-top: 2px solid var(--ink); }
.row {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 96px 88px; gap: 16px; align-items: center;
  width: 100%; min-height: 64px; padding: 8px 16px; background: none; border: 0; border-bottom: 1px solid var(--line);
  text-align: left; cursor: pointer; position: relative;
}
.row:hover { background: var(--paper); }
.row[aria-selected="true"] { background: #eef0f8; }
.row[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--blue); }
.row__series { font-size: 14px; color: var(--steel); line-height: 1.4; }
.row__model { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.row__num { font-variant-numeric: tabular-nums; font-weight: 500; text-align: right; white-space: nowrap; }
.row__num small { display: block; font-size: 12px; font-weight: 400; color: var(--steel); line-height: 1.3; }
.results__head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 96px 88px; gap: 16px; padding: 8px 16px; font-size: 13px; color: var(--steel); border-bottom: 1px solid var(--line); }
.results__head span:nth-child(n+3) { text-align: right; }
.results__empty { padding: 24px 16px; border-bottom: 1px solid var(--line); }
.results__empty a { color: var(--blue); font-weight: 700; }
.finder__note { margin-top: 16px; font-size: 14px; color: var(--steel); }

/* 도면 카드: 이 페이지에서 유일하게 꾸민 곳 */
.sheet { position: sticky; top: 104px; background: var(--white); border: 1px solid var(--ink); border-radius: 4px; }
.sheet svg { display: block; width: 100%; height: auto; padding: 16px; }
.sheet .ob { fill: none; stroke: var(--ink); stroke-width: 1.6; transition: r .35s ease; }
.sheet .pcd { fill: none; stroke: var(--red); stroke-width: 1; transition: r .35s ease; }
.sheet .cl { stroke: var(--steel); stroke-width: .8; stroke-dasharray: 14 4 2 4; }
.sheet .bolt { fill: var(--white); stroke: var(--ink); stroke-width: 1.4; }
.sheet .dim line { stroke: var(--red); stroke-width: 1; }
.sheet .dim path { fill: var(--red); }
.sheet .dimtext { fill: var(--red); font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sheet__block { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.sheet__block > div { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.sheet__block > div:nth-child(odd) { border-right: 1px solid var(--line); }
.sheet__block > div:nth-last-child(-n+2) { border-bottom: 0; }
.sheet__block dt { font-size: 12px; color: var(--steel); line-height: 1.4; }
.sheet__block dd { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.4; }

/* ── 제품 ── */
.products { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pgroup { display: grid; grid-template-columns: 3fr 9fr; gap: 32px; padding: 32px 0; border-top: 2px solid var(--ink); }
.pgroup h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.4; }
.pgroup__sub { margin-top: 4px; font-size: 14px; color: var(--steel); }
.pitem { border-bottom: 1px solid var(--line); }
.pitem:first-child { border-top: 1px solid var(--line); }
.pitem summary {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) 24px; gap: 16px; align-items: center;
  min-height: 64px; padding: 12px 0; cursor: pointer; list-style: none;
}
.pitem summary::-webkit-details-marker { display: none; }
.pitem__name { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.pitem__range { font-size: 15px; color: var(--steel); }
.pitem__icon { width: 24px; height: 24px; display: grid; place-items: center; color: var(--blue); }
.pitem__icon svg { display: block; transition: transform .2s ease; }
.pitem[open] .pitem__icon svg { transform: rotate(45deg); }
.pitem summary:hover .pitem__name { color: var(--blue); }
.pitem__body { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 8px 0 32px; }
.pitem__body--single { grid-template-columns: 1fr; }
.pitem__body ol { margin: 0; padding-left: 20px; font-size: 15px; }
.pitem__body ol li + li { margin-top: 4px; }
.pitem__body p { font-size: 15px; }
.spec { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.spec caption { text-align: left; font-size: 13px; color: var(--steel); padding-bottom: 8px; }
.spec th, .spec td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.spec th:first-child, .spec td:first-child { text-align: left; }
.spec thead th { font-weight: 600; border-bottom: 1px solid var(--ink); background: var(--paper); }

/* ── 제작 사례 ── */
.cgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; }
.cgrid li { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; align-items: baseline; }
.cgrid img { grid-column: 1 / -1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: var(--line); margin-bottom: 12px; }
.cgrid h3 { font-size: 16px; font-weight: 600; line-height: 1.4; }
.cgrid span { font-size: 14px; color: var(--steel); font-variant-numeric: tabular-nums; }

/* ── 자료실 ── */
.docs { background: var(--white); border-top: 1px solid var(--line); }
.docs__in { display: grid; grid-template-columns: 3fr 9fr; gap: 32px; }
.docs .sec-head { margin-bottom: 0; }
.dlist { border-top: 2px solid var(--ink); }
.dlist a { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); gap: 16px; align-items: center; min-height: 64px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.dlist strong { font-size: 18px; font-weight: 600; }
.dlist span { font-size: 15px; color: var(--steel); }
.dlist a:hover strong { color: var(--blue); }

/* ── 문의 ── */
.contact { background: var(--blue); color: var(--white); }
.contact__in { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: start; }
.contact h2 { font-size: clamp(28px, 3vw, 36px); line-height: 1.3; font-weight: 700; letter-spacing: -0.03em; }
.contact__lead p { margin-top: 12px; color: #cfd4ee; max-width: 30em; }
.bigcall { display: inline-block; margin-top: 32px; font-size: clamp(44px, 6vw, 80px); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; text-decoration: none; border-bottom: 4px solid var(--gold); }
.info { border-top: 1px solid rgba(255, 255, 255, .4); }
.info > div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.info dt { font-size: 14px; color: #cfd4ee; line-height: 1.9; }
.info dd { font-weight: 500; font-variant-numeric: tabular-nums; }
.info a { text-decoration: none; }
.info a:hover, .maplink { text-decoration: underline; text-underline-offset: 4px; }
.maplink { font-size: 14px; font-weight: 400; }

.foot { background: var(--ink); color: #aab3c2; font-size: 14px; padding: 32px 0; }
.foot strong { color: var(--white); margin-right: 8px; }

/* ── 좁은 화면 ── */
@media (max-width: 960px) {
  :root { --gut: 20px; }
  .nav { display: none; }
  .call { margin-left: auto; }
  .hero__in { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 48px; }
  .hero__photo { order: -1; }
  main > section:not(.hero) { padding: 64px 0; }
  .finder__grid, .contact__in, .docs__in { grid-template-columns: 1fr; }
  .sheet { position: static; max-width: 420px; }
  .pgroup { grid-template-columns: 1fr; gap: 16px; }
  .pitem__body { grid-template-columns: 1fr; gap: 24px; }
  .cgrid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .docs .sec-head { margin-bottom: 24px; }
}
@media (max-width: 560px) {
  .brand__en { display: none; }
  .top__in { height: 64px; gap: 16px; }
  .finder__panel { padding: 20px; }
  .row, .results__head { grid-template-columns: minmax(0, 1fr) 56px 64px; gap: 8px; padding-left: 12px; padding-right: 12px; }
  .row > :nth-child(2), .results__head > :nth-child(2) { display: none; }
  .pitem summary { grid-template-columns: minmax(0, 1fr) 24px; }
  .pitem__range { display: none; }
  .spec { font-size: 13px; }
  .btn { flex: 1 1 100%; }
}
/* ── 상세 링크 ── */
.more, .sheet__more { display: inline-flex; align-items: center; min-height: 40px; margin-top: 16px; padding: 0 16px; border: 1px solid var(--blue); border-radius: 4px; color: var(--blue); font-size: 15px; font-weight: 600; text-decoration: none; }
.more:hover, .sheet__more:hover { background: #eef0f8; }
.sheet__more { display: flex; justify-content: center; margin: 0; min-height: 48px; border: 0; border-top: 1px solid var(--ink); border-radius: 0 0 4px 4px; }
.sheet__more[hidden] { display: none; }

/* ── 자료실 줄 ── */
.dlist a, .dlist__off { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) 112px; }
.dlist__off { display: grid; gap: 16px; align-items: center; min-height: 64px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--steel); }
.dlist em { font-style: normal; font-size: 14px; font-weight: 600; color: var(--blue); text-align: right; white-space: nowrap; }
.dlist__off em { color: var(--steel); font-weight: 400; }

/* ── 제작 사례 확대 ── */
.cshot { grid-column: 1 / -1; display: block; padding: 0; margin: 0 0 12px; border: 0; background: none; border-radius: 4px; cursor: zoom-in; }
.cshot img { margin: 0; }
html.lock { overflow: hidden; }
.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 72px 72px 64px; border: 0; background: rgba(13, 17, 26, .94); }
.lb[open] { display: grid; place-items: center; }
.lb::backdrop { background: transparent; }
.lb img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 4px; }
.lb__cap { position: absolute; left: 0; right: 0; bottom: 20px; display: flex; justify-content: center; gap: 16px; color: var(--white); font-size: 15px; }
.lb__cap span:last-child { color: #aab3c2; font-variant-numeric: tabular-nums; }
.ib { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: var(--white); cursor: pointer; }
.ib:hover { background: rgba(255, 255, 255, .28); }
.ib svg { display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb__x { top: 12px; right: 12px; }
.lb__prev { left: 12px; top: 50%; margin-top: -24px; }
.lb__next { right: 12px; top: 50%; margin-top: -24px; }

/* ── 제품 상세 페이지 ── */
.page { background: var(--white); }
.page__in { padding-top: 40px; padding-bottom: 96px; }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; color: var(--steel); font-size: 15px; text-decoration: none; }
.back:hover { color: var(--blue); }
.page__group { margin-top: 24px; font-size: 15px; font-weight: 600; color: var(--blue); }
.page h1 { margin-top: 4px; font-size: clamp(32px, 4vw, 48px); line-height: 1.25; font-weight: 700; letter-spacing: -0.03em; }
.page__lead { margin-top: 12px; max-width: 38em; font-size: 18px; color: var(--steel); }
.page__body { margin-top: 48px; max-width: 960px; }
.page__body h2 { margin-top: 72px; padding-top: 32px; border-top: 2px solid var(--ink); font-size: 28px; line-height: 1.35; font-weight: 700; letter-spacing: -0.02em; scroll-margin-top: 88px; }
.page__body h2:first-child { margin-top: 0; }
.page__body h3 { margin-top: 48px; margin-bottom: 12px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.page__body > h3:first-child, .page__body h2 + h3 { margin-top: 24px; }
.page__body p { max-width: 44em; }
.page__body p + p { margin-top: 8px; }
.page__body ol { margin: 0; padding-left: 22px; max-width: 44em; }
.page__body li + li { margin-top: 4px; }
.page__body .dash li { padding-left: 14px; position: relative; }
.page__body .dash li::before { content: ""; position: absolute; left: 0; top: .8em; width: 6px; height: 1px; background: var(--steel); }
.page__body .tscroll { margin-top: 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; }
.page__body .spec th, .page__body .spec td { padding: 8px 12px; text-align: center; }
.page__body .spec th:first-child, .page__body .spec td:first-child { text-align: left; font-weight: 600; position: sticky; left: 0; background: var(--white); }
.page__body .spec thead th:first-child { background: var(--paper); }
.page__body .spec tbody tr:last-child td { border-bottom: 0; }
.draw { margin-top: 16px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #f7f8fb; }
.draw img { width: 100%; max-width: 684px; margin: 0 auto; }
.ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; max-width: 960px; margin-top: 72px; padding: 24px 32px; background: var(--paper); border-radius: 4px; }
.ask p { max-width: 30em; }
@media (max-width: 560px) {
  .dlist a, .dlist__off { grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; }
  .dlist span { grid-column: 1; grid-row: 2; }
  .dlist em { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .lb { padding: 72px 12px 64px; }
  .lb__prev, .lb__next { top: auto; bottom: 8px; margin-top: 0; }
  .page__in { padding-bottom: 64px; }
  .ask { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sheet .ob, .sheet .pcd, .pitem__icon svg { transition: none; }
}
