/*
Theme Name: Honker Expedition Theme
Theme URI: https://honkerexpeditionteam.pl/
Author: Honker Expedition Team
Description: Dedykowany motyw WordPress dla Honker Expedition Team. Pełnoszerokie Hero, reportaże wyprawowe, zgodność z Honker Expedition Team Core.
Version: 5.3.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.1
Text Domain: honker-expedition
*/

:root{
  --het-bg:#111310;
  --het-bg-soft:#1a1d18;
  --het-paper:#f4f2ea;
  --het-olive:#8e8a61;
  --het-olive-light:#b8b383;
  --het-text:#191b18;
  --het-muted:#66685f;
  --het-white:#ffffff;
  --het-max:1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--het-paper);
  color:var(--het-text);
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.6;
}
img{max-width:100%;height:auto}
a{color:inherit}
.screen-reader-text{
  position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;border:0
}

/* Header — v2.0: identyczny kierunek jak menu strony Start */
.het-site-header{
  position:relative;
  z-index:1000;
  background:var(--het-bg);
  color:#fff;
}
body.single-het_expedition .het-site-header{
  position:absolute;
  top:0;left:0;right:0;
  background:linear-gradient(180deg,rgba(7,9,7,.58),rgba(7,9,7,0));
}
.het-header-inner{
  width:min(var(--het-max),calc(100% - 48px));
  height:176px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
}
.het-branding{
  display:flex;
  align-items:center;
  flex:0 0 auto;
}
.het-branding__white-logo{
  display:block;
  width:144px;
  height:144px;
  object-fit:contain;
}
.het-primary-nav ul{
  list-style:none;
  display:flex;
  align-items:center;
  gap:30px;
  padding:0;
  margin:0;
}
.het-primary-nav a{
  color:rgba(255,255,255,.96);
  text-decoration:none;
  font-size:14px;
  font-weight:700;
  letter-spacing:.035em;
  text-shadow:0 1px 10px rgba(0,0,0,.35);
}
.het-primary-nav a:hover,
.het-primary-nav a:focus{
  color:#c2bd8b;
}
.het-menu-toggle{
  display:none;
  width:44px;
  height:44px;
  padding:10px;
  border:0;
  background:rgba(0,0,0,.28);
  border-radius:4px;
  cursor:pointer;
}
.het-menu-toggle span:not(.screen-reader-text){
  display:block;
  height:2px;
  margin:5px 0;
  background:#fff;
}

/* Generic page */
.het-page-shell{
  width:min(var(--het-max),calc(100% - 48px));
  margin:0 auto;
  padding:150px 0 90px;
}
.het-page-shell h1{
  font-family:"Arial Narrow","Roboto Condensed",Impact,sans-serif;
  text-transform:uppercase;
  font-size:clamp(46px,6vw,78px);
  line-height:.95
}
.het-page-content{max-width:820px}
.het-page-content p{font-size:18px;line-height:1.8}

/* Front page: no wrappers, content may go full width */
.het-front-page{width:100%;overflow:hidden}
.het-front-page > *:first-child{margin-top:0}

/* Expedition layout */
.het-reportage{
  width:100%;
  margin:0;
  padding:0;
  background:var(--het-paper);
  color:var(--het-text);
  overflow:hidden
}
.het-reportage-hero{
  position:relative;
  left:50%;
  width:100vw;
  margin-left:-50vw;
  min-height:100svh;
  display:flex;
  align-items:flex-end;
  background-color:#1d201c;
  background-repeat:no-repeat;
  background-size:cover;
  background-position:center top;
  color:#fff;
}

