/*
 * Nejli Akademia - lesson pages (Figma "11 Lekcja", "11b Lekcja - podglad przed zakupem").
 * The list of lessons on the left (380 px), the lesson 60 px further (900 px).
 */

.nejli-lekcja {
	display: grid;
	grid-template-areas: "lista tresc";
	grid-template-columns: 380px minmax(0, 900px);
	align-items: start;
	column-gap: 60px;
	padding: 0 100px 96px 0;
	background: var(--nj-baza);
	color: var(--nj-tekst);
	font-family: "Red Hat Text", sans-serif;
}
.nejli-lekcja p,
.nejli-lekcja h1,
.nejli-lekcja h2,
.nejli-lekcja ol,
.nejli-lekcja ul {
	margin: 0;
}

/* ---------- lesson ---------- */
.nejli-lekcja__tresc {
	grid-area: tresc;
	min-width: 0;
}
.nejli-lekcja__wideo {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #000;
	--plyr-color-main: var(--nj-zloto);
	--plyr-video-control-color: var(--nj-tekst);
	--plyr-range-fill-background: var(--nj-zloto);
	--plyr-font-family: "Red Hat Text", sans-serif;
}
.nejli-lekcja__wideo video,
.nejli-lekcja__wideo iframe,
.nejli-lekcja__wideo img,
.nejli-lekcja__wideo .tutor-video-player,
.nejli-lekcja__wideo .plyr {
	display: block;
	width: 100% !important;
	height: 100% !important;
	border: 0;
}
.nejli-lekcja__wideo img {
	object-fit: cover;
}
.nejli-lekcja__wideo .loading-spinner {
	display: none;
}
/* Play button of the design: a dark circle with a light triangle. */
.nejli-lekcja__wideo .plyr__control--overlaid {
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	padding: 0;
	border-radius: 50%;
	background: rgba(21, 16, 12, 0.92);
	color: var(--nj-tekst);
}
/* Plyr shows the button with ".plyr--full-ui.plyr--video .plyr__control--overlaid { display: block }", which
   outweighed the two-class rule above: the flex centring was lost and the triangle sat at the left edge of the
   circle (live, 10.11.2026). Plyr hides it while playing with opacity and visibility, not display. */
.nejli-lekcja__wideo .plyr--full-ui.plyr--video .plyr__control--overlaid {
	display: flex;
}
.nejli-lekcja__wideo .plyr__control--overlaid svg {
	width: 26px;
	height: 23px;
	left: 2px;
}
.nejli-lekcja__wideo .plyr__control--overlaid:hover,
.nejli-lekcja__wideo .plyr__control--overlaid:focus-visible {
	background: var(--nj-zloto);
	color: var(--nj-na-akcencie);
}

.nejli-lekcja__naglowek {
	margin-top: 32px;
}
.nejli-lekcja__etykieta {
	font-size: 12px;
	font-weight: 500;
	line-height: 17px;
	letter-spacing: 0.6px;
	color: var(--nj-zloto-jasne);
}
.nejli-lekcja .nejli-lekcja__tytul {
	margin-top: 8px;
	font-family: "EB Garamond", serif;
	font-size: 35px;
	font-weight: 500;
	line-height: 41px;
	color: var(--nj-tekst);
}
.nejli-lekcja__opis {
	max-width: 700px;
	margin-top: 32px;
	font-size: 16px;
	line-height: 24px;
	color: rgba(243, 233, 220, 0.76);
}
.nejli-lekcja__opis > * + * {
	margin-top: 16px;
}
.nejli-lekcja__opis a {
	color: var(--nj-zloto-jasne);
}
.nejli-lekcja__materialy {
	box-sizing: border-box;
	max-width: 700px;
	margin-top: 32px;
	padding: 12px 24px;
	border-radius: 2px;
	background: rgba(232, 213, 176, 0.04);
}
.nejli-lekcja__materialy-etykieta {
	font-size: 12px;
	font-weight: 500;
	line-height: 17px;
	color: var(--nj-zloto-jasne);
}
.nejli-lekcja__materialy ul {
	margin-top: 4px;
	padding: 0;
	list-style: none;
}
.nejli-lekcja__materialy li {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	font-size: 16px;
	line-height: 24px;
	color: rgba(243, 233, 220, 0.85);
}
.nejli-lekcja__materialy li + li {
	margin-top: 8px;
}
.nejli-lekcja__materialy li a {
	flex: none;
	font-weight: 500;
	color: var(--nj-zloto-jasne);
	text-decoration: none;
}
.nejli-lekcja__materialy li a:hover {
	color: var(--nj-tekst);
}
.nejli-lekcja__materialy-tekst {
	margin-top: 4px;
	font-size: 16px;
	line-height: 24px;
	color: rgba(243, 233, 220, 0.85);
}
.nejli-lekcja__materialy-tekst p {
	margin: 0;
}

