/**
 * Nagłówek — mockup WS Nieruchomości (desktop + mobile drawer).
 */

:root {
	--ws-header-control-h: 40px;
}

.site-header.wsr-header {
	position: relative;
	z-index: 200;
	padding: 18px 0 14px;
	background: #0a0a0a;
	border-bottom: 1px solid rgba(197, 160, 125, 0.12);
	overflow: visible;
}

.wsr-header__shell {
	width: var(--ws-container, min(1240px, calc(100% - 48px)));
	max-width: 1240px;
	margin-inline: auto;
}

.wsr-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp(16px, 3vw, 32px);
	width: 100%;
	min-height: 0;
}

.wsr-header__brand {
	flex: 0 1 auto;
	justify-self: start;
	min-width: 0;
	padding-block: 4px;
}

.wsr-header__brand .wsr-brand,
.wsr-header__brand .site-logo-image-link {
	padding-block: 8px;
}

.wsr-header__actions {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-end;
	gap: 22px;
	flex: 0 0 auto;
}

.wsr-header .site-logo-image-link {
	display: inline-flex;
	align-items: center;
	max-width: min(300px, 34vw);
	line-height: 0;
}

.wsr-header .site-logo-image {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: 76px;
	object-fit: contain;
	object-position: left center;
}

/* ——— Panel menu (desktop: belka pod logo) ——— */
.wsr-header__nav-panel {
	width: 100%;
	min-width: 0;
}

.wsr-header__nav-panel[hidden] {
	display: none;
}

.wsr-header__nav {
	width: 100%;
	min-width: 0;
}

.wsr-header .primary-nav > ul,
.wsr-header__nav ul {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 2px 4px;
	margin: 0;
	padding: 0;
	list-style: none;
	list-style-type: none;
}

.wsr-header .primary-nav > ul > li,
.wsr-header__nav > ul > li {
	display: flex;
	align-items: center;
	list-style: none;
	list-style-type: none;
}

.wsr-header .primary-nav > ul > li::marker,
.wsr-header__nav > ul > li::marker,
.wsr-header #primary-menu > li::marker {
	content: none;
	font-size: 0;
	color: transparent;
}

.site-header.wsr-header .primary-nav .sub-menu::before {
	display: none !important;
	content: none !important;
}

