/* ==========================================================================
   고향시래기 /new/ — 2026 재구성분 전용 스타일
   기존 /new/css/style.css 는 건드리지 않고 이 파일에서 신규 요소만 추가한다.
   ========================================================================== */

/* ---------- 모바일 가로 스크롤 방지 ----------
   box-sizing:border-box 와 img{max-width:100%}는 style.css 전역 리셋에 이미 있어
   여기서 다시 선언하지 않는다. video/svg/iframe/table 만 누락돼 있어 추가.
   가로 오버플로우 방어선은 이 파일에 없음. style.css:48 body { overflow-x: hidden }
   이 유일한 안전장치. 본 파일에서 clip을 제거한 이유와 검증 결과는 아래 12행 주석 참조. */
video, svg, iframe, table { max-width: 100%; height: auto; }
/* 가로 오버플로우 없음 확인(390/360/320 scrollWidth==clientWidth). 방어선 불필요 / 2026-08-10 재검증(390/1024/1440) */

/* ---------- 푸터 브랜드명 가독성 ----------
   .brand__name 은 헤더(밝은 배경)용으로 color:var(--c-ink)가 박혀 있어
   어두운 푸터 배경 위에서 거의 안 보였다. 순백 대신 이 사이트가 어두운 배경 위
   텍스트에 이미 쓰던 따뜻한 크림톤(#f3ead9, .prod__badge--premium과 동일)을 재사용. */
.footer__brand .brand__name {
  color: #f3ead9;
  font-size: 1.75rem;
}

/* ---------- 약관류 본문(terms.html 등) ---------- */
.legal-doc h3 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 8px;
  color: var(--c-ink);
}
.legal-doc p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-ink-soft);
}
.legal-doc a { color: var(--c-brand-dk); }

/* ---------- 모바일 하단 고정 CTA (body.has-mobile-cta 가 붙은 전 페이지) ---------- */
.mobile-cta-bar { display: none; }

@media (max-width: 767px) {
  body.has-mobile-cta .mobile-cta-bar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0; /* width:100vw 대신 — 스크롤바 폭 오버플로우 방지 */
    width: auto;
    box-sizing: border-box;
    z-index: 850; /* .to-top(800)보다 위, .site-header(900)보다 아래 */
    box-shadow: 0 -2px 12px rgba(0,0,0,.08);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #fff;
  }
  .mobile-cta-bar__btn {
    flex: 1 1 0;
    min-width: 0;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
  }
  .mobile-cta-bar__btn--call {
    background: #fff;
    color: var(--c-brand-dk);
    border-top: 1px solid var(--c-line);
  }
  .mobile-cta-bar__btn--inquiry { background: var(--c-accent); color: #fff; }
  .mobile-cta-bar__btn--inquiry:hover { background: #a43927; }

  /* 고정 바 높이만큼 본문 하단 여백 확보 — 푸터가 가려지지 않게 */
  body.has-mobile-cta { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }

  /* .to-top 원형 버튼이 새 고정 바와 겹치지 않도록 위로 밀어올림 */
  body.has-mobile-cta .to-top { bottom: calc(56px + env(safe-area-inset-bottom, 0px) + 14px); }
}

/* ---------- Process 하단 수치 2개(중앙 정렬) ---------- */
.statband__grid--2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 420px;
  margin-inline: auto;
}

/* ---------- 접근성: 모션 최소화 선호 시 .reveal 애니메이션 무효화 ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* ---------- Our Story(#story) ----------
   버그였던 지점: <img width="1280" height="853"> 의 HTML 속성이 UA 스타일시트에
   낮은 우선순위로 매핑돼 사실상 height:853px 로 굳어 있었다. 부모 .split__media img
   에 aspect-ratio:3/2 만 주고 height:auto 를 명시하지 않으면 aspect-ratio는 무시되고
   height 속성값이 그대로 이겨서, width:100%(570px)인데 height는 853px로 고정 —
   실측 570×853, 텍스트 컬럼(570×305)보다 548px나 더 길었다. 여기서는 height:100%
   로 좌우 컬럼 높이에 맞춰 스트레치하는 방식을 우선 적용(요청하신 대로). */
