/*
 * Jewuła Education - odświeżenie wizualne + strony ofertowe szkoleń
 * Dołączany PO style.css, wyłącznie w sposób addytywny.
 */

:root {
	--je-ink: #111111;
	--je-ink-soft: #4a4a4a;
	--je-line: #e4e4e4;
	--je-bg-soft: #f7f7f7;
	--je-accent: #111111;
	--je-radius: 2px;
	--je-shadow: 0 2px 10px rgba(0, 0, 0, .06);
	--je-shadow-lg: 0 10px 30px rgba(0, 0, 0, .10);
	--je-ease: .25s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- 0. Typografia ----------
   style.css motywu deklaruje 'Source Sans Pro' i 'Poiret One', ale jako
   ostatni człon podaje generyczne 'cursive'. Gdy webfont się nie wczyta
   (blokada, offline, wolne łącze), przeglądarka sięga po systemowy font
   odręczny - a te często nie mają polskich znaków diakrytycznych.
   Poniżej pełne, bezpieczne stosy fontów z pokryciem latin-ext. */

body,
button,
input,
select,
optgroup,
textarea {
	font-family: 'Source Sans Pro', 'Source Sans 3', -apple-system, BlinkMacSystemFont,
		'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Liberation Sans', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: 'Poiret One', 'Source Sans Pro', -apple-system, BlinkMacSystemFont,
		'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
}

/* ---------- 0b. Logo w nagłówku ---------- */

.logo {
	margin: 0;
}

.logo img {
	width: auto;
	max-width: 130px;
	height: auto;
}

.cv-logo-footer img {
	width: auto;
	max-width: 110px;
	height: auto;
}

@media (max-width: 991px) {
	.logo img {
		max-width: 105px;
	}
}

/* ---------- 1. Globalne odświeżenie ---------- */

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img {
	max-width: 100%;
	height: auto;
}

a,
.button,
button {
	transition: background-color var(--je-ease), color var(--je-ease),
		border-color var(--je-ease), box-shadow var(--je-ease), transform var(--je-ease);
}

/* Widoczny focus - dostępność (WCAG) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 2px solid var(--je-ink);
	outline-offset: 3px;
}

header.top a:focus-visible,
footer.footer a:focus-visible {
	outline-color: #fff;
}

/* Karty szkoleń na stronie głównej */
.cu-box {
	border: 1px solid var(--je-line);
	border-radius: var(--je-radius);
	background: #fff;
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: box-shadow var(--je-ease), transform var(--je-ease), border-color var(--je-ease);
}

.cu-box:hover {
	box-shadow: var(--je-shadow-lg);
	transform: translateY(-4px);
	border-color: #d0d0d0;
}

.cu-box h3 {
	text-transform: uppercase;
	letter-spacing: .04em;
	margin-bottom: 15px;
}

.cu-box p {
	color: var(--je-ink-soft);
	flex: 1 1 auto;
}

.cu-box .button:hover,
.produkty .button:hover {
	background: var(--je-ink);
	color: #fff;
}

/* Wyrównanie kart w wierszu */
.cu-box-row {
	display: flex;
	flex-wrap: wrap;
}

/* Nagłówki sekcji */
.title-header h1,
.title-header h2 {
	text-transform: uppercase;
	font-size: 300%;
	letter-spacing: .02em;
}

.title-header hr {
	width: 80px;
	margin: 0 auto 40px auto;
	border: 0;
	border-top: 2px solid var(--je-ink);
	opacity: .85;
}

.title-header[style*="left"] hr {
	margin-left: 0;
}

/* Menu - CTA */
ul.menu li.cv_cta a {
	border: 1px #fff solid;
	border-radius: var(--je-radius);
	font-weight: 600;
	letter-spacing: .03em;
}

ul.menu li.cv_cta a:hover,
ul.menu li.cv_cta a:focus {
	background: #fff;
	color: #111;
}

/* Stopka */
.footer-menu li a:hover {
	color: #fff;
}

/* ---------- 2. Strony ofertowe szkoleń ---------- */

.je-offer {
	padding: 60px 0 20px;
}

.je-breadcrumbs {
	font-size: 90%;
	color: #8a8a8a;
	margin-bottom: 35px;
}

.je-breadcrumbs a {
	color: #8a8a8a;
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.je-breadcrumbs a:hover {
	color: var(--je-ink);
	border-bottom-color: var(--je-ink);
}

.je-breadcrumbs span[aria-current] {
	color: var(--je-ink);
}

.je-offer__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 50px;
	align-items: flex-start;
}

.je-offer__body {
	flex: 1 1 560px;
	min-width: 0;
}

.je-offer__aside {
	flex: 0 1 330px;
	position: sticky;
	top: 20px;
}

.je-offer__body .je-lead {
	font-size: 122%;
	line-height: 1.65;
	color: var(--je-ink);
	border-left: 3px solid var(--je-ink);
	padding-left: 22px;
	margin-bottom: 35px;
}

.je-offer__body h2 {
	font-size: 175%;
	text-transform: uppercase;
	letter-spacing: .03em;
	margin: 45px 0 18px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--je-line);
}

