/**
 * Comfort Stay - naglowek.
 * Wlasny uklad, bez frameworka kreatora: pasek kontaktowy, logo,
 * przycisk rezerwacji i menu wysuwane z prawej strony.
 */

/* ------------------------------------------------------------------ */
/*  Pasek kontaktowy                                                   */
/* ------------------------------------------------------------------ */

.cs-topbar {
	background: var(--cs-topbar);
	color: #fff;
	font-size: 13.5px;
}

.cs-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 34px;
	min-height: var(--cs-topbar-h);
}

.cs-topbar a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #fff;
}

.cs-topbar a:hover {
	color: var(--cs-navy);
}

.cs-topbar svg {
	width: 15px;
	height: 15px;
	opacity: .9;
}

/* ------------------------------------------------------------------ */
/*  Belka glowna                                                       */
/* ------------------------------------------------------------------ */

.cs-header {
	position: relative;
	z-index: 600;
	background: var(--cs-navy);
	transition: background .25s, box-shadow .25s;
}

/* Na stronach zaczynajacych sie duzym zdjeciem belka lezy na zdjeciu. */
.cs-has-hero .cs-header {
	position: absolute;
	top: var(--cs-topbar-h);
	left: 0;
	right: 0;
	background: transparent;
}

/* Po przewinieciu belka przykleja sie do gory i odzyskuje tlo. */
.cs-header.is-stuck {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background: rgba(13, 32, 56, .96);
	backdrop-filter: blur(8px);
	box-shadow: 0 2px 18px rgba(0, 0, 0, .25);
}

.cs-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: var(--cs-header-h);
}

/* Logo */
.cs-logo {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	line-height: 0;
}

.cs-logo svg,
.cs-logo img {
	width: 232px;
	height: auto;
	transition: width .25s;
}

.cs-header.is-stuck .cs-logo svg,
.cs-header.is-stuck .cs-logo img {
	width: 160px;
}

.cs-header__actions {
	display: flex;
	align-items: center;
	gap: 18px;
}

/* Hamburger */
.cs-burger {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	width: 46px;
	height: 46px;
	padding: 0 9px;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.cs-burger span {
	display: block;
	height: 2px;
	background: #fff;
	border-radius: 2px;
	transition: transform .25s, opacity .2s;
}

.cs-burger[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

.cs-burger[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.cs-burger[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

/* ------------------------------------------------------------------ */
/*  Menu wysuwane                                                      */
/* ------------------------------------------------------------------ */

.cs-nav-overlay {
	position: fixed;
	inset: 0;
	z-index: 900;
	background: rgba(0, 0, 0, .7);
	opacity: 0;
	visibility: hidden;
	transition: opacity .28s, visibility .28s;
}

.cs-nav-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.cs-nav {
	position: fixed;
	z-index: 950;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(390px, 88vw);
	display: flex;
	flex-direction: column;
	padding: 28px 34px 34px;
	background: var(--cs-navy-2);
	overflow-y: auto;
	transform: translateX(100%);
	transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}

.cs-nav.is-open {
	transform: none;
}

.cs-nav__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 26px;
}

.cs-nav__head .cs-logo svg {
	width: 180px;
	height: auto;
}

.cs-nav__close {
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .1);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	flex: 0 0 auto;
}

.cs-nav__close:hover {
	background: var(--cs-gold);
}

.cs-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cs-menu li {
	border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.cs-menu a {
	display: block;
	padding: 14px 0;
	font-size: 16px;
	font-weight: 500;
	color: #fff;
}

.cs-menu a:hover,
.cs-menu .current-menu-item > a {
	color: var(--cs-gold);
}

.cs-menu .sub-menu {
	margin: 0 0 10px;
	padding-left: 16px;
	list-style: none;
}

.cs-menu .sub-menu li {
	border: 0;
}

.cs-menu .sub-menu a {
	padding: 8px 0;
	font-size: 14.5px;
	color: var(--cs-on-dark-2);
}

.cs-nav__foot {
	margin-top: auto;
	padding-top: 26px;
	color: var(--cs-on-dark-2);
	font-size: 14px;
}

.cs-nav__foot a {
	display: block;
	margin-bottom: 6px;
	color: var(--cs-on-dark-2);
}

.cs-nav__foot a:hover {
	color: var(--cs-gold);
}

/* ------------------------------------------------------------------ */
/*  Responsywnosc                                                      */
/* ------------------------------------------------------------------ */

@media (max-width: 767px) {
	:root {
		--cs-header-h: 68px;
	}

	.cs-topbar__inner {
		gap: 18px;
		font-size: 12.5px;
	}

	.cs-topbar__email {
		display: none;
	}

	.cs-logo svg,
	.cs-logo img {
		width: 168px;
	}

	.cs-header__cta {
		display: none;
	}
}
