.pg { --pg-accent: #d8fe56; --pg-muted: #b7c1af; --pg-line: #455042; --pg-surface: #202820; color: #f2f5ee; max-width: 1220px; margin-inline: auto; padding: 28px clamp(14px, 4vw, 40px) 55px; }
.pg *, .pg *::before, .pg *::after { box-sizing: border-box; }
.pg h1, .pg h2, .pg p { margin: 0; overflow-wrap: anywhere; }
.pg h1 { font-size: clamp(29px, 5vw, 55px); line-height: 1.07; letter-spacing: -.045em; }
.pg h2 { font-size: clamp(20px, 3vw, 30px); line-height: 1.14; letter-spacing: -.025em; }
.pg h1:focus-visible { outline: none; }
.pg .pg-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.pg .pg-top h1 { font-size: clamp(28px, 4vw, 44px); }
.pg .pg-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; border: 1px solid var(--pg-line); border-radius: 12px; background: #222c20; padding: 9px 15px; color: #f2f5ee; font: inherit; font-weight: 650; text-align: center; text-decoration: none; cursor: pointer; }
.pg .pg-button:hover, .pg .pg-button[aria-pressed="true"] { border-color: var(--pg-accent); }
.pg .pg-primary { background: var(--pg-accent); border-color: var(--pg-accent); color: #202b0a; }
.pg .pg-primary:hover { background: #e7ff97; }
.pg :is(a, button, select, input, summary):focus-visible { outline: 2px solid var(--pg-accent); outline-offset: 3px; }
.pg .pg-hero { position: relative; display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; min-height: clamp(330px, 55vw, 570px); border-radius: 22px; background: #283126; }
.pg .pg-hero::before { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(90deg, #0d150edd 0%, #111a13ac 37%, transparent 76%), linear-gradient(0deg, #131c13d7 0%, transparent 56%); }
.pg .pg-hero-image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.pg .pg-hero-content { padding: clamp(20px, 5vw, 54px); max-width: 72%; }
.pg .pg-kicker { color: var(--pg-accent); font-size: .75rem; font-weight: 700; letter-spacing: .095em; text-transform: uppercase; }
.pg .pg-hero h2 { font-size: clamp(47px, 9.5vw, 112px); line-height: .96; letter-spacing: -.07em; margin: 9px 0 12px; }
.pg .pg-hero p { color: #e3e7df; margin-bottom: 18px; max-width: 310px; }
.pg .pg-face { position: absolute; display: block; top: 16px; right: 16px; width: clamp(94px, 16vw, 170px); aspect-ratio: 1; background: #e3e2dd; border: 3px solid #fcfbf2; border-radius: 50%; overflow: hidden; box-shadow: 0 6px 24px #14191177; }
.pg .pg-face img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pg .pg-intro { margin-block: 22px 12px; }
.pg .pg-intro a { margin-inline-start: 10px; }
.pg .pg-intro p, .pg .pg-muted, .pg .pg-subtitle { color: var(--pg-muted); }
.pg .pg-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.5fr); gap: 12px; }
.pg label { min-width: 0; display: grid; gap: 6px; font-size: .9rem; font-weight: 600; }
.pg :is(input, select) { display: block; min-width: 0; width: 100%; min-height: 44px; padding: 8px 11px; border: 1px solid var(--pg-line); border-radius: 9px; background: #1b251e; color: #f2f5ee; font: inherit; }
.pg .pg-results > p { margin: 18px 0 8px; }
.pg .pg-note { padding: 11px 15px; border-left: 2px solid var(--pg-accent); background: var(--pg-surface); }
.pg .pg-group { margin-top: 23px; }
.pg .pg-group h2 { margin-bottom: 10px; font-size: clamp(19px, 2.4vw, 25px); }
.pg .pg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.pg .pg-card { display: block; border: 1px solid var(--pg-line); border-radius: 15px; overflow: hidden; background: var(--pg-surface); color: #f2f5ee; text-decoration: none; min-width: 0; }
.pg .pg-card:hover { border-color: var(--pg-accent); }
.pg .pg-card-photo { position: relative; display: block; aspect-ratio: 1.7; background: #253021; }
.pg .pg-card-photo > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pg .pg-card .pg-face { width: clamp(45px, 6vw, 78px); top: 9px; right: 9px; border-width: 2px; }
.pg .pg-card-text { display: grid; gap: 3px; padding: 11px 15px; font-size: .88rem; }
.pg .pg-card-text strong { font-size: 1.28rem; line-height: 1.15; }
.pg .pg-back { display: inline-block; margin-bottom: 17px; }
.pg .pg-back, .pg .pg-intro a, .pg .pg-credits a { color: var(--pg-accent); }
.pg .pg-subtitle { font-size: clamp(17px, 2.4vw, 24px); margin-block: 8px 18px; }
.pg .pg-detail { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); align-items: start; gap: 18px; }
.pg .pg-media, .pg .pg-request { border: 1px solid var(--pg-line); border-radius: 15px; background: var(--pg-surface); padding: 12px; min-width: 0; }
.pg .pg-media-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.pg .pg-open-photo { display: block; width: 100%; border: 0; padding: 0; border-radius: 10px; overflow: hidden; color: inherit; cursor: zoom-in; background: #171f17; }
.pg .pg-open-photo img { display: block; width: 100%; height: auto; max-height: 63vh; object-fit: contain; }
.pg .pg-current-photo, .pg .pg-photo-panel > p { color: var(--pg-muted); margin: 8px 0 12px; font-size: .9rem; }
.pg .pg-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.pg .pg-thumbs button { display: block; width: 100%; padding: 2px; color: #f2f5ee; background: #172019; border: 1px solid var(--pg-line); border-radius: 8px; text-align: left; cursor: pointer; min-width: 0; }
.pg .pg-thumbs button[aria-pressed="true"] { border-color: var(--pg-accent); }
.pg .pg-thumbs img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 5px; }
.pg .pg-thumbs span { display: block; padding: 4px; font-size: .75rem; overflow-wrap: anywhere; }
.pg .pg-request { display: grid; gap: 10px; padding: 17px; align-content: start; }
.pg .pg-request h2 { font-size: clamp(19px, 2.5vw, 29px); }
.pg .pg-request a { color: var(--pg-accent); overflow-wrap: anywhere; }
.pg .pg-section, .pg .pg-credits { margin-top: 16px; border-top: 1px solid var(--pg-line); padding-top: 13px; }
.pg .pg-section h2, .pg .pg-credits summary { margin-bottom: 6px; }
.pg summary { cursor: pointer; font-weight: 650; }
.pg .pg-credits { font-size: .85rem; color: var(--pg-muted); }
.pg .pg-passport { margin-bottom: 0; }
.pg .pg-passport div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 8px; padding-block: 7px; border-bottom: 1px solid var(--pg-line); }
.pg .pg-passport dt { color: var(--pg-muted); }
.pg .pg-passport dd { margin: 0; overflow-wrap: anywhere; }
.pg-catalog-entry { margin-top: 8px; }
@media (max-width: 760px) {
  .pg { padding-top: 20px; }
  .pg .pg-hero { min-height: clamp(320px, 75vw, 450px); border-radius: 15px; }
  .pg .pg-hero-content { max-width: none; padding-top: calc(clamp(94px, 16vw, 170px) + 32px); }
  .pg .pg-hero::before { background: linear-gradient(0deg, #0d150ef8 0%, #151f16a8 40%, transparent 75%); }
  .pg .pg-face { top: 11px; right: 11px; }
  .pg .pg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg .pg-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg .pg-filters label:last-child { grid-column: 1 / -1; }
  .pg .pg-detail { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 365px) {
  .pg .pg-grid { grid-template-columns: minmax(0, 1fr); }
  .pg .pg-hero-content { padding-inline: 16px; }
}
