/* [무경 · main] 메인(M-01 · PC 1:2 · 모바일 377:415) — 값은 theme.css "무경 메인". 가운데 폭 1550(185 ~ 1735 · 바닥글과 같은 폭). */
.mg-wrap { width: 100%; max-width: calc(var(--footer-max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ── 1. 비주얼 960 · 사진 위 25% 검정 · 글 왼쪽 185 ── */
.mg-visual { height: 960px; background: var(--c-ink); }
.mg-visual .cms-slide-item .slide-bg::after { content: ""; position: absolute; inset: 0; background: var(--bg-mg-visual-dim); }
.mg-visual .slide-overlay { top: 262px; max-width: calc(var(--footer-max) + var(--gutter) * 2); gap: 30px; }
.mg-visual .slide-title { max-width: 623px; font: var(--t-mg-hero); color: var(--c-white); }
.mg-visual .slide-sub { max-width: 700px; font: var(--t-mg-hero-sub); color: var(--c-white); }
.mg-visual .slide-label { display: none; }
/* 문구 = 템플릿 고정 — 슬라이드 자체 글(글 얹기 · HTML · 예시)은 숨기고 고정 문구만 · 사진 · 넘김은 그대로 */
.mg-visual .cms-slide-item .slide-overlay { display: none; }
.mg-hero-copy { z-index: 2; pointer-events: none; }
.mg-hero-copy > * { pointer-events: auto; }
/* HTML 슬라이드(관리자 · 제작사) = 글 얹기와 같은 사이(PC 30 / 모바일 16) */
.mg-visual .slide-html { display: flex; flex-direction: column; align-items: flex-start; gap: 30px; }
.mg-visual .slide-html > * { margin: 0; }
.mg-visual .slide-html .slide-buttons { margin-top: 0; }
/* PC 만 · 모바일만 보이는 글(HTML 슬라이드 · 콘텐츠에서 씀) */
.mg-pc-only { display: inline; }
.mg-m-only { display: none; }
.mg-hero-ctrl { top: 552px; bottom: auto; max-width: calc(var(--footer-max) + var(--gutter) * 2); padding: 0 var(--gutter); gap: 0; }
.mg-hero-ctrl .hero-current, .mg-hero-ctrl .hero-total { font: var(--t-mg-hero-num); color: var(--c-white); }
.mg-hero-ctrl .hero-bar { width: 92px; height: 4px; margin: 0 21px 0 10px; border-radius: 5px; background: var(--c-white); }
.mg-hero-ctrl .hero-bar-fill { height: 4px; border-radius: 5px; background: var(--c-mg-teal); }
.mg-hero-ctrl .hero-btns { gap: 30px; margin-left: 21px; }
.mg-hero-ctrl .hero-prev, .mg-hero-ctrl .hero-next, .mg-hero-ctrl .hero-pause { width: 9px; height: 13px; color: var(--c-white); }
.mg-hero-ctrl .hero-btns i { width: 9px; height: 13px; }

/* 숫자 띠(아래 170 · 50% 검정 · 칸 450 · 사이 100 · 가는 흰 선) */
.mg-stats { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 170px; background: var(--bg-mg-stats); }
.mg-stats-list { display: flex; gap: 100px; max-width: calc(var(--footer-max) + var(--gutter) * 2); height: 100%; margin: 0 auto; padding: 0 var(--gutter); list-style: none; }
.mg-stats-list > li { position: relative; flex: 1 1 0; display: flex; align-items: center; }
.mg-stats-list > li + li::before { content: ""; position: absolute; left: -51px; top: 55px; width: 1px; height: 60px; background: var(--line-mg-stats); }
.mg-stat { display: flex; align-items: flex-start; justify-content: space-between; width: 100%; padding-top: 0; color: var(--c-white); }
.mg-stat-text { display: flex; flex-direction: column; gap: 2px; }
.mg-stat-text b { display: inline-flex; align-items: center; gap: 20px; font: var(--t-mg-stat-label); }
.mg-stat-text b::after { content: ""; width: 8px; height: 13px; background: var(--c-tab); -webkit-mask: url("svg/chev-r.svg?v=39.tp1bxl") center / contain no-repeat; mask: url("svg/chev-r.svg?v=39.tp1bxl") center / contain no-repeat; }
.mg-stat-text span { font: var(--t-mg-stat-sub); color: var(--c-mg-stat-sub); }
.mg-stat-num { font: var(--t-mg-stat-num); white-space: nowrap; }
.mg-stat-num small { margin-left: 9px; font-size: 24px; } /* 피그마 1:2 「1999 년」 = 40px 글 사이 띄움 1칸(9) · 숫자 올라가기가 공백을 지워서 여백으로 */
/* (뺌 · 마우스 올림 밑줄 없음) .mg-stat:hover .mg-stat-text b */

/* 빠른 메뉴(오른쪽 50 · 원 70 · 사이 16 · 견적은 글자까지 186) */
.mg-quick { position: fixed; top: calc(499px + var(--am-h, 0px) + var(--yes-preview-h, 0px)); right: 50px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.mg-quick-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 70px; height: 70px; border-radius: var(--r-pill); color: var(--c-white); }
.mg-quick-btn i { display: inline-flex; flex: none; width: 30px; height: 30px; }
.mg-quick-btn { box-sizing: border-box; overflow: hidden; justify-content: flex-start; padding-left: 20px; font: var(--t-mg-quick); white-space: nowrap; transition: width .3s ease, padding-left .3s ease, box-shadow .3s ease; }
.mg-quick-btn--quote { background: var(--c-mg-navy); }
/* 세 단추 = 처음엔 동그라미(70) → 마우스 · 초점 때 왼쪽으로 늘어나며(오른쪽 끝 그대로) 글자가 서서히 · 이름은 처음부터 화면 읽기에 있음
   펼친 폭 = 피그마 그대로: 견적문의하기 186(503:555) · 문의하기 152(36:1395 · 글자 왼쪽 64) · AS접수 150(36:1441 · 글자 왼쪽 60 · 안쪽 선 2 #292D32) */
.mg-quick-btn span { opacity: 0; transition: opacity .2s ease; }
.mg-quick-btn:is(:hover, :focus-visible) span { opacity: 1; transition: opacity .25s ease .08s; }
.mg-quick-btn--quote:is(:hover, :focus-visible) { width: 186px; padding-left: 24px; }
.mg-quick-btn--talk:is(:hover, :focus-visible) { width: 205px; padding-left: 24px; } /* 「제품 및 설치상담」(피그마 36:1395 = 205) */
.mg-quick-btn--set:is(:hover, :focus-visible) { width: 150px; box-shadow: inset 0 0 0 2px var(--c-mg-icon), var(--sh-mg-quick-set); }
@media (prefers-reduced-motion: reduce) { .mg-quick-btn, .mg-quick-btn span { transition: none; } }
.mg-quick-btn--talk { background: var(--c-mg-teal); box-shadow: var(--sh-mg-quick-talk); }   /* 테두리 없음 · 그림자 = 피그마 441:711 */
.mg-quick-btn--set { background: var(--bg-white); box-shadow: var(--sh-mg-quick-set); color: var(--c-mg-icon); }   /* 441:713 */

/* ── 2. 제품 ── */
.mg-sec { background: var(--bg-white); }
.mg-products { padding: 125px 0 174px; }
/* 관리모드 [주력 상품 편집](AdminBar 가 .mg-products 에 끼움 · 피그마 441:633) — "PRODUCT" 줄 오른쪽 끝 · [제품 더보기] 오른쪽과 맞춤 */
.mg-products { position: relative; }
.mg-products > .am-edit--over { top: 114px; right: max(var(--gutter), calc((100% - var(--footer-max)) / 2)); }
.mg-products > .am-edit.am-edit--main { height: 54px; gap: 0; padding: 0 26px 0 21px; } /* 피그마 441:633 Frame 304 = 175 × 54 · 아이콘 30 · 글 17 (엔진 기본 48 · 아이콘 24 위에 무경 메인만) */
.mg-products > .am-edit.am-edit--main .am-ic { width: 30px; height: 30px; }
/* 관리모드 [숫자 편집](AdminBar 가 .mg-stats 에 끼움) — 숫자 띠 바로 위 오른쪽 끝 · [주력 상품 편집]과 같은 알약 */
.mg-stats > .am-edit--over { top: -66px; right: max(var(--gutter), calc((100% - var(--footer-max)) / 2)); }
.mg-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.mg-label { margin: 0; font: var(--t-mg-label); color: var(--c-point); text-transform: uppercase; }
.mg-label--light { color: var(--c-white); text-transform: none; }
.mg-title { margin: 19px 0 0; font: var(--t-mg-title); color: var(--c-title); }
.mg-title--md { font: var(--t-mg-title-md); }
.mg-note { margin: 20px 0 0; font: var(--t-mg-note); color: var(--c-pc-sub); }
.mg-note--sm { font: var(--t-mg-note-sm); }
.mg-head-tools { display: flex; gap: 17px; }
.mg-search { display: flex; align-items: center; width: 375px; height: 60px; padding: 0 30px 0 31px; border: 1px solid var(--line-pc); border-radius: 100px; background: var(--bg-white); }
.mg-search input { flex: 1 1 0; min-width: 0; height: 100%; padding: 0; border: 0; background: none; font: var(--t-mg-note); color: var(--c-title); }
.mg-search input::placeholder { color: var(--c-pc-sub); opacity: 1; }
.mg-search button { display: inline-flex; width: 22px; height: 22px; padding: 0; border: 0; background: none; color: var(--c-pc-sub); cursor: pointer; }
.mg-search button i { display: inline-flex; width: 22px; height: 22px; }
.mg-more { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; height: 60px; padding: 0 30px 0 32px; border: 1px solid var(--line-pc); border-radius: 100px; background: var(--bg-white); font: var(--t-mg-note); color: var(--c-pc-sub); white-space: nowrap; }
.mg-more i, .mg-line-btn i { display: inline-flex; width: 6px; height: 11px; }
.mg-more:hover { border-color: var(--c-point); color: var(--c-point); }
.mg-more--m { display: none; }
.mg-prod-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 358px)); justify-content: space-between; gap: 71px 39px; margin: 69px 0 0; padding: 0; list-style: none; }
.mg-prod-empty { grid-column: 1 / -1; padding: 80px 0; font: var(--t-mg-empty); color: var(--c-mute); text-align: center; }   /* 제품 0개 — 회색 15 · 가운데 */
.mg-prod-link { display: flex; flex-direction: column; }
.mg-prod-thumb { display: block; box-sizing: border-box; aspect-ratio: 358 / 426; overflow: hidden; padding: 27px 28px; border: 1px solid var(--line); border-radius: var(--r-card-lg); background: var(--bg-white); } /* 피그마 575:552 = 사진 300 × 370 칸 안에 맞춤(잘리지 않게) */
.mg-prod-thumb > span, .mg-case-thumb > span { display: contents; } /* 사진 없는 제품 · 사례 = 빈 칸(깨진 그림 안 나오게 cms-if 로 감쌈) */
.mg-prod-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.mg-prod-name { margin-top: 24px; font: var(--t-mg-prod-name); color: var(--c-title); }
.mg-prod-sub { margin-top: 8px; font: var(--t-mg-prod-sub); color: var(--c-tab); }
.mg-prod-link:hover .mg-prod-name { color: var(--c-point); }
.mg-prod-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.mg-prod-badges a { display: inline-flex; align-items: center; height: 35px; padding: 0 16px; border-radius: 999px; background: var(--bg-mg-chip); font: var(--t-mg-chip); color: var(--c-tab); }
.mg-prod-badges a.is-current { background: var(--c-point); color: var(--c-white); }
.mg-prod-badges a:not(.is-current):hover { color: var(--c-point); }
.mg-prod-badges a:focus-visible { outline: 2px solid var(--c-point); outline-offset: 2px; }