.je-offer__body h2:first-child {
	margin-top: 0;
}

.je-offer__body h3 {
	font-size: 125%;
	margin: 30px 0 12px;
}

.je-offer__body p {
	color: var(--je-ink-soft);
	line-height: 1.75;
}

/* Listy z „ptaszkiem” */
.je-list {
	list-style: none;
	padding: 0;
	margin: 0 0 25px;
}

.je-list li {
	position: relative;
	padding: 0 0 0 34px;
	margin-bottom: 13px;
	line-height: 1.65;
	color: var(--je-ink-soft);
}

.je-list li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: .45em;
	width: 13px;
	height: 7px;
	border-left: 2px solid var(--je-ink);
	border-bottom: 2px solid var(--je-ink);
	transform: rotate(-45deg);
}

/* Blok wyróżniony */
.je-note {
	background: var(--je-bg-soft);
	border-left: 3px solid var(--je-ink);
	padding: 22px 26px;
	margin: 30px 0;
}

.je-note p:last-child {
	margin-bottom: 0;
}

/* Kafelki „szybkie fakty” */
.je-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 0 0 35px;
	padding: 0;
	list-style: none;
}

.je-facts li {
	flex: 1 1 150px;
	border: 1px solid var(--je-line);
	border-radius: var(--je-radius);
	padding: 16px 18px;
	background: #fff;
}

.je-facts strong {
	display: block;
	font-size: 78%;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: #8a8a8a;
	margin-bottom: 5px;
	font-weight: 600;
}

.je-facts span {
	font-size: 105%;
	color: var(--je-ink);
}

/* Karta cenowa */
.je-card {
	border: 1px solid var(--je-line);
	border-radius: var(--je-radius);
	background: #fff;
	box-shadow: var(--je-shadow);
	overflow: hidden;
}

.je-card__head {
	background: var(--je-ink);
	color: #fff;
	padding: 20px 24px;
}

.je-card__head h2,
.je-card__head h3 {
	margin: 0;
	font-size: 108%;
	text-transform: uppercase;
	letter-spacing: .07em;
	color: #fff;
}

.je-card__body {
	padding: 8px 24px 24px;
}

.je-price {
	list-style: none;
	padding: 0;
	margin: 0;
}

.je-price li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding: 15px 0;
	border-bottom: 1px solid var(--je-line);
}

.je-price li:last-child {
	border-bottom: 0;
}

.je-price .je-price__label {
	color: var(--je-ink-soft);
	text-transform: uppercase;
	font-size: 84%;
	letter-spacing: .05em;
}

.je-price .je-price__value {
	font-weight: 700;
	font-size: 118%;
	white-space: nowrap;
	color: var(--je-ink);
}

.je-price__note {
	font-size: 82%;
	color: #8a8a8a;
	margin: 14px 0 0;
}

/* Przyciski */
.je-btn {
	display: inline-block;
	padding: 15px 26px;
	border: 2px solid var(--je-ink);
	background: var(--je-ink);
	color: #fff;
	text-transform: uppercase;
	letter-spacing: .06em;
	font-weight: 600;
	text-decoration: none;
	text-align: center;
	border-radius: var(--je-radius);
	cursor: pointer;
}

.je-btn:hover,
.je-btn:focus {
	background: #fff;
	color: var(--je-ink);
	text-decoration: none;
}

.je-btn--block {
	display: block;
	width: 100%;
}

.je-btn--ghost {
	background: transparent;
	color: var(--je-ink);
}

.je-btn--ghost:hover,
.je-btn--ghost:focus {
	background: var(--je-ink);
	color: #fff;
}

.je-aside-contact {
	margin-top: 22px;
	padding: 20px 24px;
	border: 1px solid var(--je-line);
	border-radius: var(--je-radius);
	background: var(--je-bg-soft);
}

.je-aside-contact h2 {
	font-size: 84%;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: #8a8a8a;
	margin: 0 0 10px;
	font-weight: 600;
}

.je-aside-contact p {
	margin: 0 0 6px;
	color: var(--je-ink);
}

.je-aside-contact a {
	color: var(--je-ink);
	text-decoration: none;
	border-bottom: 1px solid #c9c9c9;
}

.je-aside-contact a:hover {
	border-bottom-color: var(--je-ink);
}

/* Pasek CTA */
.je-cta {
	background: var(--je-ink);
	color: #fff;
	padding: 55px 0;
	margin-top: 70px;
	text-align: center;
}

.je-cta h2 {
	color: #fff;
	text-transform: uppercase;
	letter-spacing: .04em;
	margin-bottom: 12px;
}

.je-cta p {
	color: #cfcfcf;
	max-width: 620px;
	margin: 0 auto 28px;
}

