/* Портфолио дизайн-студии (ТЗ-30 §5.5, 30Б): карточки работ, сетка с фильтрами, кейсы, лайтбокс, полосы работ,
   тизер на главной и блок «Дизайн <изделия>» в каталоге. Не зависит от design.css: на главной и в каталоге его нет. */
:root {
  --pf-ink: #0A1628; --pf-ink-2: #0D1F3C; --pf-mag: #E5097F; --pf-mag-d: #B8066A; --pf-cyan: #00A0E3; --pf-yel: #FFED00;
  --pf-paper: #F7F4EE; --pf-line: rgba(10, 22, 40, .14); --pf-muted: #5b6474;
  --pf-display: 'Unbounded', 'DINPro', system-ui, sans-serif;
}

/* ---------- кнопки ---------- */
.pf-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--pf-mag); color: #fff; border: 0; border-radius: 999px; padding: 13px 24px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; }
.pf-btn:hover, .pf-btn:focus-visible { background: var(--pf-mag-d); color: #fff; transform: translateY(-1px); }
.pf-btn-ghost { display: inline-flex; align-items: center; gap: 10px; background: transparent; color: var(--pf-ink); border: 1.5px solid var(--pf-line); border-radius: 999px; padding: 12px 20px; font-weight: 700; cursor: pointer; }
.pf-btn-ghost:hover { border-color: var(--pf-ink); }
.pf-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--pf-mag-d); text-decoration: none; }
.pf-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.pf-reg { width: 16px; height: 16px; border: 1.5px solid currentColor; border-radius: 50%; position: relative; flex: none; display: inline-block; }
.pf-reg::before, .pf-reg::after { content: ''; position: absolute; background: currentColor; }
.pf-reg::before { left: -5px; right: -5px; top: 50%; height: 1.5px; transform: translateY(-50%); }
.pf-reg::after { top: -5px; bottom: -5px; left: 50%; width: 1.5px; transform: translateX(-50%); }
.pf-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #ff5fb1; margin-bottom: 14px; }