/* ── 3 · 5. 사진 띠(소개 650 · 50% / 견적 470 · 60%) ── */
.mg-band { position: relative; background: var(--c-ink) center / cover no-repeat; color: var(--c-white); }
.mg-band::before { content: ""; position: absolute; inset: 0; background: var(--bg-mg-about-dim); }
.mg-band > * { position: relative; }
.mg-about { height: 650px; background-image: var(--img-mg-about); }
.mg-band-in { display: flex; flex-direction: column; align-items: center; max-width: 972px; margin: 0 auto; padding-top: 117px; text-align: center; }
.mg-about .mg-label { font: var(--t-mg-label-x); }
.mg-about-lead { margin: 27px 0 0; font: var(--t-mg-about-lead); }
.mg-about-title { margin: 5px 0 0; font: var(--t-mg-about-title); color: var(--c-white); }
.mg-about-text { margin: 24px 0 0; font: var(--t-mg-about-text); color: var(--c-mg-about-text); }
.mg-line-btns { display: flex; justify-content: center; gap: 16px; margin: 50px 0 0; }
.mg-line-btns--left { justify-content: flex-start; gap: 14px; margin-top: 33px; }
.mg-line-btn { display: inline-flex; align-items: center; gap: 30px; height: 60px; padding: 0 26px 0 35px; border: 2px solid var(--c-white); border-radius: 100px; font: var(--t-mg-line-btn); color: var(--c-white); white-space: nowrap; }
.mg-line-btn--lg { justify-content: space-between; gap: 10px; width: 209px; height: 59px; padding: 0 32px 0 28px; font: var(--t-mg-line-btn-lg); }
.mg-line-btn:hover { background: var(--c-white); color: var(--c-title); }
.mg-contact { height: 470px; padding-top: 149px; background-image: var(--img-mg-contact); }
.mg-contact::before { background: var(--bg-mg-contact-dim); }
.mg-contact .mg-label { font: var(--t-mg-label-x); }
.mg-contact-title { margin: 17px 0 0; font: var(--t-mg-title-md); color: var(--c-white); }