.het-reportage-hero__image{
  position:absolute;
  inset:0;
  z-index:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center top;
  display:block;
}
.het-reportage-hero__overlay{z-index:1}
.het-reportage-hero__overlay{
  position:absolute;inset:0;
  background:
    linear-gradient(0deg,rgba(6,8,6,.90) 0%,rgba(6,8,6,.58) 38%,rgba(6,8,6,.12) 74%),
    linear-gradient(90deg,rgba(6,8,6,.45),transparent 62%);
}
.het-reportage-hero__inner{
  position:relative;z-index:2;
  width:min(var(--het-max),calc(100% - 48px));
  margin:0 auto;
  padding:214px 0 74px
}
.het-reportage-hero__year{
  color:var(--het-olive-light);
  font-size:clamp(30px,4vw,56px);
  line-height:1;font-weight:900;letter-spacing:.08em;margin-bottom:14px
}
.het-reportage-hero h1{
  margin:0;
  max-width:1000px;
  color:#fff;
  font-family:"Arial Narrow","Roboto Condensed",Impact,sans-serif;
  font-size:clamp(58px,8vw,116px);
  line-height:.88;
  text-transform:uppercase;
  font-weight:900
}
.het-reportage-hero p{
  max-width:800px;
  margin:24px 0 0;
  font-size:clamp(20px,2vw,28px);
  line-height:1.4;
  color:rgba(255,255,255,.92)
}
.het-facts{
  position:relative;
  left:50%;
  width:100vw;
  margin-left:-50vw;
  background:var(--het-bg);
  color:#fff
}
.het-facts__inner{
  width:min(var(--het-max),calc(100% - 48px));
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr))
}
.het-fact{padding:26px 20px;border-right:1px solid rgba(255,255,255,.10)}
.het-fact:first-child{padding-left:0}
.het-fact:last-child{border-right:0}
.het-fact span{
  display:block;margin-bottom:7px;color:var(--het-olive-light);
  font-size:11px;font-weight:800;letter-spacing:.13em;text-transform:uppercase
}
.het-fact strong{display:block;color:#fff;font-size:16px;line-height:1.35}

.het-content-narrow{width:min(760px,calc(100% - 40px));margin:0 auto}
.het-lead{padding:82px 0 18px}
.het-lead p{margin:0;font-size:clamp(21px,2vw,27px);line-height:1.55;font-weight:500}
.het-expedition-content{padding:42px 0 90px}
.het-expedition-content p{font-size:18px;line-height:1.8;margin:0 0 1.6em}
.het-expedition-content h2{
  margin:2.1em 0 .7em;
  font-family:"Arial Narrow","Roboto Condensed",Impact,sans-serif;
  font-size:clamp(36px,4vw,54px);line-height:1;text-transform:uppercase;color:var(--het-text)
}
.het-expedition-content blockquote{
  margin:62px -90px;
  padding:12px 0 12px 34px;
  border-left:4px solid var(--het-olive);
  font-size:clamp(28px,3vw,42px);
  line-height:1.25;font-weight:700
}
.het-section-inner{width:min(var(--het-max),calc(100% - 48px));margin:0 auto}
.het-kicker{
  margin:0 0 12px;color:var(--het-olive);
  font-size:12px!important;font-weight:900;letter-spacing:.16em;text-transform:uppercase
}
.het-route,.het-failures{padding:84px 0;background:#ece9df}
.het-route h2,.het-failures h2,.het-videos h2,.het-vehicle-card h2,.het-expedition-gallery h2{
  margin:0 0 24px;
  font-family:"Arial Narrow","Roboto Condensed",Impact,sans-serif;
  font-size:clamp(38px,5vw,64px);line-height:1;text-transform:uppercase
}
.het-route__text{max-width:900px;font-size:20px;line-height:1.65}
.het-vehicle-card{padding:88px 0;background:var(--het-bg);color:#fff}
.het-vehicle-card h2{color:#fff}
.het-vehicle-card p:not(.het-kicker){max-width:820px;color:rgba(255,255,255,.72);font-size:18px;line-height:1.7}
.het-lessons{padding:84px 0;background:#fff}
.het-lessons__grid{display:grid;grid-template-columns:1fr 1fr;gap:60px}
.het-lessons li{margin-bottom:10px;font-size:17px;line-height:1.5}
.het-videos{padding:92px 0 104px;background:var(--het-bg);color:#fff}
.het-videos h2{color:#fff}
.het-videos__grid{display:grid;grid-template-columns:1fr 1fr;gap:28px}
.het-video{background:#191c18;padding:16px}
.het-video__label{
  color:var(--het-olive-light);font-size:12px;font-weight:800;
  letter-spacing:.13em;text-transform:uppercase;margin-bottom:12px
}
.het-video iframe{width:100%;aspect-ratio:16/9;height:auto}
.het-btn{
  display:inline-flex;min-height:50px;align-items:center;padding:0 24px;
  border:1px solid var(--het-text);border-radius:3px;color:var(--het-text)!important;
  text-decoration:none!important;font-size:13px;font-weight:800;letter-spacing:.05em;text-transform:uppercase
}
.het-expedition-gallery{padding:92px 0 104px;background:var(--paper,#f4f2ea)}
.het-gallery-slider{position:relative;margin:0 0 34px}
.het-gallery-slider__track{
  display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;
  scrollbar-width:none;padding:0 1px 8px
}
.het-gallery-slider__track::-webkit-scrollbar{display:none}
.het-gallery-slide{
  flex:0 0 min(78vw,860px);
  height:clamp(330px,47vw,610px);
  scroll-snap-align:center;overflow:hidden;background:#222
}
.het-gallery-slide img{width:100%;height:100%;object-fit:cover;display:block}
.het-slider-btn{
  position:absolute;top:50%;z-index:3;transform:translateY(-50%);
  width:48px;height:48px;border:1px solid rgba(255,255,255,.5);
  border-radius:50%;background:rgba(12,14,11,.65);color:#fff;font-size:32px;cursor:pointer
}
.het-slider-btn--prev{left:16px}.het-slider-btn--next{right:16px}
.het-gallery-masonry{columns:3;column-gap:14px}
.het-gallery-photo{display:block;break-inside:avoid;margin:0 0 14px;overflow:hidden;background:#ddd}
.het-gallery-photo img{width:100%;height:auto;display:block}

/* Footer */
.het-site-footer{background:#0b0d0b;color:rgba(255,255,255,.72);padding:50px 0}
.het-footer-inner{
  width:min(var(--het-max),calc(100% - 48px));margin:0 auto;
  display:flex;justify-content:space-between;gap:30px;align-items:center
}
.het-site-footer a{color:#fff;text-decoration:none}

/* Mobile */
@media(max-width:900px){
  .het-primary-nav{
    display:none;
    position:absolute;
    top:128px;
    left:14px;
    right:14px;
    background:rgba(10,12,10,.95);
    padding:10px;
    border:1px solid rgba(255,255,255,.12);
    border-radius:6px;
    backdrop-filter:blur(12px);
    box-shadow:0 18px 50px rgba(0,0,0,.28)
  }
  .het-primary-nav.is-open{display:block}
  .het-primary-nav ul{flex-direction:column;align-items:stretch;gap:0}
  .het-primary-nav a{display:block;padding:13px 12px;border-bottom:1px solid rgba(255,255,255,.08)}
  .het-primary-nav li:last-child a{border-bottom:0}
  .het-menu-toggle{display:block}
  .het-header-inner{height:138px;width:min(100% - 28px,640px)}
  .het-branding__white-logo{width:116px;height:116px}
  .het-facts__inner{grid-template-columns:repeat(3,minmax(0,1fr))}
  .het-fact:nth-child(3){border-right:0}
  .het-fact:nth-child(n+4){border-top:1px solid rgba(255,255,255,.1)}
}
@media(max-width:700px){
  .het-reportage-hero{min-height:88svh;background-position:center top}
  .het-reportage-hero__inner{width:min(100% - 32px,640px);padding:172px 0 42px}
  .het-reportage-hero h1{font-size:clamp(50px,16vw,72px)}
  .het-reportage-hero p{font-size:18px}
  .het-facts__inner{width:min(100% - 32px,640px);grid-template-columns:1fr 1fr}
  .het-fact{padding:20px 10px;border-right:0;border-top:1px solid rgba(255,255,255,.1)}
  .het-fact:nth-child(odd){padding-left:0;border-right:1px solid rgba(255,255,255,.1)}
  .het-section-inner{width:min(100% - 32px,640px)}
  .het-expedition-content p{font-size:17px}
  .het-expedition-content blockquote{margin:44px 0;padding-left:22px}
  .het-lessons__grid,.het-videos__grid{grid-template-columns:1fr;gap:24px}
  .het-route,.het-failures,.het-vehicle-card,.het-videos,.het-lessons,.het-expedition-gallery{padding:64px 0}
  .het-gallery-masonry{columns:2}
  .het-gallery-slide{flex-basis:88vw;height:420px}
  .het-footer-inner{flex-direction:column;align-items:flex-start}
}
@media(max-width:520px){
  .het-gallery-masonry{columns:1}
  .het-gallery-slide{height:360px}
}


/* =========================================================
   HET THEME 2.1 — reportaż, zdjęcia i samochód
   ========================================================= */

/* W 2.1 zostaje tylko jedna końcowa galeria — bez slidera. */
.het-gallery-slider{display:none!important}

/* Więcej oddechu i magazynowy rytm zdjęć wplecionych w tekst. */
.het-expedition-content .wp-block-image{
  margin-top:52px;
  margin-bottom:52px;
}
.het-expedition-content .wp-block-image.alignwide,
.het-expedition-content .alignwide{
  width:min(1080px,calc(100vw - 40px));
  max-width:none;
  margin-left:50%;
  transform:translateX(-50%);
}
.het-expedition-content .wp-block-image.alignfull,
.het-expedition-content .alignfull{
  width:100vw;
  max-width:none;
  margin-left:50%;
  transform:translateX(-50%);
}
.het-expedition-content figcaption{
  margin-top:9px;
  color:#77796f;
  font-size:13px;
  line-height:1.45;
}

/* Bloki HET */
.het-block-full-image{
  width:min(1240px,calc(100vw - 32px));
  max-width:none;
  margin:66px 50%;
  transform:translateX(-50%);
}
.het-block-full-image img{
  display:block;
  width:100%;
  max-height:820px;
  object-fit:cover;
}
.het-block-two-images{
  width:min(1120px,calc(100vw - 32px));
  margin:62px 50%;
  transform:translateX(-50%);
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.het-block-two-images img{
  width:100%;
  height:520px;
  object-fit:cover;
  display:block;
}

/* Samochód wyprawy — ręczny opis z Core 2.0 */
.het-vehicle-card{
  padding:100px 0;
}
.het-vehicle-card__grid{
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);
  gap:58px;
  align-items:center;
}
.het-vehicle-card__media{
  overflow:hidden;
  background:#242720;
}
.het-vehicle-card__media img{
  display:block;
  width:100%;
  min-height:430px;
  height:100%;
  object-fit:cover;
}
.het-vehicle-card__content{
  max-width:560px;
}
.het-vehicle-card__content p:not(.het-kicker){
  margin:0;
  color:rgba(255,255,255,.78);
  font-size:18px;
  line-height:1.75;
}

/* Końcowa galeria: duże fotografie masonry, a nie techniczny grid. */
.het-expedition-gallery{
  padding:100px 0 110px;
}
.het-gallery-masonry{
  columns:3;
  column-gap:16px;
}
.het-gallery-photo{
  margin:0 0 16px;
  border-radius:2px;
}
.het-gallery-photo img{
  transition:transform .35s ease,filter .35s ease;
}
.het-gallery-photo:hover img{
  transform:scale(1.018);
  filter:brightness(.96);
}

/* Indywidualne kadrowanie Hero z Core 2.0 */
.het-reportage-hero__image{
  object-position:center var(--het-hero-focus-y,0%)!important;
}

@media(max-width:800px){
  .het-block-two-images{grid-template-columns:1fr;gap:10px}
  .het-block-two-images img{height:auto}
  .het-vehicle-card__grid{grid-template-columns:1fr;gap:30px}
  .het-vehicle-card__media img{min-height:0;height:auto}
  .het-gallery-masonry{columns:2}
}
@media(max-width:520px){
  .het-gallery-masonry{columns:1}
}


/* =========================================================
   HET THEME 2.2 — strona /wyprawy/
   ========================================================= */

.het-expeditions-index{
  background:var(--het-bg);
  color:#fff;
  min-height:100vh;
}

.het-expeditions-index__hero{
  position:relative;
  min-height:68svh;
  display:flex;
  align-items:flex-end;
  background:
    linear-gradient(0deg,rgba(7,9,7,.90) 0%,rgba(7,9,7,.50) 44%,rgba(7,9,7,.15) 100%),
    url('<?php echo ""; ?>');
  overflow:hidden;
}

.het-expeditions-index__hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 72% 28%,rgba(142,138,97,.18),transparent 28%),
    linear-gradient(135deg,#1c211b 0%,#111310 52%,#090b09 100%);
}

.het-expeditions-index__hero-inner{
  position:relative;
  z-index:2;
  width:min(var(--het-max),calc(100% - 48px));
  margin:0 auto;
  padding:190px 0 72px;
}

.het-expeditions-index__kicker{
  margin:0 0 12px;
  color:var(--het-olive-light);
  font-size:13px;
  font-weight:900;
  letter-spacing:.18em;
  text-transform:uppercase;
}

.het-expeditions-index__hero h1{
  margin:0;
  max-width:900px;
  color:#fff;
  font-family:"Arial Narrow","Roboto Condensed",Impact,sans-serif;
  font-size:clamp(64px,9vw,126px);
  line-height:.88;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:-.02em;
}

.het-expeditions-index__hero p{
  max-width:760px;
  margin:24px 0 0;
  color:rgba(255,255,255,.78);
  font-size:clamp(18px,1.7vw,24px);
  line-height:1.55;
}

.het-expeditions-index__content{
  width:min(1440px,100%);
  margin:0 auto;
  padding:24px 0 100px;
}

.het-expeditions-list{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}

.het-expedition-index-card{
  position:relative;
  min-height:clamp(420px,48vw,680px);
  overflow:hidden;
  isolation:isolate;
  text-decoration:none!important;
  color:#fff!important;
  background:#222;
}

.het-expedition-index-card__media{
  position:absolute;
  inset:0;
  z-index:-3;
}

.het-expedition-index-card__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform:scale(1.001);
  transition:transform .9s cubic-bezier(.22,.61,.36,1),filter .3s ease;
}

.het-expedition-index-card:hover .het-expedition-index-card__media img{
  transform:scale(1.045);
}

.het-expedition-index-card__overlay{
  position:absolute;
  inset:0;
  z-index:-2;
  background:
    linear-gradient(90deg,rgba(7,9,7,.84) 0%,rgba(7,9,7,.55) 35%,rgba(7,9,7,.15) 70%,rgba(7,9,7,.06) 100%),
    linear-gradient(0deg,rgba(7,9,7,.40),transparent 48%);
}

.het-expedition-index-card:nth-child(even) .het-expedition-index-card__overlay{
  background:
    linear-gradient(270deg,rgba(7,9,7,.84) 0%,rgba(7,9,7,.55) 35%,rgba(7,9,7,.15) 70%,rgba(7,9,7,.06) 100%),
    linear-gradient(0deg,rgba(7,9,7,.40),transparent 48%);
}

.het-expedition-index-card__inner{
  min-height:inherit;
  width:min(var(--het-max),calc(100% - 48px));
  margin:0 auto;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  align-items:flex-start;
  padding:56px 0 60px;
}

.het-expedition-index-card:nth-child(even) .het-expedition-index-card__inner{
  align-items:flex-end;
  text-align:right;
}

.het-expedition-index-card__year{
  margin-bottom:12px;
  color:#c1bc88;
  font-family:"Arial Narrow","Roboto Condensed",Impact,sans-serif;
  font-size:clamp(34px,4vw,58px);
  line-height:1;
  font-weight:900;
  letter-spacing:.06em;
}

.het-expedition-index-card h2{
  max-width:920px;
  margin:0 0 16px;
  color:#fff;
  font-family:"Arial Narrow","Roboto Condensed",Impact,sans-serif;
  font-size:clamp(48px,6vw,88px);
  line-height:.92;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:-.015em;
  text-shadow:0 4px 24px rgba(0,0,0,.30);
}

.het-expedition-index-card__subtitle{
  max-width:620px;
  margin:0 0 18px;
  color:rgba(255,255,255,.88);
  font-size:clamp(17px,1.5vw,21px);
  line-height:1.5;
}

.het-expedition-index-card__meta{
  display:flex;
  flex-wrap:wrap;
  gap:9px 18px;
  margin:0 0 28px;
  color:rgba(255,255,255,.68);
  font-size:13px;
  font-weight:700;
  letter-spacing:.03em;
}

.het-expedition-index-card__cta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding-bottom:6px;
  border-bottom:1px solid rgba(255,255,255,.55);
  color:#fff;
  font-size:13px;
  font-weight:800;
  letter-spacing:.055em;
  text-transform:uppercase;
}

.het-expedition-index-empty{
  width:min(var(--het-max),calc(100% - 48px));
  margin:0 auto;
  padding:80px 0;
  color:rgba(255,255,255,.72);
  font-size:18px;
}

@media(max-width:780px){
  .het-expeditions-index__hero{min-height:56svh}
  .het-expeditions-index__hero-inner{width:min(100% - 32px,640px);padding:158px 0 50px}
  .het-expeditions-index__hero h1{font-size:clamp(56px,17vw,78px)}
  .het-expeditions-index__content{padding-top:10px}
  .het-expedition-index-card{min-height:560px}
  .het-expedition-index-card__overlay,
  .het-expedition-index-card:nth-child(even) .het-expedition-index-card__overlay{
    background:linear-gradient(0deg,rgba(7,9,7,.93) 0%,rgba(7,9,7,.72) 34%,rgba(7,9,7,.18) 68%,rgba(7,9,7,.07) 100%);
  }
  .het-expedition-index-card__inner,
  .het-expedition-index-card:nth-child(even) .het-expedition-index-card__inner{
    width:min(100% - 32px,640px);
    align-items:flex-start;
    text-align:left;
    padding:42px 0;
  }
  .het-expedition-index-card h2{font-size:clamp(44px,14vw,68px)}
}


/* =========================================================
   HET THEME 3.0
   ========================================================= */

/* HERO — mniej agresywne kadrowanie i mniej przyciemniania */
.het-reportage-hero{
  min-height:0!important;
  height:780px;
  max-height:82vh;
  background:none!important;
}
.het-reportage-hero__image{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center var(--het-hero-focus-y,18%)!important;
}
.het-reportage-hero__overlay{
  background:
    linear-gradient(
      0deg,
      rgba(6,8,6,.58) 0%,
      rgba(6,8,6,.34) 28%,
      rgba(6,8,6,.10) 57%,
      rgba(6,8,6,0) 76%
    )!important;
}

/* Tekst i zdjęcia — jedna szeroka kolumna, bez dwóch kolumn */
.het-content-narrow,
.het-lead .het-content-narrow,
.het-expedition-content .het-content-narrow{
  width:min(var(--het-max),calc(100% - 48px))!important;
  max-width:none!important;
}
.het-expedition-content .het-content-narrow{
  column-count:1!important;
  columns:auto!important;
}
.het-expedition-content p,
.het-lead p{
  max-width:none!important;
  width:100%;
}

/* Wszystkie zdjęcia w reportażu trzymają szerokość tekstu */
.het-expedition-content .wp-block-image,
.het-expedition-content .wp-block-image.alignwide,
.het-expedition-content .wp-block-image.alignfull,
.het-expedition-content .alignwide,
.het-expedition-content .alignfull,
.het-block-full-image,
.het-block-two-images,
.het-inline-gallery,
.het-inline-video,
.het-inline-route{
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
  transform:none!important;
}
.het-expedition-content .wp-block-image img,
.het-block-full-image img{
  width:100%;
  height:auto;
  max-height:none;
  object-fit:contain;
  display:block;
}

/* Blok dwóch zdjęć pozostaje blokiem zdjęciowym; tekst nigdy nie jest dwukolumnowy */
.het-block-two-images{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.het-block-two-images img{
  width:100%;
  height:auto;
  min-height:0;
  object-fit:cover;
}

/* Cytaty i multimedia w tej samej osi */
.het-expedition-content blockquote,
.het-block-quote{
  margin-left:0!important;
  margin-right:0!important;
}
.het-videos .het-section-inner,
.het-route .het-section-inner,
.het-failures .het-section-inner,
.het-vehicle-card .het-section-inner,
.het-expedition-gallery .het-section-inner{
  width:min(var(--het-max),calc(100% - 48px));
}

/* Subtelne "Przewiń" w Hero */
.het-hero-scroll{
  position:absolute;
  right:0;
  bottom:0;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 0;
  color:rgba(255,255,255,.86)!important;
  text-decoration:none!important;
  font-size:11px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.het-hero-scroll__arrow{
  font-size:18px;
  line-height:1;
  animation:hetHeroArrow 1.8s ease-in-out infinite;
}
@keyframes hetHeroArrow{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(5px)}
}

@media(max-width:980px){
  .het-reportage-hero{
    height:660px;
    max-height:none;
  }
  .het-content-narrow,
  .het-lead .het-content-narrow,
  .het-expedition-content .het-content-narrow{
    width:min(100% - 36px,860px)!important;
  }
}
@media(max-width:700px){
  .het-reportage-hero{
    height:540px;
    min-height:0!important;
  }
  .het-reportage-hero__inner{
    padding:154px 0 44px!important;
  }
  .het-reportage-hero__image{
    object-position:center var(--het-hero-focus-y,12%)!important;
  }
  .het-content-narrow,
  .het-lead .het-content-narrow,
  .het-expedition-content .het-content-narrow{
    width:min(100% - 30px,640px)!important;
  }
  .het-block-two-images{
    grid-template-columns:1fr;
    gap:10px;
  }
  .het-hero-scroll{display:none}
}


/* =========================================================
   HET THEME 4.0 — MAGAZYNOWY REPORTAŻ
   ========================================================= */

.het-story{background:#fff;color:#141713;overflow:hidden}

/* Cover */
.het-story-cover{
  position:relative;
  width:100%;
  aspect-ratio:21/8;
  min-height:520px;
  max-height:760px;
  background:#151814;
  overflow:hidden;
}
.het-story-cover__image{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;
  object-position:center var(--het-hero-focus-y,18%);
}
.het-story-cover__shade{
  position:absolute;inset:0;
  background:linear-gradient(0deg,rgba(5,7,5,.66) 0%,rgba(5,7,5,.26) 34%,rgba(5,7,5,.05) 64%,rgba(5,7,5,0) 100%);
}
.het-story-cover__copy{
  position:absolute;left:50%;bottom:44px;transform:translateX(-50%);
  width:min(1180px,calc(100% - 48px));
  text-align:center;color:#fff;
}
.het-story-cover__kicker{
  margin-bottom:8px;color:#d0a26d;font-size:12px;font-weight:900;letter-spacing:.18em;text-transform:uppercase
}
.het-story-cover h1{
  margin:0;color:#fff;
  font-family:"Arial Narrow","Roboto Condensed",Impact,sans-serif;
  font-size:clamp(58px,7vw,108px);line-height:.9;
  text-transform:uppercase;letter-spacing:.02em;
  text-shadow:0 3px 25px rgba(0,0,0,.32)
}
.het-story-cover__copy p{
  max-width:820px;margin:15px auto 0;
  color:rgba(255,255,255,.94);font-size:clamp(16px,1.4vw,21px);line-height:1.5
}

/* Magazine intro */
.het-magazine{background:#fff;padding:46px 0 68px;border-bottom:1px solid #e2e0d9}
.het-magazine__grid{
  width:min(1400px,calc(100% - 64px));margin:0 auto;
  display:grid;grid-template-columns:250px minmax(0,1fr) 390px;gap:48px
}
.het-magazine__facts,.het-magazine__sidebar{padding-top:4px}
.het-magazine__fact-list{display:grid;gap:22px}
.het-magazine__fact{position:relative;padding-left:0}
.het-magazine__fact strong{display:block;font-size:14px;line-height:1.25;color:#111}
.het-magazine__fact span{display:block;margin-top:3px;color:#66675f;font-size:12px;line-height:1.45}
.het-magazine__quote{
  margin:48px 0 0!important;padding:28px!important;border:1px solid #d8d5cc!important;background:#faf9f6
}
.het-magazine__quote p{margin:0!important;font-size:17px!important;line-height:1.55!important;font-weight:700!important}
.het-magazine__quote cite{display:block;margin-top:20px;color:#b57945;font-size:12px;font-style:normal;letter-spacing:.12em}

.het-magazine__intro{
  padding:0 48px;border-left:1px solid #e0ded7;border-right:1px solid #e0ded7
}
.het-magazine__intro h2{
  margin:0 0 20px;font-family:"Arial Narrow","Roboto Condensed",Impact,sans-serif;
  font-size:clamp(38px,4vw,62px);line-height:.96;text-transform:uppercase
}
.het-magazine__lead p{margin:0 0 18px;font-size:18px;line-height:1.72}
.het-magazine__support-image{margin:28px 0 0}
.het-magazine__support-image img{display:block;width:100%;aspect-ratio:16/8.5;object-fit:cover;object-position:center var(--het-hero-focus-y,18%)}

.het-magazine__stats{
  display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0 34px
}
.het-magazine__stats div{text-align:center}
.het-magazine__stats strong{
  display:block;font-family:"Arial Narrow","Roboto Condensed",Impact,sans-serif;
  font-size:38px;line-height:1;color:#121512
}
.het-magazine__stats span{display:block;margin-top:7px;color:#5f615a;font-size:10px;font-weight:700;line-height:1.35}
.het-magazine__map h3{
  margin:0 0 14px;font-family:"Arial Narrow","Roboto Condensed",Impact,sans-serif;
  font-size:27px;line-height:1;text-transform:uppercase
}
.het-magazine__map img{display:block;width:100%;height:auto;background:#eee}
.het-magazine__map p{font-size:12px;line-height:1.5;color:#66675f}
.het-magazine__map-link{
  display:block;margin-top:0;padding:12px 14px;background:#171a16;color:#fff!important;
  text-decoration:none!important;font-size:10px;font-weight:800;letter-spacing:.04em;text-transform:uppercase
}

/* Main story: one wide column */
.het-story-content{background:#f5f3ed;padding:76px 0 96px}
.het-story-content__inner{
  width:min(1180px,calc(100% - 48px));margin:0 auto;
  column-count:1!important;columns:auto!important
}
.het-story-content__inner p{font-size:19px;line-height:1.82;margin:0 0 1.55em}
.het-story-content__inner h2{
  margin:1.9em 0 .7em;font-family:"Arial Narrow","Roboto Condensed",Impact,sans-serif;
  font-size:clamp(40px,4.3vw,62px);line-height:.98;text-transform:uppercase
}
.het-story-content__inner h3{
  margin:1.8em 0 .6em;font-size:28px;line-height:1.1
}
.het-story-content__inner blockquote{
  margin:58px 0!important;padding:18px 0 18px 32px!important;border-left:4px solid #a36b3d!important
}
.het-story-content__inner blockquote p{
  font-size:clamp(28px,3vw,42px)!important;line-height:1.3!important;font-weight:700
}

/* Inline media follows content width */
.het-story-content__inner .wp-block-image,
.het-story-content__inner .wp-block-image.alignwide,
.het-story-content__inner .wp-block-image.alignfull,
.het-story-content__inner .alignwide,
.het-story-content__inner .alignfull,
.het-story-content__inner .het-block-full-image,
.het-story-content__inner .het-block-two-images,
.het-story-content__inner .het-inline-gallery,
.het-story-content__inner .het-inline-video,
.het-story-content__inner .het-inline-route{
  width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important;transform:none!important
}
.het-story-content__inner .wp-block-image{margin-top:52px;margin-bottom:52px}
.het-story-content__inner .wp-block-image img{display:block;width:100%;height:auto}

/* Existing lower sections harmonized with magazine layout */
.het-vehicle-card,.het-videos{background:#111410}
.het-vehicle-card{padding:96px 0}
.het-lessons{background:#fff}
.het-failures{background:#ece9df}
.het-expedition-gallery{background:#fff}
.het-section-inner{width:min(1180px,calc(100% - 48px))}

/* Responsive */
@media(max-width:1180px){
  .het-magazine__grid{grid-template-columns:220px minmax(0,1fr);gap:36px}
  .het-magazine__sidebar{grid-column:1/-1;border-top:1px solid #e0ded7;padding-top:32px}
  .het-magazine__stats{max-width:620px}
  .het-magazine__map{display:grid;grid-template-columns:minmax(280px,420px) 1fr;gap:24px;align-items:start}
  .het-magazine__map h3{grid-column:1/-1}
  .het-magazine__map-link{align-self:start}
}
@media(max-width:780px){
  .het-story-cover{aspect-ratio:auto;height:570px;min-height:0}
  .het-story-cover__copy{width:calc(100% - 30px);bottom:30px;text-align:left}
  .het-story-cover h1{font-size:clamp(48px,15vw,74px)}
  .het-story-cover__copy p{margin-left:0}
  .het-magazine{padding:36px 0 52px}
  .het-magazine__grid{width:calc(100% - 30px);grid-template-columns:1fr;gap:32px}
  .het-magazine__intro{padding:32px 0;border-left:0;border-right:0;border-top:1px solid #e0ded7;border-bottom:1px solid #e0ded7}
  .het-magazine__sidebar{grid-column:auto;border-top:0;padding-top:0}
  .het-magazine__stats{grid-template-columns:1fr 1fr}
  .het-magazine__map{display:block}
  .het-story-content{padding:54px 0 72px}
  .het-story-content__inner{width:calc(100% - 30px)}
  .het-story-content__inner p{font-size:17px}
}


/* HET 5.2.3 — generated route map integration */
.het-generated-route-map{
  width:100%;
  margin:14px 0 18px;
  min-height:240px;
  background:#ece8dc;
  overflow:hidden;
}
.het-generated-route-map svg{
  display:block;
  width:100%;
  height:auto;
}
.het-map-loading{
  margin:0!important;
  padding:70px 24px;
  text-align:center;
  color:#6f7169!important;
  font-size:13px!important;
  font-weight:700;
}


/* =========================================================
   HET THEME 5.3 — HISTORIA WYPRAW
   ========================================================= */

.het-expedition-history{
  position:relative;
  z-index:5;
  background:#11130f;
  border-bottom:1px solid rgba(255,255,255,.08);
  color:#fff;
}

.het-expedition-history__inner{
  width:min(var(--het-max),calc(100% - 48px));
  margin:0 auto;
  display:flex;
  align-items:stretch;
  min-height:94px;
}

.het-expedition-history__home{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  padding:0 30px 0 0;
  margin-right:22px;
  border-right:1px solid rgba(255,255,255,.11);
  color:#c1bc88!important;
  text-decoration:none!important;
  font-size:12px;
  font-weight:900;
  letter-spacing:.11em;
  text-transform:uppercase;
  white-space:nowrap;
}

.het-expedition-history__track{
  min-width:0;
  flex:1;
  display:flex;
  align-items:stretch;
  overflow-x:auto;
  scrollbar-width:thin;
  scrollbar-color:rgba(193,188,136,.6) transparent;
}

.het-expedition-history__item{
  position:relative;
  flex:0 0 auto;
  min-width:118px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:3px;
  padding:17px 22px 14px;
  color:rgba(255,255,255,.58)!important;
  text-decoration:none!important;
  transition:background .2s ease,color .2s ease;
}

.het-expedition-history__item:hover{
  background:rgba(255,255,255,.035);
  color:#fff!important;
}

.het-expedition-history__dot{
  position:absolute;
  left:22px;
  top:17px;
  width:6px;
  height:6px;
  border-radius:50%;
  background:rgba(255,255,255,.22);
}

.het-expedition-history__year{
  padding-top:10px;
  font-family:"Arial Narrow","Roboto Condensed",Impact,sans-serif;
  font-size:22px;
  line-height:1;
  font-weight:900;
  letter-spacing:.035em;
}

.het-expedition-history__name{
  max-width:160px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:11px;
  font-weight:700;
  letter-spacing:.025em;
}

.het-expedition-history__item.is-current{
  color:#fff!important;
  background:rgba(193,188,136,.08);
}

.het-expedition-history__item.is-current::after{
  content:"";
  position:absolute;
  left:22px;
  right:22px;
  bottom:0;
  height:3px;
  background:#c1bc88;
}

.het-expedition-history__item.is-current .het-expedition-history__dot{
  background:#c1bc88;
  box-shadow:0 0 0 5px rgba(193,188,136,.12);
}

/* Poprzednia / następna wyprawa */
.het-expedition-nextprev{
  background:#0e100d;
  border-top:1px solid rgba(255,255,255,.08);
}

.het-expedition-nextprev__inner{
  width:min(var(--het-max),calc(100% - 48px));
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr 1fr;
}

.het-expedition-nextprev__card{
  min-height:220px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:42px 54px;
  color:#fff!important;
  text-decoration:none!important;
  transition:background .25s ease;
}

a.het-expedition-nextprev__card:hover{
  background:rgba(193,188,136,.07);
}

.het-expedition-nextprev__card--prev{
  border-right:1px solid rgba(255,255,255,.1);
}

.het-expedition-nextprev__card--next{
  text-align:right;
  align-items:flex-end;
}

.het-expedition-nextprev__direction{
  margin-bottom:15px;
  color:#c1bc88;
  font-size:11px;
  font-weight:900;
  letter-spacing:.11em;
  text-transform:uppercase;
}

.het-expedition-nextprev__card strong{
  display:block;
  font-family:"Arial Narrow","Roboto Condensed",Impact,sans-serif;
  font-size:clamp(30px,3.2vw,52px);
  line-height:.98;
  text-transform:uppercase;
  letter-spacing:-.01em;
}

.het-expedition-nextprev__meta{
  display:block;
  max-width:520px;
  margin-top:13px;
  color:rgba(255,255,255,.52);
  font-size:13px;
  line-height:1.5;
}

.het-expedition-nextprev__card--empty{
  opacity:.18;
}

@media(max-width:860px){
  .het-expedition-history__inner{
    width:100%;
    min-height:84px;
    padding-left:16px;
  }
  .het-expedition-history__home{
    padding-right:18px;
    margin-right:4px;
  }
  .het-expedition-history__item{
    min-width:100px;
    padding-left:16px;
    padding-right:16px;
  }
  .het-expedition-history__dot{left:16px}
  .het-expedition-history__item.is-current::after{left:16px;right:16px}

  .het-expedition-nextprev__inner{
    width:100%;
    grid-template-columns:1fr;
  }
  .het-expedition-nextprev__card{
    min-height:170px;
    padding:34px 24px;
  }
  .het-expedition-nextprev__card--prev{
    border-right:0;
    border-bottom:1px solid rgba(255,255,255,.1);
  }
  .het-expedition-nextprev__card--next{
    text-align:left;
    align-items:flex-start;
  }
  .het-expedition-nextprev__card--empty{display:none}
}