.nejli-lekcja__akcje {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 32px;
}
.nejli-lekcja__akcje:empty {
	display: none;
}
.nejli-lekcja__forma {
	margin: 0;
}
.nejli-lekcja__poprzednia {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 200px;
	height: 48px;
	padding: 0 15px;
	border-radius: 2px;
	background: rgba(232, 213, 176, 0.07);
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	color: rgba(243, 233, 220, 0.8);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s, color 0.2s;
}
.nejli-lekcja__poprzednia:hover {
	background: rgba(232, 213, 176, 0.14);
	color: var(--nj-tekst);
}
.nejli-lekcja .nejli-lekcja__ukoncz {
	min-width: 230px;
	height: 48px;
	border: 0;
	font-family: "Red Hat Text", sans-serif;
	cursor: pointer;
}
.nejli-lekcja .nejli-lekcja__ukoncz:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
.nejli-lekcja__notka {
	max-width: 700px;
	margin-top: 16px !important;
	font-size: 14px;
	line-height: 21px;
	color: rgba(243, 233, 220, 0.76);
}
.nejli-lekcja__kontakt {
	max-width: 700px;
	margin-top: 32px !important;
	font-size: 12px;
	line-height: 17px;
	color: rgba(243, 233, 220, 0.75);
}
.nejli-lekcja__kontakt a {
	color: inherit;
}
.nejli-lekcja__kontakt a:hover {
	color: var(--nj-zloto-jasne);
}

/* Trial lesson: the play button of the design over the poster (controls appear on play). */
.nejli-lekcja__graj {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	margin: -38px 0 0 -38px;
	padding: 0 0 0 4px;
	border: 0;
	border-radius: 50%;
	background: rgba(21, 16, 12, 0.92);
	color: var(--nj-tekst);
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}
.nejli-lekcja__graj:hover,
.nejli-lekcja__graj:focus-visible {
	background: var(--nj-zloto);
	color: var(--nj-na-akcencie);
}
.nejli-lekcja__graj:focus-visible {
	outline: 2px solid var(--nj-tekst);
	outline-offset: 3px;
}
.nejli-lekcja__graj[hidden] {
	display: none;
}

/* ---------- list of lessons ---------- */
.nejli-lekcja__lista {
	grid-area: lista;
	box-sizing: border-box;
	padding: 48px 4px 64px;
	background: var(--nj-czekolada);
}
.nejli-lekcja__kurs {
	padding: 0 32px 0 40px;
}
.nejli-lekcja .nejli-lekcja__kurs-nazwa {
	font-family: "EB Garamond", serif;
	font-size: 22px;
	font-weight: 500;
	line-height: 30px;
	color: var(--nj-tekst);
}
.nejli-lekcja__kurs-stan {
	margin-top: 4px !important;
	font-size: 12px;
	font-weight: 500;
	line-height: 17px;
	letter-spacing: 0.36px;
	color: var(--nj-zloto-jasne);
}
.nejli-lekcja .nejli-postep {
	box-sizing: border-box;
	width: 100%;
	height: 12px;
	margin-top: 32px;
	padding: 4px;
	border-radius: 2px;
	background: rgba(243, 233, 220, 0.16);
}
.nejli-lekcja .nejli-postep span {
	display: block;
	height: 4px;
	border-radius: 2px;
	background: var(--nj-zloto);
}
.nejli-lekcje {
	margin-top: 16px !important;
	padding: 0;
	list-style: none;
	counter-reset: none;
}
.nejli-lekcje__temat {
	padding: 24px 40px 0;
	font-size: 12px;
	font-weight: 500;
	line-height: 17px;
	letter-spacing: 0.6px;
	color: rgba(243, 233, 220, 0.6);
}
.nejli-lekcje__pozycja {
	position: relative;
}
.nejli-lekcje__pozycja > a,
.nejli-lekcje__wiersz {
	display: flex;
	align-items: flex-start;
	padding: 16px 26px 16px 40px;
	color: rgba(243, 233, 220, 0.62);
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s;
}
.nejli-lekcje__pozycja > a:hover {
	background: rgba(243, 233, 220, 0.04);
	color: var(--nj-tekst);
}
.nejli-lekcje__pozycja > a:focus-visible {
	outline: 2px solid var(--nj-zloto-jasne);
	outline-offset: -2px;
}
.nejli-lekcje__numer {
	flex: none;
	width: 36px;
	padding-top: 1px;
	font-size: 12px;
	font-weight: 500;
	line-height: 17px;
	color: var(--nj-zloto-jasne);
}
.nejli-lekcje__nazwa {
	flex: 1;
	min-width: 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
}
.nejli-lekcje__znak {
	flex: none;
	margin-left: 12px;
	padding-top: 1px;
	font-size: 12px;
	font-weight: 500;
	line-height: 17px;
	color: var(--nj-zloto-jasne);
}
.nejli-lekcje__pozycja.is-ukonczona > a {
	color: rgba(243, 233, 220, 0.9);
}
.nejli-lekcje__pozycja.is-aktywna > a,
.nejli-lekcje__pozycja.is-aktywna > .nejli-lekcje__wiersz {
	padding: 20px 40px 26px 44px;
	background: rgba(243, 233, 220, 0.08);
	color: var(--nj-tekst);
}
.nejli-lekcje__pozycja.is-aktywna::before {
	content: "";
	position: absolute;
	top: 4px;
	bottom: 4px;
	left: 4px;
	width: 3px;
	background: var(--nj-zloto);
}
.nejli-lekcja--probna .nejli-lekcje__pozycja.is-aktywna > .nejli-lekcje__wiersz {
	padding: 10px 40px 10px 44px;
}
.nejli-lekcje__pozycja.is-zablokowana .nejli-lekcje__wiersz {
	color: rgba(243, 233, 220, 0.45);
}
.nejli-lekcje__pozycja.is-zablokowana .nejli-lekcje__numer {
	color: rgba(216, 186, 130, 0.45);
}

