/* Header and navigation — Stage 4 */
.site-header {
	position: relative;
	z-index: 100;
	background: var(--fa-color-background, #fff);
	border-bottom: 1px solid var(--fa-color-border, #eaeaea);
}
.site-header__inner {
	width: min(100%, 1560px);
	min-height: 70px;
	padding: 9px var(--fa-page-gutter, clamp(1rem, 3vw, 2.625rem));
	margin-inline: auto;
	display: flex;
	align-items: center;
	gap: clamp(12px, 1.6vw, 26px);
}
.site-branding { flex: 0 0 auto; min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--fa-color-text, #151515); }
.brand:hover { color: var(--fa-color-text, #151515); }
.brand__mark {
	position: relative;
	display: grid;
	place-items: center;
	width: 40px;
	height: 43px;
	flex: 0 0 40px;
	background: var(--fa-color-brand, #ffb800);
	color: var(--fa-color-brand-ink, #151515);
	clip-path: polygon(50% 0, 100% 28%, 100% 100%, 0 100%, 0 28%);
	font-weight: 950;
	font-size: 27px;
	line-height: 1;
}
.brand__mark::after {
	content: "";
	position: absolute;
	inset: 6px 6px 5px;
	border: 2px solid currentColor;
	clip-path: polygon(50% 0, 100% 28%, 100% 100%, 0 100%, 0 28%);
	opacity: .9;
}
.brand__mark span { position: relative; z-index: 1; }
.brand__copy { display: flex; flex-direction: column; line-height: 1.05; white-space: nowrap; }
.brand__copy strong { font-size: clamp(17px, 1.5vw, 22px); font-weight: 950; letter-spacing: -.8px; }
.brand__copy small { margin-top: 4px; font-size: 7px; font-weight: 850; letter-spacing: 1.8px; }
.custom-logo-wrap { display: flex; align-items: center; }
.custom-logo { display: block; width: auto; max-width: 210px; max-height: 51px; object-fit: contain; }

.primary-nav { display: flex; align-items: center; gap: clamp(10px, 1.25vw, 20px); margin-left: auto; min-width: 0; }
.primary-nav__list { display: flex; align-items: center; gap: clamp(10px, 1.35vw, 22px); padding: 0; margin: 0; list-style: none; }
.primary-nav__list > li { position: relative; margin: 0; padding: 0; }
.primary-nav__list a, .more-toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-height: 42px;
	padding: 4px 0;
	border: 0;
	background: transparent;
	color: var(--fa-color-text, #151515);
	font-size: 12px;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}
.primary-nav__list a::after, .more-toggle::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 3px;
	left: 0;
	height: 2px;
	background: var(--fa-color-brand, #ffb800);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--fa-motion-fast, 140ms ease);
}
.primary-nav__list a:hover::after, .primary-nav__list .current-menu-item > a::after,
.primary-nav__list .current_page_item > a::after, .primary-nav__list .is-current > a::after,
.more-toggle[aria-expanded="true"]::after { transform: scaleX(1); }
.primary-nav__list a:hover, .more-toggle:hover { color: var(--fa-color-text, #151515); }
.primary-nav__more { position: relative; flex: 0 0 auto; }
.more-toggle__chevron { font-size: 15px; line-height: 1; transition: transform var(--fa-motion-fast, 140ms ease); }
.more-toggle[aria-expanded="true"] .more-toggle__chevron { transform: rotate(180deg); }
.more-menu {
	position: absolute;
	top: calc(100% + 4px);
	right: -12px;
	z-index: 120;
	min-width: 205px;
	margin: 0;
	padding: 7px;
	list-style: none;
	background: var(--fa-color-background, #fff);
	border: 1px solid var(--fa-color-border, #eaeaea);
	border-radius: var(--fa-radius-md, 12px);
	box-shadow: var(--fa-shadow-lg, 0 16px 42px rgb(0 0 0 / 10%));
}
.more-menu[hidden] { display: none !important; }
.more-menu li { margin: 0; }
.more-menu a {
	display: block;
	padding: 10px 12px;
	border-radius: var(--fa-radius-sm, 10px);
	color: var(--fa-color-text, #151515);
	font-size: 13px;
	font-weight: 650;
	text-decoration: none;
}
.more-menu a:hover, .more-menu a:focus-visible { background: var(--fa-color-brand-soft, #fff7df); color: var(--fa-color-text, #151515); }

.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex: 0 0 auto; }
.header-actions .button { min-height: 38px; padding: 8px 12px; font-size: 11px; border-radius: 7px; }
.header-login { white-space: nowrap; }
.header-register { white-space: nowrap; box-shadow: 0 2px 0 rgb(0 0 0 / 5%); }
.header-search { display: flex; align-items: center; width: clamp(140px, 17vw, 225px); min-width: 0; height: 38px; overflow: hidden; border: 1px solid var(--fa-color-border, #eaeaea); border-radius: 8px; background: var(--fa-color-surface, #f7f7f7); }
.header-search input {
	width: 100%;
	min-width: 0;
	height: 100%;
	padding: 0 10px;
	border: 0;
	border-radius: 0;
	outline: 0;
	background: transparent;
	box-shadow: none;
	font-size: 10px;
}
.header-search input:focus { box-shadow: none; }
.header-search button, .search-toggle {
	display: grid;
	place-items: center;
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	background: var(--fa-color-footer, #111);
	color: #fff;
	cursor: pointer;
}
.header-search button:hover { background: #333; }
.header-search svg, .search-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.search-toggle { display: none; border-radius: 8px; }
.nav-toggle { display: none; }

/* A WordPress custom menu may have nested items; keep dropdowns usable. */
.primary-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 121;
	min-width: 190px;
	padding: 7px;
	margin: 0;
	list-style: none;
	background: var(--fa-color-background, #fff);
	border: 1px solid var(--fa-color-border, #eaeaea);
	border-radius: var(--fa-radius-md, 12px);
	box-shadow: var(--fa-shadow-lg, 0 16px 42px rgb(0 0 0 / 10%));
}
.primary-nav__list .sub-menu a { display: block; padding: 9px 11px; min-height: 0; border-radius: 7px; }
.primary-nav__list .sub-menu a::after { display: none; }
.primary-nav__list .sub-menu a:hover { background: var(--fa-color-brand-soft, #fff7df); }

/* Etapa 21 — finální hlavička podle schváleného návrhu */
.site-header { background: var(--fa-color-background); border-bottom: 1px solid var(--fa-color-border); }
.site-header__inner { width: min(100%, 1600px); min-height: 68px; gap: clamp(10px, 1.25vw, 22px); }
.site-branding { flex-shrink: 0; }
.brand { text-decoration: none; }
.brand__mark { border-radius: 2px 2px 5px 5px; }
.primary-nav { margin-left: auto; }
.primary-nav__list a { font-size: 12px; }
.primary-nav__list .current-menu-item > a,
.primary-nav__list .current_page_item > a,
.primary-nav__list .is-current > a,
.primary-nav__list .current-menu-ancestor > a { color: var(--fa-color-text); }
.primary-nav__list .current-menu-item > a::after,
.primary-nav__list .current_page_item > a::after,
.primary-nav__list .is-current > a::after,
.primary-nav__list .current-menu-ancestor > a::after { transform: scaleX(1); }
.header-actions { gap: 9px; }
.header-search { width: clamp(150px, 16vw, 220px); background: #fff; border-radius: 8px; }
.header-search input { font-size: 11px; }
.header-search button { background: var(--fa-color-footer); }
.header-search button:hover { background: #292929; }
.header-actions .button--primary { background: var(--fa-color-brand); color: var(--fa-color-brand-ink); border-color: var(--fa-color-brand); font-weight: 800; }
.header-actions .button--primary:hover { background: var(--fa-color-brand-hover); border-color: var(--fa-color-brand-hover); }
.header-user-menu { position: relative; }
.header-user-toggle { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.header-user-avatar { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--fa-color-brand-soft-strong); color: var(--fa-color-brand-ink); font-size: 12px; font-weight: 850; }
.header-user-avatar img { display: block; width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.header-user-dropdown { position: absolute; top: calc(100% + 8px); right: 0; z-index: 140; min-width: 205px; margin: 0; padding: 7px; list-style: none; border: 1px solid var(--fa-color-border); border-radius: var(--fa-radius-md); background: var(--fa-color-background); box-shadow: var(--fa-shadow-lg); }
.header-user-dropdown[hidden] { display: none !important; }
.header-user-dropdown li { margin: 0; }
.header-user-dropdown a { display: block; padding: 10px 12px; border-radius: var(--fa-radius-sm); color: var(--fa-color-text); font-size: 13px; text-decoration: none; }
.header-user-dropdown a:hover, .header-user-dropdown a:focus-visible { background: var(--fa-color-brand-soft); }
@media (max-width: 1280px) {
 .site-header__inner { gap: 10px; }
 .primary-nav__list { gap: 10px; }
 .header-search { width: 145px; }
}
@media (max-width: 900px) {
 .site-header__inner { min-height: 64px; }
 .primary-nav { top: 100%; }
 .header-actions { margin-left: 0; }
 .header-search { width: min(430px, calc(100vw - 2 * var(--fa-page-gutter, 1rem))); }
 .header-user-avatar img { display: block; width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.header-user-dropdown { position: static; width: 100%; margin: 0 0 8px; box-shadow: none; }
}
@media (max-width: 560px) {
 .header-actions .header-user-label { display: none; }
 .header-actions .header-user-toggle { padding: 5px 7px; }
}