/* ── 4. 설치사례(왼쪽 머리 · 오른쪽 카드 360 × 288 넘김 · 진행 막대) ── */
.mg-cases { padding: 173px 0 151px; overflow: hidden; }
.mg-cases-in { position: relative; display: flex; gap: 170px; padding-left: max(var(--gutter), calc((100% - var(--footer-max)) / 2)); }
.mg-cases-head { flex: none; width: 220px; padding-top: 51px; } /* 머리 폭 220(제목 상자 33:952) · 카드 575 에서 시작 */
.mg-cases-head .mg-title { margin-top: 27px; }
.mg-cases-head .mg-note { margin-top: 25px; }
.mg-more--case { margin-top: 39px; }
.mg-case-slider { position: relative; flex: 1 1 0; min-width: 0; padding-bottom: 130px; } /* 카드 끝 → 넘김 단추 70 · 단추 60 */
.mg-case-slider .ui-slider-track { gap: 40px; }
.mg-case-list { display: flex; gap: 40px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.mg-case { flex: none; width: 360px; }
.mg-case a { display: flex; flex-direction: column; align-items: flex-start; }
.mg-case-thumb { display: block; width: 360px; height: 288px; overflow: hidden; border: 0; border-radius: var(--r-card-lg); background: var(--bg-image); } /* 테두리 없음 · 사진 꽉(목록과 같은 규칙) */
.mg-case-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mg-case-label { display: inline-flex; align-items: center; height: 34px; margin-top: 32px; padding: 0 19px; border-radius: 50px; background: var(--bg-pc-badge); font: var(--t-mg-badge); color: var(--c-tab); }
.mg-case-label:empty { display: none; } /* 설치한 곳이 빈 글 = 칩 없이 사진 아래 32 에 제목 */
.mg-case-label:empty + .mg-case-title { margin-top: 32px; }
.mg-case-title { display: -webkit-box; max-width: 100%; margin-top: 21px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font: var(--t-mg-case-title); color: var(--c-title); } /* 적용 제품 이름 · 두 줄까지 · 넘치면 말줄임(폭 = 카드 360 · 피그마 33:972 한 줄 314) */
.mg-case a:hover .mg-case-title { color: var(--c-point); }
.mg-case-slider .ui-slider-prev, .mg-case-slider .ui-slider-next { position: absolute; top: auto; bottom: 0; left: 0; width: 60px; height: 60px; border-color: var(--line-pc); transform: none; }
.mg-case-slider .ui-slider-next { left: 74px; right: auto; }
.mg-case-bar { position: absolute; left: 157px; right: 0; bottom: 27px; max-width: 1003px; height: 4px; border-radius: 5px; background: var(--line-pc); }
.mg-case-bar-fill { display: block; width: 120px; height: 4px; border-radius: 5px; background: var(--c-mg-navy); }

/* ── 6. 주요고객사(#fbfbfb · 로고 250 × 70 · 사이 30 · 3줄 · 둘째 줄 엇갈림) ── */
.mg-clients { padding: 94px 0 139px; overflow: hidden; background: var(--bg-mg-clients); text-align: center; }
.mg-clients-title { margin: 0; }
.mg-clients-text { margin-top: 26px; }
.mg-logos { display: flex; flex-direction: column; gap: 31px; margin-top: 70px; }
.mg-clients > .am-edit--banner { transform: translateY(120px); } /* 관리모드 [배너 편집] 단추만 120 아래로(스타터 공통 · 다른 칸 연필 그대로) */
.mg-logos { --mg-flow-speed: 40; } /* 로고 흐름 속도 = 초당 40px(모바일 30 · 이 숫자 하나만 바꾸면 돼요) */
.mg-logo-row { display: flex; gap: 30px; width: max-content; margin: 0 0 0 -5px; padding: 0 30px 0 0; list-style: none; }
.mg-logo-row.is-flowing { animation: mg-flow var(--flow-dur, 60s) linear infinite; }
.mg-logo-row--2.is-flowing { animation-direction: reverse; } /* 2번 줄 = 반대 방향(흐름 줄이 방향을 덮어써서 다시) */
.mg-logo-row--2 { margin-left: -145px; animation-direction: reverse; }
.mg-logo-row li { display: flex; flex: none; align-items: center; justify-content: center; width: 250px; height: 70px; border-radius: 100px; background: var(--bg-white); }
.mg-logo-row img { display: block; max-width: 200px; max-height: 50px; object-fit: contain; }
/* 로고 칸 = 링크(있으면) · 링크 없는 칸(href 없음)은 손가락 · 초점 없음 */
.mg-logo-link { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: inherit; }
a.mg-logo-link:not([href]) { cursor: default; }
a.mg-logo-link[href]:focus-visible { outline: 2px solid var(--c-point); outline-offset: 2px; }
.mg-logos:hover .mg-logo-row, .mg-logos:focus-within .mg-logo-row { animation-play-state: paused; }
@keyframes mg-flow { to { transform: translateX(-50%); } } /* 로고 목록 두 벌 중 한 벌만큼 = 처음과 이어짐 */
@media (prefers-reduced-motion: reduce) { .mg-logo-row, .mg-logo-row.is-flowing { animation: none; } }
.mg-pc-br { display: inline; }
.mg-m-br { display: none; }

/* ── 1279 아래 — 제품 2열 ── */
@media (max-width: 1599px) {
    .mg-quick { right: 20px; }
}
@media (max-width: 1279px) {
    .mg-prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 24px; }
    .mg-head { flex-direction: column; align-items: flex-start; }
    .mg-cases-in { flex-direction: column; gap: 40px; }
    .mg-cases-head { width: auto; padding: 0; }
    .mg-stats-list { gap: 40px; }
    .mg-stats-list > li + li::before { left: -21px; }
    .mg-stat { flex-direction: column; gap: 8px; }
}

