/*
 * Honker Expedition Team — Expeditions Archive 5.1
 * Stage 2: full redesign of /wyprawy/
 */

body.page-template-page-wyprawy,
body.page-id-0{background:#10130f}

.het-archive51{
  --archive-bg:#10130f;
  --archive-bg-2:#171b15;
  --archive-paper:#ece8dc;
  --archive-olive:#879657;
  --archive-sand:#c69355;
  --archive-muted:#9c9f95;
  background:var(--archive-bg);
  color:#fff;
  overflow:hidden;
}

/* HERO */
.het-archive51-hero{
  position:relative;
  min-height:760px;
  height:min(88vh,900px);
  display:flex;
  align-items:flex-end;
  background-color:#171b15;
  background-image:var(--het-archive-hero);
  background-size:cover;
  background-position:center 46%;
}
.het-archive51-hero__shade{
  position:absolute;inset:0;
  background:
    linear-gradient(90deg,rgba(8,10,8,.88) 0%,rgba(8,10,8,.55) 39%,rgba(8,10,8,.16) 69%,rgba(8,10,8,.12) 100%),
    linear-gradient(0deg,rgba(8,10,8,.82) 0%,rgba(8,10,8,.08) 55%);
}
.het-archive51-hero__inner{
  position:relative;z-index:2;
  width:min(1180px,calc(100% - 48px));
  margin:0 auto;padding:220px 0 72px;
}
.het-archive51-eyebrow{
  margin:0 0 13px;
  color:var(--archive-sand);
  font-size:12px;font-weight:900;letter-spacing:.18em;text-transform:uppercase;
}
.het-archive51-hero h1{
  max-width:900px;margin:0;
  font-family:var(--het-font-display);
  font-size:clamp(68px,9.2vw,138px);
  line-height:.84;text-transform:uppercase;letter-spacing:-.025em;
}
.het-archive51-hero__lead{
  max-width:650px;margin:26px 0 0;
  color:rgba(255,255,255,.86);
  font-size:clamp(18px,1.6vw,24px);line-height:1.52;
}
.het-archive51-hero__stats{
  display:flex;flex-wrap:wrap;gap:1px;
  max-width:820px;margin-top:40px;
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.16);
}
.het-archive51-hero__stats div{
  min-width:150px;flex:1;padding:16px 20px;
  background:rgba(8,10,8,.52);backdrop-filter:blur(8px)
}
.het-archive51-hero__stats strong{
  display:block;font-family:var(--het-font-display);font-size:33px;line-height:1;color:#fff
}
.het-archive51-hero__stats span{
  display:block;margin-top:5px;color:rgba(255,255,255,.63);
  font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.065em
}
.het-archive51-scroll{
  display:inline-flex;align-items:center;gap:12px;
  margin-top:32px;color:#fff!important;text-decoration:none!important;
  font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.09em
}
.het-archive51-scroll b{font-size:18px;color:var(--archive-olive)}

