/* PANTHEONTECH 카탈로그 홈페이지 — 01_디자인명세 토큰 기준
   포인트 색은 카탈로그 로고에서 뽑은 값 (기획메모.md '로고·색상' 참고) */

:root {
  /* 브랜드 색 — 카탈로그 로고 추출 값
     --brand-ink    : 꼬리말 워드마크 글자 색 #231816 (3쪽 obj 34 최빈색)
     --brand-silver : 표지 엠블럼 은색 그라데이션 중간값 #CDCDCD (1쪽 obj 6 최빈 회색)
     --brand-black  : 표지 엠블럼 배경 #000000 */
  --brand-ink: #231816;
  --brand-silver: #CDCDCD;
  --brand-black: #000000;
  --brand-accent: var(--brand-ink);
  --brand-accent-hover: var(--brand-black);

  --c-bg: #FFFFFF;
  --c-bg-soft: #F4F5F6;
  --c-line: #DDE0E3;
  --c-text: #1B1D1F;
  --c-text-sub: #5A5F65;
  --c-dark: var(--brand-black);
  --c-dark-text: #F2F3F4;
  --c-accent: var(--brand-accent);
  --c-accent-hover: var(--brand-accent-hover);
  --c-disabled-bg: #E9EBED;
  --c-disabled-text: #7A7F85;
  --c-toast-bg: #1B1D1F;
  --c-focus: #1B1D1F;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 72px; --s-9: 96px;

  --font: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;

  --nav-h: 72px;
  --section-y: var(--s-9);
  --title-gap: var(--s-6);
  --gutter: 24px;
  --side: 120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  word-break: keep-all;
  overflow-wrap: break-word;
}
body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2 { letter-spacing: -0.01em; }
h1 { font-size: 40px; line-height: 1.2; font-weight: 700; overflow-wrap: break-word; }
h2 { font-size: 32px; line-height: 1.25; font-weight: 700; }
h3 { font-size: 20px; line-height: 1.35; font-weight: 600; overflow-wrap: break-word; }
.h3 { display: block; font-size: 20px; line-height: 1.35; font-weight: 600; overflow-wrap: break-word; }
.h3 strong { font-weight: 600; }
.sub { font-size: 14px; line-height: 1.55; color: var(--c-text-sub); }
.caption { font-size: 13px; line-height: 1.4; color: var(--c-text-sub); }
.num { font-variant-numeric: tabular-nums; }

a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: 2px;
}
.on-dark a:focus-visible, .on-dark button:focus-visible { outline-color: var(--c-dark-text); }

.text-link { text-decoration: underline; text-underline-offset: 3px; color: var(--c-text); }
.text-link:hover { color: var(--c-accent); }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--c-text); color: #fff; padding: 8px 12px; border-radius: 4px;
}
.skip:focus { top: 8px; }

.container { width: 100%; max-width: calc(1200px + 2 * var(--side)); margin: 0 auto; padding: 0 var(--side); }
.section { padding: var(--section-y) 0; }
.section--soft { background: var(--c-bg-soft); }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-4);
  margin-bottom: var(--title-gap);
}
.section-head p { margin-top: var(--s-2); }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 4px;
  font: 600 16px/1.2 var(--font);
  text-decoration: none; cursor: pointer;
  background: transparent; color: var(--c-text);
}
.btn--primary { background: var(--c-accent); color: #fff; }
.btn--primary:hover { background: var(--c-accent-hover); }
.btn--secondary { border-color: var(--c-text); }
.btn--secondary:hover { background: var(--c-bg-soft); }
.on-dark .btn--secondary { border-color: var(--c-dark-text); color: var(--c-dark-text); }
.on-dark .btn--secondary:hover { background: rgba(255, 255, 255, 0.08); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--tall { min-height: 52px; }
.btn[disabled], .btn[aria-disabled="true"] {
  background: var(--c-disabled-bg); color: var(--c-disabled-text);
  border-color: transparent; cursor: not-allowed;
}
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- 내비 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
}
.nav__inner { height: 100%; display: flex; align-items: center; gap: var(--s-6); }
/* 로고: 공식 이미지 그대로, 크기만 정함 (상단=워드마크, 푸터=엠블럼) */
.logo { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.nav .logo img { height: 40px; width: auto; }
/* 상단 메뉴 — 모든 화면 같은 구성 */
.gnav { margin-left: auto; height: 100%; }
.gnav__list { display: flex; align-items: center; gap: var(--s-2); height: 100%; list-style: none; margin: 0; padding: 0; }
.gnav__list > li { position: relative; height: 100%; display: flex; align-items: center; }
.gnav__link {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 14px;
  font: 600 16px/1 var(--font); color: var(--c-text); text-decoration: none;
  background: none; border: 0; cursor: pointer;
}
.gnav__link:hover { color: var(--c-accent); }
.gnav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: transparent;
}
.gnav__link[aria-current]::after { background: var(--c-text); }
.gnav__link[aria-current] { color: var(--c-text); }
.gnav__caret { width: 16px; height: 16px; transition: transform .15s; }
.gnav__snsbtn[aria-expanded="true"] .gnav__caret { transform: rotate(180deg); }
.sns-menu {
  position: absolute; right: 0; top: calc(100% - 6px); z-index: 60;
  min-width: 220px; margin: 0; padding: var(--s-2); list-style: none;
  background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}
.sns-menu[hidden] { display: none; }
.sns-menu__link {
  display: flex; align-items: center; gap: var(--s-3);
  min-height: 44px; padding: 0 var(--s-3); border-radius: 4px;
  font-weight: 600; text-decoration: none; color: var(--c-text);
}
.sns-menu__link:hover { background: var(--c-bg-soft); }
.ic { width: 20px; height: 20px; flex: none; }
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--c-accent); color: #fff;
  font-size: 12px; font-weight: 600; line-height: 1;
}
.badge[hidden] { display: none; }
.menu-btn {
  display: none;
  width: 44px; height: 44px; padding: 0; margin-right: -10px;
  border: 0; background: transparent; color: var(--c-text); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-btn svg { width: 24px; height: 24px; }
.menu-btn .ic-close { display: none; }
.menu-btn[aria-expanded="true"] .ic-open { display: none; }
.menu-btn[aria-expanded="true"] .ic-close { display: block; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 홈: 히어로 ---------- */
.hero { padding: 0; }
.hero__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  align-items: center; min-height: 640px;
}
.hero__text { grid-column: 1 / span 5; }
.hero__text h1 { font-size: 56px; line-height: 1.15; overflow-wrap: normal; word-break: keep-all; }
.hero__text p { margin-top: var(--s-4); color: var(--c-text-sub); }
.hero__actions { display: flex; gap: var(--s-3); margin-top: var(--s-6); flex-wrap: wrap; }
.hero__media { grid-column: 6 / span 7; margin: 0; }
.hero__media a { display: block; }
.hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.hero__media figcaption { text-align: right; margin-top: var(--s-2); }

/* ---------- 태그 ---------- */
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 2px;
  background: var(--c-bg-soft); color: var(--c-text-sub);
  font-size: 13px; font-weight: 600; line-height: 1.5;
}

.tag--dark { background: var(--c-text); color: #fff; }

/* ---------- 홈: 회사 소개 요약 띠 ---------- */
.intro { background: var(--c-dark); color: var(--c-dark-text); padding: var(--s-8) 0; }
.intro__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s-5); align-items: center; }
.intro__text { grid-column: 1 / span 7; }
.intro__text p { margin-top: var(--s-3); color: #C9CDD1; max-width: 560px; }
.intro__text .text-link { display: inline-block; margin-top: var(--s-4); }
.text-link--light { color: var(--c-dark-text); }
.text-link--light:hover { color: #fff; }
.intro__nums { grid-column: 9 / span 4; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); margin: 0; }
.intro__nums dt { font-size: 14px; color: var(--brand-silver); }
.intro__nums dd, .fact dd { margin: 4px 0 0; font-size: 48px; font-weight: 700; line-height: 1.1; }
.intro__nums dd span, .fact dd span { font-size: 20px; font-weight: 600; margin-left: 2px; }

/* ---------- 카테고리 타일 (홈) ---------- */
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gutter); }
.tile {
  display: flex; flex-direction: column;
  background: var(--c-bg-soft); border-radius: 4px; padding: var(--s-4);
  text-decoration: none; border: 1px solid transparent;
}
.tile:hover { border-color: var(--c-text); }
.tile__img { position: relative; display: block; aspect-ratio: 1 / 1; }
.tile__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.tile h3 { margin-top: var(--s-3); }
.tile .sub { margin-top: 2px; }
.section--flush-top { padding-top: 0; }