#story { padding: clamp(64px, 10vw, 120px) 0; }
#story .wrap { padding-inline: clamp(20px, 5vw, 80px); }

#story .split {
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: stretch;
}

#story .split__media {
  height: 100%;
  overflow: hidden;
  border-radius: 16px;
}
#story .split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  border-radius: 16px;
  box-shadow: none;
}

/* 핵심 지표 3개 — 본문 아래 빈 공간 해소 */
.story-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--c-line);
}
.story-stats__value { font-size: 28px; font-weight: 700; color: var(--c-brand-dk); line-height: 1.2; }
.story-stats__label { margin-top: 4px; font-size: 13px; color: var(--c-muted); }

@media (max-width: 768px) {
  #story .split { grid-template-columns: 1fr; }
  #story .split__media { order: 2; height: auto; aspect-ratio: 16 / 10; max-height: 280px; }
  #story .split > .reveal:not(.split__media) { order: 1; }
  .story-stats { gap: 10px; }
  .story-stats__value { font-size: 22px; }
  .story-stats__label { font-size: 12px; }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  color: var(--c-brand-dk);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-arrow:hover { color: var(--c-accent); }
.link-arrow__arrow { display: inline-block; transition: transform .15s ease; }
.link-arrow:hover .link-arrow__arrow { transform: translateX(4px); }

/* ---------- 납품처 5종(#clients) ----------
   순서: Story(백)→Products(미색)→Clients(백)→Process(미색, index.html에 .section--alt
   1개 클래스만 추가)→Gallery(백)→Stories(미색). */
#clients { background: #FFFFFF; padding: 112px 0; }

.client-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.client-item__icon {
  display: inline-flex;
  color: var(--c-brand);
  margin-bottom: 12px;
}
.client-item__title { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.client-item__desc { font-size: 15px; line-height: 1.6; color: var(--c-ink-soft); }

/* ---------- 메인 갤러리 미리보기(#gallery) ---------- */
#gallery { background: #FFFFFF; padding: 112px 0; }

.gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.gallery-head .link-arrow { margin-top: 0; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-item {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-empty { grid-column: 1 / -1; text-align: center; color: var(--c-muted); padding: 40px 0; }

/* gallery.html 카테고리 필터 탭 */
.gallery-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.gallery-filter__btn {
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: #fff;
  color: var(--c-ink-soft);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.gallery-filter__btn:hover { border-color: var(--c-brand); }
.gallery-filter__btn.is-active { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }

/* 라이트박스 */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(20,16,10,.92);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox__stage { max-width: min(1000px, 90vw); max-height: 86vh; display: flex; flex-direction: column; align-items: center; }
.lightbox__stage img { max-width: 100%; max-height: 74vh; width: auto; height: auto; border-radius: 8px; object-fit: contain; }
.lightbox__caption { color: #fff; text-align: center; margin-top: 14px; }
.lightbox__title { font-size: 16px; font-weight: 700; }
.lightbox__desc { margin-top: 4px; font-size: 13px; color: rgba(255,255,255,.7); max-width: 60ch; }
.lightbox__close {
  position: absolute; top: 20px; right: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; border: none; font-size: 18px; cursor: pointer;
}
.lightbox__close:hover { background: rgba(255,255,255,.22); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; border: none; font-size: 18px; cursor: pointer;
}
.lightbox__nav:hover { background: rgba(255,255,255,.22); }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }

@media (max-width: 767px) {
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .lightbox__close { top: 12px; right: 12px; }
}

@media (max-width: 1023px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 거래 전 확인사항(#trust) ---------- */
#trust { background: #FAF8F4; padding: 88px 0; }

.trust-head { text-align: center; margin-bottom: 40px; }
.trust-title { font-size: 36px; font-weight: 700; line-height: 1.3; }
.trust-desc { margin-top: 12px; font-size: 15px; color: #767676; }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.trust-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #FFF;
  border: 1px solid #E8E4DC;
  border-radius: 8px;
  padding: 32px 24px;
  min-height: 190px;
  box-shadow: none;
  transition: border-color .18s ease;
}
.trust-card:hover { border-color: #C9C2B4; }
.trust-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #EEF3E4;
  color: #3E4A2E;
}
.trust-card__title { font-size: 17px; font-weight: 700; color: var(--c-ink); margin-bottom: 6px; }
.trust-card__desc { font-size: 14px; line-height: 1.65; color: #767676; max-width: 200px; margin-inline: auto; }
.nowrap { white-space: nowrap; }

.trust-docs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 44px;
}
.trust-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 32px;
  border-radius: 6px;
  background: #FFFFFF;
  border: 1px solid #3E4A2E;
  color: #3E4A2E;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}
.trust-btn:hover { background: #3E4A2E; color: #fff; }
.trust-docs-note {
  margin-top: 13px;
  font-size: 13px;
  color: #767676;
  text-align: center;
}

@media (max-width: 1023px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .trust-grid { grid-template-columns: 1fr; }
  .trust-docs { flex-direction: column; align-items: stretch; }
  .trust-btn { width: 100%; }
}

/* ---------- 스토리 최신 3건(#stories) ---------- */
#stories { background: #FAF8F4; padding: 112px 0; }

.story-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.story-card {
  display: block;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .18s ease;
}
.story-card:hover { border-color: var(--c-brand); }
.story-card__thumb {
  aspect-ratio: 3 / 2;
  background: #FAF8F4;
}
.story-card__body { padding: 18px; }
.story-card__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--c-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.story-card__summary {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.story-card__date {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--c-muted);
}

/* ---------- 스토리 목록/상세(story.html) ---------- */
.story-page { background: #FDFBF7; }
.story-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 42px;
}
.story-filter__chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: #fff;
  color: var(--c-ink-soft);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.story-filter__chip.is-active {
  border-color: var(--c-brand-dk);
  background: var(--c-brand-dk);
  color: #fff;
}
.story-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 380px));
  justify-content: center;
  gap: 24px;
}
.story-list-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.story-list-card:hover {
  border-color: var(--c-brand);
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(42, 64, 37, .12);
}
.story-list-card__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #EFE8DA;
  overflow: hidden;
}
.story-list-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .32s ease;
}
.story-list-card:hover .story-list-card__thumb img { transform: scale(1.035); }
.story-list-card__tag {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(62, 74, 46, .92);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.story-list-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px 24px;
}
.story-list-card__body h2 {
  margin: 0;
  color: var(--c-ink);
  font-size: 20px;
  line-height: 1.42;
}
.story-list-card__body p {
  flex: 1;
  color: var(--c-ink-soft);
  font-size: 15px;
  line-height: 1.7;
}
.story-list-card__body time {
  color: var(--c-muted);
  font-size: 13px;
}
.story-article {
  width: min(100%, 820px);
  margin: 0 auto;
}
.story-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 24px;
  color: var(--c-brand-dk);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.story-back:hover { text-decoration: underline; }
.story-article__head {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--c-line);
  margin-bottom: 32px;
}
.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  color: var(--c-muted);
  font-size: 13px;
}
.story-meta span {
  color: var(--c-brand-dk);
  font-weight: 800;
}
.story-article__head h2 {
  color: var(--c-ink);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.25;
  letter-spacing: 0;
}
.story-lead {
  margin-top: 16px;
  color: var(--c-ink-soft);
  font-size: 17px;
  line-height: 1.82;
}
.story-cover {
  margin: 0 0 34px;
  overflow: hidden;
  border-radius: 8px;
  background: #EFE8DA;
}
.story-cover img,
.story-content figure img {
  display: block;
  width: 100%;
  height: auto;
}
.story-content {
  color: var(--c-ink-soft);
  font-size: 16px;
  line-height: 1.9;
}
.story-content > * + * { margin-top: 1.12em; }
.story-content h3 {
  margin-top: 2em;
  color: var(--c-ink);
  font-size: 22px;
  line-height: 1.42;
}
.story-content figure {
  margin: 2em 0;
  overflow: hidden;
  border-radius: 8px;
  background: #EFE8DA;
}
.story-content figcaption {
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-muted);
}
.story-content blockquote {
  margin: 2em 0;
  padding: 18px 22px;
  border-left: 4px solid var(--c-brand);
  background: #FAF8F4;
  color: var(--c-ink);
  font-weight: 700;
}
.story-article__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 44px;
}