@media (min-width: 1081px) {
	.site-header.wsr-header {
		padding: 18px 0 12px;
	}

	.wsr-header__nav-panel {
		position: static;
		margin-top: 14px;
		padding-top: 12px;
		border-top: 1px solid rgba(197, 160, 125, 0.2);
	}

	.wsr-header__nav-panel[hidden] {
		display: block;
	}

	.wsr-header__nav-row {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: clamp(16px, 2.5vw, 28px);
	}

	.wsr-header__nav {
		flex: 1 1 auto;
		min-width: 0;
	}

	.wsr-header__nav-actions {
		display: inline-flex;
		align-items: center;
		justify-content: flex-end;
		flex: 0 0 auto;
		gap: 14px;
	}

	.wsr-header__actions .wsr-header__social--bar {
		display: none;
	}

	.wsr-header__actions .wsr-header__contact-group--bar,
	.wsr-header__actions .wsr-header__cta--bar,
	.wsr-header__actions a.wsr-header__phone--bar {
		display: none !important;
		visibility: hidden !important;
		width: 0 !important;
		height: 0 !important;
		overflow: hidden !important;
		padding: 0 !important;
		border: 0 !important;
	}

	.wsr-header__contact-strip--bar {
		display: inline-flex;
		align-items: stretch;
		gap: 12px;
	}

	.wsr-header__contact-strip--bar .wsr-header__contact-person {
		display: grid;
		gap: 6px;
		min-width: 268px;
		padding: 10px 16px 10px 14px;
		border: 1px solid rgba(197, 160, 125, 0.32);
		border-left: 3px solid var(--ws-gold, #c5a07d);
		background: rgba(255, 255, 255, 0.05);
	}

	.wsr-header__contact-strip--bar .wsr-header__contact-person-name {
		color: var(--ws-gold, #c5a07d);
		font-size: 0.68rem;
		font-weight: 700;
		letter-spacing: 0.1em;
		line-height: 1;
		text-transform: uppercase;
	}

	.wsr-header__contact-strip--bar .wsr-header__contact-person-links {
		display: grid;
		gap: 4px;
	}

	.wsr-header .primary-nav > ul > li + li::before,
	.wsr-header__nav > ul > li + li::before {
		display: none;
		content: none;
	}

	.wsr-header .primary-nav > ul > li > a,
	.wsr-header__nav > ul > li > a {
		min-height: 38px;
		padding: 8px 11px;
		font-size: 0.625rem;
		letter-spacing: 0.08em;
	}
}

.wsr-header .primary-nav > ul > li > a,
.wsr-header__nav > ul > li > a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 12px 0;
	border: 0;
	border-radius: 0;
	color: #d5d9de;
	font-family: var(--ws-nav);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1.2;
	background: transparent;
	box-shadow: inset 0 -2px 0 transparent;
	transition: color 0.2s ease, box-shadow 0.2s ease;
	-webkit-font-smoothing: antialiased;
}

.wsr-header .primary-nav > ul > li > a:hover,
.wsr-header .primary-nav > ul > li > a:focus-visible,
.wsr-header__nav > ul > li > a:hover,
.wsr-header__nav > ul > li > a:focus-visible {
	color: #ffffff;
	box-shadow: inset 0 -2px 0 var(--ws-gold, #c5a07d);
}

.wsr-header .primary-nav li.ccz-menu-current > a,
.wsr-header .primary-nav li.ccz-menu-current-ancestor > a,
.wsr-header .primary-nav .current-menu-item > a,
.wsr-header .primary-nav .current_page_item > a,
.wsr-header__nav .ccz-menu-current > a,
.wsr-header__nav .current-menu-item > a {
	color: #ffffff !important;
	font-weight: 600;
	background: transparent !important;
	border-color: transparent !important;
	box-shadow: inset 0 -2px 0 var(--ws-gold, #c5a07d) !important;
}

/* ——— Przyciski nagłówka (CTA + hamburger) ——— */
.wsr-header__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: var(--ws-header-control-h);
	min-height: var(--ws-header-control-h);
	padding: 0 18px;
	border: 1px solid var(--ws-gold, #c5a07d);
	border-radius: 0;
	color: #ffffff;
	background: transparent;
	font-family: var(--ws-sans);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	line-height: 1;
	box-shadow: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.wsr-header__cta:hover,
.wsr-header__cta:focus-visible {
	background: var(--ws-gold, #c5a07d);
	border-color: var(--ws-gold, #c5a07d);
	color: #111111;
}

.wsr-header__contact-group {
	display: inline-flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	gap: 8px;
	width: auto;
	max-width: none;
}

.wsr-header__nav-actions {
	display: none;
}

.wsr-header__contact-strip {
	display: none;
	align-items: stretch;
	justify-content: flex-end;
	gap: 10px;
}

.wsr-header__contact-person {
	min-width: 0;
}

.wsr-header__contact-person-links {
	display: grid;
	gap: 4px;
}

.wsr-header__contact-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #ffffff;
	font-family: var(--ws-sans);
	font-size: 0.94rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	text-decoration: none;
	line-height: 1.35;
	transition: color 0.2s ease;
}

.wsr-header__contact-link span {
	display: block;
	min-width: 0;
	white-space: nowrap;
}

.wsr-header__contact-link--email span {
	max-width: none;
	overflow: visible;
	text-overflow: clip;
	font-size: 0.88rem;
}

.wsr-header__contact-link strong {
	display: none;
}

.wsr-header__contact-link:hover,
.wsr-header__contact-link:focus-visible {
	color: var(--ws-gold, #c5a07d);
}

.wsr-header__contact-icon {
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	color: var(--ws-gold, #c5a07d);
}

.wsr-header__social {
	display: inline-flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.wsr-header__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	flex: 0 0 auto;
	width: 24px;
	min-width: 24px;
	height: 24px;
	min-height: 24px;
	padding: 0;
	border: 0;
	border-radius: 0;
	color: #ffffff;
	background: transparent;
	text-decoration: none;
	transition: color 0.2s ease;
}

.wsr-header__social-link svg,
.wsr-header__social-icon {
	display: block;
	flex: 0 0 24px;
	flex-shrink: 0;
	width: 24px !important;
	height: 24px !important;
	min-width: 24px !important;
	min-height: 24px !important;
	max-width: 24px !important;
	max-height: 24px !important;
}

.wsr-header__social-link:hover,
.wsr-header__social-link:focus-visible {
	background: transparent;
	border-color: transparent;
	color: var(--ws-gold, #c5a07d);
}

.wsr-header__phone {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #ffffff;
	font-family: var(--ws-sans);
	font-size: 0.82rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-decoration: none;
	white-space: nowrap;
}

.wsr-header__phone-icon {
	flex-shrink: 0;
	width: 17px;
	height: 17px;
	color: var(--ws-gold, #c5a07d);
}

.wsr-header .menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: var(--ws-header-control-h);
	min-width: var(--ws-header-control-h);
	height: var(--ws-header-control-h);
	min-height: var(--ws-header-control-h);
	padding: 0;
	border: 1px solid var(--ws-gold, #c5a07d);
	border-radius: 0;
	background: #0a0a0a;
	color: #ffffff;
	cursor: pointer;
	flex-shrink: 0;
	position: relative;
	z-index: 2;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.wsr-header .menu-toggle:hover,
.wsr-header .menu-toggle:focus-visible {
	background: var(--ws-gold, #c5a07d);
	border-color: var(--ws-gold, #c5a07d);
	color: #111111;
}

.wsr-header .menu-toggle__svg {
	display: block;
	width: 18px;
	height: 14px;
	max-width: none;
	flex-shrink: 0;
	pointer-events: none;
}

.wsr-header .menu-toggle__bar {
	transition: transform 0.25s ease, opacity 0.2s ease;
	transform-origin: 9px 7px;
}

.wsr-header.is-nav-open .menu-toggle {
	background: #0a0a0a;
	color: #ffffff;
	border-color: var(--ws-gold, #c5a07d);
}

.wsr-header.is-nav-open .menu-toggle:hover,
.wsr-header.is-nav-open .menu-toggle:focus-visible {
	background: var(--ws-gold, #c5a07d);
	color: #111111;
}

.wsr-header.is-nav-open .menu-toggle__bar--1 {
	transform: translateY(6px) rotate(45deg);
}

.wsr-header.is-nav-open .menu-toggle__bar--2 {
	opacity: 0;
}

.wsr-header.is-nav-open .menu-toggle__bar--3 {
	transform: translateY(-6px) rotate(-45deg);
}

.wsr-header__drawer-foot {
	display: none;
}

.wsr-header__nav-backdrop {
	display: none;
}

/* ——— MOBILE ——— */
@media (max-width: 1080px) {
	.site-header.wsr-header {
		padding: 14px 0;
		overflow: hidden;
	}

	.site-header.wsr-header.is-nav-open {
		z-index: 400;
	}

	.site-header.wsr-header.is-nav-open .wsr-header__brand,
	.site-header.wsr-header.is-nav-open .site-branding,
	.site-header.wsr-header.is-nav-open .site-logo-image-link {
		overflow: hidden;
	}

	.site-header.wsr-header .primary-nav > ul.ws-primary-menu,
	.site-header.wsr-header #primary-menu.ws-primary-menu {
		list-style: none !important;
		list-style-type: none !important;
		list-style-image: none !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	.site-header.wsr-header .primary-nav > ul.ws-primary-menu > li,
	.site-header.wsr-header #primary-menu.ws-primary-menu > li {
		list-style: none !important;
		list-style-type: none !important;
		list-style-image: none !important;
	}

	.site-header.wsr-header .primary-nav > ul.ws-primary-menu::marker,
	.site-header.wsr-header #primary-menu.ws-primary-menu::marker,
	.site-header.wsr-header .primary-nav > ul.ws-primary-menu > li::marker,
	.site-header.wsr-header #primary-menu.ws-primary-menu > li::marker {
		content: none !important;
		display: none !important;
		font-size: 0 !important;
		color: transparent !important;
	}

	.wsr-header__inner {
		position: relative;
		z-index: 410;
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: 14px;
	}

	.wsr-header__brand {
		grid-column: 1;
		justify-self: start;
		flex: unset;
		padding-block: 4px;
		min-width: 0;
	}

	.wsr-header__brand .wsr-brand {
		align-items: flex-start;
		gap: 4px;
		transform: scale(0.92);
		transform-origin: left center;
	}

	.wsr-header__brand .wsr-brand__icon {
		width: 28px;
		height: 24px;
	}

	.wsr-header__brand .wsr-brand__name {
		font-size: 0.72rem;
		letter-spacing: 0.04em;
	}

	.wsr-header__brand .wsr-brand__tag {
		font-size: 0.52rem;
		letter-spacing: 0.2em;
	}

	.wsr-header__brand .wsr-brand__line-row {
		gap: 8px;
	}

	.wsr-header .site-logo-image-link {
		max-width: min(220px, 58vw);
	}

	.wsr-header .site-logo-image {
		max-height: 58px;
	}

	.wsr-header__actions {
		grid-column: 2;
		flex: unset;
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: flex-end;
		gap: 20px;
		position: relative;
		z-index: 2;
	}

	.wsr-header__nav-row {
		display: contents;
	}

	.wsr-header__nav-panel {
		margin-top: 0;
		padding-top: 0;
		border-top: 0;
	}

	.wsr-header__actions .wsr-header__contact-strip--bar,
	.wsr-header__actions .wsr-header__contact-group--bar,
	.wsr-header__actions .wsr-header__cta--bar,
	.wsr-header__actions a.wsr-header__phone--bar {
		display: none !important;
		visibility: hidden !important;
		width: 0 !important;
		height: 0 !important;
		overflow: hidden !important;
		padding: 0 !important;
		border: 0 !important;
	}

	.wsr-header__nav-actions {
		display: none !important;
	}

	.wsr-header__actions .wsr-header__social--bar {
		display: inline-flex !important;
		gap: 14px;
	}

	.wsr-header .menu-toggle {
		display: inline-flex;
		flex-shrink: 0;
	}

	body.ws-nav-open {
		overflow: hidden;
		background: #0a0a0a;
	}

	html.ws-nav-open {
		background: #0a0a0a;
	}

	.wsr-header__nav-backdrop:not([hidden]) {
		display: block;
		position: fixed;
		top: var(--ws-header-bottom, 72px);
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 390;
		border: 0;
		padding: 0;
		margin: 0;
		background-color: rgba(0, 0, 0, 0.62);
		cursor: pointer;
		-webkit-appearance: none;
		appearance: none;
	}

	.wsr-header__nav-panel {
		position: fixed;
		top: var(--ws-header-bottom, 72px);
		left: 0;
		right: 0;
		bottom: auto;
		transform: none;
		width: 100%;
		max-width: none;
		height: auto;
		max-height: calc(100dvh - var(--ws-header-bottom, 72px));
		z-index: 1;
		display: flex;
		flex-direction: column;
		overflow-x: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		padding: 0;
		margin: 0;
		background: #0a0a0a;
		border-top: 1px solid rgba(197, 160, 125, 0.28);
		box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
	}

	.wsr-header__nav-panel[hidden] {
		display: none !important;
	}

	.wsr-header__nav-panel:not([hidden]) {
		animation: wsr-nav-in 0.32s ease;
	}

	@keyframes wsr-nav-in {
		from {
			opacity: 0;
			transform: translateY(-8px);
		}
		to {
			opacity: 1;
			transform: translateY(0);
		}
	}

	.wsr-header .primary-nav > ul,
	.wsr-header__nav ul,
	.wsr-header #primary-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		margin: 0;
		margin-block-start: 0;
		-webkit-margin-before: 0;
		padding: 0;
		padding-inline-start: 0;
		-webkit-padding-start: 0;
		list-style: none;
		list-style-type: none;
	}

	.wsr-header .primary-nav > ul > li,
	.wsr-header__nav > ul > li,
	.wsr-header #primary-menu > li {
		list-style: none;
		list-style-type: none;
		padding-left: 0;
		padding-inline-start: 0;
		-webkit-padding-start: 0;
	}

	.wsr-header .primary-nav > ul > li::marker,
	.wsr-header__nav > ul > li::marker,
	.wsr-header #primary-menu > li::marker {
		content: none;
		font-size: 0;
		color: transparent;
	}

	.wsr-header__nav {
		flex: 0 0 auto;
		overflow: visible;
		padding: 0;
	}

	.wsr-header .primary-nav,
	.wsr-header__nav {
		background: transparent;
	}

	.wsr-header .primary-nav > ul > li,
	.wsr-header__nav > ul > li {
		display: block;
		border-bottom: 1px solid rgba(255, 255, 255, 0.07);
		overflow: hidden;
	}

	.wsr-header .primary-nav > ul > li::before,
	.wsr-header__nav > ul > li::before,
	.wsr-header .primary-nav > ul > li + li::before,
	.wsr-header__nav > ul > li + li::before {
		display: none !important;
		content: none !important;
		width: 0 !important;
		height: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		position: absolute !important;
		left: -9999px !important;
		visibility: hidden !important;
	}

	.wsr-header .primary-nav > ul > li > a,
	.wsr-header__nav > ul > li > a {
		display: flex;
		align-items: center;
		justify-content: flex-start;
		width: 100%;
		min-height: 48px;
		padding: 14px 28px 14px 47px;
		font-size: 0.78rem;
		letter-spacing: 0.1em;
		color: #d5d9de;
		background-color: transparent;
		background-image: radial-gradient(circle, var(--ws-gold, #c5a07d) 2.5px, transparent 2.6px);
		background-position: 28px center;
		background-repeat: no-repeat;
		background-size: 5px 5px;
		box-shadow: none;
		text-decoration: none;
		transition: color 0.2s ease;
	}

	.wsr-header .primary-nav > ul > li > a::before,
	.wsr-header__nav > ul > li > a::before {
		display: none !important;
		content: none !important;
	}

	.wsr-header .primary-nav > ul > li > a:hover,
	.wsr-header .primary-nav > ul > li > a:focus-visible,
	.wsr-header__nav > ul > li > a:hover,
	.wsr-header__nav > ul > li > a:focus-visible {
		color: #ffffff;
		background-color: transparent;
		box-shadow: inset 0 -2px 0 var(--ws-gold, #c5a07d);
	}

	.wsr-header .primary-nav li.ccz-menu-current > a,
	.wsr-header .primary-nav li.ccz-menu-current-ancestor > a,
	.wsr-header .primary-nav .current-menu-item > a,
	.wsr-header .primary-nav .current_page_item > a,
	.wsr-header__nav .ccz-menu-current > a,
	.wsr-header__nav .current-menu-item > a {
		color: #ffffff;
		font-weight: 600;
		background-color: transparent;
		box-shadow: inset 0 -2px 0 var(--ws-gold, #c5a07d);
	}

	.wsr-header__nav-panel:not([hidden]) .wsr-header__drawer-foot {
		flex: 0 0 auto;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		margin: 0;
		padding: 24px 20px calc(28px + env(safe-area-inset-bottom, 0px));
		border-top: 1px solid rgba(197, 160, 125, 0.32);
		background: #0a0a0a;
	}

	.wsr-header__contact-group--drawer {
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: center;
		gap: 8px;
		width: 100%;
	}

	.wsr-header__cta--drawer {
		box-sizing: border-box;
		flex: 1 1 auto;
		width: 100%;
		min-width: 0;
		margin: 0;
		padding-inline: 20px;
		text-align: center;
	}

	.wsr-header__contact-strip--drawer {
		display: grid;
		gap: 14px;
	}

	.wsr-header__contact-strip--drawer .wsr-header__contact-link {
		justify-content: center;
		padding: 6px 0;
		font-size: 1.06rem;
		white-space: normal;
		text-align: center;
		font-weight: 600;
		letter-spacing: 0.01em;
		line-height: 1.55;
	}

	.wsr-header__contact-strip--drawer .wsr-header__contact-icon {
		width: 20px;
		height: 20px;
	}

	body.ws-nav-open {
		overflow: hidden;
		background: #0a0a0a;
	}

	html.ws-nav-open {
		background: #0a0a0a;
	}
}
