/* ───────────────────────────────────────────────
   제작 대행 첫 화면 — "영상 가게의 진열대"
   줄마다 한 줄 제목, 카드마다 가격표. 넷플릭스·블랙캣처럼 옆으로 넘겨 본다.
   초록은 '누를 곳'과 '가격'에만 쓴다. 모서리 8px · 그림자 없음 · 간격 8px 배수.
   ─────────────────────────────────────────────── */
.ag { --price: #007A38; --hdh: 72px; }                 /* 가격 글자색: 흰 바탕에서 5:1 이상 */
[data-theme="dark"] .ag { --price: #33E884; }
.price { color: var(--price); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; }
.price.is-ask { color: var(--sub); font-weight: 700; }
.bw [id] { scroll-margin-top: 152px; }

/* 첫 화면 — "가게 쇼윈도": 둥근 액자 하나에 영상(소리 없는 작업 모음)이 돌고, 그 위에 큰 제목·버튼, 아래쪽에 장마다 바뀌는 문구·가격·넘기기.
   액자 높이는 창 높이에 맞춰 줄어서, 한눈에 보기 띠가 늘 첫 화면 아래 끝에 걸쳐 보인다(아래에 더 있다는 표시).
   포트폴리오(검정 바탕·화면 끝까지 영상)와 다르게 흰 바탕 위 둥근 액자, 그 안에 가격표가 붙는다. */
.bb { background: var(--bg); color: var(--ink); padding: 0 0 96px; }   /* 영상 액자가 머리 바로 아래에서 화면 좌우 끝까지 */
.bb__stage { position: relative; min-width: 0; overflow: hidden; background: #0B0B0C; color: #fff;
  --edge: max(var(--pad), calc((100% - var(--w)) / 2)); }   /* 액자는 화면 폭 전체 · --edge = 본문 폭 선까지의 거리(안쪽 글자·단추의 좌우 여백) */
.bb__top { padding: 28px var(--pad) 24px; }
.bb__eyebrow { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 16px; background: #2B2B2D; color: #fff; font-size: 14px; font-weight: 700; }
.bb h1 { margin-top: 20px; font-size: clamp(32px, 9vw, 44px); line-height: 1.16; font-weight: 800; letter-spacing: -.04em; color: #fff; }   /* 메인 한 줄 + 서브 두 줄 */
.bb__main { display: block; white-space: nowrap; }
.bb__subline { display: block; margin-top: .3em; font-size: .56em; line-height: 1.3; font-weight: 700; letter-spacing: -.025em; }
.bb h1 em { font-style: normal; color: #33E884; }
.bb__side { margin-top: 16px; }
.bb__sub { font-size: 16px; line-height: 1.65; color: #D2D2CE; word-break: keep-all; }
.bb__sub b { color: #fff; font-weight: 700; }
.bb__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.bb__stage .btn--line { border-color: #fff; color: #fff; }
.bb__stage .btn--line:hover { background: #fff; color: #111; }
.bb__media { position: relative; aspect-ratio: 16 / 9; background: #0B0B0C; }
.bb__media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.bb__now { display: grid; gap: 16px; padding: 20px var(--pad); }
.bb__meta { min-width: 0; }
.bb__price { display: flex; align-items: center; gap: 8px; font-size: 18px; white-space: nowrap; }
.bb__price i { font-style: normal; font-size: 14px; color: #D2D2CE; }
.bb__now .price { color: #33E884; }
.bb__now .tag--kind { background: #fff; color: #111; }
.bb__meta > .bb__title:first-child { margin-top: 0; }   /* 넘김 단추가 없는 한 편짜리일 때: 위에 꼬리표가 없다 */
.bb__title { margin-top: 10px; font-size: 22px; line-height: 1.35; font-weight: 700; letter-spacing: -.02em; word-break: keep-all; }
.bb__go { justify-self: start; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid #8E8E8A; background: transparent; color: #fff; font-size: 14px; }
.bb__go:hover { background: #fff; color: #111; border-color: #fff; }
.bb__go svg { width: 16px; height: 16px; margin-right: -2px; }
.bb__tabs { display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; }
.bb__tabs::-webkit-scrollbar { display: none; }
.bb__tabs button { flex: none; display: grid; gap: 8px; min-width: 64px; padding: 6px 0; text-align: left; font-size: 13px; font-weight: 600; color: #C8C8C4; white-space: nowrap; transition: color .16s var(--ease); }
.bb__tabs button:hover, .bb__tabs button[aria-pressed="true"] { color: #fff; }
.bb__tabs i { display: block; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.bb__tabs b { display: block; width: 0; height: 100%; background: #fff; }
.bb__tabs button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 4px; }

/* 한눈에 보기: 가격표처럼 한 장으로 이어진 띠. 칸마다 큰 숫자 + 그 숫자를 풀어 주는 작은 그림, 누르면 그 구역으로 간다 */
.bb__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; border-radius: 16px; background: var(--paper); overflow: hidden; }
.fact { display: flex; align-items: center; gap: 12px; min-width: 0; height: 64px; padding: 0 24px; border-left: 1px solid var(--line); transition: background-color .16s var(--ease); }   /* 얇은 한 줄(64px): 이름 · 값 · 화살표 */
.fact:first-child { border-left: 0; }
.fact:hover { background: var(--tag-on-paper); }
.fact:focus-visible { outline: 2px solid var(--price); outline-offset: -2px; }
.fact__label { font-size: 14px; font-weight: 600; color: var(--sub); white-space: nowrap; }
.fact__value { font-size: 20px; line-height: 1; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.fact svg { width: 18px; height: 18px; margin-left: auto; flex: none; color: var(--mute); transition: transform .16s var(--ease), color .16s var(--ease); }
.fact:hover svg { transform: translateX(3px); color: var(--ink); }

@media (min-width: 861px) {   /* 넓은 화면: 영상이 액자를 가득 채우고, 제목은 왼쪽 위·장 문구는 아래쪽에 겹친다 */
  .bb__stage::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(90deg, rgba(8, 8, 9, .8), rgba(8, 8, 9, .46) 44%, rgba(8, 8, 9, 0) 72%); }   /* 제목이 어떤 장면 위에서도 읽히게 왼쪽을 눌러 둔다 */
  .bb__media { aspect-ratio: auto; height: clamp(520px, calc(100vh - 182px), 860px); }
  .bb__top { position: absolute; z-index: 4; left: var(--edge); right: var(--edge); top: 56px; padding: 0; pointer-events: none; }
  .bb__top a { pointer-events: auto; }
  .bb__eyebrow { background: rgba(255, 255, 255, .18); }
  .bb h1 { margin-top: 24px; font-size: clamp(44px, 4.5vw, 64px); }
  .bb__subline { margin-top: .22em; font-size: .47em; }
  .bb__side { margin-top: 20px; max-width: 27em; }
  .bb__sub { font-size: 17px; color: rgba(255, 255, 255, .88); }
  .bb__now { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: flex-end; gap: 20px; padding: 120px var(--edge) 40px;
    background: linear-gradient(to top, rgba(8, 8, 9, .84), rgba(8, 8, 9, .5) 46%, rgba(8, 8, 9, 0)); pointer-events: none; }
  .bb__now > * { pointer-events: auto; }
  .bb__meta { flex: 0 1 auto; }
  .bb__now .price { font-size: 20px; }
  .bb__price i { color: rgba(255, 255, 255, .8); }
  .bb__title { font-size: 26px; line-height: 1.3; white-space: nowrap; }
  .bb__go { flex: none; border-color: rgba(255, 255, 255, .55); }
  .bb__tabs { flex: none; margin-left: auto; overflow: visible; padding-bottom: 2px; }
  .bb__tabs button { color: rgba(255, 255, 255, .74); }
}
@media (min-width: 861px) and (max-height: 860px) {   /* 낮은 창(노트북): 제목·여백을 조여서 제목 묶음과 아래 문구가 겹치지 않고, 한눈에 보기 띠도 같이 보이게 */
  .bb__media { height: clamp(500px, calc(100vh - 174px), 720px); }
  .bb__top { top: 36px; }
  .bb h1 { margin-top: 16px; font-size: clamp(40px, 3.8vw, 52px); }
  .bb__subline { font-size: .5em; }
  .bb__side { margin-top: 14px; }
  .bb__sub { font-size: 15px; }
  .bb__cta { margin-top: 18px; }
  .bb__cta .btn--lg { height: 48px; padding: 0 22px; font-size: 16px; }
  .bb__now { padding: 72px var(--edge) 28px; }
  .bb__title { font-size: 22px; }
}
@media (min-width: 861px) and (max-width: 1180px) {   /* 중간 폭 */
  .bb__now { gap: 16px; }
  .bb__title { font-size: 22px; }
  .bb__tabs { gap: 12px; }
  .bb__tabs button { min-width: 48px; }
}

/* 종류 빠른 메뉴: 종류마다 대표 장면 한 컷(영상이 없는 종류는 검은 판 위 큰 아이콘) */
.qm { padding: 0 0 80px; }
.qm { --edge: max(var(--pad), calc((100vw - var(--w)) / 2)); --qw: calc((min(var(--w), 100vw - var(--pad) * 2) - 16px * 7) / 8); }   /* --qw = 본문 폭에 여덟 칸이 딱 들어가는 칸 폭 */
.qm .qm__head { flex-direction: row; align-items: center; margin-bottom: 24px; }
.qm__title { font-size: 24px; line-height: 1.35; font-weight: 700; letter-spacing: -.02em; }
.qm__grid { display: flex; gap: 16px; width: max-content; padding: 4px var(--edge) 8px; }      /* 한 줄: 옆으로 넘긴다(아홉째 칸이 오른쪽에 걸쳐 보인다) */
.qm__it { position: relative; flex: none; width: var(--qw); display: flex; flex-direction: column; min-width: 0; scroll-snap-align: start; }
.qm.is-all .shelf__rail { overflow: visible; }
.qm.is-all .qm__grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 28px 16px; width: auto; }   /* 전체 보기: 여덟 칸씩 두 줄 */
.qm.is-all .qm__it { width: auto; }
.is-all > .shelf__head .sbtn { display: none; }
.qm__ic { position: relative; display: block; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--media); }
.qm__ic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.qm__it:hover .qm__ic img, .qm__it:focus-visible .qm__ic img { transform: scale(1.06); }
.qm__icon { display: grid; place-items: center; width: 100%; height: 100%; background: #161617; color: #fff; transition: background-color .16s var(--ease); }
.qm__icon svg { width: 56px; height: 56px; }
.qm__icon .a { fill: var(--green); stroke: none; }
.qm__it:hover .qm__icon { background: #26262A; }
.qm__it:focus-visible { outline: none; }
.qm__it:focus-visible .qm__ic { outline: 2px solid var(--price); outline-offset: 2px; }
.qm__name { margin-top: 12px; font-size: 15px; font-weight: 700; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qm__price { margin-top: 2px; font-size: 13px; color: var(--mute); white-space: nowrap; }
.qm__price.price { font-weight: 700; }
.qm__badge { position: absolute; top: 8px; left: 8px; z-index: 2; display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 12px; background: var(--green); color: var(--green-ink); font-size: 12px; font-weight: 800; white-space: nowrap; }

/* 예상 금액 계산(첫 화면 위쪽으로 올림) */
/* 영상 줄 사이를 끊어 주는 띠: 바탕을 뒤집어(밝은 화면에선 검정, 어두운 화면에선 밝게) 한눈에 구역이 바뀐 걸 알린다 */
.calc { padding: 96px 0; background: var(--band-bg); color: var(--band-ink); }
.calc .sec__head h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; color: var(--band-ink); }
.calc .sec__guide { color: var(--band-sub); max-width: 44em; word-break: keep-all; }
.calc__eyebrow { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; margin-bottom: 16px; border-radius: 15px; background: var(--green); color: var(--green-ink); font-size: 13px; font-weight: 800; }
.calc .slip { margin-top: 0; background: var(--bg); color: var(--ink); border-radius: 20px; }   /* 띠의 글자색을 물려받지 않게 */
.calc .slip__incl { background: var(--paper); }
.calc .slip .seg--slide { background: var(--paper); }
.calc .slip h3, .calc .slip__guide { display: none; }   /* 구역 제목과 같은 말이 두 번 나오지 않게 */
.calc .slip__group:first-of-type { margin-top: 0; }
.calc .slip--wide .slip__sum { background: var(--paper); border-radius: 16px; }

/* 작은 단추 띠 — 아이콘 메뉴가 화면 밖으로 올라가면 머리 아래에 붙어 따라온다 */
.kbar { position: fixed; top: var(--hdh); left: 0; right: 0; z-index: 30; background: var(--hd); border-bottom: 1px solid var(--line); transform: translateY(-100%); visibility: hidden; transition: transform .2s var(--ease), visibility 0s .2s; }
.kbar.is-on { transform: none; visibility: visible; transition: transform .2s var(--ease); }
.kbar__in { display: flex; align-items: center; gap: 16px; height: 56px; }
.kbar__label { flex: none; font-size: 14px; font-weight: 700; white-space: nowrap; }
.kbar__list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 0; margin-right: calc(var(--pad) * -1); padding-right: var(--pad); }
.kbar__list::-webkit-scrollbar { display: none; }
.kbar .chip { flex: none; height: 36px; padding: 0 14px; font-size: 14px; }
.chip--ink { background: var(--ink); border-color: var(--ink); color: var(--on-ink); font-weight: 700; }
.chip--ink:hover { background: var(--ink-hover); border-color: var(--ink-hover); }

/* 줄 */
/* 드롭샷매치처럼 시원하게: 줄 제목 24px · 제목→카드 24px · 줄과 줄 사이 80px */
.shelves { padding: 0; overflow: hidden; }
.shelf { --vh: 270px; --pw: calc(var(--vh) * 9 / 16); --lw: calc(var(--vh) * 16 / 9); padding: 0 0 64px; }   /* 카드 그림은 영상 비율 그대로(가로 16:9 · 세로 9:16) — 썸네일이 잘리지 않는다 */
.shelf__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.shelf h2 { font-size: 24px; line-height: 1.35; font-weight: 700; letter-spacing: -.02em; }
.shelf__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; font-size: 14px; color: var(--sub); }
.shelf__meta .price { font-size: 17px; }
.tag--kind { height: 26px; font-size: 13px; font-weight: 700; background: var(--ink); color: var(--on-ink); }
.shelf__side { display: flex; align-items: center; gap: 8px; flex: none; }
.shelf__side .link { margin-right: 12px; color: var(--price); font-weight: 700; }
.shelf__side .link:hover { color: var(--ink); }
.sbtn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--ctl-line); background: var(--ctl); color: var(--ink); transition: background-color .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease), transform .12s var(--ease); }
.sbtn:active:not([disabled]) { transform: scale(.92); }
.sbtn[data-dir="-1"] svg { transform: scaleX(-1); }
.sbtn:hover { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.sbtn[disabled] { color: var(--off-ink); background: var(--off-bg); border-color: var(--off-bg); cursor: default; }
.shelf__rail { overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-left: max(var(--pad), calc((100vw - var(--w)) / 2)); }
.shelf__rail::-webkit-scrollbar { display: none; }
.shelf__track { display: flex; gap: 16px; width: max-content; padding: 4px max(var(--pad), calc((100vw - var(--w)) / 2)) 16px; }

/* 카드: 그림 → 브랜드 → 제목 → 가격·기간 */
.vc { flex: none; display: flex; flex-direction: column; text-align: left; scroll-snap-align: start; }
.vc--port { width: var(--pw); }
.vc--land { width: var(--lw); }
.vc__media { position: relative; display: block; height: var(--vh); border-radius: 12px; overflow: hidden; background: var(--media); outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .16s var(--ease); }
.vc__media img { width: 100%; height: 100%; object-fit: cover; }
.vc:hover .vc__media, .vc:focus-visible .vc__media { outline-color: var(--price); }
.vc:focus-visible { outline: none; }
.vc__kind, .vc__len { position: absolute; z-index: 2; display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 4px; background: rgba(8, 8, 9, .78); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; }
.vc__kind { top: 8px; left: 8px; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; }
.vc__len { right: 8px; bottom: 8px; font-variant-numeric: tabular-nums; }
.vc__play { position: absolute; z-index: 2; left: 8px; bottom: 8px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: var(--green-ink); opacity: 0; transform: scale(.9); transition: opacity .16s var(--ease), transform .16s var(--ease); }
.vc:hover .vc__play, .vc:focus-visible .vc__play { opacity: 1; transform: none; }
.vc__brand { margin-top: 12px; font-size: 13px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc__title { margin-top: 2px; font-size: 16px; line-height: 1.4; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc__price { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 6px; font-size: 15px; }   /* 가격 아래 기간: 좁은 카드·넓은 카드 모두 같은 두 줄 */
.vc__price i { font-style: normal; font-size: 13px; color: var(--mute); white-space: nowrap; }

/* 순서 줄: 카드 아래 글 왼쪽에 굵은 숫자(테두리 글자·겹침 없이) */
.vc--rank { position: relative; }
.vc--rank .vc__brand, .vc--rank .vc__title, .vc--rank .vc__price { margin-left: 52px; }
.vc__no { position: absolute; left: 0; top: calc(var(--vh) + 14px); width: 40px; font-size: 52px; line-height: 1; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--ink); }

/* 영상 줄 끝: 프리미엄 포트폴리오(CATWALK)로 넘어가는 단추 — 가운데 하나만 */
.toport { display: flex; justify-content: center; padding-top: 16px; }
.toport__btn { min-width: 240px; }
.toport__btn svg { margin-right: -4px; }
.bw__note { margin-top: 40px; margin-bottom: 8px; font-size: 14px; line-height: 1.6; color: var(--mute); text-align: center; }

/* 라이브 쇼핑 그림 위 'LIVE' 표시 */
.onair { position: absolute; top: 8px; left: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 4px; background: #D9131B; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.onair::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; }

/* 영상이 없는 종류: 한 줄씩 */
.more { padding-top: 96px; }
.more__grid { border-top: 2px solid var(--ink); }
.mrow { display: grid; align-items: center; gap: 8px 24px; min-height: 80px; padding: 20px 0; border-bottom: 1px solid var(--line); grid-template-columns: 88px 180px minmax(0, 1fr) 160px 200px; }
.mrow__pic { position: relative; display: block; width: 88px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--media); }
.mrow__pic img { width: 100%; height: 100%; object-fit: cover; }
.mrow h3 { font-size: 19px; font-weight: 700; }
.mrow p { font-size: 15px; color: var(--sub); }
.mrow__price { font-size: 17px; }
.mrow .btn { width: 100%; }

/* 종류별 가격: 카드 15장(5 × 3) */
.ptable { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.pcard.prow { display: flex; flex-direction: column; align-items: stretch; gap: 0; min-height: 0; padding: 0; border: 0; border-radius: 16px; background: var(--paper); overflow: hidden; }
.pcard__pic { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--media); }
.pcard__pic img { width: 100%; height: 100%; object-fit: cover; }
.pcard__pic .qm__icon svg { width: 48px; height: 48px; }
.pcard .prow__name { padding: 16px 16px 0; }
.pcard .prow__name b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .prow__name span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(1.5em * 2); margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--sub); }
.pcard .prow__price { padding: 12px 16px 0; font-size: 20px; text-align: left; white-space: nowrap; }
.pcard .prow__price small { margin-left: 4px; font-size: 13px; font-weight: 500; color: var(--mute); }
.pcard .prow__period { padding: 2px 16px 0; font-size: 13px; color: var(--mute); }
.pcard .btn { width: auto; margin: 16px; margin-top: auto; }
.pcard .prow__period { margin-bottom: 16px; }

/* 진행 방법(토스처럼): 흰 카드 다섯 장, 단계 번호는 초록 원 */
.bw .steps { gap: 12px; }
.bw .steps li { display: flex; flex-direction: column; padding: 28px 24px; border-radius: 20px; background: var(--bg); }
.bw .steps li::before { display: none; }
.bw .steps__n { width: 40px; height: 40px; font-size: 18px; background: var(--green); color: var(--green-ink); }
.bw .steps h4 { margin-top: 20px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.bw .steps p { margin-top: 8px; font-size: 15px; line-height: 1.6; }
.bw .steps .tag { order: 9; align-self: flex-start; margin-top: 20px; height: 26px; font-size: 12px; background: var(--paper); }

/* 직접 제작: 완성작 장면(마우스를 올리면 움직임) */
.make__pic { display: block; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; background: var(--media); }
.make__pic img { width: 100%; height: 100%; object-fit: cover; }

/* 영상 창 안의 가격 */
.player__price { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 24px; margin-top: 20px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.player__price dt { font-size: 12px; color: var(--mute); }
.player__price dd { margin-top: 2px; font-size: 16px; font-weight: 700; white-space: nowrap; }
.player__price small { font-size: 12px; font-weight: 500; color: var(--mute); }
.player__fine { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--mute); }

@media (max-width: 1080px) {
  .mrow { grid-template-columns: 72px 140px minmax(0, 1fr) 120px 160px; }
  .mrow__pic { width: 72px; }
  .ptable { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .ag { --hdh: 99px; }
  .bw [id] { scroll-margin-top: 112px; }
  .bb__facts { border-radius: 12px; }
  .fact { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; height: 64px; padding: 0 14px; }   /* 좁은 화면: 세 칸 그대로, 이름 위 · 값 아래 */
  .fact__label { font-size: 12px; }
  .fact__value { font-size: 16px; }
  .fact svg { display: none; }
  .bb { padding: 0 0 56px; }
  .bb__cta .btn { flex: 1 1 0; padding: 0 12px; }
  .calc { padding: 64px 0; }
  .ptable { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pcard .prow__price { font-size: 17px; }
  .bw .steps { grid-template-columns: 1fr; }
  .bw .steps li { padding: 20px; }
  .kbar { display: none; }
  .qm { padding-bottom: 56px; }
  .qm__title, .shelf h2, .iw h2 { font-size: 20px; }
  .qm { --qw: calc((100vw - var(--pad) - 10px * 3) / 3.4); }   /* 좁은 화면: 세 칸 반이 보인다(가격 글자가 옆 칸과 붙지 않는 폭) */
  .qm .qm__head { margin-bottom: 16px; }
  .qm__grid { gap: 10px; }
  .qm.is-all .qm__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 10px; }
  .qm__ic { border-radius: 12px; }
  .qm__icon svg { width: 36px; height: 36px; }
  .qm__name { font-size: 13px; white-space: normal; }
  .qm__price { font-size: 12px; }
  .shelf { --vh: 180px; --pw: 120px; padding-bottom: 40px; }   /* 가로 카드 320px(16:9 그대로): 다음 카드가 걸쳐 보인다 · 세로 카드는 글자가 들어갈 폭(120px)을 지킨다 */
  .shelf__head { margin-bottom: 16px; }
  .shelf__side .sbtn { display: none; }
  .shelf__side .link { margin-right: 0; font-size: 14px; }
  .shelf__track { gap: 12px; }
  .vc--rank .vc__brand, .vc--rank .vc__title, .vc--rank .vc__price { margin-left: 44px; }
  .vc__no { font-size: 44px; width: 34px; }
  .vc__title { font-size: 15px; }
  .vc__play { opacity: 1; transform: none; width: 32px; height: 32px; }
  .mrow { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .mrow__pic { width: 64px; grid-row: 1 / span 2; align-self: start; }
  .mrow p:not(.mrow__price) { grid-column: 2 / -1; grid-row: 2; }
  .mrow__price { text-align: right; }
  .mrow .btn { grid-column: 1 / -1; }
  .toport { padding-top: 8px; }
  .toport__btn { width: 100%; }
  .more { padding-top: 64px; }
  .player__price { gap: 0 16px; }
}
@media (max-width: 560px) {
  .shelf__head { flex-direction: column; align-items: flex-start; gap: 12px; }
}
/* ── 이미지 작업물: 영상 줄과 같은 급. 줄마다 높이를 맞춰 쌓는다(그림은 자르지 않는다) ── */
.iw { --row: 270px; --edge: max(var(--pad), calc((100vw - var(--w)) / 2)); padding: 0 0 64px; }   /* 영상 줄과 같은 높이(270px)·같은 머리 */
.iw h2 { font-size: 24px; line-height: 1.35; font-weight: 700; letter-spacing: -.02em; }
.iw__calc { margin-left: 6px; color: var(--price); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.iw__calc:hover { color: var(--ink); }
.iw__grid { display: flex; gap: 16px; width: max-content; padding: 4px var(--edge) 16px; }
.iw__pic { height: var(--row); }
.iw.is-all .shelf__rail { overflow: visible; }
.iw.is-all .iw__grid { flex-wrap: wrap; gap: 28px 16px; width: auto; }      /* 전체 보기: 높이가 같은 줄로 맞춰 다 펼친다(폭은 agency.js 가 줄마다 맞춘다) */
.iw.is-all .iw__pic { height: auto; }
.iw__it { flex: none; min-width: 0; display: flex; flex-direction: column; text-align: left; scroll-snap-align: start; }
.iw__pic { position: relative; display: block; aspect-ratio: var(--ar); border-radius: 12px; overflow: hidden; background: var(--media); outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .16s var(--ease); }
.iw__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.iw__it:hover .iw__pic, .iw__it:focus-visible .iw__pic { outline-color: var(--price); }
.iw__it:focus-visible { outline: none; }
.iw__it:hover .iw__pic img { transform: scale(1.03); }
.iw__zoom { position: absolute; right: 8px; bottom: 8px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(8, 8, 9, .78); color: #fff; opacity: 0; transform: scale(.9); transition: opacity .16s var(--ease), transform .16s var(--ease); }
.iw__it:hover .iw__zoom, .iw__it:focus-visible .iw__zoom { opacity: 1; transform: none; }
.iw__brand { margin-top: 12px; font-size: 13px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iw__what { margin-top: 2px; font-size: 16px; line-height: 1.4; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 이미지 크게 보기(영상 보기 창과 같은 틀) */
.player--img .player__box { grid-template-columns: minmax(0, 1fr) 340px; }
.player--img.is-portrait .player__box { grid-template-columns: auto 340px; }
.iwv__stage { position: relative; aspect-ratio: var(--ar); background: #0b0b0c; max-height: calc(100vh - 48px); }
.player--img.is-portrait .iwv__stage { height: min(760px, calc(100vh - 48px)); width: auto; }
.iwv__img { width: 100%; height: 100%; object-fit: contain; }
.iwv__nav { position: absolute; top: 50%; right: 12px; width: 44px; height: 44px; margin-top: -22px; display: grid; place-items: center; border-radius: 50%; background: rgba(8, 8, 9, .72); color: #fff; transition: background-color .16s var(--ease), transform .16s var(--ease); }
.iwv__nav--prev { right: auto; left: 12px; }
.iwv__nav--prev svg { transform: rotate(180deg); }
.iwv__nav:hover { background: #000; }
.iwv__nav:active { transform: scale(.94); }
.iwv__count { font-size: 13px; font-weight: 600; color: var(--mute); font-variant-numeric: tabular-nums; margin-bottom: 8px; }

@media (max-width: 860px) {
  .iw { --row: 180px; padding-bottom: 40px; }
  .iw__grid { gap: 12px; }
  .iw.is-all .iw__grid { gap: 20px 16px; }
  .iw__what { font-size: 15px; }
  .iw__zoom { display: none; }
  .player--img .player__box, .player--img.is-portrait .player__box { grid-template-columns: 1fr; }
  .player--img.is-portrait .iwv__stage { aspect-ratio: auto; width: 100%; height: 58vh; }   /* 세로 그림: 화면을 다 덮지 않게, 아래 설명이 보이게 */
}
@media (prefers-reduced-motion: reduce) { .iw__pic img, .iw__zoom, .iwv__nav { transition: none; } .iw__it:hover .iw__pic img { transform: none; } }
.shelves .calc { margin: 16px 0 80px; }
@media (max-width: 860px) { .shelves .calc { margin: 16px 0 56px; } }

/* ── 자사 서비스 광고 띠(영상 줄 사이) ──
   종이색 띠 한 칸 · 왼쪽에 글, 오른쪽에 '입력칸' 그림과 가는 길. 사진·그림자·그라데이션 없이 사이트 규칙(종이·잉크) 그대로 */
.pm { padding: 8px 0 72px; }
.pm__box { position: relative; height: 184px; border-radius: 16px; background: var(--paper); overflow: hidden; }
.pm__it { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); align-items: center; gap: 48px; padding: 0 48px 16px; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s .4s; }
.pm__it.is-on { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
.pm__txt { display: flex; flex-direction: column; min-width: 0; }
.pm__name { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--mute); }
.pm__name b { font-weight: 800; letter-spacing: .02em; color: var(--ink); }
.pm__name i { font-style: normal; }
.pm__name b + i::before { content: ''; display: inline-block; width: 1px; height: 12px; margin-right: 10px; background: var(--ctl-line); vertical-align: -1px; }
.pm__name em { font-style: normal; font-size: 12px; font-weight: 700; height: 22px; line-height: 22px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--ink); color: var(--ink); }
.pm__title { margin-top: 10px; font-size: 26px; line-height: 1.3; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.pm__sub { margin-top: 6px; font-size: 15px; color: var(--sub); }
.pm__side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; min-width: 0; }
.pm__ask { display: flex; align-items: center; gap: 12px; width: 100%; height: 52px; padding: 0 8px 0 20px; border-radius: 26px; background: var(--ctl); border: 1px solid var(--ctl-line); font-size: 15px; color: var(--mute); }
.pm__ask span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm__ask i { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--on-ink); }
.pm__ask i svg { width: 18px; height: 18px; }
.pm__cta { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--ink); }
.pm__cta svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.pm__it:hover .pm__cta svg { transform: translateX(4px); }
.pm__it:hover .pm__title { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.pm__dots { position: absolute; left: 48px; bottom: 18px; display: flex; gap: 8px; }
.pm__dots button { width: 8px; height: 8px; border-radius: 50%; background: var(--ctl-line); transition: width .2s var(--ease), background-color .2s var(--ease); }
.pm__dots button { position: relative; }
.pm__dots button::before { content: ''; position: absolute; inset: -10px -4px; }
.pm__dots button[aria-current] { width: 24px; border-radius: 4px; background: var(--ink); }
@media (max-width: 860px) {
  .pm { padding: 0 0 48px; }
  .pm__box { height: 232px; border-radius: 14px; }
  .pm__it { grid-template-columns: 1fr; gap: 0; padding: 24px 20px 44px; align-content: start; }
  .pm__title { font-size: 20px; }
  .pm__sub { font-size: 14px; }
  .pm__side { align-items: flex-start; margin-top: 16px; }
  .pm__ask { display: none; }
  .pm__dots { left: 20px; bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) { .pm__it, .pm__it.is-on, .pm__cta svg, .pm__dots button { transition: none; } }

/* ── 고객 후기 ── */
.rv__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.rv__it { display: flex; flex-direction: column; min-height: 216px; padding: 28px; border-radius: 16px; background: var(--paper); }
.rv__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rv__top .tag { background: var(--tag-on-paper); }
.rv__top em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--mute); }
.rv__text { margin-top: 20px; font-size: 17px; line-height: 1.65; color: var(--ink); }
.rv__who { margin-top: auto; padding-top: 20px; font-size: 14px; color: var(--mute); }
.rv__it.is-temp { background: transparent; border: 1px dashed var(--dash); }
.rv__it.is-temp .rv__text { color: var(--mute); }
.rv__it.is-temp .rv__top .tag { background: var(--paper); }
@media (max-width: 860px) { .rv__grid { grid-template-columns: 1fr; gap: 12px; } .rv__it { min-height: 0; padding: 20px; } .rv__text { font-size: 16px; margin-top: 14px; } }

.vc__price.is-none { display: none; }   /* 자체 제작 영상 카드: 가격 줄 없음('의뢰작 아님' 글자를 뺐다 — 2026-11-20) */

/* ── 이미지 '전체 보기' 창 ── 화면을 덮는 종이 한 장. 머리는 붙어 있고 아래만 내려간다. 그림은 기둥으로 쌓는다 */
.iwm { position: fixed; inset: 0; z-index: 90; padding: 24px; background: rgba(10, 10, 10, .72); }
.iwm__box { display: flex; flex-direction: column; width: min(1320px, 100%); height: 100%; margin: 0 auto; background: var(--bg); color: var(--ink); border-radius: 16px; overflow: hidden; }
.iwm__head { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 28px 32px 20px; border-bottom: 1px solid var(--line); }
.iwm__head h2 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.3; font-weight: 700; }
.iwm__head .shelf__meta { margin-top: 10px; }
.iwm__close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--paper); color: var(--ink); }
.iwm__close:hover { background: var(--close-hover); }
.iwm__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 28px 32px 48px; }
.iwm__cols { display: flex; align-items: flex-start; gap: 16px; }
.iwm__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.iwm__it { display: flex; flex-direction: column; min-width: 0; text-align: left; }
.iwm__pic { display: block; width: 100%; border-radius: 12px; overflow: hidden; background: var(--media); outline: 2px solid transparent; outline-offset: 2px; }
.iwm__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.iwm__it:hover .iwm__pic img { transform: scale(1.03); }
.iwm__it:focus-visible { outline: none; }
.iwm__it:hover .iwm__pic, .iwm__it:focus-visible .iwm__pic { outline-color: var(--price); }
.iwm__more { height: 1px; }
@media (max-width: 860px) {
  .iwm { padding: 0; }
  .iwm__box { border-radius: 0; }
  .iwm__head { padding: 20px 16px 16px; }
  .iwm__body { padding: 20px 16px 40px; }
  .iwm__cols { gap: 12px; }
  .iwm__col { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) { .iwm__pic img { transition: none; } .iwm__it:hover .iwm__pic img { transform: none; } }

/* ───────── 2026-11-24 회의 반영 ───────── */

/* 좌우 무한 루핑 줄(영상 줄 · 이미지 줄) — 왼쪽에서 시작해 오른쪽으로만 삐져나가던 줄(오른쪽 치우침)을 양쪽이 같은 꼴로.
   양옆 흐림은 '짧고 또렷하게'(회의): 48px 안에서만 사라진다 → 카드 하나가 통째로 가려지지 않는다 */
.shelf__rail.loop { --fade: 48px; overflow: hidden; scroll-snap-type: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%); }
.loop > .shelf__track, .loop > .iw__grid { padding-left: 0; padding-right: 0; }
.loop.is-run > .shelf__track, .loop.is-run > .iw__grid { animation: cl-loop var(--loop-d, 60s) linear infinite; will-change: transform; }
.loop:hover > .shelf__track, .loop:focus-within > .shelf__track, .loop:hover > .iw__grid, .loop:focus-within > .iw__grid { animation-play-state: paused; }
@keyframes cl-loop { to { transform: translateX(calc(var(--lap, 0px) * -1)); } }
/* 움직임 줄이기를 켠 사람: 손으로 넘기는 줄(본문 폭 선에서 시작) */
.shelf__rail.loop--calm { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
.loop--calm > .shelf__track, .loop--calm > .iw__grid { padding-left: max(var(--pad), calc((100vw - var(--w)) / 2)); padding-right: max(var(--pad), calc((100vw - var(--w)) / 2)); }

/* 어떤 영상이 필요하세요? — 대표 종류 두 줄(다섯 칸) + 누르면 그 줄 아래로 펼쳐지는 설명 판 */
.qm .qm__head { align-items: flex-end; margin-bottom: 24px; }
.qm__guide { margin-top: 6px; font-size: 14px; color: var(--sub); }
.qm .qm__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 16px; width: auto; padding: 0; }
.qm .qm__it { width: auto; text-align: left; }
.qm .qm__ic { aspect-ratio: 4 / 3; }
.qm__it[aria-expanded="true"] .qm__ic { outline: 2px solid var(--ink); outline-offset: 2px; }
.qm__it[aria-expanded="true"] .qm__name { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.qm__panel { grid-column: 1 / -1; position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: center; padding: 24px 64px 24px 24px; border-radius: 16px; background: var(--paper); animation: qm-in .24s var(--ease); }
@keyframes qm-in { from { opacity: 0; transform: translateY(-6px); } }
.qm__pic { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--media); }
.qm__pic img { width: 100%; height: 100%; object-fit: cover; }
.qm__body h3 { margin-top: 12px; font-size: 22px; line-height: 1.35; font-weight: 700; letter-spacing: -.02em; }
.qm__body p { margin-top: 8px; max-width: 40em; font-size: 16px; line-height: 1.7; color: var(--sub); }
.qm__facts { display: flex; flex-wrap: wrap; gap: 8px 40px; margin-top: 20px; }
.qm__facts dt { font-size: 13px; color: var(--mute); }
.qm__facts dd { margin-top: 2px; font-size: 18px; font-weight: 700; }
.qm__facts dd small { font-size: 13px; font-weight: 500; color: var(--mute); }
.qm__act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.qm__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--sub); transition: background-color .16s var(--ease), color .16s var(--ease); }
.qm__close:hover { background: var(--close-hover); color: var(--ink); }

/* 카테고리 배너(채널 운영 · AI 드라마) — 영상 줄 사이의 큰 두 칸 */
.cbn { padding: 0 0 64px; }
.cbn__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cbn__it { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 380px; border-radius: 16px; overflow: hidden; background: #111; color: #fff; }
.cbn__it img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cbn__it::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 20%, rgba(0, 0, 0, .82) 100%); }
.cbn__it:hover img { transform: scale(1.03); }
.cbn__it:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.cbn__txt { display: flex; flex-direction: column; gap: 8px; padding: 28px; }
.cbn__eyebrow { font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .88); }
.cbn__title { font-size: 26px; line-height: 1.3; font-weight: 800; letter-spacing: -.02em; }
.cbn__views { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.cbn__views b { font-size: 44px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: #33E884; }
.cbn__views i { font-style: normal; font-size: 13px; color: rgba(255, 255, 255, .84); }
.cbn__views.is-ink { margin-top: 16px; }
.cbn__views.is-ink b { color: var(--price); font-size: 36px; }
.cbn__views.is-ink i { color: var(--mute); }
.cbn__text { font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .9); }
.cbn__cta { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 8px; padding-bottom: 2px; border-bottom: 1px solid currentColor; font-size: 15px; font-weight: 700; }

/* 블로그 · 인터뷰(아래쪽, 드롭샷 참고) */
.bl, .iv { padding-top: 0; }
.bl__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.bl__it, .bl__it a { display: flex; flex-direction: column; }
.bl__pic { display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--media); }
.bl__pic img { width: 100%; height: 100%; object-fit: cover; }
.bl__it.is-temp { padding: 20px; border: 1px dashed var(--dash); border-radius: 16px; }
.bl__it.is-temp .bl__pic { background: var(--paper); }
.bl__it.is-temp .rv__top { margin-top: 16px; }
.bl__title { margin-top: 12px; font-size: 17px; line-height: 1.45; font-weight: 700; }
.bl__it.is-temp .bl__title { margin-top: 6px; font-weight: 600; color: var(--sub); }
.bl__date { margin-top: 4px; font-size: 13px; color: var(--mute); }
.iv__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.iv__it { display: flex; flex-direction: column; min-width: 0; text-align: left; }
.iv__pic { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--media); outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .16s var(--ease); }
.iv__pic img { width: 100%; height: 100%; object-fit: cover; }
.iv__it:hover .iv__pic, .iv__it:focus-visible .iv__pic { outline-color: var(--price); }
.iv__it:focus-visible { outline: none; }
.iv__play { position: absolute; left: 12px; bottom: 12px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: var(--green-ink); }

/* 영상 줄 끝 단추 두 개(영상 전체 보기 · 프리미엄 포트폴리오) */
.toport { gap: 12px; flex-wrap: wrap; }

/* 카테고리 화면 */
.kinds__chips { margin-bottom: 32px; }
.ki { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; margin-bottom: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.ki__pic { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--media); }
.ki__pic img { width: 100%; height: 100%; object-fit: cover; }
.ki__pic .qm__icon svg { width: 72px; height: 72px; }
.ki__body h2 { margin-top: 12px; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.3; font-weight: 700; }
.ki__body p { margin-top: 12px; max-width: 40em; font-size: 17px; line-height: 1.7; color: var(--sub); }
.more-row { display: flex; justify-content: center; margin-top: 40px; }
.more-row .btn { min-width: 240px; }

@media (max-width: 860px) {
  .qm .qm__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .qm__panel { grid-template-columns: 1fr; gap: 20px; padding: 16px 16px 20px; }
  .qm__close { top: 20px; right: 20px; background: rgba(8, 8, 9, .72); color: #fff; }
  .qm__close:hover { background: #000; color: #fff; }
  .qm__act .btn { flex: 1 1 auto; }
  .cbn__grid, .bl__grid, .iv__grid { grid-template-columns: 1fr; }
  .cbn__it { min-height: 320px; }
  .cbn__title { font-size: 22px; }
  .cbn__views b { font-size: 36px; }
  .ki { grid-template-columns: 1fr; gap: 24px; margin-bottom: 32px; padding-bottom: 32px; }
}
@media (max-width: 720px) { .shelf__rail.loop { --fade: 20px; } }
@media (prefers-reduced-motion: reduce) { .qm__panel { animation: none; } .cbn__it img { transition: none; } }