/* ── 모바일(377:415) ── */
@media (max-width: 767px) {
    .mg-visual { height: 640px; }
    .mg-visual .slide-overlay { top: 150px; gap: 16px; padding: 0 20px; }
    .mg-visual .slide-title { font: var(--t-mg-hero-m); }
    .mg-visual .slide-sub { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font: var(--t-mg-hero-sub-m); } /* 넘김 줄(357)과 안 겹치게 2줄까지 */
    .mg-hero-ctrl { top: 357px; padding: 8px 20px 0; gap: 12px; }
    .mg-hero-ctrl .hero-current, .mg-hero-ctrl .hero-total { font: var(--t-mg-hero-num-m); }
    .mg-hero-ctrl .hero-total { opacity: .7; }
    .mg-hero-ctrl .hero-bar { width: 72px; height: 3px; margin: 0; background: rgba(255, 255, 255, .35); }
    .mg-hero-ctrl .hero-bar-fill { height: 3px; background: var(--c-white); }
    .mg-hero-ctrl .hero-btns { gap: 17px; margin-left: 0; padding-left: 5px; } /* 377:436 ‹ ‖ › */
    .mg-hero-ctrl .hero-prev, .mg-hero-ctrl .hero-next { display: inline-flex; } /* 스타터는 모바일에서 숨김 · 무경 모바일 피그마엔 있음 */
    .mg-hero-ctrl .hero-prev, .mg-hero-ctrl .hero-next, .mg-hero-ctrl .hero-prev i, .mg-hero-ctrl .hero-next i { width: 5px; height: 10px; }
    .mg-hero-ctrl .hero-pause, .mg-hero-ctrl .hero-pause i { width: 6px; height: 8px; }
    .mg-stats { height: 122px; padding: 20px 0 22px; background: var(--bg-mg-stats-m); }
    .mg-stats-list { gap: 0; padding: 0; }
    .mg-stats-list > li { justify-content: center; }
    .mg-stats-list > li + li::before { left: 0; top: 0; height: 79px; background: var(--line-mg-stats); }
    .mg-stat { flex-direction: column-reverse; align-items: center; gap: 6px; text-align: center; }
    .mg-stat-text span { display: none; }
    .mg-stat-text b { display: block; width: 4.5em; font: var(--t-mg-stat-label-m); color: rgba(255, 255, 255, .85); }
    .mg-stat-text b::after { display: none; }
    .mg-stat-num { font: var(--t-mg-stat-num-m); }
    .mg-stat-num small { margin-left: 2px; font: 600 15px/1.3 var(--font); }
    .mg-quick { top: calc(338px + var(--yes-preview-h, 0px)); right: 16px; gap: 10px; }
    .mg-quick-btn, .mg-quick-btn:is(:hover, :focus-visible) { width: 48px; height: 48px; padding: 0; justify-content: center; border: 0; } /* 휴대폰 = 늘어나지 않음 */
    .mg-quick-btn--set:is(:hover, :focus-visible) { box-shadow: var(--sh-mg-quick-set); }
    .mg-quick-btn i { width: 22px; height: 22px; } /* PC 와 같은 아이콘 3개 · 22px(피그마 377:456 · M-05-2) */
    .mg-quick-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    /* 바탕 · 그림자 = PC 와 같음 — 견적 남색 · 묻고답하기 청록 · A/S 흰 바탕 + 진한 회색 아이콘 */

    .mg-products { padding: 64px 0; }
    .mg-head-tools { width: 100%; }
    .mg-label { font: var(--t-mg-label-m); }
    .mg-title, .mg-title--md { margin-top: 20px; font: var(--t-mg-title-m); }
    .mg-note, .mg-note--sm { margin-top: 20px; font: var(--t-mg-note-m); }
    .mg-head { gap: 20px; }
    .mg-search { width: 100%; height: 52px; padding: 14px 16px 14px 20px; border-color: var(--line-pc-btn-m); border-radius: 999px; }
    .mg-search input { font: 500 16px/1.4 var(--font); }
    .mg-search input::placeholder { color: var(--c-mg-ph-m); }
    .mg-head-tools .mg-more { display: none; }
    .mg-prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 15px; margin-top: 20px; }
    .mg-prod-thumb { aspect-ratio: 160 / 190; border-color: var(--line-mg-thumb-m); border-radius: 14px; }
    .mg-prod-name { margin-top: 10px; font: var(--t-mg-prod-name-m); }
    .mg-prod-sub { margin-top: 10px; font: var(--t-mg-prod-sub-m); }
    .mg-prod-badges { gap: 6px; margin-top: 10px; }
    .mg-prod-badges a { height: 35px; padding: 0 12px; } /* 모바일도 누르기 쉬운 높이 35 */
    .mg-more--m, .mg-cases .mg-more--case { display: flex; width: 100%; height: 50px; margin-top: 20px; padding: 13px 18px 13px 22px; border-color: var(--line-pc-btn-m); border-radius: 999px; font: 600 16px/1.4 var(--font); }

    .mg-about { height: auto; }
    .mg-band-in { align-items: stretch; max-width: none; padding: 72px 20px; text-align: center; } /* 글 가운데(피그마 377:582) · 단추는 한 줄 하나 */
    .mg-band-in .mg-line-btn { text-align: left; }
    .mg-about .mg-label, .mg-contact .mg-label { font: var(--t-mg-label-m); letter-spacing: .06em; text-transform: uppercase; } /* 377:583 ABOUT US · 6% */
    .mg-about-lead { margin-top: 16px; font: var(--t-mg-about-lead-m); }
    .mg-about-title { margin-top: 16px; font: var(--t-mg-about-title-m); }
    .mg-about-text { margin-top: 16px; font: var(--t-mg-about-text-m); }
    .mg-about::before { background: var(--bg-mg-about-dim-m); }
    .mg-line-btns, .mg-line-btns--left { flex-direction: column; gap: 10px; margin-top: 16px; padding-top: 8px; }
    .mg-line-btn, .mg-line-btn--lg { justify-content: space-between; width: 100%; height: 50px; padding: 13px 18px 13px 22px; border-width: 1px; border-radius: 999px; font: 600 16px/1.4 var(--font); }

    .mg-cases { padding: 64px 0; }
    .mg-cases-in { gap: 16px; padding: 0; }
    .mg-cases-head { padding: 0 20px; }
    .mg-cases-head .mg-title, .mg-cases-head .mg-note { margin-top: 10px; }
    .mg-pc-br { display: none; }
    .mg-pc-only { display: none; }
    .mg-m-only { display: inline; }
    .mg-visual .slide-html { gap: 16px; }
    .mg-m-br { display: inline; }
    .mg-case-slider { padding: 0 0 0; }
    .mg-case-list, .mg-case-slider .ui-slider-track { gap: 14px; padding: 0 20px; scroll-padding: 0 20px; } /* 첫 카드가 왼쪽 20 에 멈추게 */
    .mg-case { width: 260px; }
    .mg-case-thumb { width: 260px; height: 208px; border-radius: 14px; }
    .mg-case-label { height: auto; margin-top: 10px; padding: 4px 10px; border-radius: 6px; background: var(--bg-mg-badge-m); font: var(--t-mg-case-chip-m); } /* 377:415 칩 29 = 4 + 15 × 1.4 + 4 */
    .mg-case-title { max-width: none; margin-top: 10px; font: var(--t-mg-case-title-m); }
    .mg-case-label:empty + .mg-case-title { margin-top: 10px; }
    .mg-case-slider .ui-slider-prev, .mg-case-slider .ui-slider-next { display: none; }
    .mg-case-bar { position: relative; left: auto; right: auto; bottom: auto; max-width: none; height: 3px; margin: 16px 20px 0; border-radius: 0; }
    .mg-case-bar-fill { width: 84px; height: 3px; border-radius: 0; }
    .mg-cases .mg-more--case { width: calc(100% - 40px); margin: 20px 20px 0; } /* 377:641 진행 막대 아래 20 · 전체 폭 */
    .mg-cases-head .mg-more--case { display: none; }

    .mg-contact { height: auto; padding: 64px 0; }
    .mg-contact { background-image: var(--img-mg-contact-m); }
    .mg-contact::before { background: var(--bg-mg-contact-dim-m); }
    .mg-contact-title { margin-top: 14px; font: var(--t-mg-contact-title-m); }

    .mg-clients { padding: 64px 0; text-align: center; }
    .mg-clients-title, .mg-clients-text { padding: 0 20px; }
    .mg-clients-title { margin: 0; font: var(--t-mg-title-m); }
    .mg-clients-text { margin-top: 10px; font: var(--t-mg-note-m); }
    .mg-logos { gap: 14px; margin-top: 24px; }
    .mg-logos { --mg-flow-speed: 30; }
    .mg-logo-row { gap: 10px; margin-left: 20px; padding-right: 10px; }
    .mg-logo-row--2 { margin-left: -50px; }
    .mg-logo-row li { width: 132px; height: 56px; border: 1px solid var(--line-mg-logo-m); border-radius: 10px; }
    .mg-logo-row img { max-width: 110px; max-height: 36px; }
}

