/* V5: lighter photographic header, compact inner navigation and clearer actions.
   The header's layout height is constant while scrolling, avoiding content jumps. */
:root { --header-height: 120px; --navigation-font: Manrope, Arial, sans-serif; }
.topline { position: relative; z-index: 41; background: #173326; border: 0; }
.topline > span { font-family: var(--sans); font-size: 13px; font-weight: 400; line-height: 1.4; letter-spacing: .055em; }
.header {
  height: var(--header-height);
  padding: 0 4.5%;
  background: transparent;
  border: 0;
  box-shadow: none;
  isolation: isolate;
}
.header::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
  pointer-events: none;
  background: linear-gradient(180deg,rgba(17,42,29,.83) 0%,rgba(17,42,29,.55) 36%,rgba(17,42,29,.16) 75%,rgba(17,42,29,0) 100%);
}
.desktop-nav { margin-top: 9px; gap: clamp(20px,2.4vw,35px); }
.desktop-nav a { font-family: var(--sans); font-size: 14px; font-weight: 400; letter-spacing: .11em; text-transform: uppercase; }
.desktop-nav a.active, .desktop-nav a:hover { font-weight: 400; }
.brand { top: 30px; width: 288px; height: 288px; }
.brand-descriptor {
  position: absolute;
  top: 318px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 90vw;
  margin: 0;
  color: #fffaf1;
  font: 400 11px/1.8 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 1px 10px #07180ecc;
}
.brand-descriptor span { margin-inline: 7px; }
.header-right { top: 95px; right: 4.5%; display: flex; flex-direction: column; gap: 10px; width: 180px; }
.header-right .button { width: 100%; min-height: 46px; justify-content: center; padding: 10px 14px; font-size: 13px; font-weight: 400; letter-spacing: .015em; background: #10271c1a; border-color: #fff8; }
.header-right .button:hover { background: #ffffff20; }
.hero-content { padding-top: 365px; }
.event-board { background: rgba(16,38,27,.47); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); text-shadow: 0 1px 7px #0d2118a6; }
.event-board-heading { align-items: flex-start; flex-direction: column; gap: 0; }
.event-board-heading h2 { font-size: 35px; line-height: 1.05; }
.event-board-heading > a { max-width: none; padding-block: 10px; }
.event-board-item:first-child { margin-top: 2px; }

/* The same single logo moves left in the compact header. */
.header.is-compact {
  display: grid;
  grid-template-columns: 128px minmax(0,1fr) 166px;
  gap: 20px;
  padding: 0 24px;
  align-items: center;
  background-image: linear-gradient(90deg,rgba(12,34,24,.78),rgba(12,34,24,.62)),url('assets/hero-wnetrze-1600.webp');
  background-size: cover;
  background-position: center 46%;
  box-shadow: 0 5px 22px #071b1914;
}
.header.is-compact::before { content: none; }
.header.is-compact .brand {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  width: 128px;
  height: 128px;
  margin-block: -4px;
}
.header.is-compact .desktop-nav { grid-column: 2; grid-row: 1; margin: 0; gap: clamp(12px,1.6vw,25px); }
.header.is-compact .desktop-nav a { font-size: 14px; letter-spacing: .06em; }
.header.is-compact .brand-descriptor { display: none; }
.header.is-compact .header-right { grid-column: 3; grid-row: 1; position: static; width: 166px; gap: 7px; }
.header.is-compact .header-right .button { min-height: 42px; font-size: 13px; }
.mobile-nav a { font-family: var(--sans); font-weight: 400; letter-spacing: .075em; }

@media (min-width: 1101px) and (max-width: 1240px) {
  .header.is-compact { grid-template-columns: 116px minmax(0,1fr) 150px; padding-inline: 18px; gap: 13px; }
  .header.is-compact .brand { width: 116px; height: 116px; margin: 0; }
  .header.is-compact .desktop-nav { gap: 13px; }
  .header.is-compact .desktop-nav a { font-size: 13.5px; letter-spacing: .04em; }
  .header.is-compact .header-right { width: 150px; }
}
@media (max-width: 1100px) {
  .brand { top: 2px; width: 252px; height: 252px; }
  .brand-descriptor { top: 254px; font-size: 10px; }
  .header-right { top: 44px; right: 28px; width: 166px; gap: 8px; }
  .menu-toggle { top: 63px; }
  .hero-content { padding-top: 320px; }
  .header.is-compact { grid-template-columns: 128px 1fr 166px; padding-inline: 25px; }
  .header.is-compact .menu-toggle { top: 40px; left: calc(50% - 22px); }
  .header.is-compact .desktop-nav { display: none; }
}
@media (max-width: 800px) {
  .event-board { margin-top: 300px; }
  .hero-content { padding-top: 28px; }
  .event-board-heading { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
  .event-board-heading h2 { font-size: 29px; }
}
@media (max-width: 600px) {
  :root { --header-height: 96px; }
  .header { padding-inline: 18px; }
  .header::before { height: 260px; }
  .brand { top: 2px; width: 214px; height: 214px; }
  .brand-descriptor { top: 215px; width: 330px; max-width: calc(100vw - 32px); font-size: 10px; line-height: 1.8; letter-spacing: .065em; }
  .brand-descriptor span { margin-inline: 4px; }
  .header-right { display: none; }
  .menu-toggle { top: 61px; }
  .header.is-compact { display: flex; justify-content: flex-start; padding-inline: 14px; }
  .header.is-compact .brand { width: 108px; height: 108px; margin-block: -6px; }
  .header.is-compact .header-right { display: none; }
  .header.is-compact .menu-toggle { top: 27px; left: auto; right: 22px; }
  .header.is-compact:after { display: none; }
  .event-board { margin-top: 270px; padding: 15px 16px; }
  .event-board-heading { flex-direction: column; align-items: flex-start; gap: 0; }
  .event-board-heading h2 { font-size: 30px; }
  .event-board-heading > a { font-size: 11px; min-height: 32px; padding: 7px 0; }
  .event-board-item:first-child { margin-top: 8px; }
  .mobile-nav { top: var(--header-height); padding-top: 12px; }
}
@media (max-width: 360px) {
  .brand { width: 198px; height: 198px; }
  .brand-descriptor { top: 201px; }
  .event-board { margin-top: 254px; }
}
@media (prefers-reduced-motion: reduce) {
  .header .brand { transition: none; }
}
/* Open mobile navigation shares the compact geometry and photographic backing. */
.header.is-compact:has(.menu-toggle[aria-expanded=true]) {
  background-image: linear-gradient(90deg,rgba(12,34,24,.78),rgba(12,34,24,.62)),url('assets/hero-wnetrze-1600.webp');
  background-size: cover;
  background-position: center 46%;
}
.header.is-compact:has(.menu-toggle[aria-expanded=true]) .brand {
  top: auto;
  left: auto;
  transform: none;
  width: 128px;
  height: 128px;
}
@media (max-width: 600px) {
  .header.is-compact:has(.menu-toggle[aria-expanded=true]) .brand { width: 108px; height: 108px; }
}
@media (min-width: 601px) and (max-width: 800px) {
  .header:not(.is-compact) .brand { width: 214px; height: 214px; }
  .header:not(.is-compact) .header-right { width: 150px; right: 16px; }
  .brand-descriptor { top: 226px; }
  .event-board { margin-top: 275px; }
}

.brand-descriptor { text-wrap: balance; }
.header .brand { transition: none; }