.je-cta .je-btn {
	border-color: #fff;
	background: #fff;
	color: var(--je-ink);
}

.je-cta .je-btn:hover,
.je-cta .je-btn:focus {
	background: transparent;
	color: #fff;
}

/* Pozostałe szkolenia */
.je-related {
	padding: 70px 0 30px;
	background: var(--je-bg-soft);
}

.je-related h2 {
	text-align: center;
	text-transform: uppercase;
	letter-spacing: .04em;
	margin-bottom: 40px;
}

.je-related__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 22px;
}

.je-related__item {
	background: #fff;
	border: 1px solid var(--je-line);
	border-radius: var(--je-radius);
	padding: 26px;
	display: flex;
	flex-direction: column;
	transition: box-shadow var(--je-ease), transform var(--je-ease);
}

.je-related__item:hover {
	box-shadow: var(--je-shadow-lg);
	transform: translateY(-3px);
}

.je-related__item h2,
.je-related__item h3 {
	font-size: 118%;
	text-transform: uppercase;
	letter-spacing: .03em;
	margin: 0 0 10px;
}

.je-related__item h2 a,
.je-related__item h3 a {
	color: var(--je-ink);
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.je-related__item h2 a:hover,
.je-related__item h3 a:hover {
	border-bottom-color: var(--je-ink);
}

.je-related__item .je-price__note {
	margin: 0 0 14px;
}

.je-related__item p {
	color: var(--je-ink-soft);
	font-size: 93%;
	line-height: 1.6;
	flex: 1 1 auto;
	margin-bottom: 16px;
}

.je-related__more {
	text-transform: uppercase;
	font-size: 82%;
	letter-spacing: .06em;
	font-weight: 600;
	color: var(--je-ink);
	text-decoration: none;
	border-bottom: 1px solid var(--je-ink);
	align-self: flex-start;
	padding-bottom: 2px;
}

/* Lista wszystkich szkoleń (strona /szkolenia/) */
.je-index__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 26px;
	margin: 10px 0 20px;
}

/* ---------- 2b. Nagłówki w hero (H1) ---------- */

/* Strona główna: H1 zastępuje dawne h3 + h2, wygląd bez zmian. */
.top-content h1.je-hero-title {
	font-size: 600%;
	line-height: 1;
	color: #fff;
	text-transform: uppercase;
	text-shadow: 1px 1px 3px rgba(0, 0, 0, .3);
	margin: 0;
	animation: fadein 1.2s ease-out both;
}

.top-content h1.je-hero-title .je-hero-sub {
	display: block;
	font-size: 33.33%;
	line-height: 1.2;
	text-transform: none;
	font-weight: 400;
	margin-bottom: 6px;
}

/* Podstrony: tytuł strony jako H1 - mniejszy niż hero na stronie głównej. */
.top-content h1 {
	font-size: 360%;
	line-height: 1.1;
	color: #fff;
	text-transform: uppercase;
	text-shadow: 1px 1px 3px rgba(0, 0, 0, .3);
	margin: 0;
	animation: fadein 1.2s ease-out both;
	overflow-wrap: break-word;
}

@media (max-width: 991px) {
	.top-content h1.je-hero-title {
		font-size: 420%;
	}

	.top-content h1 {
		font-size: 280%;
	}
}

@media (max-width: 600px) {
	.top-content h1.je-hero-title {
		font-size: 260%;
	}

	.top-content h1 {
		font-size: 200%;
	}
}

/* Skrócenie animacji pojawiania się nagłówków w hero.
   Motyw używał 8 s, przez co tytuł był praktycznie niewidoczny
   przez kilka pierwszych sekund po wejściu na stronę. */
.top-content h1,
.top-content h2,
.top-content h3,
.top-content a {
	animation-duration: 1.2s !important;
	animation-fill-mode: both !important;
}

/* Poszanowanie ustawień systemowych - brak animacji */
@media (prefers-reduced-motion: reduce) {
	.top-content h1,
	.top-content h2,
	.top-content h3,
	.top-content a,
	* {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}

/* ---------- 3. RWD ---------- */

@media (max-width: 991px) {
	.je-offer__aside {
		position: static;
		flex: 1 1 100%;
	}

	.je-offer__grid {
		gap: 35px;
	}
}

@media (max-width: 767px) {
	.je-offer {
		padding-top: 40px;
	}

	.je-offer__body h2 {
		font-size: 150%;
	}

	.je-cta {
		padding: 40px 0;
		margin-top: 45px;
	}

	.je-related {
		padding: 45px 0 20px;
	}
}

@media (max-width: 480px) {
	.je-facts li {
		flex: 1 1 100%;
	}

	.je-offer__body .je-lead {
		font-size: 110%;
		padding-left: 16px;
	}
}

/* ---------- 4. Druk ---------- */

@media print {
	header.top,
	.je-cta,
	.je-related,
	.partners,
	.cv_new_contact,
	footer.footer {
		display: none !important;
	}
}