/* ---------- Products 카드(.prod) — index.html #products, products.html 공용 ----------
   .prod / .prod__badge / .prod__price / .prod__meta .tag 는 index.html·products.html
   양쪽에서 쓰는 공용 클래스. #products ID로 스코프를 걸면 products.html에는 적용되지
   않아 스타일이 두 벌로 갈라지므로 여기서는 클래스 단위로만 정의한다.
   (.prod__meta .tag 는 .prod__meta 조상이 있을 때만 매치되므로 history.html·process.html·
   recipe.html의 다른 .tag 사용처와 충돌하지 않는다 — 그 페이지들엔 .prod__meta가 없음) */
#products { background: #FAF8F4; padding: 112px 0; }

.prod {
  border: 1px solid #e8e4dc;
  border-radius: 8px;
  box-shadow: none;
}
.prod:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--c-brand);
}

.prod__badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 4px 10px; border-radius: 4px;
  font-size: 13px; font-weight: 500;
  /* CTA 강조색(--c-accent #c8462f)을 채도만 낮춘 톤 */
  background: #a65e51; color: #fff;
  box-shadow: none;
}

.prod__body { display: flex; flex-direction: column; }
.prod__desc { flex: none; }

.prod__meta .tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  background: #FAF8F4;
  border: 1px solid #e8e4dc;
  color: var(--c-ink-soft);
}

