/* Strona startowa PLC Expert – wybór: Przemysł / Edukacja.
   Wzór: start.css; ogólne reguły zawężone do body.pe-gate-page, bo na stronie są też style motywu. */

.pe-gate-page {
	--pe-orange: #e77a08;
	--pe-orange-d: #c96806;
	--pe-orange-soft: #fdf1e4;
	--pe-ink: #15191f;
	--pe-text: #2f3640;
	--pe-muted: #667085;
	--pe-bg: #f2f4f7;
	--pe-line: #e2e6ec;
	--pe-radius-l: 24px;
	color-scheme: light;
}

.pe-gate-page *,
.pe-gate-page *::before,
.pe-gate-page *::after {
	box-sizing: border-box;
}

html:has(> body.pe-gate-page),
body.pe-gate-page {
	height: 100%;
}

body.pe-gate-page {
	margin: 0;
	background: #fff;
	color: var(--pe-text);
	font: 400 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
}

/* :where() – tak słabe jak „a” w start.css, żeby nie przebijało koloru kafelków */
:where(.pe-gate) a {
	color: inherit;
	text-decoration: none;
}

:where(.pe-gate) img {
	display: block;
	max-width: 100%;
}

.pe-gate {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-height: 100%;
	max-width: 1600px;
	margin: 0 auto;
	padding-block: 12px 16px;
	padding-left: max(16px, env(safe-area-inset-left, 0px));
	padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Górny pasek */

.pe-gate__top {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 4px 8px;
}

.pe-gate__logo img {
	width: auto;
	height: 56px;
}

.pe-gate__lead {
	margin: 0 auto 0 0;
	color: var(--pe-muted);
	font-size: 17px;
}

.pe-gate__lead strong {
	color: var(--pe-ink);
	font-weight: 700;
}

.pe-gate__shop {
	padding: 11px 26px;
	border-radius: 10px;
	background: var(--pe-orange);
	color: #fff;
	font-weight: 700;
	transition: background .15s;
}

.pe-gate__shop:hover {
	background: var(--pe-orange-d);
}

/* Dwa kafelki */

.pe-gate__choices {
	flex: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	min-height: 520px;
}

.pe-choice {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-width: 0;
	overflow: hidden;
	border-radius: var(--pe-radius-l);
	background: var(--pe-ink);
	color: #fff;
	isolation: isolate;
}

.pe-choice__img {
	position: absolute;
	inset: 0;
	z-index: -1;
	background-size: cover;
	background-position: center;
}

.pe-choice__img::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(21, 25, 31, .15) 0%, rgba(21, 25, 31, .55) 45%, rgba(21, 25, 31, .94) 100%);
	transition: background .3s;
}

.pe-choice__body {
	display: flex;
	flex-direction: column;
	gap: 14px;
	width: 100%;
	padding: 40px;
}

.pe-choice__kicker {
	align-self: flex-start;
	padding: 6px 11px;
	border-radius: 8px;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .18);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.pe-choice__title {
	font-size: clamp(44px, 6.4vw, 96px);
	font-weight: 900;
	line-height: .95;
	letter-spacing: -.01em;
	text-transform: uppercase;
}

.pe-choice__list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	color: rgba(255, 255, 255, .86);
	font-size: 15.5px;
	font-weight: 500;
}

.pe-choice__list span {
	display: inline-flex;
	align-items: center;
	gap: 9px;
}

.pe-choice__list span::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--pe-orange);
}

.pe-choice__cta {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 10px;
	margin-top: 8px;
	padding: 14px 22px;
	border-radius: 10px;
	background: var(--pe-orange);
	font-weight: 700;
	font-size: 15.5px;
	transition: background .15s;
}

.pe-choice:hover .pe-choice__cta {
	background: var(--pe-orange-d);
}

.pe-choice:focus-visible {
	outline: 3px solid var(--pe-orange);
	outline-offset: 3px;
}

/* Stopka */

.pe-gate__foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 20px;
	padding: 4px 8px;
	color: var(--pe-muted);
	font-size: 14px;
}

.pe-gate__contact a {
	color: var(--pe-ink);
	font-weight: 600;
}

.pe-gate__contact a:hover {
	color: var(--pe-orange);
}

/* Ruch */

@media (prefers-reduced-motion: no-preference) {

	.pe-choice__img {
		transition: transform .8s cubic-bezier(.2, .7, .2, 1);
	}

	.pe-choice:hover .pe-choice__img {
		transform: scale(1.05);
	}

	.pe-choice__cta svg {
		transition: transform .2s;
	}

	.pe-choice:hover .pe-choice__cta svg {
		transform: translateX(4px);
	}

	.pe-choice {
		animation: pe-rise .7s cubic-bezier(.2, .7, .2, 1) both;
	}

	.pe-choice + .pe-choice {
		animation-delay: .1s;
	}

	@keyframes pe-rise {
		from { transform: translateY(16px); }
		to { transform: none; }
	}

}

/* Tablet i telefon */

@media (max-width: 860px) {

	.pe-gate__lead {
		display: none;
	}

	.pe-gate__top {
		justify-content: space-between;
	}

	.pe-gate__choices {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.pe-choice {
		min-height: 340px;
	}

	.pe-choice__body {
		padding: 28px 24px;
	}

}

@media (max-width: 600px) {

	.pe-gate__logo img {
		height: 44px;
	}

	.pe-gate__shop {
		padding: 10px 20px;
	}

	.pe-choice {
		min-height: 300px;
	}

	.pe-choice__list {
		font-size: 14.5px;
	}

	.pe-gate__foot {
		justify-content: center;
		text-align: center;
	}

}
