
.phgk { font-family: var(--phg-font-body, Georgia, serif); color: #1a1612; background: #faf7f2; overflow-x: hidden; }
.phgk, .phgk * { box-sizing: border-box; }
body.phg-kariera #main { max-width: none !important; padding: 0 !important; margin: 0 !important; }
body.phg-kariera #main > .container { max-width: none !important; padding: 0 !important; }


.phgk-eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 24px; }
.phgk-eyebrow.is-center { justify-content: center; }
.phgk-eyebrow .ln { width: 36px; height: 1px; background: #c6a35a; display: inline-block; }
.phgk-eyebrow .tx { font-size: 12px; letter-spacing: 3px; color: #b08a3e; font-weight: 600; }
.phgk-dark .phgk-eyebrow .tx, .phgk-seek-card .phgk-eyebrow .tx { color: #d8b873; }

.phgk-h2 { font-family: var(--phg-font-heading); font-weight: 500; font-size: clamp(30px, 4.4vw, 54px); line-height: 1.12; margin: 0 0 24px; color: #1a1612; }
.phgk-h2 em, .phgk-h1 em { font-style: italic; color: #d8b873; }
.phgk-text { font-size: 17px; line-height: 1.75; color: #4a443c; font-weight: 300; margin: 0 0 18px; }
.phgk-text:last-child { margin-bottom: 0; }


.phgk-hero { position: relative; min-height: 100vh; display: flex; align-items: flex-end; overflow: hidden; }
.phgk-hero .wp-block-cover__image-background { animation: phgkHeroFade 1.4s ease both; will-change: transform; opacity: .82 !important; }
@keyframes phgkHeroFade { from { opacity: 0; } to { opacity: .82; } }
.phgk-hero .wp-block-cover__background { background: linear-gradient(180deg, rgba(20,17,12,.55) 0%, rgba(20,17,12,.15) 35%, rgba(20,17,12,.45) 70%, rgba(20,17,12,.92) 100%) !important; }
.phgk-hero .wp-block-cover__inner-container { width: 100%; max-width: 1180px; margin: 0; padding: 0 clamp(24px,5vw,80px) clamp(64px,9vh,120px); }
.phgk-hero .phgk-eyebrow .tx { color: #c6a35a; font-size: 13px; letter-spacing: 4px; }
.phgk-hero .phgk-eyebrow .ln { width: 48px; background: #c6a35a; transform-origin: left; animation: phgkLine 1s .3s ease both; }
@keyframes phgkLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.phgk-h1 { font-family: var(--phg-font-display); font-weight: 700; font-size: clamp(38px, 5.5vw, 76px); line-height: 1.12; color: #f9f5ec; margin: 0 0 28px; letter-spacing: normal; text-transform: none; text-shadow: 0 1px 3px rgba(0,0,0,.4), 0 4px 26px rgba(0,0,0,.42); }
.phgk-lead { font-size: clamp(16px, 1.6vw, 21px); line-height: 1.6; color: rgba(247,242,232,.92); max-width: 620px; font-weight: 300; margin: 0 0 36px; text-shadow: 0 1px 2px rgba(0,0,0,.45), 0 2px 14px rgba(0,0,0,.5); }
.phgk-cue { position: absolute; bottom: 32px; right: clamp(24px,5vw,80px); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px; animation: phgkFloat 3s ease-in-out infinite; }
.phgk-cue .t { font-size: 11px; letter-spacing: 2px; color: rgba(247,242,232,.6); writing-mode: vertical-rl; }
.phgk-cue .b { width: 1px; height: 40px; background: linear-gradient(#c6a35a, transparent); }
@keyframes phgkFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }


.phgk-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.phgk-cta .phgk-btns { justify-content: center; }
.phgk-btn-gold a, .phgk-btn-gold .wp-block-button__link { background: #d8b873 !important; color: #1a1612 !important; padding: 16px 38px; border-radius: 100px; font-weight: 600; font-size: 15px; letter-spacing: .5px; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.phgk-btn-gold a:hover, .phgk-btn-gold .wp-block-button__link:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(216,184,115,.3); }
.phgk-btn-ghost a, .phgk-btn-ghost .wp-block-button__link { background: transparent !important; border: 1px solid rgba(247,242,232,.4) !important; color: #f7f2e8 !important; padding: 16px 38px; border-radius: 100px; font-weight: 600; font-size: 15px; letter-spacing: .5px; text-decoration: none; transition: border-color .25s ease, transform .25s ease; }
.phgk-btn-ghost a:hover, .phgk-btn-ghost .wp-block-button__link:hover { border-color: #d8b873 !important; transform: translateY(-3px); }


.phgk-section { padding: clamp(80px,12vh,160px) clamp(24px,5vw,80px); max-width: 1280px; margin: 0 auto; }
.phgk-intro { max-width: 920px; text-align: center; }
.phgk-intro .phgk-text { font-size: 18px; line-height: 1.8; }


.phgk-dark { position: relative; background: #14110c; color: #f7f2e8; padding: clamp(90px,14vh,180px) clamp(24px,5vw,80px); overflow: hidden; }
.phgk-dark .phgk-inner { position: relative; max-width: 1180px; margin: 0 auto; }
.phgk-why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,6vw,90px); align-items: center; }
.phgk-dark .phgk-h2 { color: #f7f2e8; font-weight: 400; }
.phgk-dark .phgk-text { color: rgba(247,242,232,.72); }
.phgk-glow { position: absolute; top: -120px; left: -120px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(198,163,90,.18), transparent 70%); animation: phgkPulse 6s ease-in-out infinite; pointer-events: none; }
@keyframes phgkPulse { 0%,100% { opacity: .35; } 50% { opacity: .9; } }
.phgk-adv { display: flex; flex-direction: column; gap: 2px; }
.phgk-adv-item { display: flex; align-items: center; gap: 18px; padding: 20px 4px; border-bottom: 1px solid rgba(247,242,232,.12); transition: padding .35s ease, border-color .35s ease; }
.phgk-adv-item .ic { flex-shrink: 0; width: 30px; height: 30px; border: 1px solid #c6a35a; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #d8b873; font-size: 14px; transition: background .4s ease, color .4s ease, transform .5s cubic-bezier(.16,1,.3,1); }
.phgk-adv-item .tx { font-size: 17px; line-height: 1.4; color: #f7f2e8; font-weight: 400; }
.phgk-adv-item:hover { padding-left: 14px; border-color: rgba(216,184,115,.5); }
.phgk-adv-item:hover .ic { background: #c6a35a; color: #14110c; transform: scale(1.1); }


.phgk-img2col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,6vw,100px); align-items: center; }
.phgk-shot { position: relative; border-radius: 4px; overflow: hidden; aspect-ratio: 5/4; }
.phgk-shot .wp-block-image { margin: 0; height: 100%; }
.phgk-shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.1s cubic-bezier(.16,1,.3,1); will-change: transform; }
.phgk-shot:hover img { transform: scale(1.07); }


.phgk-seek-wrap { padding: 0 clamp(24px,5vw,80px) clamp(40px,6vh,80px); max-width: 1000px; margin: 0 auto; }
.phgk-seek-card { position: relative; background: #14110c; color: #f7f2e8; border-radius: 6px; padding: clamp(40px,6vw,72px); overflow: hidden; }
.phgk-seek-card .phgk-h2 { color: #f7f2e8; font-weight: 400; font-size: clamp(28px,3.6vw,46px); margin-bottom: 36px; }
.phgk-seek-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px; }
.phgk-seek-item { display: flex; align-items: flex-start; gap: 14px; transition: transform .35s cubic-bezier(.16,1,.3,1); }
.phgk-seek-item .dot { flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: #d8b873; margin-top: 9px; transition: transform .4s ease, box-shadow .4s ease; }
.phgk-seek-item .tx { font-size: 16px; line-height: 1.5; color: rgba(247,242,232,.85); font-weight: 300; }
.phgk-seek-item:hover { transform: translateX(6px); }
.phgk-seek-item:hover .dot { transform: scale(1.6); box-shadow: 0 0 0 4px rgba(216,184,115,.18); }


.phgk-ach-head { text-align: center; max-width: 720px; margin: 0 auto clamp(48px,7vh,80px); }
.phgk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(26,22,18,.1); border: 1px solid rgba(26,22,18,.1); border-radius: 4px; overflow: hidden; }
.phgk-card { position: relative; background: #faf7f2; padding: clamp(28px,3vw,40px); cursor: default; transition: background .4s ease, transform .45s cubic-bezier(.16,1,.3,1), box-shadow .45s ease; }
.phgk-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #c6a35a; transform: scaleY(0); transform-origin: top; transition: transform .45s cubic-bezier(.16,1,.3,1); }
.phgk-card:hover { background: #fff; transform: translateY(-8px); box-shadow: 0 24px 50px -20px rgba(26,22,18,.28); z-index: 2; }
.phgk-card:hover::before { transform: scaleY(1); }
.phgk-card .no { font-family: var(--phg-font-heading); font-size: 38px; color: #c6a35a; line-height: 1; margin-bottom: 20px; transition: color .4s ease, transform .5s cubic-bezier(.16,1,.3,1); display: inline-block; }
.phgk-card:hover .no { color: #b08a3e; transform: translateX(4px); }
.phgk-card h3 { font-family: var(--phg-font-heading); font-weight: 600; font-size: 23px; line-height: 1.25; margin: 0 0 14px; color: #1a1612; transition: color .4s ease; }
.phgk-card:hover h3 { color: #b08a3e; }
.phgk-card p { font-size: 15px; line-height: 1.65; color: #5a5249; font-weight: 300; margin: 0; }


.phgk-cand-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px,6vw,90px); align-items: center; }
.phgk-cand-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; }
.phgk-cand-item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(26,22,18,.1); transition: transform .35s cubic-bezier(.16,1,.3,1); }
.phgk-cand-item .dot { flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: #c6a35a; margin-top: 8px; transition: transform .4s ease, box-shadow .4s ease; }
.phgk-cand-item .tx { font-size: 16px; line-height: 1.5; color: #3a342d; font-weight: 300; }
.phgk-cand-item:hover { transform: translateX(6px); }
.phgk-cand-item:hover .dot { transform: scale(1.6); box-shadow: 0 0 0 4px rgba(198,163,90,.15); }


.phgk-cta { position: relative; padding: clamp(80px,12vh,150px) clamp(24px,5vw,80px); background: #1a1612; overflow: hidden; }
.phgk-cta .bg { position: absolute; inset: 0; opacity: .14; }
.phgk-cta .bg img { width: 100%; height: 100%; object-fit: cover; }
.phgk-cta .phgk-inner { position: relative; max-width: 800px; margin: 0 auto; text-align: center; color: #f7f2e8; }
.phgk-cta .phgk-h2 { color: #f7f2e8; font-weight: 400; font-size: clamp(32px,5vw,60px); }
.phgk-cta .lead { font-size: 17px; line-height: 1.7; color: rgba(247,242,232,.72); font-weight: 300; margin: 0 0 40px; }
.phgk-cta .addr { margin-top: 56px; padding-top: 32px; border-top: 1px solid rgba(247,242,232,.12); font-size: 13px; letter-spacing: 1px; color: rgba(247,242,232,.5); }


.phgk-h2 em, .phgk-h1 em { background-image: linear-gradient(#d8b873,#d8b873); background-repeat: no-repeat; background-position: 0 92%; background-size: 0% 2px; transition: background-size .6s cubic-bezier(.16,1,.3,1); padding-bottom: 2px; }
.phgk-section:hover .phgk-h2 em, .phgk-dark:hover .phgk-h2 em, .phgk-cta:hover .phgk-h2 em, .phgk-seek-wrap:hover .phgk-h2 em { background-size: 100% 2px; }


.phgk-why-grid > .wp-block-group__inner-container,
.phgk-img2col > .wp-block-group__inner-container,
.phgk-grid > .wp-block-group__inner-container,
.phgk-cand-grid > .wp-block-group__inner-container { display: contents; }


@keyframes phgkMixUp    { from { opacity: 0; transform: translateY(70px); }            to { opacity: 1; transform: none; } }
@keyframes phgkMixLeft  { from { opacity: 0; transform: translate3d(-60px,40px,0); }    to { opacity: 1; transform: none; } }
@keyframes phgkMixRight { from { opacity: 0; transform: translate3d(60px,40px,0); }     to { opacity: 1; transform: none; } }
@keyframes phgkMixZoom  { from { opacity: 0; transform: translateY(45px) scale(.92); }  to { opacity: 1; transform: none; } }
html.phg-kariera-anim .phgk .phgk-reveal { opacity: 0; }
html.phg-kariera-anim .phgk .phgk-reveal.in { animation: phgkMixUp 1.1s cubic-bezier(.16,1,.3,1) both; }
html.phg-kariera-anim .phgk .phgk-reveal.in.m-left  { animation-name: phgkMixLeft; }
html.phg-kariera-anim .phgk .phgk-reveal.in.m-right { animation-name: phgkMixRight; }
html.phg-kariera-anim .phgk .phgk-reveal.in.m-zoom  { animation-name: phgkMixZoom; }


html.phg-kariera-anim .phgk .phgk-stagger.in > * { opacity: 0; animation: phgkMixUp .9s cubic-bezier(.16,1,.3,1) both; }
html.phg-kariera-anim .phgk .phgk-stagger.in > *:nth-child(1) { animation-delay: .05s; }
html.phg-kariera-anim .phgk .phgk-stagger.in > *:nth-child(2) { animation-delay: .12s; }
html.phg-kariera-anim .phgk .phgk-stagger.in > *:nth-child(3) { animation-delay: .19s; }
html.phg-kariera-anim .phgk .phgk-stagger.in > *:nth-child(4) { animation-delay: .26s; }
html.phg-kariera-anim .phgk .phgk-stagger.in > *:nth-child(5) { animation-delay: .33s; }
html.phg-kariera-anim .phgk .phgk-stagger.in > *:nth-child(6) { animation-delay: .40s; }


.phgk-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 9999; background: linear-gradient(90deg, #b08a3e, #d8b873); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 12px rgba(216,184,115,.5); pointer-events: none; }
.phgk [data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html.phg-kariera-anim .phgk .phgk-reveal, html.phg-kariera-anim .phgk .phgk-stagger.in > * { opacity: 1 !important; animation: none !important; }
  .phgk-hero .wp-block-cover__image-background, .phgk-cue, .phgk-glow, .phgk-hero .phgk-eyebrow .ln { animation: none !important; }
  .phgk [data-parallax] { transform: none !important; }
  .phgk-progress { display: none !important; }
}


body.phg-kariera .phg-burger span { background: #fff !important; box-shadow: 0 1px 3px rgba(0,0,0,.5); }
body.phg-kariera .phg-burger__label { color: #fff !important; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
body.phg-kariera .phg-brand img { filter: drop-shadow(0 1px 5px rgba(0,0,0,.55)); }
body.phg-kariera #header .main-part::before { content: ""; position: absolute; left: 0; right: 0; top: -30px; height: 175px; background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.2) 50%, rgba(0,0,0,0) 100%); pointer-events: none; z-index: -1; }


@media (max-width: 860px) {
  .phgk-why-grid, .phgk-img2col, .phgk-seek-grid, .phgk-cand-grid, .phgk-cand-list, .phgk-grid { grid-template-columns: 1fr; }
  .phgk-img2col .phgk-shot { order: -1; }

  /* stack kart: 1px separator z desktopu ginie na mobile - realny odstep,
     tlo/ramka siatki wylaczone, hairline ramka przechodzi na karty */
  .phgk-grid { gap: 14px; background: transparent; border: none; border-radius: 0; overflow: visible; }
  .phgk-card { border: 1px solid rgba(26,22,18,.1); border-radius: 4px; overflow: hidden; }
}

/* kadr pionowego wideo: box wyzszy 2x o 1/3 od bazowego 5/4 (5/4 -> 15/16 -> 45/64) */
.phgk .phgk-shot:has(.phgk-zagranica-video) { aspect-ratio: 45/64; }
.phgk .phgk-zagranica-video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; display: block; border-radius: inherit; }

/* sekcja 'Idealny kandydat': pionowe wideo obok listy (rozmiar jak 'zagranica').
   .phgk-cand-grid to grid 2-kol (display:contents na inner-container). Ukladamy:
   naglowek + lista w kol.1, wideo w kol.2. */
.phgk .phgk-cand-grid:has(.phgk-kandydat-shot) { grid-template-columns: 1.5fr 0.85fr; align-items: start; }
.phgk .phgk-cand-grid:has(.phgk-kandydat-shot) .phgk-h2 { grid-column: 1; grid-row: 1; }
.phgk .phgk-cand-grid:has(.phgk-kandydat-shot) .phgk-cand-list { grid-column: 1; grid-row: 2; }
.phgk .phgk-cand-grid .phgk-kandydat-shot { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.phgk .phgk-shot.phgk-kandydat-shot { aspect-ratio: 45/64; }
.phgk .phgk-kandydat-video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; display: block; border-radius: inherit; }

@media (max-width: 860px) {
  .phgk .phgk-cand-grid:has(.phgk-kandydat-shot) .phgk-h2,
  .phgk .phgk-cand-grid:has(.phgk-kandydat-shot) .phgk-cand-list,
  .phgk .phgk-cand-grid .phgk-kandydat-shot { grid-column: 1; grid-row: auto; }
  .phgk .phgk-shot.phgk-kandydat-shot { max-width: 320px; margin: 8px auto 0; }
}

/* hero: nowe zdjecie zespolu kadrowane od gornej krawedzi */
.phgk-hero .wp-block-cover__image-background { object-position: 50% 0 !important; }

/* v6.5.0 (audyt mobilny): grid-template-columns nie byl resetowany na mobile — wideo kandydata
   ladowalo w waskiej (0.85fr) kolumnie przy lewej krawedzi. Jedna kolumna + wycentrowany kadr. */
@media (max-width: 860px) {
    .phgk .phgk-cand-grid:has(.phgk-kandydat-shot) { grid-template-columns: 1fr; }
    .phgk .phgk-shot.phgk-kandydat-shot { width: min(300px, 78vw); max-width: none; margin: 12px auto 0; }
}
/* v6.5.0: mobile hero — mocniejszy gradient w dolnej polowie (naglowek lezal na twarzy z tla) */
@media (max-width: 520px) {
    .phgk-hero .wp-block-cover__background { background: linear-gradient(180deg, rgba(20,17,12,.55) 0%, rgba(20,17,12,.25) 30%, rgba(20,17,12,.62) 62%, rgba(20,17,12,.95) 100%) !important; }
}