/* M-26 주요 고객사 방문자 목록(피그마 509:1132 / 509:2383) — 연회색 상자 #F8F8F8 r30 안 5열 250 × 70(사이 30 · 위아래 72) · 모바일 2열 132 × 56(사이 11 · 10) */
.board-notice-box:has(+ .mg-clients-page) { display: block; margin: 0; padding: 0; border: 0; background: none; text-align: center; } /* 목록 위 문구 = 메인 주요고객사 설명 줄 모양 */
.board-notice-box:has(+ .mg-clients-page) .board-notice-illust { display: none; }
.board-notice-box:has(+ .mg-clients-page) .board-notice-text, .board-notice-box:has(+ .mg-clients-page) .board-notice-text p { margin: 0; font: var(--t-mg-note-sm); color: var(--c-pc-sub); word-break: keep-all; }
.mg-clients-page { margin-top: 56px; }
@media (min-width: 768px) { .board-notice-box:has(+ .mg-clients-page) { margin-top: -27px; } } /* 제목 줄 → 안내 줄 16(피그마 509:1132 · 전엔 43) */
.board-notice-box + .mg-clients-page { margin-top: 56px; }
.mg-client-grid { display: grid; grid-template-columns: repeat(auto-fit, 250px); justify-content: center; gap: 30px; box-sizing: border-box; max-width: 1500px; margin: 0 auto; padding: 72px 65px; border-radius: 30px; background: var(--bg-qt-form); list-style: none; }
.mg-client-grid li { display: flex; width: 250px; height: 70px; }
.mg-client-grid .mg-logo-link { box-sizing: border-box; border: 1px solid transparent; border-radius: 100px; background: var(--bg-white); transition: border-color .2s ease, box-shadow .2s ease; }
.mg-client-grid img { display: block; max-width: 200px; max-height: 50px; object-fit: contain; }
.mg-client-grid a.mg-logo-link[href]:is(:hover, :focus-visible) { border-color: var(--c-point); box-shadow: 0 6px 16px rgba(46, 56, 148, .12); outline: 0; } /* 링크 있는 로고만(피그마 509:1737) */
.mg-clients-empty { margin: 0; padding: 72px 20px; border-radius: 30px; background: var(--bg-qt-form); font: var(--t-mg-note-sm); color: var(--c-pc-sub); text-align: center; }
.mg-clients-page .pc-pages { margin: 60px 0 0; }
.mg-clients-page .board-pager { margin-top: 0; } /* 쪽 번호 위 간격은 .pc-pages 하나로(안쪽 48 · 모바일 32 가 겹쳐 이기던 것) */
@media (prefers-reduced-motion: reduce) { .mg-client-grid .mg-logo-link { transition: none; } }
@media (max-width: 767px) {
    .board-notice-box:has(+ .mg-clients-page) .board-notice-text, .board-notice-box:has(+ .mg-clients-page) .board-notice-text p { font: var(--t-mg-note-m); text-align: left; }
    .mg-clients-page, .board-notice-box + .mg-clients-page { margin-top: 24px; }
    .mg-client-grid { grid-template-columns: repeat(2, 132px); justify-content: start; gap: 10px 11px; padding: 24px 19px; border-radius: 16px; }
    .mg-client-grid li { width: 132px; height: 56px; }
    .mg-client-grid .mg-logo-link { border-color: var(--line-mg-logo-m); border-radius: 10px; }
    .mg-client-grid img { max-width: 110px; max-height: 36px; }
    .mg-clients-empty { padding: 40px 20px; border-radius: 16px; font: var(--t-mg-note-m); }
    .mg-clients-page .pc-pages { margin-top: 24px; } /* 칸 → 쪽 번호 24(피그마 509:2383 1203) */
}

