/* ===================== «НАШИ РАБОТЫ» /portfolio и РАБОТА /rabota/{url} =====================
   Подключается через ViewData["CssPage"] = "portfolio" (Pages/Portfolio, Pages/Rabota).
   Классы раздела — pf-*. Заголовки — Lora (задано глобально в core.css), размеры — здесь.
   Все картинки с object-fit лежат в обёртке с position: relative, высотой (aspect-ratio) и overflow: hidden. */

.pf-page { padding: 4px 56px 0; max-width: 1440px; margin: 0 auto; display: grid; gap: 40px; box-sizing: border-box; }
.pf-page--tail { padding-top: 56px; }
.pf-page > * { min-width: 0; }

.pf-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--green-700); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
}
.pf-eyebrow [data-lucide], .pf-eyebrow svg { width: 16px; height: 16px; }

.pf-h2 { margin: 0 0 18px; font-size: 32px; line-height: 1.15; font-weight: 600; color: var(--ink); }
.pf-h3 { margin: 28px 0 14px; font-size: 22px; line-height: 1.25; font-weight: 600; color: var(--ink); }

.pf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0;
  padding: 15px 24px; border-radius: 12px; background: var(--green-600); color: #fff;
  font-weight: 600; font-size: 15px; text-decoration: none; transition: background .15s;
}
.pf-btn:hover { background: var(--green-700); color: #fff; }
.pf-btn [data-lucide], .pf-btn svg { width: 18px; height: 18px; }

.pf-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--green-700); font-weight: 600; font-size: 15px; text-decoration: none;
}
.pf-link:hover { text-decoration: underline; }
.pf-link [data-lucide], .pf-link svg { width: 17px; height: 17px; }

/* ——— Шапка списка ——— */
.pf-hero {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: end;
  padding: 36px 40px; border-radius: 24px;
  background: linear-gradient(135deg, var(--green-50) 0%, #fff 70%);
  border: 1px solid var(--line);
}
.pf-hero__text { display: grid; gap: 14px; }
.pf-hero__title { margin: 0; font-size: 46px; line-height: 1.08; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.pf-hero__lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-3); max-width: 640px; }

.pf-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pf-stat {
  display: grid; gap: 4px; padding: 16px 18px; border-radius: 16px;
  background: #fff; border: 1px solid var(--line);
}
.pf-stat b { font-family: 'Lora', Georgia, serif; font-size: 28px; line-height: 1.1; font-weight: 600; color: var(--green-700); }
.pf-stat span { font-size: 13.5px; line-height: 1.4; color: var(--ink-3); }