/* ---------- above the 1440 frame ---------- */
/* The whole 1440 composition (list 380 + 60 + lesson 900 + 100) sits in the middle of the screen, like the Elementor
   pages (PRZESUN in figma-do-elementora.js): at 2560 px the lesson stood next to 1 120 px of empty screen
   (owner 13.11.2026: "strony sie do lewej przerzuca"). */
@media (min-width: 1441px) {
	.nejli-lekcja {
		padding-left: max(0px, calc((100% - 1440px) / 2));
		padding-right: calc(100px + max(0px, calc((100% - 1440px) / 2)));
	}
}

/* ---------- tablet and phone: the lesson first, the list below ---------- */
@media (max-width: 1024px) {
	.nejli-lekcja {
		grid-template-areas:
			"tresc"
			"lista";
		grid-template-columns: minmax(0, 1fr);
		row-gap: 40px;
		padding: 0 0 48px;
	}
	.nejli-lekcja .nejli-lekcja__naglowek,
	.nejli-lekcja .nejli-lekcja__opis,
	.nejli-lekcja .nejli-lekcja__materialy,
	.nejli-lekcja .nejli-lekcja__akcje,
	.nejli-lekcja .nejli-lekcja__notka,
	.nejli-lekcja .nejli-lekcja__kontakt {
		margin-right: 20px;
		margin-left: 20px;
	}
	.nejli-lekcja__forma,
	.nejli-lekcja__forma .nejli-lekcja__ukoncz {
		width: 100%;
	}
	.nejli-lekcja__naglowek {
		margin-top: 24px;
	}
	.nejli-lekcja .nejli-lekcja__tytul {
		font-size: 28px;
		line-height: 34px;
	}
	.nejli-lekcja__akcje > * {
		flex: 1 1 auto;
	}
	.nejli-lekcja__poprzednia,
	.nejli-lekcja .nejli-lekcja__ukoncz {
		min-width: 0;
	}
	.nejli-lekcja__lista {
		padding: 32px 0 40px;
	}
	.nejli-lekcja__kurs {
		padding: 0 20px;
	}
	.nejli-lekcje__pozycja > a,
	.nejli-lekcje__wiersz {
		padding: 12px 20px;
	}
	.nejli-lekcje__pozycja.is-aktywna > a,
	.nejli-lekcje__pozycja.is-aktywna > .nejli-lekcje__wiersz,
	.nejli-lekcja--probna .nejli-lekcje__pozycja.is-aktywna > .nejli-lekcje__wiersz {
		padding: 12px 20px 12px 24px;
	}
}