/* TOP 단추(피그마 M-05-1 637:1764 · M-05-2) — A/S 바로 아래(PC 16 · 모바일 10) · 흰 원 70 / 48 · 그림자 = A/S 와 같음 · ↑ 16 × 15 + 「TOP」 13 · 사이 3 ·
   처음엔 숨김(Tab 으로도 안 잡힘) → 보일 때 0.2초 서서히 · 인쇄 때 퀵메뉴 · TOP 숨김 */
.mg-quick-top { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; box-sizing: border-box; width: 70px; height: 70px; padding: 0; border: 0; border-radius: 50%; background: var(--bg-white); box-shadow: var(--sh-mg-quick-set); color: var(--c-mg-icon); font: var(--t-mg-top); letter-spacing: .5px; cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s; }
.mg-quick-top.is-on { opacity: 1; visibility: visible; transition: opacity .2s ease, visibility 0s; }
.mg-quick-top i { display: inline-flex; width: 16px; height: 15px; }
.mg-quick-top i svg { width: 100%; height: 100%; }
.mg-quick-top:hover { color: var(--c-point); }
.mg-quick-top:focus-visible { outline: 2px solid var(--c-point); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .mg-quick-top, .mg-quick-top.is-on { transition: none; } }
@media (max-width: 767px) { .mg-quick-top { width: 48px; height: 48px; gap: 1px; } .mg-quick-top i { width: 11.5px; height: 10.8px; } .mg-quick-top span { font-size: 10px; } }
@media print { .mg-quick { display: none !important; } }