/* ---------- 제품 페이지: 분류·검색 ---------- */
.toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-4); margin-bottom: var(--s-4); flex-wrap: wrap; }
.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.filter {
  min-height: 44px; padding: 0 14px; border-radius: 2px;
  border: 1px solid var(--c-line); background: var(--c-bg); color: var(--c-text);
  font: 600 14px/1 var(--font); cursor: pointer;
}
.filter .num { font-weight: 400; color: var(--c-text-sub); margin-left: 2px; }
.filter:hover { border-color: var(--c-text); }
.filter[aria-pressed="true"] { background: var(--c-text); border-color: var(--c-text); color: #fff; }
.filter[aria-pressed="true"] .num { color: #fff; }
.search { position: relative; display: block; width: 300px; max-width: 100%; }
.search svg { position: absolute; left: 12px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--c-text-sub); pointer-events: none; }
.search input {
  width: 100%; min-height: 44px; padding: 0 12px 0 40px;
  font: 15px/1.4 var(--font); color: var(--c-text);
  border: 1px solid var(--c-line); border-radius: 4px; background: var(--c-bg);
}
.search input:focus { outline: none; border: 2px solid var(--c-text); padding-left: 39px; }
.filter-note { margin-bottom: var(--s-4); }
.empty { padding: var(--s-7) 0; text-align: center; color: var(--c-text-sub); }
.empty[hidden] { display: none; }

/* ---------- 제품 카드 ---------- */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.card {
  display: flex; flex-direction: column; width: 100%; min-width: 0;
  background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 4px;
  text-decoration: none; color: var(--c-text); text-align: left; padding: 0;
}
.card[hidden] { display: none; }
a.card:hover { border-color: var(--c-text); }
.card__img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--c-bg); border-radius: 4px 4px 0 0; }
.card__img img { position: absolute; inset: var(--s-4); width: calc(100% - 2 * var(--s-4)); height: calc(100% - 2 * var(--s-4)); object-fit: contain; }
.card--soon .card__img img { opacity: .85; }
.card__body { padding: var(--s-4); border-top: 1px solid var(--c-line); display: flex; flex-direction: column; gap: var(--s-1); flex: 1; }
.card__name { margin-top: var(--s-1); }
.card__code { font-size: 14px; color: var(--c-text-sub); }
/* 카드에는 분류 태그·치수·상세보기 요소가 없으므로 그 규칙도 두지 않는다(목록은 사진·이름·모델 번호만) */
/* 대표 카드 T ROW PK9- RH (NEW) — PC 2칸×2줄, 맨 앞 */
.card--lead { grid-column: span 2; grid-row: span 2; }
.card--lead .card__img { aspect-ratio: auto; flex: 1; min-height: 280px; }
.card--lead .card__name { font-size: 26px; }

/* ---------- SNS ---------- */
.sns-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); list-style: none; margin: 0; padding: 0; }
.sns-card {
  display: flex; flex-direction: column; gap: 4px; min-height: 132px; padding: var(--s-5);
  border: 1px solid var(--c-line); border-radius: 4px; text-decoration: none; color: var(--c-text);
}
.sns-card:hover { border-color: var(--c-text); }
.sns-card__ic { width: 32px; height: 32px; margin-bottom: var(--s-3); }
.sns-card__name { font-size: 18px; font-weight: 600; }

/* ---------- 회사소개 ---------- */
.about-hero { background: var(--c-dark); color: var(--c-dark-text); padding: var(--s-8) 0; }
.about-hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s-5); align-items: center; }
.about-hero__text { grid-column: 1 / span 7; }
.about-hero__text h1 { font-size: 48px; }
.about-hero__text p { margin-top: var(--s-4); color: #C9CDD1; max-width: 600px; }
.about-hero__mark { grid-column: 9 / span 4; }
.about-hero__mark img { width: 100%; max-width: 320px; margin-left: auto; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); margin: 0; }
.fact { border-top: 1px solid var(--c-text); padding-top: var(--s-4); }
.fact dt { font-size: 14px; color: var(--c-text-sub); }
.fact:last-child dd { font-size: 24px; line-height: 1.35; margin-top: var(--s-2); }
.story { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s-6); align-items: center; }
.story__text { grid-column: 1 / span 7; }
.story__img { grid-column: 9 / span 4; margin: 0; }
.story__img img { width: 100%; max-height: 420px; object-fit: contain; mix-blend-mode: multiply; }
.story__img .caption { margin-top: var(--s-2); text-align: center; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--s-4); padding: var(--s-5) 0; border-top: 1px solid var(--c-line); }
.timeline li:last-child { border-bottom: 1px solid var(--c-line); }
.timeline__year { font-size: 28px; font-weight: 700; line-height: 1.2; }
.timeline p { margin-top: var(--s-2); color: var(--c-text-sub); }
.dos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
.do { background: var(--c-bg-soft); border-radius: 4px; padding: var(--s-6); }
.do p:last-child { margin-top: var(--s-2); color: var(--c-text-sub); }
.worklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); }
.worklist li { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--c-line); font-size: 15px; }
.worklist li .num { color: var(--c-text-sub); }
.worklist li span:last-child { font-weight: 600; overflow-wrap: anywhere; }
.cta-band__actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* ---------- 특징 ---------- */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.feature { border-top: 1px solid var(--c-text); padding-top: var(--s-4); }
.feature p { margin-top: var(--s-2); }

/* ---------- 프로젝트 자리표시 ---------- */
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.project__img {
  aspect-ratio: 4 / 3; background: var(--c-bg-soft); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
}
.project h3 { margin-top: var(--s-3); }
.project p { margin-top: 2px; }

