/* =========================================================
   Lingodemy Header
   Osobny CSS, całkowicie niezależny od Tailwinda.
   ========================================================= */

.lgdm-site-header {
	position: relative;
	z-index: 50;
	width: 100%;
	background: rgba(255, 253, 248, 0.97);
	border-bottom: 1px solid rgba(7, 27, 59, 0.06);
	box-shadow: 0 4px 18px rgba(7, 27, 59, 0.025);
}

.lgdm-site-header *,
.lgdm-site-header *::before,
.lgdm-site-header *::after {
	box-sizing: border-box;
}

.lgdm-header-inner {
	width: 100%;
	max-width: 1440px;
	height: 92px;
	margin: 0 auto;
	padding: 0 40px;
	display: flex;
	align-items: center;
	gap: 24px;
}

.lgdm-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
	color: #071b3b;
	text-decoration: none;
}

.lgdm-brand:hover {
	color: #071b3b;
}

.lgdm-brand-mark {
	width: 48px;
	height: 48px;
	flex: 0 0 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 16px;
	background: #071b3b;
	color: #f9b821;
	font-size: 20px;
	line-height: 1;
	font-weight: 900;
	box-shadow: 0 8px 20px rgba(7, 27, 59, 0.14);
	transition: transform 0.25s ease;
}

.lgdm-brand:hover .lgdm-brand-mark {
	transform: rotate(-3deg);
}

.lgdm-brand-copy {
	display: flex;
	flex-direction: column;
	line-height: 1;
}

.lgdm-brand-name {
	display: block;
	font-size: 26px;
	line-height: 1;
	font-weight: 900;
	letter-spacing: -0.045em;
	color: #071b3b;
}

.lgdm-brand-subtitle {
	display: block;
	margin-top: 6px;
	white-space: nowrap;
	font-size: 9px;
	line-height: 1.15;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: #2370b2;
}

.lgdm-desktop-nav {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 28px;
}

.lgdm-desktop-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0;
	white-space: nowrap;
	color: #071b3b;
	font-size: 14px;
	line-height: 1.2;
	font-weight: 700;
	text-decoration: none;
	transition: color 0.2s ease;
}

.lgdm-desktop-nav a:hover {
	color: #2370b2;
}

.lgdm-header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
}

.lgdm-contact-meta {
	display: block;
	text-align: right;
	line-height: 1.15;
}

.lgdm-contact-person {
	display: block;
	margin-bottom: 5px;
	color: #8a96a7;
	font-size: 9px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.18em;
}

.lgdm-contact-meta a {
	display: block;
	white-space: nowrap;
	color: #071b3b;
	font-size: 14px;
	font-weight: 900;
	text-decoration: none;
	transition: color 0.2s ease;
}

.lgdm-contact-meta a:hover {
	color: #2370b2;
}

.lgdm-contact-button {
	min-height: 48px;
	padding: 12px 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	white-space: nowrap;
	border: 0;
	border-radius: 16px;
	background: #f9b821;
	color: #071b3b;
	font-size: 14px;
	line-height: 1;
	font-weight: 900;
	text-decoration: none;
	box-shadow: 0 10px 25px rgba(249, 184, 33, 0.24);
	transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.lgdm-contact-button:hover {
	transform: translateY(-2px);
	background: #ffc83d;
	color: #071b3b;
	box-shadow: 0 13px 29px rgba(249, 184, 33, 0.30);
}

.lgdm-contact-button svg {
	display: block;
	width: 17px !important;
	height: 17px !important;
	min-width: 17px;
	max-width: 17px;
	flex: 0 0 17px;
}

.lgdm-account-link {
	position: relative;
	width: 48px;
	height: 48px;
	min-width: 48px;
	flex: 0 0 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(7, 27, 59, 0.10);
	border-radius: 16px;
	background: #ffffff;
	color: #071b3b;
	box-shadow: 0 8px 22px rgba(7, 27, 59, 0.07);
	text-decoration: none;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.lgdm-account-link:hover {
	transform: translateY(-2px);
	border-color: rgba(35, 112, 178, 0.32);
	box-shadow: 0 12px 28px rgba(7, 27, 59, 0.11);
	color: #2370b2;
}

.lgdm-account-link svg {
	display: block;
	width: 22px !important;
	height: 22px !important;
	min-width: 22px;
	max-width: 22px;
}

.lgdm-account-link.is-logged-in::after {
	content: "";
	position: absolute;
	top: 6px;
	right: 6px;
	width: 8px;
	height: 8px;
	border: 2px solid #ffffff;
	border-radius: 50%;
	background: #65ad4c;
}

.lgdm-mobile-toggle {
	display: none;
	width: 46px;
	height: 46px;
	min-width: 46px;
	padding: 0;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(7, 27, 59, 0.10);
	border-radius: 14px;
	background: #ffffff;
	color: #071b3b;
	cursor: pointer;
}

.lgdm-mobile-toggle svg {
	display: block;
	width: 24px !important;
	height: 24px !important;
}

.lgdm-mobile-menu {
	display: none;
	border-top: 1px solid rgba(7, 27, 59, 0.06);
	background: #fffdf8;
}

.lgdm-mobile-menu.is-open {
	display: block;
}

.lgdm-mobile-nav {
	max-width: 1440px;
	margin: 0 auto;
	padding: 10px 24px 22px;
}

.lgdm-mobile-nav a {
	display: block;
	padding: 15px 0;
	border-bottom: 1px solid rgba(7, 27, 59, 0.06);
	color: #071b3b;
	font-size: 15px;
	font-weight: 800;
	text-decoration: none;
}

.lgdm-mobile-nav .lgdm-mobile-phone {
	margin-top: 16px;
	padding: 16px 20px;
	border: 0;
	border-radius: 16px;
	background: #f9b821;
	text-align: center;
	font-weight: 900;
}

@media (max-width: 1320px) {
	.lgdm-header-inner {
		padding-left: 28px;
		padding-right: 28px;
		gap: 18px;
	}

	.lgdm-desktop-nav {
		gap: 22px;
	}

	.lgdm-contact-meta {
		display: none;
	}
}

@media (max-width: 1120px) {
	.lgdm-brand-subtitle {
		display: none;
	}

	.lgdm-desktop-nav {
		gap: 18px;
	}

	.lgdm-contact-button {
		padding-left: 15px;
		padding-right: 15px;
	}
}

@media (max-width: 1023px) {
	.lgdm-header-inner {
		height: 78px;
		padding: 0 20px;
		gap: 10px;
	}

	.lgdm-desktop-nav,
	.lgdm-contact-meta,
	.lgdm-contact-button {
		display: none;
	}

	.lgdm-header-actions {
		margin-left: auto;
		gap: 9px;
	}

	.lgdm-account-link {
		width: 44px;
		height: 44px;
		min-width: 44px;
		flex-basis: 44px;
		border-radius: 14px;
	}

	.lgdm-mobile-toggle {
		display: flex;
	}
}

@media (max-width: 560px) {
	.lgdm-header-inner {
		padding-left: 16px;
		padding-right: 16px;
	}

	.lgdm-brand-mark {
		width: 44px;
		height: 44px;
		flex-basis: 44px;
		border-radius: 14px;
	}

	.lgdm-brand-name {
		font-size: 23px;
	}
}