/* ——— Фильтр ——— */
.pf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  color: var(--ink-2); font-size: 14.5px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: border-color .15s, background .15s, color .15s;
}
.pf-chip span {
  min-width: 24px; padding: 1px 7px; border-radius: 999px; background: var(--line-2);
  color: var(--ink-3); font-size: 12.5px; font-weight: 600; text-align: center;
}
.pf-chip [data-lucide], .pf-chip svg { width: 15px; height: 15px; }
.pf-chip:hover { border-color: var(--green-500); color: var(--green-700); }
.pf-chip.is-active { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.pf-chip.is-active span { background: rgba(255,255,255,.22); color: #fff; }

.pf-listhead { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: -16px; }
.pf-listhead__count { margin: 0; color: var(--ink-3); font-size: 15px; }
.pf-empty { margin: 0; padding: 40px; border-radius: 18px; background: #fff; border: 1px solid var(--line); text-align: center; color: var(--ink-3); }

/* ——— Сетка карточек ——— */
.pf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.pf-card { min-width: 0; }
.pf-card__link {
  display: flex; flex-direction: column; height: 100%;
  border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--line);
  color: inherit; text-decoration: none;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.pf-card__link:hover { box-shadow: 0 22px 44px -28px rgba(20,24,26,.35); transform: translateY(-2px); border-color: #d7ddd4; }
.pf-card__link:focus-visible { outline: 3px solid var(--green-500); outline-offset: 2px; }

.pf-card__pic { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--line-2); }
.pf-card__pic > picture,
.pf-card__pic > picture > img {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none;
}
.pf-card__pic > picture > img { object-fit: cover; object-position: 50% 22%; transition: transform .35s; }
/* Вертикальная обложка в карточке 4:3: берём верх кадра (портрет, стела), а не середину — иначе ноги и низ памятника. */
.pf-card__link:hover .pf-card__pic > picture > img { transform: scale(1.03); }

.pf-card__ba {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px;
  border-radius: 999px; background: rgba(20,24,26,.78); color: #fff;
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
}
.pf-card__before {
  position: relative; display: block; flex-shrink: 0; width: 36px; height: 36px;
  border-radius: 50%; overflow: hidden; border: 2px solid #fff; background: var(--line-2);
}
.pf-card__before picture,
.pf-card__before img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; }
.pf-card__before img { object-fit: cover; filter: saturate(.75); }
.pf-card__count {
  position: absolute; right: 12px; top: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px;
  background: rgba(255,255,255,.92); color: var(--ink-2); font-size: 12.5px; font-weight: 600;
}
.pf-card__count [data-lucide], .pf-card__count svg { width: 14px; height: 14px; }

.pf-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1 1 auto; }
.pf-card__title {
  font-family: 'Lora', Georgia, serif; font-size: 19px; line-height: 1.3; font-weight: 600; color: var(--ink);
  letter-spacing: -.01em;
}
.pf-card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; font-size: 13.5px; color: var(--muted); }
.pf-card__meta time::first-letter { text-transform: uppercase; }
.pf-card__dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }
.pf-card__services { color: var(--green-700); font-weight: 500; }
.pf-card__quote {
  display: flex; gap: 8px; margin-top: 4px; padding-top: 10px; border-top: 1px dashed var(--line);
  font-size: 13.5px; line-height: 1.5; color: var(--ink-3);
}
.pf-card__quote [data-lucide], .pf-card__quote svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--green-600); margin-top: 2px; }