/* ---------- 견적 문의(어두운 띠) ---------- */
.contact { background: var(--c-dark); color: var(--c-dark-text); }
.contact__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s-6); }
.contact__text { grid-column: 1 / span 5; }
.contact__text p { margin-top: var(--s-3); color: #C9CDD1; }
.contact__text dl { margin: var(--s-5) 0 0; font-size: 14px; color: #C9CDD1; }
.contact__text dt { font-weight: 600; color: var(--brand-silver); }
.contact__text dd { margin: 0 0 var(--s-3); }
.contact__quote { margin-top: var(--s-5); font-size: 14px; color: var(--c-dark-text); }
.form { grid-column: 6 / span 7; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; line-height: 1.55; color: var(--c-dark-text); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0 12px;
  font: 16px/1.5 var(--font); color: var(--c-text); background: #fff;
  border: 1px solid var(--c-line); border-radius: 4px;
}
.field textarea { padding: 12px; min-height: 104px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border: 2px solid var(--c-text); box-shadow: 0 0 0 2px var(--c-dark-text);
}
.form .btn { grid-column: 1 / -1; justify-self: start; }
.form__memo { grid-column: 1 / -1; font-size: 12px; color: #9EA3A8; margin-top: calc(-1 * var(--s-2)); }
.field input[aria-invalid="true"] { border: 2px solid #E5484D; }
.contact__text a { color: var(--c-dark-text); }
.hours { list-style: none; margin: 0; padding: 0; }
.hours span { display: inline-block; min-width: 3.2em; }

/* ---------- 푸터 ---------- */
.footer { background: var(--c-dark); color: var(--c-dark-text); border-top: 1px solid rgba(255, 255, 255, 0.2); padding: var(--s-8) 0 var(--s-6); }
.footer__cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--gutter); }
.footer .logo img { width: 160px; height: auto; }
.footer h3 { font-size: 14px; font-weight: 600; margin-bottom: var(--s-3); color: var(--brand-silver); }
.footer ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.footer li { margin-bottom: var(--s-2); color: #C9CDD1; }
.footer a { color: #C9CDD1; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__slogan { margin-top: var(--s-4); font-size: 15px; font-weight: 600; color: var(--c-dark-text); }
.footer__contact li { overflow-wrap: anywhere; }
/* 좁은 휴대폰: 2칸 푸터에서 연락처 칸이 좁아 이메일이 단어 중간(…pantheontec / m)에서 끊기던 것 → 연락처 칸을 한 줄 전체로 */
@media (max-width: 480px) { .footer__cols > div:has(> .footer__contact) { grid-column: 1 / -1; } }
/* 태블릿(4칸 푸터가 좁은 구간): 연락처 칸을 넓혀 이메일이 한 줄에 들어가게 */
@media (min-width: 721px) and (max-width: 1100px) { .footer__cols { grid-template-columns: 1.5fr 1fr 1.6fr 1fr; } }
.footer__sns a { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 32px; }
.footer__credit { margin-top: var(--s-7); font-size: 13px; color: #C9CDD1; overflow-wrap: anywhere; }
.footer__credit + .footer__legal { margin-top: var(--s-4); }
.footer__legal { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid rgba(255, 255, 255, 0.2); color: #B4B9BE; font-size: 13px; line-height: 1.6; }

/* ---------- 토스트 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80;
  transform: translateX(-50%);
  max-width: min(360px, calc(100vw - 40px)); width: max-content;
  padding: 14px 20px; border-radius: 4px;
  background: var(--c-toast-bg); color: #fff; font-size: 15px; line-height: 1.4;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.toast.is-show { opacity: 1; }
body.has-bottombar .toast { bottom: calc(64px + env(safe-area-inset-bottom, 0px) + 12px); }

/* ---------- 우측 하단 WhatsApp 상담 버튼 (모든 페이지, 요소는 js/main.js 가 생성) ---------- */
.pt-wa-float {
  position: fixed; right: 20px; bottom: 24px; z-index: 85;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25D366; color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.25);
  transition: transform .15s;
}
.pt-wa-float:hover, .pt-wa-float:focus-visible { transform: scale(1.08); }
.pt-wa-float svg { width: 30px; height: 30px; }
body.has-bottombar .pt-wa-float { bottom: calc(64px + env(safe-area-inset-bottom, 0px) + 16px); }
@media (max-width: 480px) { .pt-wa-float { width: 50px; height: 50px; right: 14px; bottom: 18px; } .pt-wa-float svg { width: 26px; height: 26px; } }

/* ---------- 상세 ---------- */
.crumbs { height: 48px; display: flex; align-items: center; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: ">"; margin-right: var(--s-2); color: var(--c-text-sub); }
.crumbs a { color: var(--c-text-sub); }
.crumbs a:hover { color: var(--c-accent); }

.summary { padding: var(--s-5) 0 var(--s-9); }
.summary__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s-6); align-items: start; }
.viewer { grid-column: 1 / span 7; }
.info { grid-column: 8 / span 5; }

.viewer__stage {
  position: relative; aspect-ratio: 4 / 3; background: var(--c-bg);
  border: 1px solid var(--c-line); border-radius: 4px; overflow: hidden;
}
.viewer__stage img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: var(--s-4);
  object-fit: scale-down; /* 원본보다 크게 늘리지 않음 */
  opacity: 0; transition: opacity 0.15s;
}
.viewer__stage img.is-active { opacity: 1; }
.angles { display: flex; margin-top: var(--s-4); }
.angle {
  flex: 1 1 0; min-width: 0; min-height: 44px;
  border: 1px solid var(--c-line); background: var(--c-bg); color: var(--c-text);
  font: 600 15px/1 var(--font); cursor: pointer;
  margin-left: -1px;
}
.angle:first-child { margin-left: 0; border-radius: 4px 0 0 4px; }
.angle:last-child { border-radius: 0 4px 4px 0; }
.angle:hover { background: var(--c-bg-soft); }
.angle[aria-pressed="true"] { background: var(--c-accent); border-color: var(--c-accent); color: #fff; position: relative; z-index: 1; }
.viewer .caption { margin-top: var(--s-2); }

.info__ko { color: var(--c-text-sub); margin-top: var(--s-2); }
.info .tag { margin-top: var(--s-3); }
.info__lead { margin-top: var(--s-4); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: var(--s-5) 0 0; border-top: 1px solid var(--c-line); }
.stat { padding: var(--s-3) 0; border-bottom: 1px solid var(--c-line); }
.stat:nth-child(odd) { padding-right: var(--s-3); }
.stat--wide { grid-column: 1 / -1; }
.stat dt { font-size: 14px; color: var(--c-text-sub); }
.stat dd { margin: 2px 0 0; font-size: 20px; font-weight: 600; line-height: 1.35; font-variant-numeric: tabular-nums; }
.info__cta { margin-top: var(--s-5); }
.info__speclink { display: inline-block; margin-top: var(--s-3); font-size: 14px; }
/* 아이콘 다운로드: 스펙 칸(#spec) 표 바로 아래 새 줄에 단추 하나(2026-12-03, 크기 숫자 없음) */
.plan-dl { margin-top: var(--s-5); }
.section--soft .plan-dl__btn:hover { background: var(--c-bg); }   /* 스펙 칸 배경(soft)과 같은 색이라 흰색으로 눌림 표시 */
.plan-dl[hidden] { display: none; }   /* 넥프레스: 고른 형태(기본 PK5 / 85°)의 단추만 보임 */
@media (max-width: 480px) {
  .plan-dl__btn { width: 100%; padding: 0 16px; }
}

.detail-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.detail-feature { background: var(--c-bg-soft); border-radius: 4px; padding: var(--s-5); }
.detail-feature p { margin-top: var(--s-2); }
.detail-features--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- 3D 모델 (상세) ---------- */
.section--tight { padding-bottom: var(--s-7); }
.m3d__stage {
  position: relative; aspect-ratio: 2 / 1; max-height: 600px; width: 100%;
  border: 1px solid var(--c-line); border-radius: 4px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 38%, #FFFFFF 0%, var(--c-bg-soft) 60%, #E6E8EA 100%);
}
.m3d__canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.m3d__canvas:active { cursor: grabbing; }
.m3d__loading {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-3);
  font-size: 14px; color: var(--c-text-sub);
}
.m3d__loading[hidden] { display: none; }
.m3d__bar { position: relative; display: block; width: 120px; height: 2px; background: var(--c-line); overflow: hidden; }
.m3d__bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 40%; background: var(--c-text); animation: m3d-slide 1.1s ease-in-out infinite; }
@keyframes m3d-slide { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.m3d__fallback { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-2); padding: var(--s-4); background: var(--c-bg); }
.m3d__fallback[hidden] { display: none; }
.m3d__fallback img { max-width: 100%; max-height: 85%; object-fit: contain; }
/* 위치 초기화: 3D 영역 오른쪽 위 모서리 (터치 40px, 글자 13px) */
.m3d__reset {
  position: absolute; right: var(--s-3); top: var(--s-3); z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 12px 0 10px; border-radius: 4px;
  border: 1px solid var(--c-line); background: rgba(255,255,255,.92); color: var(--c-text);
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.m3d__reset svg { width: 18px; height: 18px; flex: none; }
.m3d__reset:hover { border-color: var(--c-text); }
.m3d__reset:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.m3d__reset:disabled { display: none; }
.is-fallback .m3d__reset { display: none; }
.m3d__controls { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-4); flex-wrap: wrap; }
.m3d__colors { display: flex; align-items: center; gap: var(--s-4); min-width: 0; flex-wrap: wrap; }
.m3d__label { font-size: 14px; color: var(--c-text-sub); white-space: nowrap; min-width: 7.5em; }
.m3d__label b { color: var(--c-text); font-weight: 600; }
.m3d__chips { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.m3d__chip {
  width: 40px; height: 40px; padding: 0; border-radius: 50%;
  border: 1px solid var(--c-line); background: var(--c-bg); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.m3d__chip:hover { border-color: var(--c-text); }
.m3d__chip[aria-pressed="true"] { border-color: var(--c-text); box-shadow: inset 0 0 0 1px var(--c-text); }
.m3d__chip:disabled { opacity: .4; cursor: not-allowed; }
.m3d__sw { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); }
/* 조작 안내: 마우스 기기는 PC 안내, 터치 기기는 휴대폰 안내만 보임 */
.m3d__hint {
  list-style: none; margin: var(--s-3) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 4px var(--s-5);
  font-size: 13px; line-height: 1.5; color: var(--c-text-sub);
}
.m3d__hint b { color: var(--c-text); font-weight: 600; margin-right: 4px; }
.m3d__hint--mo { display: none; }
@media (hover: none) and (pointer: coarse) {
  .m3d__hint--pc { display: none; }
  .m3d__hint--mo { display: flex; }
}
.is-fallback .m3d__hint { display: none; }

.spec { width: 100%; border-collapse: collapse; border-top: 1px solid var(--c-text); border-bottom: 1px solid var(--c-text); }
.spec th, .spec td { height: 52px; padding: 0 var(--s-3) 0 0; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--c-line); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th { width: 240px; font-size: 14px; font-weight: 400; color: var(--c-text-sub); }
.spec td { font-weight: 600; font-variant-numeric: tabular-nums; }
.spec td.ask { color: var(--c-text-sub); font-weight: 400; }
.spec-note { margin-top: var(--s-3); }

.faq { border-top: 1px solid var(--c-line); }
.faq details { border-bottom: 1px solid var(--c-line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  min-height: 64px; cursor: pointer; list-style: none;
  font-size: 18px; font-weight: 600; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; }
.faq .ic-minus { display: none; }
.faq details[open] .ic-minus { display: block; }
.faq details[open] .ic-plus { display: none; }
.faq details p { padding: 0 0 var(--s-5); color: var(--c-text-sub); max-width: 760px; }

.cta-band { background: var(--c-bg-soft); padding: var(--s-8) 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; }

/* 견적 고정 바 — PC: 내비 아래 얇은 바 / 휴대폰: 하단 바 */
.stickybar {
  position: fixed; left: 0; right: 0; z-index: 40;
  background: var(--c-bg); border-bottom: 1px solid var(--c-line);
  top: var(--nav-h); height: 56px;
  visibility: hidden; opacity: 0; transition: opacity 0.15s, visibility 0.15s;
}
.stickybar.is-visible { visibility: visible; opacity: 1; }
.stickybar__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.stickybar__name { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stickybar__title { font-weight: 600; }
.stickybar__code { color: var(--c-text-sub); font-size: 14px; margin-left: var(--s-2); }
.section--first { padding-top: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .toast, .viewer__stage img, .stickybar { transition: none; }
}

/* ---------- 태블릿 ---------- */
@media (max-width: 1280px) {
  :root { --side: 48px; }
}
@media (max-width: 1024px) {
  :root { --side: 32px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-6); }
  .detail-features--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sns-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .worklist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro__text { grid-column: 1 / span 7; }
  .intro__nums { grid-column: 8 / span 5; }
  .hero__text h1 { font-size: 44px; }
  .gnav__link { padding: 0 10px; }
  .gnav__link::after { left: 10px; right: 10px; }
}

/* ---------- 휴대폰 ---------- */
@media (max-width: 720px) {
  :root {
    --nav-h: 60px;
    --section-y: var(--s-7);
    --title-gap: var(--s-5);
    --gutter: 16px;
    --side: 20px;
  }
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  h3 { font-size: 18px; }

  .nav__inner { gap: var(--s-3); }
  .nav .logo img { height: 32px; }
  .footer .logo img { width: 128px; }
  /* 햄버거: 메뉴 5개를 접어 둠 */
  .menu-btn { display: inline-flex; margin-left: auto; }
  .gnav { margin-left: 0; height: auto; }
  .gnav__list {
    position: fixed; left: 0; right: 0; top: var(--nav-h); bottom: 0; z-index: 49;
    display: none; flex-direction: column; align-items: stretch; gap: 0; height: auto;
    padding: 0 20px 24px; background: var(--c-bg); overflow-y: auto;
  }
  .nav.is-open .gnav__list { display: flex; }
  .gnav__list > li { height: auto; display: block; border-bottom: 1px solid var(--c-line); }
  .gnav__link { width: 100%; min-height: 56px; padding: 0; font-size: 18px; justify-content: flex-start; }
  .gnav__link::after { left: -20px; right: auto; top: 14px; bottom: 14px; width: 3px; height: auto; }
  .gnav__snsbtn { justify-content: space-between; }
  .sns-menu { position: static; min-width: 0; padding: 0 0 var(--s-3); border: 0; box-shadow: none; }
  .sns-menu__link { min-height: 48px; padding: 0 var(--s-2); font-size: 16px; }

  .section-head { flex-direction: column; align-items: flex-start; gap: var(--s-2); }

  .hero { padding: var(--s-4) 0 var(--s-7); }
  .hero__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; row-gap: var(--s-5); }
  .hero__media { grid-column: 1; grid-row: 1; }
  .hero__media img { max-height: 240px; margin: 0 auto; }
  .hero__text { grid-column: 1; }
  .hero__text h1 { font-size: 34px; }
  .hero__actions { flex-direction: column; margin-top: var(--s-5); }
  .hero__actions .btn { width: 100%; }

  .intro { padding: var(--s-7) 0; }
  .intro__grid { grid-template-columns: minmax(0, 1fr); }
  .intro__text, .intro__nums { grid-column: 1; }
  .intro__nums dd, .fact dd { font-size: 36px; }

  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .tile:last-child:nth-child(odd) .tile__img { aspect-ratio: 2 / 1; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card__img img { inset: var(--s-2); width: calc(100% - 2 * var(--s-2)); height: calc(100% - 2 * var(--s-2)); }
  .card__body { padding: var(--s-3); }
  .card__name { font-size: 16px; }
  .card__code { font-size: 13px; }
  .card--lead { grid-column: 1 / -1; grid-row: auto; }
  .card--lead .card__img { aspect-ratio: 4 / 3; min-height: 0; flex: none; }
  .card--lead .card__name { font-size: 22px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search { width: 100%; }

  .sns-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
  .sns-card { min-height: 0; padding: var(--s-4); }
  .sns-card__ic { width: 28px; height: 28px; margin-bottom: var(--s-2); }

  .about-hero { padding: var(--s-7) 0; }
  .about-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .about-hero__text { grid-column: 1; grid-row: 2; }
  .about-hero__text h1 { font-size: 32px; }
  .about-hero__mark { grid-column: 1; grid-row: 1; }
  .about-hero__mark img { max-width: 140px; margin: 0; }
  .facts { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-5); }
  .story { grid-template-columns: minmax(0, 1fr); }
  .story__text, .story__img { grid-column: 1; }
  .story__img img { max-height: 280px; }
  .timeline li { grid-template-columns: 64px minmax(0, 1fr); }
  .timeline__year { font-size: 22px; }
  .dos { grid-template-columns: minmax(0, 1fr); }
  .do { padding: var(--s-5); }
  .worklist { grid-template-columns: minmax(0, 1fr); }
  .cta-band__actions { width: 100%; flex-direction: column; }

  .features { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .feature { border-top: 0; border-bottom: 1px solid var(--c-line); padding: var(--s-4) 0; }
  .feature:last-child { border-bottom: 0; }

  .projects { grid-template-columns: minmax(0, 1fr); }

  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .contact__text, .form { grid-column: 1; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .form .btn { width: 100%; }

  .footer { padding-top: var(--s-7); }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-6); }
  .footer__brand { grid-column: 1 / -1; }

  /* 상세 */
  .summary { padding: var(--s-2) 0 var(--s-7); }
  .summary__grid { grid-template-columns: minmax(0, 1fr); }
  .viewer, .info { grid-column: 1; }
  .angle { font-size: 14px; }
  .detail-features { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
  .m3d__stage { aspect-ratio: 1 / 1; }
  .m3d__controls { flex-direction: column; align-items: stretch; gap: var(--s-3); }
  .m3d__colors { flex-direction: column; align-items: flex-start; gap: var(--s-2); }
  .m3d__chips { gap: 6px; }
  .m3d__hint { flex-direction: column; gap: 2px; }
  .m3d__reset { right: var(--s-2); top: var(--s-2); }
  .spec th { width: 40%; }
  .cta-band { padding: var(--s-7) 0; }
  .cta-band .btn { width: 100%; }

  .stickybar {
    top: auto; bottom: 0; height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-bottom: 0; border-top: 1px solid var(--c-line);
  }
  .stickybar__title { display: none; }
  .stickybar__code { margin-left: 0; font-weight: 600; color: var(--c-text); }
  .stickybar .btn { min-height: 48px; width: 55%; flex: none; }
  body.page-machine { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}

/* ===== 언어 전환·홈 머신 슬라이드 ===== */

/* ---------- 언어 전환 KO | EN ---------- */
.langsw { display: inline-flex; align-items: center; gap: 2px; flex: none; margin-left: var(--s-2); font-size: 14px; }
.langsw__link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; min-height: 44px; padding: 0 6px;
  font-weight: 600; color: var(--c-text-sub); text-decoration: none; border-radius: 4px;
}
.langsw__link:hover { color: var(--c-text); background: var(--c-bg-soft); }
.langsw__link[aria-current="true"] { color: var(--c-text); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.langsw__sep { color: var(--c-line); }

/* ---------- 홈: 대표 머신 가로 슬라이드 ---------- */
.slider__nav { display: flex; gap: var(--s-2); }
.slider__arrow {
  width: 48px; height: 48px; padding: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--c-line); background: var(--c-bg); color: var(--c-text); cursor: pointer;
}
.slider__arrow:hover { border-color: var(--c-text); }
.slider__arrow svg { width: 22px; height: 22px; }
.slider__viewport {
  container-type: inline-size;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  border-radius: 4px;
}
.slider__viewport::-webkit-scrollbar { display: none; }
.slider__viewport:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 4px; }
.slider__track { --gap: var(--gutter); display: flex; gap: var(--gap); list-style: none; margin: 0; padding: 0; width: max-content; }
.slide { flex: none; width: calc((100cqw - 3 * var(--gap)) / 4); }
.slide[hidden] { display: none; }
.slide__card {
  display: flex; flex-direction: column; height: 100%;
  border: 1px solid var(--c-line); border-radius: 4px; background: var(--c-bg);
  text-decoration: none; color: var(--c-text);
}
a.slide__card:hover { border-color: var(--c-text); }
.slide__img { position: relative; display: block; aspect-ratio: 1 / 1; border-bottom: 1px solid var(--c-line); }
.slide__img img { position: absolute; inset: var(--s-4); width: calc(100% - 2 * var(--s-4)); height: calc(100% - 2 * var(--s-4)); object-fit: contain; }
.slide__card--soon .slide__img img { opacity: .85; }
.slide__code { padding: var(--s-4) var(--s-4) 0; font-size: 20px; font-weight: 700; line-height: 1.3; }
.slide__name { padding: 2px var(--s-4) 0; font-size: 14px; color: var(--c-text-sub); }
.slide__more { margin-top: auto; padding: var(--s-3) var(--s-4) var(--s-4); font-size: 14px; font-weight: 600; color: var(--c-accent); }
.slide__more--muted { color: var(--c-text-sub); font-weight: 400; }
.slider__foot { margin-top: var(--s-4); display: none; }

/* ---------- 홈: 영상 자리 ---------- */
.video-slot { padding: var(--s-6) 0 0; }
.video-slot--below { padding: 0 0 var(--s-9); }
.video-slot[hidden] { display: none; }
.video-slot__frame { position: relative; aspect-ratio: 16 / 9; max-height: 640px; width: 100%; background: #000; border-radius: 4px; overflow: hidden; }
.video-slot__media { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; background: #000; }
.video-slot__note { margin-top: var(--s-2); }

/* ---------- 견적문의 화면 ---------- */
.page-contact .contact h1 { font-size: 40px; }
.footer__admin { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 시작 화면(언어 선택) ---------- */
.page-start { background: var(--c-dark); color: var(--c-dark-text); min-height: 100vh; }
.start { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-6); padding: var(--s-7) var(--s-5); text-align: center; }
.start__logo { width: 180px; height: auto; }
.start__title { display: flex; flex-direction: column; gap: 4px; font-size: 28px; line-height: 1.3; }
.start__title span[lang="en"] { font-size: 18px; font-weight: 600; color: var(--brand-silver); }
.start__choices { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: var(--s-5); width: 100%; justify-content: center; }
.start__btn {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 168px; padding: var(--s-5); border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: var(--c-dark-text); text-decoration: none;
}
.start__btn:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
.start__btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.start__btn.is-recommended { border: 2px solid #fff; }
.start__big { font-size: 32px; font-weight: 700; line-height: 1.2; }
.start__small { font-size: 15px; color: #C9CDD1; }
.start__rec { position: absolute; top: 12px; right: 12px; padding: 2px 8px; border-radius: 2px; background: #fff; color: #000; font-size: 12px; font-weight: 700; }
.start__rec[hidden] { display: none; }
.start__note { font-size: 13px; color: #B4B9BE; max-width: 520px; }

@media (prefers-reduced-motion: reduce) {
  .slider__viewport { scroll-behavior: auto; }
}
@media (max-width: 1024px) {
  .slide { width: calc((100cqw - 2 * var(--gap)) / 3); }
  .langsw { margin-left: 0; }
}
@media (max-width: 720px) {
  /* 휴대폰: 한 번에 1.3장 */
  .slide { width: calc((100cqw - 0.3 * var(--gap)) / 1.3); }
  .slider__nav { align-self: flex-end; margin-top: calc(-1 * var(--s-2)); }
  .slider__arrow { width: 44px; height: 44px; }
  .slider__foot { display: block; }
  .slide__code { font-size: 18px; }
  .langsw { margin-left: auto; }
  .menu-btn { margin-left: 0; }
  .page-contact .contact h1 { font-size: 28px; }
  .video-slot { padding-top: var(--s-4); }
  .video-slot--below { padding-bottom: var(--s-7); }
  .start__choices { grid-template-columns: minmax(0, 1fr); max-width: 320px; }
  .start__btn { min-height: 120px; }
}

/* ---- 3D 움직이는 부위 (칩·점 모양은 assets/3d/motion_ui.js 가 넣음) ---- */
.m3d__parts { margin-top: var(--s-4); min-width: 0; }
.m3d__parts:empty { display: none; }
.m3d__parts .mm-ttl { font-size: 14px; color: var(--c-text-sub); font-weight: 400; min-width: 7.5em; }
.m3d__partshint { margin: var(--s-2) 0 0; font-size: 13px; line-height: 1.5; color: var(--c-text-sub); }
.m3d__partshint[hidden] { display: none; }
@media (max-width: 720px) {
  .m3d__parts .mm-panel { flex-wrap: wrap; gap: 4px 8px; }
  .m3d__parts .mm-chips { flex-basis: 100%; }
}

/* ===== 머신 3D 상세·주력 머신 카드·언어 전환(누름 영역 44px) ===== */
.langsw__link { min-width: 44px; }
.tag--accent { background: var(--c-accent); color: #fff; }
.flagship { margin-bottom: var(--s-7); }
.flagship__title { font-size: 24px; }
.flagship > .sub { margin: var(--s-1) 0 var(--s-4); }
.cards--flagship { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--flagship .card--lead { grid-column: auto; grid-row: auto; }
.cards--flagship .card--lead .card__img { aspect-ratio: 4 / 3; min-height: 0; flex: none; }
.cards--flagship .card--lead .card__name { font-size: 22px; }
#product-grid .card--lead { grid-column: auto; grid-row: auto; }
#product-grid .card--lead .card__img { aspect-ratio: 4 / 3; min-height: 0; flex: none; }
#product-grid .card--lead .card__name { font-size: inherit; }
.allmodels__title { font-size: 20px; margin-bottom: var(--s-4); }
@media (max-width: 720px) {
  .cards--flagship { grid-template-columns: minmax(0, 1fr); }
}
.m3d__chip { width: 44px; height: 44px; }   /* 색 칩 6개 터치 44px */
.m3d__sw { width: 28px; height: 28px; }

/* ===== 휴대폰 제품 목록 3열 =====
   휴대폰(가로 600px 이하) 제품 목록(주력 머신·전체 모델): 한 화면에 더 많은 머신이 보이도록 카드 3열, 사진+이름(+모델 번호)만, 3D 상세가 있는 카드(data-3d)는 사진 오른쪽 위에 '3D' 배지.
   PC·태블릿(601px 이상)은 그대로. 카드 HTML 은 build_site.py(sync_3d_to_site.py 재반영)가 다시 만들므로 CSS 만으로 처리해 재반영 뒤에도 유지된다.
   :is(#flagship, #product-grid) 는 위쪽 #product-grid 규칙(ID)보다 우선하려고 씀. 홈 슬라이드(.slide__card)는 건드리지 않음 */
@media (max-width: 600px) {
  .page-products :is(#flagship .cards, #product-grid.cards) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .page-products :is(#flagship, #product-grid) .card,
  .page-products :is(#flagship, #product-grid) .card--lead { grid-column: auto; grid-row: auto; }
  .page-products :is(#flagship, #product-grid) .card__img,
  .page-products :is(#flagship, #product-grid) .card--lead .card__img { aspect-ratio: 1 / 1; min-height: 0; flex: none; }
  .page-products :is(#flagship, #product-grid) .card__img img { inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); }
  /* 휴대폰에서도 모델 번호를 보임(아래 '목록 카드' 블록) */
  .page-products :is(#flagship, #product-grid) .card__body { padding: 6px 6px 8px; gap: 0; }
  .page-products :is(#flagship, #product-grid) .card__name,
  .page-products :is(#flagship, #product-grid) .card--lead .card__name {
    margin: 0; font-size: 12px; line-height: 1.3; font-weight: 600;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
    overflow: hidden; overflow-wrap: anywhere;
  }
  /* 휴대폰 전용 '3D' 글자는 따로 두지 않음 — 모든 화면이 아래 ④ .card__3d 배지 하나만 씀(표시가 두 벌로 갈라지지 않게) */
}

/* ===== 머신 상세: 색 칩 줄·이전/다음 머신 =====
   ① 상세 3D 프레임 색 줄: 3D 화면 바로 아래 첫 줄, 글자 없이 색 동그라미 6개만(색은 보는 것이 빠르고 휴대폰 폭을 아끼려고). 색 이름은 화면 읽기(aria-label '프레임 색 <이름>')·title 로만. 선택 = 굵은 테두리 + 체크
   ② 상세 아래 이전·다음 머신(제품 목록과 같은 모델 번호 순서) */
.m3d__controls { margin-top: var(--s-3); }
.m3d__label.visually-hidden {
  position: absolute; width: 1px; height: 1px; min-width: 0; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.m3d__chip { position: relative; }
.m3d__chip[aria-pressed="true"] { border: 2px solid var(--c-text); box-shadow: none; }
.m3d__chip[aria-pressed="true"]::after {
  content: ""; position: absolute; right: -3px; bottom: -3px; width: 17px; height: 17px;
  border-radius: 50%; background: var(--c-text); border: 2px solid var(--c-bg);
}
.m3d__chip[aria-pressed="true"]::before {
  content: ""; position: absolute; right: 3px; bottom: 4px; z-index: 1; width: 4px; height: 7px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.m3d__controls + .m3d__hint { margin-top: var(--s-3); }
/* 시트 색 줄(model3d.js 가 만듦): 프레임 색 줄 바로 아래 두 번째 줄, 같은 동그라미(.m3d__chip·.m3d__sw)·체크·44px, 글자 없음(이름은 aria-label·title).
   패드가 없는 머신은 hidden(.m3d__colors 의 display:flex 보다 우선) */
.m3d__controls { row-gap: var(--s-2); }
.m3d__colors--seat { flex-basis: 100%; }
.m3d__colors[hidden] { display: none; }
/* 색 칩 줄 이름표: 두 줄 중 어느 것이 프레임·시트인지 알 수 있게 칩 줄 바로 위 작은 이름표(프레임·시트, model3d.js 가 만듦, aria-hidden).
   줄은 그대로 가로 배치 — 이름표가 한 줄 전체(flex-basis 100%)를 차지해 칩 위로 올라감 */
.m3d__colors { row-gap: 2px; }
.m3d__rowlabel { flex: 0 0 100%; font-size: 12px; line-height: 1.3; color: var(--c-text-sub); letter-spacing: .02em; }
@media (max-width: 720px) { .m3d__rowlabel { flex-basis: auto; } }

.pager {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--s-3);
  align-items: stretch; padding-top: var(--s-6); padding-bottom: var(--s-7);
}
.pager__item {
  display: flex; flex-direction: column; gap: 2px; min-width: 0; min-height: 44px;
  padding: var(--s-3) var(--s-4); border: 1px solid var(--c-line); border-radius: 4px;
  color: var(--c-text); text-decoration: none; background: var(--c-bg);
}
.pager__item:hover { border-color: var(--c-text); }
.pager__item:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.pager__item--next { align-items: flex-end; text-align: right; }
.pager__item--empty { visibility: hidden; }
.pager__dir { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--c-text-sub); }
.pager__dir svg { width: 16px; height: 16px; flex: none; }
.pager__name { font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.pager__code { font-size: 13px; color: var(--c-text-sub); overflow-wrap: anywhere; }
.pager__all {
  align-self: center; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-2);
  font-size: 14px; color: var(--c-text); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap;
}
.pager__all:hover { color: var(--c-accent); }
@media (max-width: 600px) {
  .pager { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-2); padding-top: var(--s-5); }
  .pager__all { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .pager__item { padding: var(--s-2) var(--s-3); }
  .pager__name { font-size: 14px; }
}

/* ===== 홈·제품 화면 구성 =====
   ① 홈 첫 자리 = 영상(16:9, 영상이 없으면 글자 없는 정지 화면) ② 숫자 통계 대신 '3D로 머신을 확인하고 선택하세요'
   ③ 카테고리 가로 슬라이드 하나(카테고리·대표 제품을 한 줄로 합침) ④ 3D 표시 = 사진 오른쪽 위 '3D' 글자 배지(44px 영역)
   ⑤ 제품 = 부위 선택 칩 + 바로 아래 전체 목록 ⑥ 카드 사진 같은 4:3·같은 바탕(assets/cards/, card_images.py 와 같은 바탕색) */
:root { --card-bg: #F4F4F2; }

/* ① 영상 자리 */
.vhero { background: var(--c-dark); padding: 0; }
.vhero__frame {
  position: relative; width: 100%; max-width: calc(78vh * 16 / 9); margin: 0 auto; aspect-ratio: 16 / 9; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 40%, #2c2f33 0%, #17191b 62%, #0d0e0f 100%);
}
.vhero__still { position: absolute; left: 50%; top: 50%; width: min(22%, 220px); height: auto; transform: translate(-50%, -50%); opacity: .16; pointer-events: none; }
.vhero__frame[data-state="video"] .vhero__still { display: none; }
.vhero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.vhero__play {
  position: absolute; right: var(--s-4); bottom: var(--s-4); z-index: 2; width: 48px; height: 48px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .5); background: rgba(0, 0, 0, .45); color: #fff; cursor: pointer;
}
.vhero__play[hidden] { display: none; }
.vhero__play:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.vhero__play svg { width: 22px; height: 22px; }
.vhero__play .vhero__ic-pause, .vhero__play.is-playing .vhero__ic-play { display: none; }
.vhero__play.is-playing .vhero__ic-pause { display: block; }

/* ② 회사 소개 띠 오른쪽 문구 */
.intro__choose { grid-column: 9 / span 4; margin: 0; }
.intro__choose-link {
  display: inline-flex; align-items: center; min-height: 44px; color: #fff; text-decoration: none;
  font-size: 28px; font-weight: 700; line-height: 1.3; word-break: keep-all;
  border-bottom: 2px solid rgba(255, 255, 255, .5); padding-bottom: 4px;
}
.intro__choose-link:hover { border-bottom-color: #fff; }

/* ③ 카테고리 가로 슬라이드 */
.slide--cat { width: calc((100cqw - 3 * var(--gap)) / 4); }
.catcard {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--c-text);
  border: 1px solid var(--c-line); border-radius: 4px; background: var(--c-bg); overflow: hidden;
}
.catcard:hover { border-color: var(--c-text); }
.catcard__img { display: block; aspect-ratio: 4 / 3; background: var(--card-bg); }
.catcard__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.catcard__name { padding: var(--s-4) var(--s-4) 0; font-size: 20px; font-weight: 700; line-height: 1.3; }
.catcard__count { padding: 2px var(--s-4) var(--s-4); font-size: 14px; color: var(--c-text-sub); }
@media (max-width: 1024px) { .slide--cat { width: calc((100cqw - 2 * var(--gap)) / 3); } }
@media (max-width: 720px) {
  .slide--cat { width: calc((100cqw - 0.3 * var(--gap)) / 1.3); }
  .intro__choose { grid-column: 1 / -1; }
  .intro__choose-link { font-size: 22px; }
}

/* ④ 3D 표시 — 사진 오른쪽 위 글자 '3D' 배지 하나(아이콘보다 글자가 바로 읽힘).
   제품 목록·분류 목록·모바일 3열·홈 카테고리 슬라이드 같은 규칙. 영역 44×44(오른쪽 위 모서리에 붙음), 글자 배지는 그 안 오른쪽 위.
   밝은 회색 사진 바탕 위에서 잘 보이도록 짙은 회색 바탕 + 흰 굵은 대문자 */
.catcard__img { position: relative; }
.card__3d {
  position: absolute; top: 0; right: 0; z-index: 2; width: 44px; height: 44px;
  display: flex; align-items: flex-start; justify-content: flex-end; padding: 6px; pointer-events: none;
}
.card__3d-tag {
  display: inline-block; padding: 4px 7px; border-radius: 6px;
  background: rgba(34, 37, 41, .88); color: #fff;
  font: 800 13px/1 var(--font); letter-spacing: .02em; white-space: nowrap;
}

/* ⑤ 부위 선택 칩 */
.parts { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
.parts__title { font-size: 16px; font-weight: 700; }
.chip { border-radius: 999px; padding: 0 16px; }

/* ⑥ 카드 사진: 같은 비율·같은 바탕·사진 꽉 채움(여백은 사진 파일 안에 같은 비율로 들어 있음) */
.card__img, #product-grid .card--lead .card__img { aspect-ratio: 4 / 3; background: var(--card-bg); overflow: hidden; }
.card__img img, .card--soon .card__img img { inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 1; }
.card--soon .card__img img { opacity: .92; }

/* 회사소개: 걸어온 길 사진(T ROW) 삭제 → 글만 한 단 */
.story--single .story__text { grid-column: 1 / -1; max-width: 860px; }
.facts { grid-template-columns: minmax(0, 1fr); }

/* 상세: 넥프레스 두 형태 전환 */
.forms { display: inline-flex; gap: 0; margin: 0 0 var(--s-4); border: 1px solid var(--c-line); border-radius: 4px; overflow: hidden; }
.forms__btn {
  display: inline-flex; flex-direction: column; justify-content: center; min-height: 48px; min-width: 120px; padding: 6px var(--s-4);
  color: var(--c-text); text-decoration: none; background: var(--c-bg);
}
.forms__btn + .forms__btn { border-left: 1px solid var(--c-line); }
.forms__btn[aria-current="true"] { background: var(--c-text); color: #fff; }
.forms__btn[aria-current="true"] .forms__code { color: #D6D9DC; }
.forms__k { font-weight: 700; font-size: 15px; line-height: 1.3; }
.forms__code { font-size: 13px; color: var(--c-text-sub); }
.forms__btn:focus-visible { outline: 2px solid var(--c-focus); outline-offset: -2px; }
.stats[hidden], tbody[hidden], .viewer__stage img[hidden] { display: none; }

@media (max-width: 600px) {
  .page-products :is(#flagship, #product-grid) .card__img,
  .page-products :is(#flagship, #product-grid) .card--lead .card__img { aspect-ratio: 4 / 3; }
  .page-products :is(#flagship, #product-grid) .card__img img { inset: 0; width: 100%; height: 100%; }
  .card__3d { padding: 4px; }
  .card__3d-tag { padding: 3px 6px; font-size: 11px; border-radius: 5px; }
  .vhero__play { right: var(--s-3); bottom: var(--s-3); width: 44px; height: 44px; }
}
/* 카드 이름 크기 통일(3D 카드·준비 중 카드 같게) */
@media (min-width: 601px) { #product-grid .card__name, #product-grid .card--lead .card__name { font-size: 17px; line-height: 1.35; } }

/* ===== 목록 카드 — 사진·이름·모델 번호만(크기 정보·상세보기 버튼 없음, 카드 전체가 링크) =====
   목록 카드 = 사진(3D 배지) + 이름 + 모델 번호. 이름은 두 줄까지(넘치면 말줄임, 자리는 늘 두 줄), 번호는 한 줄(넘치면 말줄임) → 모든 카드 높이 같음.
   휴대폰 3열(600px 이하)도 이름 아래 번호를 작게 한 줄. 카드 전체가 링크(3D 상세 카드)라 포커스 표시를 카드 테두리에 */
#product-grid .card__body { gap: 4px; }
#product-grid .card__name, #product-grid .card--lead .card__name {
  margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  overflow: hidden; overflow-wrap: anywhere; min-height: calc(2 * 1.35em);
}
#product-grid .card__code { display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#product-grid a.card:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }
@media (max-width: 600px) {
  .page-products #product-grid .card__name, .page-products #product-grid .card--lead .card__name { min-height: calc(2 * 1.3em); }
  .page-products #product-grid .card__code { display: block; margin-top: 2px; font-size: 11px; line-height: 1.3; color: var(--c-text-sub); }
}
/* 홈 머신 슬라이드 */
.slide--m { width: calc((100cqw - 2 * var(--gap)) / 3); }
.mcard { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--c-line); background: var(--c-bg, #fff); color: inherit; text-decoration: none;
  opacity: .45; transition: opacity .45s ease, border-color .2s ease; }
.slide--m.is-center .mcard, .mcard:hover, .mcard:focus-visible { opacity: 1; }
.mcard:hover { border-color: var(--c-text); }
.mcard__img { display: block; aspect-ratio: 4 / 3; background: var(--card-bg); }
.mcard__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mcard__name { padding: var(--s-4); font-size: 18px; font-weight: 700; line-height: 1.3; text-align: center; overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .slide--m { width: 100cqw; }
  .slide--m .mcard { width: 82%; margin-inline: auto; opacity: 1; }
  .mcard__name { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .mcard { transition: none; opacity: 1; } }
.page-machine--photo .viewer__stage img { object-fit: contain; }

/* ===== 8개 언어 메뉴·언어별 글꼴 =====
   1) 상단 언어 펼침 메뉴(KO | EN 두 버튼 대신): 단추 = 지구 그림 + 지금 언어 이름, 목록 = English·한국어 | 구분선 | 日本語·Français·简体中文·Español·Deutsch·Русский
   2) 언어별 시스템 글꼴 대체 목록(외부 글꼴 없음) — 일본어·중국어는 그 언어 글꼴을 먼저 써서 한자 모양이 맞게, 러시아어는 키릴 글자가 있는 시스템 글꼴 먼저
   3) 줄바꿈: 본문 word-break: keep-all(한국어용)은 일본어·중국어에서 줄을 못 바꿔 넘치므로 그 두 언어는 normal(+ 금칙 strict),
      긴 낱말이 많은 독일어·러시아어·프랑스어·스페인어는 자동 하이픈 */
:lang(ja) { --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", "Noto Sans CJK JP", sans-serif; }
:lang(zh) { --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif; }
:lang(ru) { --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; }
:lang(fr), :lang(es), :lang(de) { --font: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
html:lang(ja) body, html:lang(zh) body { word-break: normal; line-break: strict; }
html:lang(ja) :is(h1, h2, h3, .h3, p, li, dd, dt, td, th, a, button, span), html:lang(zh) :is(h1, h2, h3, .h3, p, li, dd, dt, td, th, a, button, span) { word-break: normal; }
html:lang(de) :is(h1, h2, h3, p, dd, dt, td, th), html:lang(ru) :is(h1, h2, h3, p, dd, dt, td, th),
html:lang(fr) :is(h1, h2, h3, p, dd, dt, td, th), html:lang(es) :is(h1, h2, h3, p, dd, dt, td, th) { hyphens: auto; -webkit-hyphens: auto; }
/* lang="en" 이 붙은 영문 원문(Welcome to PANTHEON 등)은 영어 규칙 그대로 */
:lang(en) { hyphens: manual; }

/* ---------- 1) 언어 펼침 메뉴 ---------- */
.langsw { position: relative; display: inline-flex; align-items: center; gap: 0; flex: none; margin-left: var(--s-2); font-size: 14px; }
.langsw__btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 10px; margin: 0;
  font: 600 14px/1 var(--font); color: var(--c-text); background: transparent;
  border: 1px solid var(--c-line); border-radius: 22px; cursor: pointer; white-space: nowrap;
}
.langsw__btn:hover { border-color: var(--c-text); }
.langsw__btn:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.langsw__globe { width: 18px; height: 18px; flex: none; }
.langsw__caret { width: 14px; height: 14px; flex: none; transition: transform .15s; }
.langsw__btn[aria-expanded="true"] .langsw__caret { transform: rotate(180deg); }
.langsw__list {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 70;
  min-width: 200px; max-height: calc(100vh - var(--nav-h) - 16px); overflow-y: auto;
  margin: 0; padding: 6px; list-style: none;
  background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 6px; box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
}
.langsw__list[hidden] { display: none; }
.langsw__list li { display: block; }
.langsw__list .langsw__link {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  min-width: 0; min-height: 44px; padding: 0 12px; border-radius: 4px;
  font-size: 15px; font-weight: 500; line-height: 1.2; color: var(--c-text); text-decoration: none; white-space: nowrap;
}
.langsw__list .langsw__link:hover, .langsw__list .langsw__link:focus-visible { background: var(--c-bg-soft); color: var(--c-text); }
.langsw__list .langsw__link:focus-visible { outline: 2px solid var(--c-focus); outline-offset: -2px; }
.langsw__list .langsw__link[aria-current="true"] { font-weight: 700; text-decoration: none; }
.langsw__check { width: 16px; height: 16px; flex: none; visibility: hidden; }
.langsw__link[aria-current="true"] .langsw__check { visibility: visible; }
.langsw__sep { height: 1px; margin: 6px 4px; background: var(--c-line); }
@media (max-width: 1024px) {
  .langsw { margin-left: 0; }
}
@media (max-width: 720px) {
  .langsw { margin-left: auto; }
  .langsw__btn { padding: 0 8px; gap: 4px; font-size: 13px; }
  /* 휴대폰: 목록을 화면 오른쪽 위에 넓게(손가락으로 누르기 쉬운 48px 줄) */
  .langsw__list { position: fixed; top: calc(var(--nav-h) + 4px); right: 12px; left: auto; min-width: 220px; max-width: calc(100vw - 24px); }
  .langsw__list .langsw__link { min-height: 48px; font-size: 16px; }
}
@media (max-width: 360px) {
  .langsw__globe { display: none; }
}
@media (prefers-reduced-motion: reduce) { .langsw__caret { transition: none; } }

/* ---------- 시작 화면: 위쪽 큰 단추 2개(English·한국어) + 구분선 + 아래쪽 6개 ---------- */
.start__title span[lang="en"] { font-size: 28px; font-weight: 700; color: inherit; }
.start__title span:not([lang]) { font-size: 18px; font-weight: 600; color: var(--brand-silver); }
.start__sep { width: min(100%, 560px); border: 0; border-top: 1px solid rgba(255, 255, 255, .25); margin: 0; }
.start__choices--more { grid-template-columns: repeat(3, minmax(0, 176px)); gap: var(--s-3); }
.start__btn--sm { min-height: 88px; padding: var(--s-3); }
.start__btn--sm .start__big { font-size: 20px; }
.start__btn--sm .start__small { font-size: 13px; }
@media (max-width: 720px) {
  .start__choices--more { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 320px; }
}

/* 긴 메뉴 글자(러시아어 'О компании'·프랑스어 'Réseaux sociaux' 등)가 태블릿에서 두 줄로 꺾이지 않게 한 줄 고정 +
   1024px 이하에서 메뉴 간격·글자를 조금 줄임(한국어·영어 화면도 같은 규칙) */
.gnav__link { white-space: nowrap; }
@media (max-width: 1024px) and (min-width: 721px) {
  .nav__inner { gap: var(--s-4); }
  .gnav__list { gap: 0; }
  .gnav__link { padding: 0 8px; font-size: 15px; }
  .gnav__link::after { left: 8px; right: 8px; }
  .langsw__btn { padding: 0 8px; gap: 4px; }
}
/* 721~800px(메뉴가 펼쳐 보이는 가장 좁은 구간): 메뉴 글자가 긴 언어(fr·ru·es)에서 언어 단추가 화면 오른쪽 밖으로 밀려
   가로 스크롤이 생기던 것 → 간격만 더 줄임(글자 크기는 그대로) */
@media (max-width: 800px) and (min-width: 721px) {
  .nav__inner { gap: var(--s-2); }
  .gnav__link { padding: 0 6px; }
  .gnav__link::after { left: 6px; right: 6px; }
}

/* ---------- STAFF 메뉴·로그인 창 ----------
   상단 메뉴 SNS 오른쪽 'STAFF'(번역 없음, 직원용). 누르면 그 자리에서 로그인 창(모달) → 성공하면 견적서 작성(/admin/quote).
   색·글꼴·모서리·그림자는 SNS 펼침 메뉴(.sns-menu)·버튼(.btn--primary)과 같은 값 */
.gnav__staffbtn { letter-spacing: .04em; }
body.staff-open { overflow: hidden; }
.staff-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.staff-modal[hidden] { display: none; }
.staff-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.staff-modal__panel {
  position: relative; width: 100%; max-width: 380px; max-height: calc(100vh - 40px); overflow-y: auto;
  padding: var(--s-6, 32px) var(--s-5, 24px) var(--s-5, 24px);
  background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08), 0 24px 64px rgba(0, 0, 0, .18);
  font-family: var(--font); color: var(--c-text);
}
.staff-modal__close {
  position: absolute; top: 8px; right: 8px; width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; border-radius: 4px; color: var(--c-text-sub); cursor: pointer;
}
.staff-modal__close:hover { background: var(--c-bg-soft); color: var(--c-text); }
.staff-modal__close svg { width: 20px; height: 20px; }
.staff-modal__logo { display: block; height: 36px; width: auto; margin: 0 auto var(--s-4, 16px); }
.staff-modal__title { margin: 0; text-align: center; font: 700 20px/1.3 var(--font); letter-spacing: .04em; }
.staff-modal__sub { margin: 6px 0 var(--s-5, 24px); text-align: center; font-size: 14px; line-height: 1.5; color: var(--c-text-sub); }
.staff-modal__form { display: flex; flex-direction: column; gap: 14px; }
.staff-field { display: flex; flex-direction: column; gap: 6px; }
.staff-field label { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--c-text); }
.staff-field input {
  width: 100%; min-height: 48px; padding: 0 12px;
  font: 16px/1.5 var(--font); color: var(--c-text); background: #fff;
  border: 1px solid var(--c-line); border-radius: 4px;
}
.staff-field input:focus { outline: none; border: 2px solid var(--c-text); padding: 0 11px; }
.staff-field input[aria-invalid="true"] { border: 2px solid #E5484D; padding: 0 11px; }
.staff-modal__msg { min-height: 1.4em; margin: 0; font-size: 14px; line-height: 1.45; color: #C4282D; }
.staff-modal__msg:empty { min-height: 0; }
.staff-modal__form .btn { width: 100%; margin-top: 2px; }
.staff-modal__note { margin: var(--s-4, 16px) 0 0; text-align: center; font-size: 12px; line-height: 1.5; color: var(--c-text-sub); }
@media (max-width: 720px) {
  .staff-modal { align-items: flex-end; padding: 0; }
  .staff-modal__panel { max-width: none; border-radius: 4px 4px 0 0; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
}