.prod__buy {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--c-line);
}
.prod__price-block { margin-bottom: 14px; }
.prod__price {
  font-size: 28px;
  font-weight: 700;
  font-family: var(--ff-serif);
  color: var(--c-ink);
}
.prod__price-suffix {
  font-size: 15px;
  font-weight: 400;
  font-family: var(--ff-sans);
  color: var(--c-muted);
  margin-left: 2px;
}
.prod__note { font-size: 13px; color: #767676; margin-top: 4px; }

.prod__actions { display: flex; gap: 10px; }
.prod__actions .prod__btn:only-child { flex: 1 1 100%; }
.prod__btn {
  flex: 1 1 50%;
  height: 46px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
}
.prod__btn:hover { transform: none; }
.prod__btn--outline {
  background: #fff;
  border: 1px solid var(--c-brand);
  color: var(--c-brand-dk);
}
.prod__btn--outline:hover { background: var(--c-brand-lt); }
.prod__btn--quote {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
}
.prod__btn--quote:hover { background: #a43927; }

/* ---------- #contact 디자인 토큰 ----------
   문의/견적 섹션 전용. 사이트 전역 :root(style.css)는 건드리지 않고 여기서만
   쓰는 이름으로 새로 선언 — 다른 페이지에는 영향 없음. */
:root {
  --radius-card: 8px;
  --radius-field: 6px;
  --radius-chip: 6px;
  --contact-panel-bg: #3E4A2E;
  --contact-panel-border: #E3E7DC;
  --contact-deep: #3E4A2E;
  --contact-field-border: #DDD8CE;
  --contact-chip-border: #D6D9CF;
  --contact-cta: #C75B27;
  --contact-cta-hover: #B35123;
}

/* ---------- #contact 섹션 ---------- */
#contact { background: #FFFFFF; padding: 112px 0; }
#contact .sec-title { margin-bottom: 40px; }
#contact .sec-desc { margin-top: 0; margin-bottom: 48px; }

#contact .contact-grid {
  grid-template-columns: 5fr 7fr;
  gap: 32px;
  align-items: stretch;
}

/* 담당자 직통 — 라이트 그린 틴트 카드 (좌측).
   우측 폼카드와 같은 radius·보더 톤을 써서 재질을 통일하고, 강조는 타이포 위계로만 표현. */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  background: var(--contact-panel-bg);
  border: none;
  border-radius: var(--radius-card);
  padding: 36px 32px;
  height: 100%;
}
.contact-sidebar__label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  letter-spacing: .08em;
}
.contact-sidebar__divider { border: none; border-top: 1px solid rgba(255,255,255,.15); margin: 24px 0; }

