/* Layout: header, nav, footer. Components live in components.css. */

.czr-header {
	background: var(--bg);
}

/* Echo of the Czech flag: blue, a white gap, red. Decorative only. */
.czr-header::after {
	display: block;
	height: 12px;
	background: linear-gradient(var(--cz-blue) 0 4px, transparent 4px 8px, var(--cz-red) 8px 12px);
	content: "";
}

.czr-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 72px;
}

.czr-logo {
	flex: 0 0 auto;
	font-weight: 700;
}

.czr-logo a {
	display: block;
	color: var(--text);
	text-decoration: none;
}

.czr-logo img {
	display: block;
	max-height: 48px;
	width: auto;
}

.czr-nav-toggle {
	display: none;
	padding: 8px 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--bg);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.czr-nav {
	display: flex;
	align-items: center;
	gap: 24px;
}

.czr-nav__list {
	display: flex;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.czr-nav__list a {
	color: var(--text);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-decoration: none;
	text-transform: uppercase;
}

.czr-nav__list .current-menu-item > a,
.czr-nav__list a:hover {
	color: var(--cz-blue);
	text-decoration: underline;
	text-decoration-color: var(--amber);
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

/* Dropdown (desktop). Opens on hover and on keyboard focus; no JS needed. */
.czr-nav__list a {
	white-space: nowrap;
}

@media (min-width: 1024px) {
	.czr-header__inner {
		position: relative;
		flex-wrap: wrap;
		row-gap: 0;
		min-height: 0;
	}

	/* First row is exactly 72px tall; the search is centred in it. */
	.czr-logo {
		display: flex;
		align-items: center;
		min-height: 72px;
	}

	.czr-nav {
		flex: 1 0 100%;
		padding: 0;
		border-top: 1px solid var(--line);
	}

	.czr-nav .czr-search {
		position: absolute;
		top: 14px;
		right: var(--gutter);
		width: 220px;
	}

	.czr-nav .czr-search__input {
		flex: 1;
	}

	.czr-header__social {
		position: absolute;
		top: 14px;
		right: calc(var(--gutter) + 220px + 16px);
		display: flex;
		align-items: center;
		height: 44px;
	}

	.czr-nav__list {
		flex-wrap: nowrap;
		gap: clamp(12px, 3vw - 16px, 28px);
	}

	.czr-nav__list > li {
		position: relative;
	}

	.czr-nav__list > li > a {
		display: block;
		padding: 14px 0;
	}

	.czr-nav__list .menu-item-has-children > a::after {
		margin-left: 6px;
		font-size: 10px;
		content: "▾";
	}

	.czr-nav__list .sub-menu {
		position: absolute;
		top: 100%;
		left: -16px;
		z-index: 30;
		display: none;
		min-width: 220px;
		margin: 0;
		padding: 8px 0;
		list-style: none;
		background: var(--bg);
		border: 1px solid var(--line);
		border-radius: var(--radius);
		box-shadow: 0 8px 24px rgb(0 0 0 / 12%);
	}

	.czr-nav__list li:hover > .sub-menu,
	.czr-nav__list li:focus-within > .sub-menu {
		display: block;
	}

	.czr-nav__list .sub-menu a {
		display: block;
		padding: 8px 16px;
		font-weight: 500;
		text-transform: none;
	}
}

.czr-main {
	min-height: 50vh;
	padding: 32px 0 64px;
}

.czr-footer {
	padding: 36px 0 32px;
	background: var(--cz-blue);
	border-top: 3px solid var(--amber);
	color: rgba(255, 255, 255, 0.78);
	font-size: 14px;
}

@media (max-width: 1023px) {
	.czr-header {
		position: relative;
	}

	.czr-header__inner {
		flex-wrap: nowrap;
	}

	.czr-logo img {
		width: auto;
		max-width: min(200px, 55vw);
		max-height: 36px;
	}

	.czr-nav {
		flex-basis: 100%;
		flex-direction: column;
		align-items: stretch;
		padding-bottom: 16px;
	}

	.czr-nav__list {
		flex-direction: column;
		gap: 12px;
	}

	.czr-nav__list .sub-menu {
		margin: 8px 0 0;
		padding: 0 0 0 16px;
		list-style: none;
		border-left: 2px solid var(--line);
	}

	.czr-nav__list .sub-menu li + li {
		margin-top: 8px;
	}

	.czr-nav__list .sub-menu a {
		font-weight: 500;
	}

	.js .czr-nav-toggle {
		display: block;
	}

	.js .czr-nav {
		position: absolute;
		top: 72px;
		right: 0;
		left: 0;
		z-index: 20;
		display: none;
		padding: 16px var(--gutter);
		background: var(--bg);
		border-bottom: 1px solid var(--line);
	}

	.js .czr-nav.is-open {
		display: flex;
	}
}

.czr-footer__cols {
	display: grid;
	gap: 32px;
}

.czr-footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.czr-footer__list li + li {
	margin-top: 8px;
}

.czr-footer a {
	color: #fff;
}

.czr-footer a:hover,
.czr-footer a:focus {
	color: var(--amber);
}

.czr-footer__list a {
	text-decoration: none;
}

.czr-footer .widget__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	color: #fff;
	font-size: 16px;
	font-weight: 800;
}

.czr-footer .widget__title::before {
	flex: none;
	width: 9px;
	height: 1em;
	background: var(--amber);
	clip-path: polygon(0 0, 100% 50%, 0 100%);
	content: "";
}

.czr-footer__logo {
	margin-bottom: 14px;
}

.czr-footer__logo img {
	display: block;
	width: auto;
	max-width: 100%;
	height: 44px;
}

.czr-footer__logo a {
	font-size: 18px;
	font-weight: 800;
	text-decoration: none;
}

.czr-footer__list--regions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px 16px;
}