/* ---------- сетка и карточка ---------- */
.pf-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.pf-card { display: flex; flex-direction: column; min-width: 0; }
.pf-card[hidden] { display: none !important; }
/* до portfolio.js — первые 24, без JS — все (noscript на странице) */
.pf-grid--paged:not(.is-js) > .pf-card:nth-child(n+25) { display: none; }
.pf-card-link { display: flex; flex-direction: column; gap: 10px; color: inherit; text-decoration: none; }
.pf-card-img { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #e9e5dc; box-shadow: 0 1px 0 rgba(10, 22, 40, .06); }
.pf-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.pf-card-link:hover .pf-card-img img, .pf-card-link:focus-visible .pf-card-img img { transform: scale(1.035); }
.pf-card-link:focus-visible { outline: none; }
.pf-card-link:focus-visible .pf-card-img { outline: 3px solid var(--pf-mag); outline-offset: 3px; }
/* метки реза по углам при наведении — мотив раздела */
.pf-card-img::before, .pf-card-img::after { content: ''; position: absolute; width: 18px; height: 18px; border: 0 solid #fff; opacity: 0; transition: opacity .2s; z-index: 1; pointer-events: none; }
.pf-card-img::before { top: 8px; left: 8px; border-top-width: 2px; border-left-width: 2px; }
.pf-card-img::after { right: 8px; bottom: 8px; border-right-width: 2px; border-bottom-width: 2px; }
.pf-card-link:hover .pf-card-img::before, .pf-card-link:hover .pf-card-img::after { opacity: .9; }
.pf-badge { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .04em; line-height: 1; padding: 6px 9px; border-radius: 999px; background: rgba(10, 22, 40, .78); color: #fff; white-space: nowrap; }
.pf-card-img .pf-badge { position: absolute; left: 10px; bottom: 10px; z-index: 2; }
.pf-badge.is-photo { background: rgba(0, 120, 175, .9); }
.pf-badge.is-mock { background: rgba(10, 22, 40, .78); }
.pf-masked-tag { display: inline-flex; align-items: center; gap: 5px; font-size: .66rem; font-weight: 800; line-height: 1; letter-spacing: .03em; color: #3a2e00; background: var(--pf-yel); padding: 5px 8px; border-radius: 999px; white-space: nowrap; }
.pf-card-img .pf-masked-tag { position: absolute; right: 10px; bottom: 10px; z-index: 2; }
.pf-masked-tag.is-inline { margin-right: 6px; vertical-align: 1px; }
.pf-lb-masked { margin: 0; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #fff7b8; border-left: 4px solid #f2c200; color: #3a2e00; font-size: .9rem; line-height: 1.45; }
.pf-lb-masked[hidden] { display: none; }
.pf-lb-masked .bi { margin-top: 2px; }
.pf-count { position: absolute; right: 10px; top: 10px; z-index: 2; display: inline-flex; gap: 5px; align-items: center; font-size: .75rem; font-weight: 700; color: #fff; background: rgba(10, 22, 40, .6); border-radius: 999px; padding: 4px 8px; }
.pf-card-cap { display: flex; flex-direction: column; gap: 4px; }
.pf-card-t { font-weight: 700; line-height: 1.3; color: var(--pf-ink); }
.pf-card-m { font-size: .85rem; color: var(--pf-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pf-case-tag { position: absolute; left: 10px; top: 10px; z-index: 2; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; line-height: 1; color: #fff; background: var(--pf-mag); padding: 6px 8px; border-radius: 999px; }
.pf-card-x { margin: 6px 0 0; font-size: .88rem; line-height: 1.45; color: var(--pf-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ds-dark .pf-card-t, .pf-promo .pf-card-t { color: #fff; }
.ds-dark .pf-card-m, .pf-promo .pf-card-m { color: rgba(255, 255, 255, .65); }
.pf-grid--mini { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pf-grid--trio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pf-grid--mini .pf-card-t, .pf-grid--trio .pf-card-t { font-size: .9rem; }

/* ---------- полоса работ (хаб, упаковка) ---------- */
.ds-works-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 8px; }
.ds-works-head .ds-head { margin-bottom: 18px; }
.ds-works-all { flex: none; margin-bottom: 22px; }
.pf-chiplinks { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pf-chiplinks a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--pf-line); background: #fff; color: var(--pf-ink); font-weight: 600; font-size: .9rem; text-decoration: none; }
.pf-chiplinks a:hover { border-color: var(--pf-mag); color: var(--pf-mag-d); }
.pf-chiplinks span, .pf-c { font-size: .75rem; font-weight: 700; color: var(--pf-muted); background: rgba(10, 22, 40, .06); border-radius: 999px; padding: 2px 7px; }

/* ---------- фильтры портфолио ---------- */
.pf-filters { margin-bottom: 26px; display: flex; flex-direction: column; gap: 14px; }
.pf-filters[hidden] { display: none; }
.pf-frow { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-filters button[data-pf-f] { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--pf-line); background: #fff; border-radius: 999px; padding: 7px 12px 7px 14px; font-weight: 600; font-size: .9rem; color: var(--pf-ink); cursor: pointer; transition: border-color .15s, background .15s; }
.pf-filters button[data-pf-f]:hover:not(:disabled) { border-color: var(--pf-ink); }
.pf-filters button[aria-pressed='true'] { background: var(--pf-ink); border-color: var(--pf-ink); color: #fff; }
.pf-filters button[aria-pressed='true'] .pf-c { background: var(--pf-mag); color: #fff; }
.pf-filters button:disabled { opacity: .38; cursor: default; }
.pf-frow2 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pf-dd { position: relative; }
.pf-dd summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 8px 14px; border-radius: 10px; border: 1.5px dashed rgba(10, 22, 40, .3); font-weight: 600; font-size: .92rem; color: var(--pf-ink); user-select: none; }
.pf-dd summary::-webkit-details-marker { display: none; }
.pf-dd summary b { color: var(--pf-mag-d); font-weight: 700; }
.pf-dd summary .bi { font-size: .8rem; transition: transform .2s; }
.pf-dd[open] summary .bi { transform: rotate(180deg); }
.pf-dd.is-set summary { border-style: solid; border-color: var(--pf-mag); }
.pf-dd-panel { position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; width: min(560px, 92vw); display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; background: #fff; border-radius: 16px; box-shadow: 0 18px 48px rgba(10, 22, 40, .22); border: 1px solid var(--pf-line); }
.pf-reset { border: 0; background: none; color: var(--pf-mag-d); font-weight: 700; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; padding: 6px 8px; }
.pf-total { margin-left: auto; color: var(--pf-muted); font-size: .92rem; }
.pf-more-wrap { text-align: center; margin-top: 34px; }
.pf-more-wrap .pf-more[hidden] { display: none; }
.pf-notes { margin-top: 44px; padding-top: 22px; border-top: 1.5px dashed var(--pf-line); display: grid; gap: 10px; color: var(--pf-muted); font-size: .92rem; }
.pf-notes p { margin: 0; }
.pf-notes .pf-badge { margin-right: 6px; vertical-align: 1px; }
.pf-takedown .bi { margin-right: 6px; }
.pf-takedown .bi { color: var(--pf-mag); }
.pf-price-note { margin: 18px 0 0; font-weight: 600; }

/* ---------- кейсы ---------- */
.pf-cases { overflow: hidden; }
.pf-cases-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.pf-cases-arrows { display: flex; gap: 10px; margin-bottom: 36px; }
.pf-cases-arrows button { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .45); background: transparent; color: #fff; font-size: 1.1rem; cursor: pointer; }
.pf-cases-arrows button:hover { background: #fff; color: var(--pf-ink); }
.pf-cases-arrows button[hidden] { display: none; }
.pf-cases-track { list-style: none; margin: 0; display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: max(12px, calc((100vw - 1296px) / 2 + 12px));
  padding: 4px max(12px, calc((100vw - 1296px) / 2 + 12px)) 18px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .3) transparent; }
.pf-case { flex: 0 0 min(820px, 86vw); scroll-snap-align: start; display: grid; grid-template-columns: 1.05fr 1fr; background: var(--pf-ink-2); border-radius: 20px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .08); }
.pf-case-img { position: relative; display: block; background: #13274a; min-height: 100%; }
.pf-case-img img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4 / 3; }
.pf-case-img .pf-badge { position: absolute; left: 12px; bottom: 12px; }
.pf-case-body { padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 10px; }
.pf-case-meta { margin: 0; font-size: .82rem; color: rgba(255, 255, 255, .6); display: flex; gap: 10px; align-items: center; }
.pf-case-meta span { font: 700 .8rem/1 var(--pf-display); color: var(--pf-yel); }
.pf-case-body .ds-h3 { font-size: 1.15rem; margin: 0 0 4px; }
.pf-case dl { margin: 0; display: grid; gap: 8px; font-size: .9rem; line-height: 1.45; }
.pf-case dt { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #ff5fb1; }
.pf-case dt:nth-of-type(2) { color: #7fd3ff; }
.pf-case dt:nth-of-type(3) { color: var(--pf-yel); }
.pf-case dd { margin: 0 0 4px; color: rgba(255, 255, 255, .86); }
.pf-case-acts { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.pf-case-acts .pf-btn { padding: 11px 18px; font-size: .92rem; }
.ds-dark .pf-case-acts .pf-link, .pf-promo .pf-link { color: #ff8cc8; }

/* ---------- лайтбокс ---------- */
.pf-lb { padding: 0; border: 0; border-radius: 20px; width: min(1320px, 96vw); height: min(880px, 92vh); max-width: none; max-height: none; background: #fff; color: var(--pf-ink); overflow: hidden; }
.pf-lb::backdrop { background: rgba(6, 13, 25, .82); backdrop-filter: blur(3px); }
.pf-lb-in { display: grid; grid-template-columns: minmax(0, 1fr) 380px; height: 100%; }
.pf-lb-stage { position: relative; background: var(--pf-ink); display: flex; flex-direction: column; min-height: 0; }
.pf-lb-fig { flex: 1; min-height: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 70px 12px; }
.pf-lb-fig img { max-width: 100%; max-height: calc(100% - 34px); width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 14px 40px rgba(0, 0, 0, .35); background: #fff; }
.pf-lb-fig figcaption { display: flex; gap: 12px; align-items: center; margin-top: 12px; color: rgba(255, 255, 255, .7); font-size: .85rem; min-height: 22px; }
.pf-lb-note { font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: 5px 9px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; }
.pf-lb-note.is-mock { background: rgba(229, 9, 127, .85); }
.pf-lb-note.is-photo { background: rgba(0, 120, 175, .9); }
.pf-lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.2rem; cursor: pointer; }
.pf-lb-arrow:hover { background: #fff; color: var(--pf-ink); }
.pf-lb-arrow.is-prev { left: 14px; }
.pf-lb-arrow.is-next { right: 14px; }
.pf-lb.is-single .pf-lb-arrow { display: none; }
.pf-lb-thumbs { display: flex; gap: 8px; justify-content: center; padding: 0 20px 18px; overflow-x: auto; flex: none; }
.pf-lb-thumbs:empty { display: none; }
.pf-lb-thumbs button { flex: none; width: 64px; height: 48px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: #13274a; cursor: pointer; opacity: .6; }
.pf-lb-thumbs button[aria-current='true'] { border-color: var(--pf-mag); opacity: 1; }
.pf-lb-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-lb-spin { position: absolute; inset: 0; margin: auto; width: 42px; height: 42px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .2); border-top-color: var(--pf-mag); animation: pf-spin .8s linear infinite; display: none; }
.pf-lb.is-loading .pf-lb-spin { display: block; }
.pf-lb.is-loading .pf-lb-fig, .pf-lb.is-loading .pf-lb-side > :not(.pf-lb-close) { visibility: hidden; }
@keyframes pf-spin { to { transform: rotate(360deg); } }
.pf-lb-side { position: relative; overflow-y: auto; padding: 34px 30px 26px; display: flex; flex-direction: column; gap: 12px; }
.pf-lb-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(10, 22, 40, .06); color: var(--pf-ink); font-size: 1.05rem; cursor: pointer; }
.pf-lb-close:hover { background: var(--pf-ink); color: #fff; }
.pf-lb-meta { margin: 0; padding-right: 44px; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pf-mag-d); }
.pf-lb-title { font: 700 1.35rem/1.2 var(--pf-display); letter-spacing: -.01em; margin: 0; color: var(--pf-ink); }
.pf-lb-text { margin: 0; line-height: 1.55; color: #3b4352; }
.pf-lb-case { margin: 4px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--pf-paper); display: grid; gap: 4px; font-size: .9rem; line-height: 1.45; }
.pf-lb-case dt { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--pf-mag-d); margin-top: 6px; }
.pf-lb-case dt:first-child { margin-top: 0; }
.pf-lb-case dd { margin: 0; }
.pf-lb-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pf-lb-tags li { font-size: .8rem; padding: 4px 10px; border-radius: 999px; background: rgba(10, 22, 40, .06); }
.pf-lb-tags a { color: inherit; }
.pf-lb-product { margin: 0; font-size: .95rem; }
.pf-lb-product .bi { color: var(--pf-mag); }
.pf-lb-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.pf-lb-ok { margin: 0; font-size: .85rem; color: #198754; }
.pf-lb-nav { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--pf-line); display: flex; justify-content: space-between; gap: 10px; }
.pf-lb-nav button { border: 0; background: none; padding: 6px 0; font-weight: 600; font-size: .88rem; color: var(--pf-muted); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.pf-lb-nav button:hover { color: var(--pf-ink); }
.pf-lb-nav button[hidden] { display: none; }
.pf-lb-nav [data-lb-next-work] { margin-left: auto; }

/* ---------- тизер главной и блок каталога ---------- */
.pf-promo { background: var(--pf-ink); color: #fff; position: relative; overflow: hidden; }
.pf-promo::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px); background-size: 14px 14px; }
.pf-promo::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--pf-cyan) 0 25%, var(--pf-mag) 25% 50%, var(--pf-yel) 50% 75%, #111 75%); }
.pf-promo .container { position: relative; }
.pf-promo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: start; }
.pf-promo-grid.is-solo { grid-template-columns: minmax(0, 760px); }
.pf-promo-h { font: 700 clamp(1.5rem, 1rem + 1.6vw, 2.3rem)/1.12 var(--pf-display); letter-spacing: -.02em; color: #fff; margin: 0 0 14px; }
.pf-promo-lead { color: rgba(255, 255, 255, .78); font-size: 1.05rem; line-height: 1.6; margin: 0 0 18px; }
.pf-promo-lead b { color: #fff; }
.pf-promo-chips { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pf-promo-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); font-weight: 600; font-size: .92rem; }
.pf-promo-chips .bi { color: #ff5fb1; }
.pf-promo-rows { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 0; border-top: 1px dashed rgba(255, 255, 255, .22); }
.pf-promo-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; padding: 10px 0; border-bottom: 1px dashed rgba(255, 255, 255, .22); }
.pf-promo-rows a { color: #fff; text-decoration: none; font-weight: 600; }
.pf-promo-rows a:hover { color: #ff8cc8; }
.pf-promo-rows b { white-space: nowrap; text-align: right; }
.pf-promo-rows b small { font-weight: 400; color: rgba(255, 255, 255, .6); }
.pf-promo-rows span { grid-column: 1 / -1; font-size: .82rem; color: rgba(255, 255, 255, .6); }
.pf-promo-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.pf-promo-works { display: flex; flex-direction: column; gap: 16px; }
.pf-promo-works > .pf-link { align-self: flex-end; }
.pf-promo .pf-card-img { background: #13274a; }

@media (max-width: 1199px) {
  .pf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pf-grid--mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-lb-in { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 991px) {
  .pf-promo-grid { grid-template-columns: 1fr; gap: 32px; }
  .pf-case { grid-template-columns: 1fr; flex-basis: min(520px, 84vw); }
  .pf-case-img img { aspect-ratio: 4 / 3; height: auto; }
  .ds-works-head, .pf-cases-head { flex-direction: column; align-items: flex-start; gap: 0; }
  .ds-works-all { margin-bottom: 18px; }
  .pf-cases-arrows { margin-bottom: 22px; }
  .pf-lb { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .pf-lb-in { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 58%) minmax(0, 1fr); }
  .pf-lb-stage, .pf-lb-side { min-width: 0; }
  .pf-lb-fig { padding: 16px 16px 6px; }
  .pf-lb-arrow { width: 40px; height: 40px; }
  .pf-lb-arrow.is-prev { left: 6px; }
  .pf-lb-arrow.is-next { right: 6px; }
  .pf-lb-thumbs { justify-content: flex-start; padding: 0 12px 10px; }
  .pf-lb-thumbs button { width: 52px; height: 40px; }
  .pf-lb-side { padding: 22px 18px 18px; }
  .pf-lb-close { position: fixed; top: 10px; right: 10px; z-index: 3; background: rgba(255, 255, 255, .9); }
  .pf-lb-meta { padding-right: 0; }
}
@media (max-width: 767px) {
  .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .pf-grid--trio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-grid--trio .pf-card:nth-child(3) { display: none; }
  .pf-card-t { font-size: .9rem; }
  .pf-card-m { font-size: .78rem; }
  .pf-card-x { display: none; }
  .pf-card-img { border-radius: 10px; }
  .pf-count { top: 6px; right: 6px; }
  .pf-card-img .pf-badge { left: 6px; bottom: 6px; font-size: .62rem; padding: 5px 7px; }
  .pf-card-img .pf-masked-tag { right: 6px; bottom: 6px; padding: 5px 6px; }
  .pf-card-img .pf-masked-tag span { display: none; }
  .pf-frow { flex-wrap: nowrap; overflow-x: auto; margin-right: -12px; padding: 2px 12px 6px 0; scrollbar-width: none; }
  .pf-frow::-webkit-scrollbar { display: none; }
  .pf-frow button { flex: none; }
  .pf-dd { position: static; }
  .pf-dd-panel { left: 12px; right: 12px; width: auto; }
  .pf-frow2 { position: relative; }
  .pf-total { width: 100%; margin-left: 0; }
  .pf-chiplinks { flex-wrap: nowrap; overflow-x: auto; margin-right: -12px; padding-bottom: 6px; scrollbar-width: none; }
  .pf-chiplinks li { flex: none; }
  .pf-case-body { padding: 20px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .pf-card-img img, .pf-btn, .pf-dd summary .bi { transition: none; }
  .pf-card-link:hover .pf-card-img img { transform: none; }
  .pf-cases-track { scroll-behavior: auto; }
  .pf-lb-spin { animation-duration: 2s; }
}