/* ——— Пагинация ——— */
.pf-pager { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; }
.pf-pager__num, .pf-pager__arrow, .pf-pager__gap {
  min-width: 42px; height: 42px; padding: 0 8px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 15px; color: var(--ink-2); text-decoration: none; box-sizing: border-box;
}
.pf-pager__num, .pf-pager__arrow { background: #fff; border: 1px solid var(--line); }
.pf-pager a:hover { border-color: var(--green-500); color: var(--green-700); }
.pf-pager__num.is-active { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.pf-pager__arrow.is-disabled { opacity: .4; }
.pf-pager__arrow [data-lucide], .pf-pager__arrow svg { width: 18px; height: 18px; }
.pf-pager__gap { min-width: 24px; color: var(--muted); }

/* ——— Призыв ——— */
.pf-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px 32px; border-radius: 22px; background: var(--green-700); color: #fff;
}
.pf-cta__text h2 { margin: 0 0 6px; font-size: 28px; line-height: 1.2; font-weight: 600; color: #fff; }
.pf-cta__text p { margin: 0; color: rgba(255,255,255,.85); font-size: 15.5px; line-height: 1.55; max-width: 640px; }
.pf-cta .pf-btn { background: #fff; color: var(--green-700); }
.pf-cta .pf-btn:hover { background: var(--green-50); color: var(--green-700); }

/* ——— Квиз и общие блоки ——— */
.pf-quiz { margin-top: 16px; padding-bottom: 0; }
/* «Популярные услуги» сразу после квиза: 24px, как на страницах услуг (core.css .svc-popular-services--after-quiz) */
.pf-quiz + section.svc-popular-services.svc-page-section--popular { padding-top: 24px !important; }
.pf-quiz .quiz { margin-top: 56px; }

/* ——— SEO и FAQ ——— */
.pf-seo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding-bottom: 16px; }
.pf-seo__text { display: grid; gap: 14px; align-content: start; }
.pf-seo__text h2 { margin: 0; font-size: 32px; line-height: 1.15; font-weight: 600; }
.pf-seo__text p { margin: 0; color: var(--ink-3); font-size: 15.5px; line-height: 1.7; }
.pf-faq { display: grid; gap: 10px; align-content: start; }
.pf-faq h3 { margin: 0 0 4px; font-size: 22px; font-weight: 600; }
.pf-faq__item { border-radius: 14px; background: #fff; border: 1px solid var(--line); padding: 0 18px; }
.pf-faq__item summary {
  cursor: pointer; list-style: none; padding: 15px 28px 15px 0; position: relative;
  font-weight: 600; font-size: 15.5px; color: var(--ink);
}
.pf-faq__item summary::-webkit-details-marker { display: none; }
.pf-faq__item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 400; color: var(--green-600);
}
.pf-faq__item[open] summary::after { content: "–"; }
.pf-faq__item p { margin: 0 0 16px; color: var(--ink-3); font-size: 15px; line-height: 1.6; }
.pf-faq__item a { color: var(--green-700); }

/* ===================== Страница работы ===================== */
.pf-work { display: grid; gap: 36px; max-width: 1100px; width: 100%; margin: 0 auto; min-width: 0; }
.pf-work > * { min-width: 0; }
.pf-work__head { display: grid; gap: 14px; padding-top: 28px; } /* надзаголовок не липнет к крошкам */
.pf-work__title { margin: 0; font-size: 42px; line-height: 1.12; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.pf-work__meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-3); font-size: 14.5px; }
.pf-work__meta li { display: inline-flex; align-items: center; gap: 7px; }
.pf-work__meta [data-lucide], .pf-work__meta svg { width: 17px; height: 17px; color: var(--green-600); }

.pf-tags { display: flex; flex-wrap: wrap; gap: 8px; }
/* Услуги работы — под кружком «…» в строке с числом фото (Rabota/Index), открываются по нажатию (владелец 2026-10-22) */
.pf-work__head:not(.tags-open) .pf-tags { display: none; }
.pf-tags-toggle {
  width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff;
  color: var(--green-700); display: grid; place-items: center; cursor: pointer; padding: 0; transition: background-color .15s;
}
.pf-tags-toggle:hover { background: var(--green-50); }
.pf-work__head.tags-open .pf-tags-toggle { background: var(--green-50); border-color: var(--green-600); }
.pf-work__meta .pf-tags-toggle [data-lucide], .pf-work__meta .pf-tags-toggle svg { width: 18px; height: 18px; }
.pf-tag {
  display: inline-flex; align-items: center; padding: 6px 13px; border-radius: 999px;
  background: var(--green-50); color: var(--green-700); font-size: 13.5px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent;
}
a.pf-tag:hover { border-color: var(--green-500); }
.pf-tag--plain { background: var(--line-2); color: var(--ink-3); }

/* До / после */
.pf-ba {
  --pos: 50%;
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 22px;
  background: #1a1f1d; user-select: none; -webkit-user-select: none;
}
.pf-ba__pane { position: absolute; inset: 0; overflow: hidden; }
.pf-ba__pane--before { z-index: 1; }
.pf-ba__pane--after { z-index: 2; clip-path: inset(0 0 0 var(--pos)); }
.pf-ba__pane picture,
.pf-ba__pane img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; }
.pf-ba__pane img { object-fit: cover; pointer-events: none; }
.pf-ba__label {
  position: absolute; top: 18px; z-index: 4; padding: 8px 16px; border-radius: 8px;
  background: rgba(20,24,26,.8); color: #fff; font-weight: 700; font-size: 12.5px; letter-spacing: .08em;
  pointer-events: none;
}
.pf-ba__label--before { left: 18px; }
.pf-ba__label--after { right: 18px; background: var(--green-700); }
.pf-ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; z-index: 3;
  background: #fff; transform: translateX(-50%); box-shadow: 0 0 0 1px rgba(0,0,0,.1); pointer-events: none;
}
.pf-ba__grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--green-700);
  display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(0,0,0,.4);
}
.pf-ba__grip [data-lucide], .pf-ba__grip svg { width: 22px; height: 22px; }
.pf-ba input[type=range] {
  position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; touch-action: pan-y;
}
.pf-ba__hint { display: flex; align-items: center; justify-content: center; gap: 8px; margin: -24px 0 0; color: var(--muted); font-size: 13.5px; }
.pf-ba__hint [data-lucide], .pf-ba__hint svg { width: 16px; height: 16px; }