/* EXPEDITION ATLAS */
.het-expedition-atlas{
  width:min(1440px,calc(100% - 48px));
  margin:0 auto;
  display:grid;grid-template-columns:270px minmax(0,1fr);
  min-height:500px;
  border-bottom:1px solid rgba(255,255,255,.12);
}
.het-expedition-atlas__intro{
  padding:78px 42px 70px 0;
  align-self:center;
}
.het-expedition-atlas__intro h2{
  margin:0 0 18px;font-family:var(--het-font-display);
  font-size:52px;line-height:.94;text-transform:uppercase
}
.het-expedition-atlas__intro p:not(.het-archive51-eyebrow){
  color:rgba(255,255,255,.62);font-size:16px;line-height:1.65
}
.het-expedition-atlas__map{
  position:relative;min-height:500px;
  overflow:hidden;
  border-left:1px solid rgba(255,255,255,.09);
  background:
    radial-gradient(circle at 58% 43%,rgba(135,150,87,.10),transparent 23%),
    linear-gradient(145deg,#171b15,#0e110d);
}
.het-world-silhouette{position:absolute;inset:35px 24px;opacity:.48}
.het-continent{
  position:absolute;display:block;background:#6e654e;
  filter:drop-shadow(0 0 18px rgba(0,0,0,.22))
}
.het-continent--na{left:5%;top:19%;width:28%;height:31%;clip-path:polygon(4% 19%,19% 2%,48% 4%,70% 13%,91% 37%,82% 56%,65% 61%,56% 80%,38% 78%,23% 63%,9% 53%)}
.het-continent--sa{left:24%;top:53%;width:14%;height:39%;clip-path:polygon(9% 0,64% 7%,94% 28%,73% 57%,50% 91%,31% 100%,26% 68%,4% 34%)}
.het-continent--eu{left:47%;top:23%;width:14%;height:18%;clip-path:polygon(0 40%,18% 18%,43% 25%,57% 0,76% 20%,100% 24%,85% 63%,58% 79%,31% 65%,11% 89%)}
.het-continent--af{left:47%;top:40%;width:19%;height:41%;clip-path:polygon(5% 4%,63% 0,96% 23%,81% 54%,55% 94%,30% 100%,23% 63%,0 31%)}
.het-continent--as{left:57%;top:14%;width:37%;height:39%;clip-path:polygon(2% 26%,18% 5%,49% 0,71% 17%,99% 23%,90% 52%,67% 60%,56% 91%,34% 73%,19% 79%,7% 58%)}
.het-continent--au{left:80%;top:68%;width:13%;height:19%;clip-path:polygon(12% 23%,43% 5%,84% 23%,98% 54%,76% 90%,38% 100%,2% 65%)}
.het-map-pin{
  position:absolute;z-index:3;
  display:flex;align-items:center;gap:9px;
  color:#fff!important;text-decoration:none!important;
}
.het-map-pin__dot{
  width:12px;height:12px;border-radius:50%;background:#d7dda2;
  border:3px solid rgba(255,255,255,.38);
  box-shadow:0 0 0 5px rgba(135,150,87,.18),0 0 18px rgba(215,221,162,.45)
}
.het-map-pin__label{display:flex;flex-direction:column;line-height:1}
.het-map-pin__label strong{
  font-family:var(--het-font-display);font-size:18px;text-transform:uppercase
}
.het-map-pin__label small{margin-top:3px;color:rgba(255,255,255,.58);font-size:10px;font-weight:800}
.het-map-pin:hover .het-map-pin__dot{transform:scale(1.18)}
.het-map-pin--ireland{left:45%;top:30%}
.het-map-pin--turkey{left:59%;top:44%}
.het-map-pin--albania{left:54%;top:47%}
.het-map-pin--morocco{left:46%;top:57%}
.het-map-pin--poland{left:52%;top:32%}
.het-map-pin--default{left:63%;top:34%}

/* TIMELINE */
.het-expedition-timeline{
  position:relative;
  width:min(1280px,calc(100% - 48px));
  margin:0 auto;padding:108px 0 120px
}
.het-expedition-timeline__line{
  position:absolute;left:50%;top:62px;bottom:68px;width:1px;
  background:linear-gradient(180deg,transparent,var(--archive-olive) 6%,var(--archive-olive) 94%,transparent)
}
.het-timeline-card{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1.22fr) minmax(320px,.78fr);
  gap:48px;align-items:center;
  min-height:440px;margin:0 0 76px;
}
.het-timeline-card.is-right{grid-template-columns:minmax(320px,.78fr) minmax(0,1.22fr)}
.het-timeline-card.is-right .het-timeline-card__visual{grid-column:2;grid-row:1}
.het-timeline-card.is-right .het-timeline-card__content{grid-column:1;grid-row:1;text-align:right;align-items:flex-end}
.het-timeline-card__year{
  position:absolute;left:50%;top:38px;transform:translateX(-50%);
  z-index:4;display:flex;flex-direction:column;align-items:center
}
.het-timeline-card__year span{
  transform:translateY(-48px);
  font-family:var(--het-font-display);font-size:40px;line-height:1;color:var(--archive-olive)
}
.het-timeline-card__year i{
  width:17px;height:17px;border-radius:50%;background:var(--archive-bg);
  border:4px solid var(--archive-olive);box-shadow:0 0 0 5px var(--archive-bg)
}
.het-timeline-card__visual{
  position:relative;display:block;height:430px;overflow:hidden;background:#272b25;
  border:1px solid rgba(255,255,255,.10)
}
.het-timeline-card__visual img{
  display:block;width:100%;height:100%;object-fit:cover;
  transition:transform .8s var(--het-ease),filter .5s var(--het-ease)
}
.het-timeline-card__visual-shade{
  position:absolute;inset:0;
  background:linear-gradient(0deg,rgba(9,11,9,.28),transparent 52%);
  transition:background .35s
}
.het-timeline-card__visual:hover img{transform:scale(1.035)}
.het-timeline-card__visual:hover .het-timeline-card__visual-shade{background:linear-gradient(0deg,rgba(9,11,9,.42),rgba(9,11,9,.04) 60%)}
.het-timeline-card__event{
  position:absolute;left:18px;top:18px;padding:8px 11px;
  background:rgba(12,14,11,.78);border:1px solid rgba(255,255,255,.18);
  color:#fff;font-size:10px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;
  backdrop-filter:blur(7px)
}
.het-timeline-card__content{
  display:flex;flex-direction:column;align-items:flex-start;
  padding:40px 28px 40px 8px
}
.het-timeline-card__content h2{
  margin:0;font-family:var(--het-font-display);
  font-size:clamp(52px,5vw,80px);line-height:.88;text-transform:uppercase
}
.het-timeline-card__content h2 a{color:#fff;text-decoration:none}
.het-timeline-card__subtitle{
  max-width:460px;margin:16px 0 0;color:var(--archive-olive);
  font-size:15px;font-weight:850;text-transform:uppercase;letter-spacing:.04em;line-height:1.45
}
.het-timeline-card__facts{
  display:flex;flex-wrap:wrap;gap:9px 18px;
  margin:24px 0;color:rgba(255,255,255,.62);
  font-size:12px;font-weight:750
}
.het-timeline-card__facts span{position:relative}
.het-timeline-card__facts span:not(:last-child)::after{
  content:"";position:absolute;right:-10px;top:50%;width:3px;height:3px;border-radius:50%;background:var(--archive-olive)
}
.het-timeline-card__facts b{color:#fff}
.het-timeline-card__mobile-year{display:none}
.het-archive51-button{
  display:inline-flex;align-items:center;gap:12px;
  min-height:46px;padding:0 18px;
  border:1px solid var(--archive-olive);
  color:#fff!important;text-decoration:none!important;
  font-size:11px;font-weight:900;letter-spacing:.065em;text-transform:uppercase;
  transition:background .25s,border-color .25s,color .25s
}
.het-archive51-button span{font-size:17px;color:var(--archive-olive)}
.het-archive51-button:hover{background:var(--archive-olive);border-color:var(--archive-olive);color:#111!important}
.het-archive51-button:hover span{color:#111}

/* NEXT */
.het-next-expedition{
  position:relative;min-height:480px;display:flex;align-items:flex-end;
  background:#282116 var(--het-next-bg) center/cover no-repeat
}
.het-next-expedition--generic{
  background:
    radial-gradient(circle at 76% 55%,rgba(194,138,77,.18),transparent 28%),
    linear-gradient(130deg,#191c17,#0c0f0c)
}
.het-next-expedition__shade{
  position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,10,8,.91),rgba(8,10,8,.28))
}
.het-next-expedition__inner{
  position:relative;z-index:2;width:min(1180px,calc(100% - 48px));
  margin:0 auto;padding:84px 0
}
.het-next-expedition h2{
  max-width:820px;margin:0 0 16px;font-family:var(--het-font-display);
  font-size:clamp(58px,7vw,104px);line-height:.88;text-transform:uppercase
}
.het-next-expedition__inner>p:not(.het-archive51-eyebrow){
  max-width:600px;color:rgba(255,255,255,.68);font-size:17px
}
.het-archive51-button--light{margin-top:18px;border-color:rgba(255,255,255,.48)}

[data-het-reveal]{opacity:1;transform:none}
.het-js [data-het-reveal]{opacity:0;transform:translateY(28px);transition:opacity .65s var(--het-ease),transform .65s var(--het-ease)}
.het-js [data-het-reveal].is-visible{opacity:1;transform:none}

.het-archive51-empty{padding:100px 0;text-align:center;color:rgba(255,255,255,.65)}

@media(max-width:1100px){
  .het-expedition-atlas{grid-template-columns:1fr}
  .het-expedition-atlas__intro{padding:70px 0 26px}
  .het-expedition-atlas__map{border-left:0;border-top:1px solid rgba(255,255,255,.09);min-height:460px}
  .het-expedition-timeline__line{left:42px}
  .het-timeline-card,.het-timeline-card.is-right{
    grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);
    padding-left:76px
  }
  .het-timeline-card.is-right .het-timeline-card__visual{grid-column:1;grid-row:1}
  .het-timeline-card.is-right .het-timeline-card__content{grid-column:2;grid-row:1;text-align:left;align-items:flex-start}
  .het-timeline-card__year{left:42px}
  .het-timeline-card__year span{display:none}
  .het-timeline-card__mobile-year{display:block;margin-bottom:10px;color:var(--archive-olive);font-family:var(--het-font-display);font-size:34px}
}
@media(max-width:760px){
  .het-archive51-hero{height:auto;min-height:680px;background-position:center}
  .het-archive51-hero__inner{width:calc(100% - 30px);padding:180px 0 48px}
  .het-archive51-hero h1{font-size:clamp(60px,19vw,92px)}
  .het-archive51-hero__lead{font-size:17px}
  .het-archive51-hero__stats{display:grid;grid-template-columns:1fr 1fr}
  .het-archive51-hero__stats div{min-width:0}
  .het-expedition-atlas{width:calc(100% - 30px)}
  .het-expedition-atlas__map{min-height:390px}
  .het-world-silhouette{inset:38px 4px}
  .het-map-pin__label strong{font-size:13px}
  .het-map-pin__label small{font-size:9px}
  .het-expedition-timeline{width:calc(100% - 30px);padding:76px 0 86px}
  .het-expedition-timeline__line{display:none}
  .het-timeline-card,.het-timeline-card.is-right{
    display:flex;flex-direction:column;gap:0;padding:0;margin-bottom:60px;min-height:0
  }
  .het-timeline-card.is-right .het-timeline-card__visual,
  .het-timeline-card.is-right .het-timeline-card__content{order:initial}
  .het-timeline-card__year{display:none}
  .het-timeline-card__visual{width:100%;height:330px}
  .het-timeline-card__content,
  .het-timeline-card.is-right .het-timeline-card__content{
    width:100%;padding:24px 2px;text-align:left;align-items:flex-start
  }
  .het-timeline-card__content h2{font-size:clamp(46px,15vw,68px)}
  .het-timeline-card__subtitle{font-size:13px}
  .het-next-expedition__inner{width:calc(100% - 30px);padding:66px 0}
}
@media(max-width:480px){
  .het-expedition-atlas__map{min-height:330px}
  .het-map-pin--ireland{left:38%;top:27%}
  .het-map-pin--turkey{left:54%;top:43%}
  .het-map-pin--albania{left:49%;top:48%}
  .het-map-pin--poland{left:46%;top:31%}
  .het-map-pin--morocco{left:42%;top:58%}
  .het-map-pin__label strong{font-size:11px}
  .het-map-pin__label small{display:none}
  .het-timeline-card__visual{height:280px}
}
@media(prefers-reduced-motion:reduce){
  [data-het-reveal]{opacity:1!important;transform:none!important;transition:none!important}
}


/* HET Theme 5.1.1 — realna geografia + poprawki statystyk */
.het-expedition-atlas__map{
  position:relative;
  min-height:0!important;
  aspect-ratio:2100/1525;
  overflow:hidden;
  background:#151914!important;
}
.het-expedition-atlas__geography{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:fill;
  display:block;
  opacity:.56;
  filter:sepia(.35) saturate(.65) brightness(.62) contrast(1.08);
}
.het-world-silhouette,
.het-continent{display:none!important}

.het-map-pin{
  transform:translate(-6px,-6px);
  transition:transform .22s ease;
}
.het-map-pin:hover{transform:translate(-6px,-6px) scale(1.06)}
.het-map-pin__label{
  padding:5px 7px;
  background:rgba(9,11,9,.76);
  border:1px solid rgba(255,255,255,.12);
  backdrop-filter:blur(5px);
}
.het-map-pin__label strong{font-size:14px}
.het-map-pin__label small{font-size:9px}
.het-map-credit{
  position:absolute;
  left:10px;
  bottom:7px;
  z-index:4;
  color:rgba(255,255,255,.44);
  font-size:8px;
  letter-spacing:.01em;
}

/* Wyłączamy stare ręczne współrzędne z wersji 5.1. */
.het-map-pin--ireland,
.het-map-pin--turkey,
.het-map-pin--albania,
.het-map-pin--morocco,
.het-map-pin--poland,
.het-map-pin--default{
  left:auto;
  top:auto;
}

@media(max-width:760px){
  .het-expedition-atlas__map{aspect-ratio:4/3}
  .het-map-pin__label strong{font-size:10px}
  .het-map-pin__label small{display:none}
  .het-map-credit{font-size:6px}
}


/* =========================================================
   HET 5.2.2 — mapa odwiedzonych krajów
   ========================================================= */
.het-expedition-atlas__map{
  position:relative;
  min-height:0!important;
  aspect-ratio:1200/752!important;
  overflow:hidden;
  background:#11150f!important;
}
.het-expedition-atlas__geography,
.het-world-silhouette,
.het-continent{display:none!important}

.het-expedition-atlas__country-map{
  position:absolute;
  inset:0;
}
.het-expedition-atlas__country-map svg{
  display:block;
  width:100%;
  height:100%;
}
.het-map-water{fill:#11150f}
.het-country{
  fill:#5e5a49;
  stroke:#25291f;
  stroke-width:1.15;
  vector-effect:non-scaling-stroke;
  transition:fill .25s ease,filter .25s ease;
}
.het-country.is-visited{
  fill:#879657;
  filter:drop-shadow(0 0 3px rgba(135,150,87,.18));
}
.het-map-pin{
  z-index:5;
  transform:translate(-6px,-6px);
}
.het-map-pin__dot{
  background:#e1d9a0!important;
  border-color:rgba(255,255,255,.55)!important;
  box-shadow:0 0 0 5px rgba(194,138,77,.17),0 0 18px rgba(225,217,160,.5)!important;
}
.het-map-pin__label{
  padding:5px 7px;
  background:rgba(9,11,9,.80);
  border:1px solid rgba(255,255,255,.12);
  backdrop-filter:blur(5px);
}
.het-country-legend{
  position:absolute;
  z-index:6;
  right:12px;
  bottom:10px;
  display:flex;
  gap:16px;
  padding:8px 10px;
  background:rgba(8,10,8,.78);
  border:1px solid rgba(255,255,255,.10);
  color:rgba(255,255,255,.72);
  font-size:9px;
  font-weight:800;
  letter-spacing:.035em;
  text-transform:uppercase;
}
.het-country-legend span{display:flex;align-items:center;gap:6px}
.het-country-legend i{
  display:inline-block;
  width:12px;
  height:9px;
  background:#5e5a49;
  border:1px solid rgba(255,255,255,.12);
}
.het-country-legend i.is-visited{background:#879657}
.het-map-credit{
  position:absolute;
  z-index:6;
  left:10px;
  bottom:8px;
  color:rgba(255,255,255,.36);
  font-size:7px;
}
@media(max-width:760px){
  .het-expedition-atlas__map{aspect-ratio:4/3!important}
  .het-country-legend{right:7px;bottom:7px;gap:8px;font-size:7px;padding:6px}
  .het-map-credit{display:none}
}
