/* =========================================================
   NMW redesign — desktop scroll header (Figma frame 58)
   Brand bar (brown, mix-blend-exclusion over content) + black nav bar.
   Widths/positions taken 1:1 from the 1728px design.
   ========================================================= */

.rds-hdr {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	font-family: var(--font-sans);
	--rds-orange: #F97827;
	--rds-brown: #77593a;
}

/* ---- brand bar (60px) ---- */
.rds-hdr__brand {
	position: relative;
	height: 60px;
}
.rds-hdr__brand-bg {
	position: absolute;
	inset: 0;
	background: var(--rds-brown);
	mix-blend-mode: exclusion;   /* content behind bleeds through, as in Figma */
}

/* All brand items absolutely placed to match the 1728px design exactly.
   % anchors keep them proportional on wider/narrower desktops. */
.rds-hdr__brand > :not(.rds-hdr__brand-bg) {
	position: absolute;
	color: var(--rds-orange);
	white-space: nowrap;
	line-height: 0.9;
	text-decoration: none;
}

/* Logo — top-left corner (Figma: left 0.29%, top 0.45%). */
.rds-hdr__logo {
	left: 6px;
	top: 5px;
	font-weight: 700;
	font-size: 32px;
	letter-spacing: -0.64px;
}

/* Date — sits low in the bar (Figma bottom ~55px), right edge at 33.3%. */
.rds-hdr__date {
	right: 66.67%;
	bottom: 6px;
	text-align: right;
	font-weight: 200;
	font-size: 16px;
	letter-spacing: -0.8px;
}

/* Centre mark — original NMW loop logo (our PNG used as a mask, filled with
   the brand orange to match Figma). Later swapped for a Lottie loop. */
.rds-hdr__mark {
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 100px;
	height: 50px;
	background: var(--rds-orange);
	-webkit-mask: var(--rds-mark) center / contain no-repeat;
	mask: var(--rds-mark) center / contain no-repeat;
}

/* Language switch — small, low, right edge at 83.3% (Figma). */
.rds-hdr__lang {
	right: 16.67%;
	bottom: 6px;
	font-size: 16px;
	letter-spacing: -0.96px;
}
.rds-hdr__lang a { color: var(--rds-orange); text-decoration: none; }
.rds-hdr__lang-pl { font-weight: 200; }
.rds-hdr__lang-en, .rds-hdr__lang-sep { font-weight: 700; }

/* Dots grid — top-right (Figma: top 7px). */
.rds-hdr__dots {
	right: 16px;
	top: 7px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	line-height: 0;
}
.rds-hdr__dots img { display: block; width: 34px; height: 34px; }

/* ---- nav bar (black, 35px) ---- */
.rds-hdr__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 35px;
	padding: 0 24px;
	background: #000;
}
.rds-hdr__nav-link {
	color: #fff;
	font-weight: 300;
	font-size: 26px;
	line-height: 23px;
	text-decoration: none;
	letter-spacing: -0.2px;
}
.rds-hdr__nav-link.is-active,
.rds-hdr__nav-link:hover { color: var(--rds-orange); }

/* ============ mobile header (≤1024) ============ */
.rds-mhdr {
	display: none;
	--rds-orange: #f97827;   /* own the tokens (sibling of .rds-hdr, no inherit) */
	--rds-brown: #77593a;
	font-family: var(--font-sans);
}

.rds-mhdr__mark {
	width: 46px;
	height: 30px;
	background: var(--rds-orange);
	-webkit-mask: var(--rds-mark) center / contain no-repeat;
	mask: var(--rds-mark) center / contain no-repeat;
	flex: 0 0 auto;
}
.rds-mhdr__word {
	flex: 1 1 auto;
	color: var(--rds-orange);
	font-weight: 700;
	font-size: 18px;
	letter-spacing: -0.3px;
	white-space: nowrap;
}
.rds-mhdr__checkbox { position: absolute; opacity: 0; pointer-events: none; }
.rds-mhdr__burger {
	flex: 0 0 auto;
	width: 34px;
	height: 26px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 4px 2px;
	cursor: pointer;
}
.rds-mhdr__burger span {
	display: block;
	height: 3px;
	background: var(--rds-orange);
	transition: transform .2s ease, opacity .2s ease;
}
/* burger → X when open */
.rds-mhdr__checkbox:checked ~ .rds-mhdr__burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.rds-mhdr__checkbox:checked ~ .rds-mhdr__burger span:nth-child(2) { opacity: 0; }
.rds-mhdr__checkbox:checked ~ .rds-mhdr__burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* full-screen menu */
.rds-mnav {
	position: fixed;
	inset: 56px 0 0 0;
	background: #000;
	transform: translateY(-120%);
	transition: transform .28s ease;
	z-index: 999;
	overflow-y: auto;
}
.rds-mhdr__checkbox:checked ~ .rds-mnav { transform: translateY(0); }
.rds-mnav__inner { display: flex; flex-direction: column; padding: 24px; }
.rds-mnav__link {
	color: var(--rds-orange);
	font-weight: 700;
	font-size: 36px;
	line-height: 1.25;
	text-transform: uppercase;
	text-decoration: none;
	padding: 10px 0;
	border-bottom: 1px solid #222;
}
.rds-mnav__link:hover { color: #fff; }
.rds-mnav__lang { margin-top: 24px; font-size: 20px; color: var(--rds-orange); }
.rds-mnav__lang a { color: var(--rds-orange); text-decoration: none; }

@media (max-width: 1024px) {
	.rds-hdr { display: none; }
	.rds-mhdr {
		display: flex;
		align-items: center;
		gap: 12px;
		position: fixed;
		top: 0; left: 0; right: 0;
		height: 56px;
		padding: 0 16px;
		background: #000;
		z-index: 1000;
	}
}