.pf-cover { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 22px; background: var(--line-2); }
.pf-cover picture,
.pf-cover img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; }
.pf-cover img { object-fit: cover; object-position: 50% 22%; }

/* Было / сделали / результат */
.pf-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.pf-fact { padding: 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.pf-fact__ico {
  width: 42px; height: 42px; border-radius: 12px; background: var(--green-50); color: var(--green-700);
  display: grid; place-items: center;
}
.pf-fact__ico [data-lucide], .pf-fact__ico svg { width: 20px; height: 20px; }
.pf-fact__title { margin: 0; font-size: 18px; font-weight: 600; color: var(--ink); }
.pf-fact__text { margin: 0; color: var(--ink-3); font-size: 15px; line-height: 1.6; }
.pf-fact__list { margin: 0; padding-left: 18px; color: var(--ink-3); font-size: 15px; line-height: 1.6; }
.pf-fact__list li::marker { color: var(--green-600); }

/* Отчёт */
.pf-report { display: grid; gap: 20px; }
.pf-report > .pf-h2, .pf-report > .pf-h3 { margin-bottom: 0; }
.pf-text { max-width: 780px; color: var(--ink-2); font-size: 16px; line-height: 1.75; }
.pf-text p { margin: 0 0 14px; }
.pf-text p:last-child { margin-bottom: 0; }
.pf-text h3, .pf-text h4 { margin: 18px 0 10px; font-size: 21px; line-height: 1.3; font-weight: 600; color: var(--ink); }
.pf-text ul, .pf-text ol { margin: 0 0 14px; padding-left: 22px; }

.pf-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pf-gallery--single { grid-template-columns: minmax(0, 760px); }
.pf-thumb {
  position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden;
  border-radius: 14px; background: var(--line-2); cursor: zoom-in;
}
.pf-thumb picture,
.pf-thumb img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; }
.pf-thumb img { object-fit: cover; transition: transform .3s; }
.pf-thumb:hover img { transform: scale(1.04); }
.pf-thumb:focus-visible { outline: 3px solid var(--green-500); outline-offset: 2px; }

/* Видео */
.pf-video { display: grid; gap: 8px; max-width: 760px; width: 100%; }
.pf-video__btn, .pf-video__frame {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  border: 0; padding: 0; border-radius: 16px; background: #1a1f1d; cursor: pointer;
}
.pf-video__btn picture,
.pf-video__btn img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; }
.pf-video__btn img { object-fit: cover; opacity: .9; }
.pf-video__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1;
  width: 68px; height: 68px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--green-700);
  display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(0,0,0,.5);
}
.pf-video__play svg { width: 28px; height: 28px; margin-left: 4px; }
.pf-video__title { margin: 0; font-size: 14.5px; color: var(--ink-3); }
.pf-videos__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }

/* Отзыв */
.pf-reviews { display: grid; gap: 16px; }
.pf-reviews > .pf-h2 { margin-bottom: 0; }
.pf-review {
  position: relative; margin: 0; padding: 28px 32px; border-radius: 22px;
  background: var(--green-50); border: 1px solid #dbe8d5; display: grid; gap: 14px;
}
.pf-review__mark { width: 40px; height: 30px; fill: var(--green-600); opacity: .35; }
.pf-review__text { margin: 0; font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.pf-review__text p { margin: 0 0 10px; }
.pf-review__text p:last-child { margin-bottom: 0; }
.pf-review__who { font-weight: 700; color: var(--ink); }

/* Статьи */
.pf-articles__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pf-articles__list a {
  display: flex; align-items: flex-start; gap: 10px; padding: 14px 18px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600;
}
.pf-articles__list a:hover { border-color: var(--green-500); color: var(--green-700); }
.pf-articles__list [data-lucide], .pf-articles__list svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--green-600); margin-top: 2px; }

/* Услуги работы */
.pf-services__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.pf-service {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line);
  color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
