/*
 * Menu mobilne – Nauka pod Lupą.
 * Biały pasek jak nagłówek strony, szuflada jak sekcja cennika: tablica + ciemny panel, Rowdies, turkus #2aaa94.
 */
.nplm {
	--nplm-teal: #2aaa94;
	--nplm-teal-dark: #1f8f7c;
	--nplm-ink: #323232;
	--nplm-h: 64px;
	--nplm-display: Rowdies, Saira, system-ui, sans-serif;
	--nplm-ui: Saira, Poppins, system-ui, sans-serif;
	--nplm-text: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
	display: none;
	font-family: var(--nplm-text);
}
.nplm *, .nplm *::before, .nplm *::after { box-sizing: border-box; }
.nplm ul { list-style: none; margin: 0; padding: 0; }
.nplm li { margin: 0; padding: 0; }
.nplm li::marker { content: none; }
.nplm a { text-decoration: none; }
.nplm button {
	margin: 0; border: 0; padding: 0; background: none; box-shadow: none; text-transform: none; letter-spacing: normal;
	min-height: 0; width: auto; cursor: pointer; font-family: inherit; appearance: none; -webkit-appearance: none;
}
.nplm svg { display: block; flex: none; }
.nplm a:focus-visible, .nplm button:focus-visible { outline: 3px solid var(--nplm-teal); outline-offset: 3px; }