.contact-block:first-of-type { margin-top: 24px; }
.contact-block__badge {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 4px;
  background: transparent;
  color: #FFF;
  font-size: 12px;
  font-weight: 600;
}
.contact-block__name { margin-top: 12px; font-size: 17px; font-weight: 700; color: #FFFFFF; }
.contact-block__role { margin-top: 2px; font-size: 14px; color: rgba(255,255,255,.65); }
.contact-block__tel {
  display: block;
  margin-top: 10px;
  font-weight: 700;
  color: #FFFFFF;
  text-decoration: none;
}
.contact-block__tel:hover { text-decoration: underline; }
.contact-block__tel--primary { font-size: 24px; }
.contact-block__tel:not(.contact-block__tel--primary) { font-size: 19px; }
.contact-block__hours { margin-top: 4px; font-size: 13px; color: rgba(255,255,255,.6); }
.contact-sidebar__meta { font-size: .75rem; color: rgba(255,255,255,.6); letter-spacing: .02em; margin-top: .5rem; }

/* 주요 납품처 — 정보 표시용 태그. qty-chip(선택 가능한 버튼)과 혼동되지 않도록
   테두리 없이 배경 틴트만 사용하고 클릭 어포던스를 주지 않는다. */
.contact-sidebar__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin-top: 10px;
}
.contact-sidebar__tags li {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.75);
  font-size: 12px;
  font-weight: 500;
}

/* 주소 — 하단 고정 */
.contact-sidebar__address { margin-top: auto; }
.contact-sidebar__address-row { display: flex; gap: 8px; align-items: flex-start; }
.contact-sidebar__pin { flex-shrink: 0; margin-top: 2px; color: rgba(255,255,255,.5); }
.contact-sidebar__address-org { font-size: 13px; color: rgba(255,255,255,.6); }
.contact-sidebar__address-line { margin-top: 4px; font-size: 14px; color: rgba(255,255,255,.85); }

/* 폼 카드 (우측) */
#contact .form-card {
  background: #FFF;
  border: 1px solid var(--contact-panel-border);
  border-radius: var(--radius-card);
  padding: 36px 32px;
}
#contact .form-card__head { margin-bottom: 24px; }
#contact .form-card__title { font-size: 20px; font-weight: 700; color: var(--c-ink); }
#contact .form-card__subcopy { margin-top: 6px; font-size: 14px; color: var(--c-muted); }

#contact .field-row { align-items: end; }
#contact .field { margin-bottom: 20px; }
#contact .field label { font-size: 13px; font-weight: 600; color: #4A4A4A; margin-bottom: 8px; }
#contact .field label .req { color: var(--c-brand-dk); font-weight: 700; margin-left: 2px; }
#contact .field input,
#contact .field select {
  height: 48px;
  font-size: 16px; /* iOS 자동 확대 방지 */
  background: #FFFFFF;
  border: 1px solid var(--contact-field-border);
  border-radius: var(--radius-field);
  box-shadow: none;
}
#contact .field textarea {
  min-height: 120px;
  font-size: 16px;
  resize: vertical;
  background: #FFFFFF;
  border: 1px solid var(--contact-field-border);
  border-radius: var(--radius-field);
  box-shadow: none;
}
#contact .field input:focus,
#contact .field select:focus,
#contact .field textarea:focus {
  outline: none;
  border-color: var(--contact-deep);
  box-shadow: 0 0 0 3px rgba(62,74,46,.08);
}

/* select 커스텀 셰브론 (OS 기본 화살표 대체) */
#contact .field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234A4A4A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  padding-right: 40px;
}

