/* ======================== */
/* ROOT VARIABLES           */
/* ======================== */
:root {
	/* Wygląd interfejsu */
	--border-radius: 4px;
}


/* ======================== */
/* HEADER & NAVIGATION      */
/* ======================== */
header {
	background: #ffffff;
	position: relative;
	z-index: 99;
	padding: 1rem 0;
}

.header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: relative;
}

.logo {
	display: flex;
	align-items: center;
	transition: opacity 0.3s;
}

.logo:hover {
	opacity: 0.8;
}

.logo a {
	display: flex;
	align-items: center;
	text-decoration: none;
	color: #222222;
	font-weight: 700;
	font-size: 1.5rem;
}

nav.nav {
	position: static;
	font-size: 1.05rem;
}

/* ======================== */
/* BURGER MENU              */
/* ======================== */
.menu-btn {
	display: none;
}

.menu-icon {
	display: block;
	cursor: pointer;
	padding: 0.5rem 0;
}

.navicon {
	background: #222222;
	display: block;
	height: 2px;
    width: 25px;
	position: relative;
	transition: background 0.2s ease-out;
}

.navicon::before,
.navicon::after {
	content: '';
	display: block;
	background: #222222;
	height: 100%;
	width: 100%;
	position: absolute;
	transition: all 0.2s ease-out;
	transform-origin: center;
}

.navicon::before {
	top: 0.5rem;
}

.navicon::after {
	top: -0.5rem;
}

.menu-btn:checked ~ .menu-icon .navicon {
	background: transparent;
}

.menu-btn:checked ~ .menu-icon .navicon::before {
	transform: rotate(-45deg);
}

.menu-btn:checked ~ .menu-icon .navicon::after {
	transform: rotate(45deg);
}

.menu-btn:checked ~ .menu-icon:not(.steps) .navicon::before,
.menu-btn:checked ~ .menu-icon:not(.steps) .navicon::after {
	top: 0;
}

/* ======================== */
/* MAIN NAVIGATION          */
/* ======================== */
.menu {
	padding: 0 20px;
    font-size: 1.15rem;
}

ul.menu {
	list-style: none;
	display: none;
	position: absolute;
	top: 3rem;
	left: 0;
	width: 100%;
	flex-direction: column;
	background: #ffffff;
	z-index: 100;
}

ul.menu li {
	margin: 0;
	width: 100%;
	border-bottom: 1px solid #dddddd;
}

ul.menu li a {
	padding: .75rem 0;
	display: block;
	text-decoration: none;
	color: #222222;
	font-weight: 400;
}

ul.menu li a:hover {
	font-weight: 500;
}

.menu-btn:checked + .menu-icon + ul.menu {
	display: flex;
}

/* ============================================ */
/* MEDIA QUERIES                                */
/* ============================================ */

@media (min-width: 800px) {
	:root {
		--padding-horizontal: 1rem;
	}
	
	/* BURGER MENU */
	.menu-icon {
		display: none; /* hamburger ukryty na desktop */
	}
	ul.menu {
		display: flex !important; /* wymuszamy widoczność menu */
		position: static;
		flex-direction: row;
		width: auto;
		padding: 0;
	}
	ul.menu li {
		width: auto;
		border: none;
		min-width: 5rem;
        text-align: center;
	}
	ul.menu li a {
		display: inline-block;
		padding: 0.2rem 0;
		text-decoration: none;
	}
	ul.menu li a:hover {
		border-bottom: 1px solid #222222;
	}
	ul.menu li:last-child a {
		text-align: center;
		background: #ffffff;
		border: 1px solid #222222;
		width: 8rem;
		border-radius: var(--border-radius);
		margin-left: 1.5rem;
	}
	ul.menu li:last-child a:hover {
		border: 1px solid #222222;
		background: #222222;
		color: #ffffff;
	}
}