.pf-service:hover { border-color: var(--green-500); box-shadow: 0 16px 32px -26px rgba(20,24,26,.4); }
.pf-service__body { display: grid; gap: 4px; min-width: 0; }
.pf-service__name { font-family: 'Lora', Georgia, serif; font-weight: 600; font-size: 17px; color: var(--ink); }
.pf-service__text { font-size: 13.5px; color: var(--ink-3); line-height: 1.45; }
.pf-service__price { font-size: 14px; font-weight: 700; color: var(--green-700); }
.pf-service__go {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink);
}
.pf-service__go [data-lucide], .pf-service__go svg { width: 17px; height: 17px; }

/* Другие работы */
.pf-others { display: grid; gap: 20px; margin-top: 40px; } /* + gap .pf-page 40px = 80px от призыва */
.pf-others__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pf-others__head .pf-h2 { margin: 0; }

/* Лайтбокс */
.pf-lb {
  position: fixed; inset: 0; z-index: 1000; background: rgba(12,15,14,.94);
  display: flex; align-items: center; justify-content: center; padding: 56px 96px;
}
.pf-lb[hidden] { display: none; }
html.pf-lb-open, html.pf-lb-open body { overflow: hidden; }
.pf-lb__stage { margin: 0; display: grid; justify-items: center; gap: 12px; max-width: 100%; max-height: 100%; }
/* Рамка по размеру кадра: стрелки позиционируются от краёв фото, а не окна */
.pf-lb__frame { position: relative; display: block; max-width: 100%; }
.pf-lb__img {
  display: block; max-width: min(1200px, calc(100vw - 192px)); max-height: calc(100vh - 140px);
  width: auto; height: auto; object-fit: contain; border-radius: 10px; background: #222;
}
.pf-lb__count { color: rgba(255,255,255,.85); font-size: 14px; font-weight: 600; letter-spacing: .04em; }
.pf-lb__close, .pf-lb__nav {
  position: absolute; z-index: 2; border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff;
  display: grid; place-items: center; transition: background .15s;
}
.pf-lb__close:hover, .pf-lb__nav:hover { background: rgba(255,255,255,.24); }
.pf-lb__close svg, .pf-lb__nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pf-lb__close { top: 14px; right: 14px; }
.pf-lb__nav { top: 50%; transform: translateY(-50%); }
/* Широкий экран: снаружи кадра, 20px от края фото */
.pf-lb__nav--prev { left: -68px; }
.pf-lb__nav--next { right: -68px; }
/* Узкий экран: поверх кадра у его краёв */

/* ===================== Адаптив ===================== */

/* ===== Шапка «Наших работ» — как у «Отзывов» (pages/reviews.css .rv-hero) и «Блога»: единый вид разделов (05.10.2026) ===== */
.pf-page > .pf-hero, .pf-hero { display: none; }
.pf-hero2 { overflow: hidden; }
.pf-wrap { padding-left: max(24px, calc((100% - 1425px) / 2 + 56px)); padding-right: 24px; }
.pf-hero2 .breadcrumbs { padding: 14px 0 10px; font-size: 13px; }
.pf-hero2__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 60%);
  grid-template-areas: "hero media";
  align-items: stretch;
  min-height: 400px;
  padding-left: max(24px, calc((100% - 1425px) / 2 + 56px));
}
.pf-hero2__inner {
  grid-area: hero; position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding-block: 44px 36px; padding-right: 24px;
}
.pf-hero2__media { grid-area: media; position: relative; min-height: 320px; overflow: hidden; border-radius: 20px; }
.pf-hero2__media::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--page) 0%, rgba(250,249,247,.92) 10%, rgba(250,249,247,.45) 22%, rgba(250,249,247,0) 38%);
}
.pf-hero2__media picture, .pf-hero2__media img {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: 60% 45%;
}
.pf-hero2__title { margin: 0 0 12px; font-size: 48px; font-weight: 600; line-height: 1.04; color: var(--ink); }
.pf-hero2 .pf-hero__lead { max-width: 560px; margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-3); }
.pf-hfacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; width: 100%; margin: 24px 0 0; padding: 0; list-style: none; }
.pf-hfact { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pf-hfact__ico { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--green-700); color: #fff; }
.pf-hfact__ico :is(i, svg) { width: 18px; height: 18px; }
.pf-hfact b { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }
.pf-hfact small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }

/* ===== Превью работ: водяной знак — только значок в правом нижнем углу (владелец 05.10.2026) =====
   Все фото отчётов шириной 940 px, знак стоит одинаково: значок 255–330 px от правого края, текст — правее 222 px.
   Срезаем правые 240 px (25,5 %): картинка шире рамки в 940/700 раз, прижата к левому нижнему углу,
   значок оказывается у правого края, надпись уходит за рамку. Полный кадр — в лайтбоксе, там без обрезки. */
.pf-card__pic > picture, .pf-hero2__media picture, .pf-thumb picture {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: hidden;
}
.pf-card__pic > picture > img, .pf-hero2__media img, .pf-thumb img {
  position: absolute; inset: auto auto 0 0; width: 134.29%; height: auto; min-height: 100%; max-width: none; object-fit: cover; object-position: 0 100%;
}

/* Наведение на карточку работы: карточка не поднимается (только тень); фото увеличивается влево и вверх —
   точка опоры в правом нижнем углу рамки (рамка = 74,47 % ширины картинки), значок знака не уходит за край. */
.pf-card__link:hover { transform: none; }
.pf-card__pic > picture > img, .pf-thumb img { transform-origin: 74.47% 100%; }

/* ===== Превью работ v2 (владелец 05.10.2026): значок водяного знака найден на КАЖДОМ фото отдельно ======
   Фото разной высоты, поэтому общая обрезка в процентах попадала не везде. Скрипт scratchpad wm_find.py
   (OpenCV, поиск значка по шаблону на нескольких масштабах) режет reportfiles/prev/{stem}.jpg: кадр от левого
   верхнего угла до значка + 10px — значок в правом нижнем углу, надпись срезана; фото без знака — целиком.
   Здесь картинка просто кадрируется от правого нижнего угла — значок всегда виден в углу, на любой рамке. */
.pf-card__pic > picture, .pf-thumb picture, .pf-cover picture, .svw-card__pic > picture {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: hidden;
}
.pf-card__pic > picture > img, .pf-thumb img, .pf-cover picture > img, .svw-card__pic > picture > img {
  position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; max-width: none;
  object-fit: cover; object-position: 100% 100%; transform-origin: 100% 100%;
}
.pf-cover { position: relative; overflow: hidden; aspect-ratio: 16 / 9; }
.pf-card__link:hover .pf-card__pic > picture > img, .svw-card__link:hover .svw-card__pic > picture > img { transform-origin: 100% 100%; }
.pf-hero2__media picture { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.pf-hero2__media img { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 100% 100%; }

/* ===== «Кладка» на /portfolio, как /stone/ideas (владелец 2026-10-13): обложки целиком в своих пропорциях.
   Карточка получает aspect-ratio превью (ResponsiveImageWidths.Original) из _PortfolioCard. */
.pf-grid.pf-grid--mason { display: block; column-count: 3; column-gap: 24px; }
.pf-grid--mason > .pf-card { break-inside: avoid; margin-bottom: 24px; }
.pf-grid--mason .pf-card__link { height: auto; }

.pf-chips { scroll-margin-top: 96px; } /* якорь #pf-filters — под фиксированной шапкой */

/* ===================== Телефон (владелец 2026-10-19) =====================
   «Другие работы» на /rabota — лента вбок (.m-swipe в разметке), поля .pf-page 24/16px.
   Фильтр-чипы /portfolio — одна строка с прокруткой вбок вместо восьми строк; активный чип прокручивается в видимую часть
   (скрипт в Portfolio/Index.cshtml). Каталог /portfolio остаётся сеткой — у него пагинация. */

/* Второй круг (2026-10-19). Фотоотчёт /rabota: группы фото — лента вбок (.m-swipe в разметке; было 2 в ряд, нечётный
   последний кадр оставлял дыру). Одиночный кадр (часто макет/чертёж) — во всю ширину и целиком, без обрезки квадратом.
   «Другие работы»: карточки по высоте своего содержимого, а не самой высокой в ленте. */