.czr-footer__list--regions li + li,
.czr-footer__list--topics li + li {
	margin-top: 0;
}

.czr-footer__list--topics {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px 16px;
}

.czr-footer__bottom {
	margin-top: 32px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.czr-ad {
	margin: 0 auto 32px;
	text-align: center;
}

@media (min-width: 768px) {
	.czr-footer__cols {
		grid-template-columns: 1fr 1fr;
		gap: 32px 40px;
	}
}

@media (min-width: 1024px) {
	.czr-footer__cols {
		grid-template-columns: 1.1fr 0.8fr 1.7fr 0.9fr;
	}

	.czr-footer__list--topics {
		grid-template-columns: 1fr;
	}
}

.czr-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
}

.czr-footer__bottom p {
	margin: 0;
}



/* Social profile links: round icons in the footer, icon plus name on the contact page. */
.czr-social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.czr-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 38px;
	height: 38px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 50%;
	color: #fff;
	text-decoration: none;
}

.czr-social a:hover,
.czr-social a:focus-visible {
	border-color: var(--amber);
	color: var(--amber);
}

.czr-social--labels {
	margin-top: 8px;
}

.czr-social--labels a {
	width: auto;
	height: auto;
	padding: 8px 16px 8px 12px;
	border-color: var(--line);
	border-radius: 999px;
	background: #fff;
	color: var(--cz-blue);
	font-weight: 700;
}

.czr-social--labels a:hover,
.czr-social--labels a:focus-visible {
	border-color: var(--amber);
	color: var(--cz-blue);
}

/* Social profile links in the header: desktop only (the footer has them everywhere). */
.czr-header__social {
	display: none;
}

@media (min-width: 1024px) {
	.czr-header__social {
		display: flex;
	}
}

.czr-social--header {
	gap: 4px;
	margin: 0;
}

.czr-social--header a {
	width: 34px;
	height: 34px;
	border: 0;
	color: var(--cz-blue);
}

.czr-social--header a:hover,
.czr-social--header a:focus-visible {
	color: var(--cz-red);
}