/* ---------- Pasek ---------- */
.nplm-bar {
	position: fixed; top: 0; left: 0; right: 0; z-index: 9990;
	height: var(--nplm-h);
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 0 14px 0 16px;
	background: #fff;
	border-bottom: 1px solid transparent;
	transition: box-shadow .25s, border-color .25s, height .25s;
}
.nplm.is-scrolled .nplm-bar { box-shadow: 0 6px 20px -12px rgba(0, 0, 0, .35); border-color: #eef2f1; }
.nplm.is-open .nplm-bar { box-shadow: none; border-color: #eef2f1; }
body.admin-bar .nplm-bar, body.admin-bar .nplm-drawer, body.admin-bar .nplm-scrim { top: 46px; }

.nplm-logo { display: flex; align-items: center; height: 100%; }
.nplm-logo img { display: block; height: 44px; width: auto; max-width: 150px; object-fit: contain; }
.nplm-logo span { font-family: var(--nplm-display); font-size: 20px; color: var(--nplm-ink); }

.nplm-actions { display: flex; align-items: center; gap: 10px; }

.nplm-call {
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	color: var(--nplm-teal); background: #e7f6f3;
	transition: background .2s, color .2s;
}
.nplm-call:hover, .nplm-call:active { background: var(--nplm-teal); color: #fff; }

/* Hamburger – turkusowy kafelek jak ikony przedmiotów; zamienia się w X */
.nplm .nplm-burger {
	position: relative; display: block; width: 46px; height: 46px; border-radius: 12px;
	background: var(--nplm-teal) !important; box-shadow: 0 6px 14px -8px var(--nplm-teal) !important;
	transition: background .2s, transform .15s;
}
.nplm .nplm-burger:active { transform: scale(.94); }
.nplm .nplm-burger span {
	position: absolute; left: 13px; width: 20px; height: 2.5px; border-radius: 2px; background: #fff;
	transition: transform .3s cubic-bezier(.6, 0, .3, 1), opacity .2s, top .3s cubic-bezier(.6, 0, .3, 1), width .3s;
}
.nplm .nplm-burger span:nth-child(1) { top: 15px; }
.nplm .nplm-burger span:nth-child(2) { top: 22px; width: 14px; }
.nplm .nplm-burger span:nth-child(3) { top: 29px; }
.nplm.is-open .nplm-burger { background: var(--nplm-ink) !important; box-shadow: none !important; }
.nplm.is-open .nplm-burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nplm.is-open .nplm-burger span:nth-child(2) { opacity: 0; width: 0; }
.nplm.is-open .nplm-burger span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- Szuflada ---------- */
.nplm-scrim {
	position: fixed; inset: var(--nplm-h) 0 0 0; z-index: 9988;
	background: rgba(10, 20, 17, .5); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.nplm.is-open .nplm-scrim { opacity: 1; visibility: visible; }

.nplm-drawer {
	position: fixed; top: var(--nplm-h); right: 0; bottom: 0; z-index: 9989;
	width: min(100%, 440px);
	display: flex; flex-direction: column;
	padding: 18px 22px calc(24px + env(safe-area-inset-bottom));
	overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
	color: #fff;
	background-color: #24443a;
	background-image: linear-gradient(rgba(5, 5, 5, .72), rgba(5, 5, 5, .78)), var(--nplm-board, none);
	background-size: cover; background-position: 40% 50%;
	transform: translateX(100%); visibility: hidden;
	transition: transform .38s cubic-bezier(.6, 0, .25, 1), visibility .38s;
}
.nplm.is-open .nplm-drawer { transform: none; visibility: visible; }

.nplm-nav li {
	opacity: 0; transform: translateX(18px);
	transition: opacity .3s, transform .35s cubic-bezier(.3, 0, .2, 1);
}
.nplm.is-open .nplm-nav li { opacity: 1; transform: none; transition-delay: calc(.08s + var(--i) * .045s); }
.nplm-nav a {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 15px 2px; border-bottom: 1px solid rgba(255, 255, 255, .12);
	font-family: var(--nplm-display); font-size: 25px; line-height: 1.15; color: #fff;
	transition: color .2s, padding .2s;
}
.nplm-nav a svg { color: var(--nplm-teal); transition: transform .2s; }
.nplm-nav a:hover, .nplm-nav a:active, .nplm-nav a.is-current { color: var(--nplm-teal); }
.nplm-nav a:hover svg, .nplm-nav a:active svg { transform: translateX(4px); }

.nplm-cta {
	display: flex !important; align-items: center; justify-content: center; width: 100% !important;
	margin-top: 24px !important; padding: 15px 20px !important; border-radius: 10px !important;
	font-family: var(--nplm-text) !important; font-size: 17px !important; font-weight: 500 !important; color: #fff !important;
	background: var(--nplm-teal) !important; box-shadow: 0 12px 24px -14px var(--nplm-teal) !important;
	transition: background .2s;
}
.nplm-cta:hover, .nplm-cta:active { background: var(--nplm-teal-dark) !important; }

.nplm-contact { display: grid; gap: 4px; margin-top: 22px !important; }
.nplm-contact a, .nplm-contact div {
	display: flex; align-items: center; gap: 14px; padding: 9px 4px; color: #fff; border-radius: 10px;
}
.nplm-contact a:active { background: rgba(255, 255, 255, .06); }
.nplm-contact i {
	display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%;
	color: var(--nplm-teal); background: rgba(42, 170, 148, .14); font-style: normal;
}
.nplm-contact i svg { width: 20px; height: 20px; }
.nplm-contact span { display: flex; flex-direction: column; font-size: 15px; line-height: 1.3; word-break: break-word; }
.nplm-contact small { font-family: var(--nplm-ui); font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255, 255, 255, .55); }

.nplm-social { display: flex; gap: 10px; margin-top: auto; padding-top: 22px; }
.nplm-social a {
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	color: #fff; border: 2px solid rgba(255, 255, 255, .5); transition: background .2s, border-color .2s, color .2s;
}
.nplm-social a:hover, .nplm-social a:active { background: #fff; border-color: #fff; color: var(--nplm-ink); }

/* Blokada przewijania strony pod otwartą szufladą */
html.nplm-lock, html.nplm-lock body { overflow: hidden !important; }

@media (max-width: 360px) {
	.nplm-nav a { font-size: 22px; padding: 13px 2px; }
	.nplm-logo img { height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
	.nplm *, .nplm *::before, .nplm *::after { transition: none !important; }
}