/* 예상수량 — 동일 폭 세그먼트 칩(grid, 5열 균등)
   클래스명을 .qty-chip* 으로 분리 — 사이트 전역에 이미 .chip(키워드 링크 필,
   style.css 316행) 이 있어 같은 이름을 쓰면 그 pill 스타일(padding 9px 16px,
   radius 999px, border)이 여기 label에도 얹혀 이중 테두리가 생겼다(실측 확인). */
.qty-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
/* .qty-chip { position:relative } 필수 — 없으면 input의 position:absolute가
   더 먼 조상으로 튀어 올라가 엉뚱한 폭을 상속해 가로 스크롤을 유발한다(과거 실측 사례).
   min-width:fit-content 는 flex-wrap:wrap과 짝을 이뤄야 안전 — wrap 없이 쓰면 같은 오버플로우가 재발한다. */
.qty-chip { position: relative; flex: 1 1 auto; min-width: fit-content; cursor: pointer; }
.qty-chip input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.qty-chip__text {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 6px;
  border: 1px solid var(--contact-chip-border);
  border-radius: var(--radius-chip);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-ink-soft);
  text-align: center;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.qty-chip:hover .qty-chip__text { border-color: var(--contact-deep); }
.qty-chip input:checked + .qty-chip__text {
  border-color: var(--contact-deep);
  background: var(--contact-deep);
  color: #fff;
  font-weight: 700;
}
.qty-chip input:focus-visible + .qty-chip__text { outline: 2px solid var(--contact-deep); outline-offset: 2px; }

#contact .consent-line input[type="checkbox"] { accent-color: var(--contact-deep); }

#contact .contact-submit {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 52px;
  background: var(--contact-cta);
  color: #fff;
  border: none;
  border-radius: var(--radius-field);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}
#contact .contact-submit:hover { background: var(--contact-cta-hover); }
#contact .contact-submit:disabled { opacity: .6; cursor: not-allowed; }

@media (max-width: 1023px) {
  #contact .contact-grid { grid-template-columns: 1fr; }
  #contact .contact-grid > .form-card { order: 1; }
  #contact .contact-grid > .contact-sidebar { order: 2; }
}

/* ---------- 인라인 필드 에러 ---------- */
.field-error {
  margin-top: 6px;
  font-size: 13px;
  color: var(--c-accent);
  font-weight: 600;
}
.field-error[hidden] { display: none; }

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--c-accent);
}

.form-msg--error { background: #fdeae6; color: var(--c-accent); }

/* ---------- 개인정보 동의 ---------- */
.field--consent { margin-top: 28px; }
/* style.css 의 .field label { font-size:.9rem } 이 element+class 조합이라
   .consent-line 단독 클래스보다 특이도가 높아 그냥 두면 크기가 안 먹는다.
   label.consent-line 으로 올려서 이긴다. */
label.consent-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: 13px;
  color: #767676;
  cursor: pointer;
}
.consent-line input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.consent-line a { color: inherit; text-decoration: underline; }

/* ---------- 제출 중 버튼 ---------- */
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- 제출 완료 패널(#lpDone) ---------- */
.form-done { text-align: center; padding: 48px 24px; }
.form-done i { font-size: 40px; color: var(--c-brand-dk); }
.form-done p { margin-top: 14px; font-size: 17px; line-height: 1.6; }
.form-done__call { font-size: 15px; color: var(--c-muted); }
.form-done__call a { color: var(--c-brand-dk); font-weight: 700; text-decoration: none; }

/* 납품처 5종: 데스크탑 5열 / 태블릿 3열 / 모바일 1열 */
@media (max-width: 1023px) {
  .client-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .client-grid { grid-template-columns: 1fr; }
}

/* 스토리 3건: 데스크탑 3열 / 모바일 1열 */
@media (max-width: 767px) {
  .story-card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  #story { padding: 64px 0; }
  #story .wrap { width: min(100% - 40px, var(--wrap)); }

  #products { padding: 64px 0; }
  #clients { padding: 64px 0; }
  #gallery { padding: 64px 0; }
  #trust { padding: 56px 0; }
  #contact { padding: 64px 0; }
  #stories { padding: 64px 0; }

  .contact-sidebar { padding: 28px 24px; }
  .contact-block__tel--primary { font-size: 22px; }
}