/* 휴대폰 퀵메뉴(피그마 M-05-3 · M-05-4) — PC 는 동그라미 3개 그대로 · 휴대폰 = 오른쪽 16 · 아래 24 「QUICK MENU」 56 + 그 아래 10 TOP 56(남색) ·
   TOP 이 숨으면 QUICK MENU 가 그 자리로 · 누르면 어둡게 35% + 아래에서 판(150 + 안전 영역 · 위 모서리 28 · 남색 → 청록) · 단추 = 흰 바탕 남색 ×(판 위 16) */
.mg-qm-btn, .mg-qm-dim, .mg-qm-sheet { display: none; }
@media (max-width: 767px) {
    .mg-quick { top: auto; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); right: 16px; gap: 10px; }
    .mg-quick > .mg-quick-btn { display: none; }
    .mg-quick-top { width: 56px; height: 56px; gap: 2px; background: var(--c-mg-navy); box-shadow: var(--sh-mg-qm); color: var(--c-white); }
    .mg-quick-top i { width: 14px; height: 13px; }
    .mg-quick-top span { font-size: 13px; }
    .mg-quick-top:not(.is-on) { display: none; }   /* 숨은 TOP 자리로 QUICK MENU 가 내려옴 */
    .mg-qm-btn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; background: var(--c-mg-navy); box-shadow: var(--sh-mg-qm); color: var(--c-white); font: var(--t-mg-qm); text-align: center; cursor: pointer; }
    .mg-qm-btn .mg-qm-x { display: none; width: 22px; height: 22px; }
    .mg-qm-btn:focus-visible { outline: 2px solid var(--c-white); outline-offset: -5px; }
    .mg-quick.is-qm-open { z-index: calc(var(--yes-z-up, 0) + 92); bottom: calc(166px + env(safe-area-inset-bottom, 0px)); }
    .mg-quick.is-qm-open .mg-qm-btn { background: var(--c-white); color: var(--c-mg-navy); }
    .mg-quick.is-qm-open .mg-qm-label { display: none; }
    .mg-quick.is-qm-open .mg-qm-btn .mg-qm-x { display: inline-flex; }
    .mg-quick.is-qm-open .mg-quick-top { display: none; }
    .mg-qm-dim:not([hidden]) { display: block; position: fixed; inset: 0; z-index: calc(var(--yes-z-up, 0) + 90); background: rgba(0, 0, 0, .35); }
    .mg-qm-sheet:not([hidden]) { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: calc(var(--yes-z-up, 0) + 91); box-sizing: border-box; height: calc(150px + env(safe-area-inset-bottom, 0px)); padding: 34px 40px env(safe-area-inset-bottom, 0px); justify-content: space-between; align-items: flex-start; border-radius: 28px 28px 0 0; background: linear-gradient(90deg, var(--c-mg-navy), var(--c-mg-teal)); animation: mg-qm-up .25s ease-out; }
    .mg-qm-sheet:has(> .mg-qm-item:nth-child(2):last-child) { justify-content: center; gap: 40px; }   /* A/S 숨김 = 2개 가운데 */
    .mg-qm-item { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 80px; font: var(--t-mg-qm-item); color: var(--c-white); text-align: center; text-decoration: none; }
    .mg-qm-item i { display: inline-flex; width: 28px; height: 28px; }
    .mg-qm-item i svg, .mg-qm-btn .mg-qm-x svg { width: 100%; height: 100%; }
    .mg-qm-item:focus-visible { outline: 2px solid var(--c-white); outline-offset: 4px; border-radius: 8px; }
    @keyframes mg-qm-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) { .mg-qm-sheet:not([hidden]) { animation: none; } }
