/* Standard pages — Premium Editorial Noir reading system. */

.pk-page-main {
	overflow: clip;
}

.pk-page-hero {
	position: relative;
	padding-block: clamp(4.25rem, 7vw, 6.75rem) clamp(3.75rem, 6vw, 5.75rem);
	border-bottom: 1px solid var(--pk-border);
	isolation: isolate;
}

.pk-page-hero::before {
	position: absolute;
	z-index: -2;
	inset: 0;
	background:
		radial-gradient(circle at 14% 22%, rgba(234, 31, 53, 0.14), transparent 27%),
		linear-gradient(115deg, transparent 0 61%, rgba(255, 255, 255, 0.018) 61% 78%, transparent 78%);
	content: "";
}

.pk-page-hero::after {
	position: absolute;
	z-index: -1;
	top: 20%;
	right: -8%;
	width: min(42rem, 42vw);
	height: 1px;
	transform: rotate(-16deg);
	background: linear-gradient(90deg, transparent, rgba(234, 31, 53, 0.65), transparent);
	content: "";
}

.pk-page-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.72fr) minmax(30rem, 1.28fr);
	gap: clamp(2.5rem, 4vw, 5rem);
	align-items: center;
}

.pk-page-hero__copy {
	min-width: 0;
}

.pk-page-hero__meta {
	display: flex;
	gap: 1.25rem;
	align-items: center;
	margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
	font-size: var(--pk-text-label);
	font-weight: 700;
	letter-spacing: 0.18em;
	line-height: 1.4;
	text-transform: uppercase;
}

.pk-page-hero__index {
	color: var(--pk-red);
}

.pk-page-hero__label {
	color: var(--pk-gray);
}

.pk-page-hero__title {
	max-width: 11ch;
	margin: 0;
	font-size: clamp(4rem, 7.3vw, 7.5rem);
	line-height: 0.88;
	text-wrap: balance;
}

.pk-page-hero__visual {
	position: relative;
	min-width: 0;
}

.pk-page-hero__figure {
	position: relative;
	margin: 0;
	overflow: hidden;
	background: var(--pk-surface);
	box-shadow: var(--pk-shadow);
}

.pk-page-hero__figure::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 35%, rgba(4, 5, 7, 0.5));
	content: "";
	pointer-events: none;
}

.pk-page-hero__image {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
	filter: saturate(0.9) contrast(1.04);
}

@media (min-width: 1180px) {
	.pk-page-hero--has-visual .pk-page-hero__visual {
		width: min(64vw, 68rem);
		justify-self: end;
	}
}


.pk-page-hero--text-only {
	min-height: 0;
}

.pk-page-hero--text-only .pk-page-hero__grid {
	position: relative;
	display: block;
}

.pk-page-hero--text-only .pk-page-hero__copy {
	position: relative;
	z-index: 1;
	max-width: 74rem;
}

.pk-page-hero--text-only .pk-page-hero__title {
	max-width: 12ch;
}

.pk-page-hero__ghost-index {
	position: absolute;
	z-index: 0;
	right: clamp(0rem, 5vw, 5rem);
	bottom: clamp(-1.5rem, -1vw, -0.25rem);
	color: rgba(255, 255, 255, 0.035);
	font-family: var(--pk-font-serif);
	font-size: clamp(10rem, 22vw, 22rem);
	letter-spacing: -0.09em;
	line-height: 0.7;
	pointer-events: none;
	user-select: none;
}

.pk-page-reading {
	display: grid;
	grid-template-columns: clamp(7rem, 11vw, 11rem) minmax(0, 1fr);
	gap: clamp(2.5rem, 5vw, 6rem);
	padding-block: clamp(4.5rem, 8vw, 8rem) clamp(6rem, 10vw, 10rem);
}

.pk-page-reading__rail {
	position: relative;
	min-height: 100%;
	border-right: 1px solid var(--pk-border);
}

.pk-page-reading__rail::before {
	position: absolute;
	top: 0;
	right: -1px;
	width: 1px;
	height: 6.5rem;
	background: var(--pk-red);
	content: "";
}

.pk-page-reading__rail > span {
	position: sticky;
	top: calc(var(--pk-header-height) + 2rem);
	display: inline-block;
	transform: translateX(-0.1rem) rotate(180deg);
	color: #777b84;
	font-size: var(--pk-text-label);
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	writing-mode: vertical-rl;
}

.pk-page-content {
	min-width: 0;
}

.pk-page-content > :first-child {
	margin-top: 0;
}

.pk-page-content > p,
.pk-page-content > ul,
.pk-page-content > ol,
.pk-page-content > blockquote {
	max-width: 52rem;
}

.pk-page-content > p {
	margin-bottom: 1.3rem;
	color: #c7c9ce;
	font-size: clamp(1.04rem, 1.2vw, 1.16rem);
	line-height: 1.78;
}

.pk-page-content > p:first-child {
	max-width: 61rem;
	margin-bottom: clamp(4rem, 7vw, 6.5rem);
	color: #e7e5e3;
	font-family: var(--pk-font-serif);
	font-size: clamp(1.55rem, 2.35vw, 2.2rem);
	letter-spacing: -0.025em;
	line-height: 1.42;
}

.pk-page-content > p:first-child strong {
	font-weight: 400;
}

.pk-page-content > h2 {
	position: relative;
	max-width: 15ch;
	margin-top: clamp(4.75rem, 8vw, 8rem);
	margin-bottom: clamp(2rem, 4vw, 3rem);
	font-size: clamp(2.65rem, 4.15vw, 4.5rem);
	line-height: 0.96;
}

.pk-page-content > h2::before {
	display: block;
	width: 3.5rem;
	height: 1px;
	margin-bottom: 1.5rem;
	background: var(--pk-red);
	content: "";
}

.pk-page-content > h3 {
	max-width: 24ch;
	margin-top: 3.75rem;
	margin-bottom: 1.5rem;
}

.pk-page-content a {
	color: #fff;
	text-decoration-color: var(--pk-red);
}

.pk-page-content ul,
.pk-page-content ol {
	padding-left: 1.3rem;
	color: #c7c9ce;
}

.pk-page-content li + li {
	margin-top: 0.65rem;
}

.pk-page-content blockquote {
	margin: clamp(3rem, 5vw, 5rem) 0;
	padding: 0 0 0 clamp(1.5rem, 3vw, 2.5rem);
	border-left: 2px solid var(--pk-red);
	color: #e7e5e3;
	font-family: var(--pk-font-serif);
	font-size: clamp(1.35rem, 2vw, 1.8rem);
	line-height: 1.5;
}

.pk-page-content figure,
.pk-page-content .wp-block-image {
	max-width: 68rem;
	margin-block: clamp(3rem, 6vw, 6rem);
}

.pk-page-content .alignwide {
	width: min(68rem, 100%);
	max-width: none;
}

.pk-page-content .alignfull {
	width: 100%;
	max-width: none;
}


@media (min-width: 52.01rem) {
	.pk-page-hero--text-only {
		padding-block: clamp(4.5rem, 7vw, 7rem);
	}
}

@media (max-width: 70rem) {
	.pk-page-hero__grid {
		grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.68fr);
		gap: 3rem;
	}

	.pk-page-reading {
		grid-template-columns: 5rem minmax(0, 1fr);
		gap: 2.5rem;
	}
}

@media (max-width: 52rem) {
	.pk-page-hero {
		padding-block: 4rem 3.75rem;
	}

	.pk-page-hero__grid {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}

	.pk-page-hero__ghost-index {
		right: -0.5rem;
		bottom: 0;
		font-size: clamp(8rem, 38vw, 12rem);
	}

	.pk-page-hero__title {
		max-width: 12ch;
		font-size: clamp(3.65rem, 16vw, 6rem);
	}

	.pk-page-hero__visual {
		min-height: min(72vw, 28rem);
	}

	.pk-page-reading {
		display: block;
		padding-block: 4rem 6rem;
	}

	.pk-page-reading__rail {
		display: none;
	}

	.pk-page-content > p:first-child {
		margin-bottom: 4rem;
	}

	.pk-page-content > h2 {
		margin-top: 4.5rem;
		font-size: clamp(2.6rem, 12vw, 4rem);
	}
}

@media (max-width: 32rem) {
	.pk-page-hero__meta {
		margin-bottom: 1.35rem;
	}

	.pk-page-hero__visual {
		min-height: 20rem;
	}

	.pk-page-content > p {
		font-size: 1rem;
	}

	.pk-page-content > p:first-child {
		font-size: 1.45rem;
	}
}

/* TASK18X — activity page hero title layering fix.
 * Keep the large asymmetric documentary image, but ensure the editorial title
 * remains readable when it intentionally crosses the image edge.
 */
@media (min-width: 52.01rem) {
	.pk-page-main--taniec .pk-page-hero--has-visual .pk-page-hero__copy,
	.pk-page-main--sport .pk-page-hero--has-visual .pk-page-hero__copy,
	.pk-page-main--literatura-sztuka-i-rekodzielo .pk-page-hero--has-visual .pk-page-hero__copy,
	.pk-page-main--kulinaria .pk-page-hero--has-visual .pk-page-hero__copy {
		position: relative;
		z-index: 3;
	}

	.pk-page-main--taniec .pk-page-hero--has-visual .pk-page-hero__visual,
	.pk-page-main--sport .pk-page-hero--has-visual .pk-page-hero__visual,
	.pk-page-main--literatura-sztuka-i-rekodzielo .pk-page-hero--has-visual .pk-page-hero__visual,
	.pk-page-main--kulinaria .pk-page-hero--has-visual .pk-page-hero__visual {
		z-index: 1;
	}

	.pk-page-main--taniec .pk-page-hero--has-visual .pk-page-hero__figure::before,
	.pk-page-main--sport .pk-page-hero--has-visual .pk-page-hero__figure::before,
	.pk-page-main--literatura-sztuka-i-rekodzielo .pk-page-hero--has-visual .pk-page-hero__figure::before,
	.pk-page-main--kulinaria .pk-page-hero--has-visual .pk-page-hero__figure::before {
		position: absolute;
		z-index: 1;
		inset: 0 auto 0 0;
		width: clamp(7rem, 13vw, 12rem);
		background: linear-gradient(
			90deg,
			rgba(4, 5, 7, 0.72) 0%,
			rgba(4, 5, 7, 0.32) 44%,
			rgba(4, 5, 7, 0) 100%
		);
		content: "";
		pointer-events: none;
	}

	.pk-page-main--taniec .pk-page-hero__title,
	.pk-page-main--sport .pk-page-hero__title,
	.pk-page-main--literatura-sztuka-i-rekodzielo .pk-page-hero__title,
	.pk-page-main--kulinaria .pk-page-hero__title {
		text-shadow: 0 0.08em 0.3em rgba(4, 5, 7, 0.72);
	}
}

/* TASK18AB — Kontakt uses its dedicated form directly below the hero. */
.pk-contact {
	position: relative;
	padding-block: clamp(3.25rem, 5.5vw, 5.5rem) clamp(6rem, 10vw, 10rem);
	background:
		radial-gradient(circle at 9% 18%, rgba(234, 31, 53, 0.12), transparent 28rem),
		#07080a;
}

.pk-contact::before {
	position: absolute;
	inset: 0 0 auto;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(234, 31, 53, 0.7), transparent 72%);
	content: "";
}

.pk-contact__grid {
	display: grid;
	grid-template-columns: minmax(16rem, 0.72fr) minmax(0, 1.28fr);
	gap: clamp(3rem, 7vw, 8rem);
	align-items: start;
}

.pk-contact__intro {
	position: sticky;
	top: 8rem;
}

.pk-contact__intro h2 {
	max-width: 8ch;
	margin: 1rem 0 1.75rem;
	color: #fff;
	font-family: var(--pk-font-serif);
	font-size: clamp(3rem, 4vw, 4.75rem);
	font-weight: 400;
	letter-spacing: -0.045em;
	line-height: 0.92;
}

.pk-contact__intro > p:not(.pk-eyebrow) {
	max-width: 35rem;
	margin: 0;
	color: #b8bbc1;
	font-size: 1.05rem;
	line-height: 1.75;
}

.pk-contact__details {
	display: grid;
	gap: 1.2rem;
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.pk-contact__details div {
	display: grid;
	gap: 0.3rem;
}

.pk-contact__details span {
	color: #7e828a;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.pk-contact__details a {
	width: fit-content;
	color: #f4f4f5;
	font-size: 1.04rem;
	text-decoration: none;
}

.pk-contact__social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1rem;
}

.pk-contact__details a:hover,
.pk-contact__details a:focus-visible {
	color: var(--pk-red);
}

.pk-contact__form-wrap {
	margin-left: clamp(0.75rem, 1vw, 1.25rem);
	padding: clamp(1.6rem, 3.5vw, 3.4rem);
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: linear-gradient(145deg, rgba(22, 23, 27, 0.98), rgba(12, 13, 16, 0.98));
	box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.28);
}

.pk-contact__notice {
	margin-bottom: 1.75rem;
	padding: 1rem 1.15rem;
	border-left: 2px solid var(--pk-red);
	background: rgba(234, 31, 53, 0.1);
	color: #f3f3f4;
	line-height: 1.55;
}

.pk-contact__notice--success {
	border-left-color: #fff;
	background: rgba(255, 255, 255, 0.07);
}

.pk-contact__notice strong {
	margin-right: 0.25rem;
}

.pk-contact-form {
	display: grid;
	gap: 1.35rem;
}

.pk-contact-form__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.35rem;
}

.pk-contact-form__field {
	display: grid;
	gap: 0.55rem;
}

.pk-contact-form__field label,
.pk-contact-form__consent {
	color: #d6d7da;
	font-size: 0.86rem;
	font-weight: 650;
	letter-spacing: 0.015em;
}

.pk-contact-form__field label span {
	color: var(--pk-red);
}

.pk-contact-form__field label small {
	margin-left: 0.25rem;
	color: #737780;
	font-size: 0.75rem;
	font-weight: 500;
}

.pk-contact-form input[type="text"],
.pk-contact-form input[type="email"],
.pk-contact-form input[type="tel"],
.pk-contact-form select,
.pk-contact-form textarea {
	width: 100%;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 0;
	outline: none;
	background: rgba(0, 0, 0, 0.22);
	color: #fff;
	font: inherit;
	transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.pk-contact-form input[type="text"],
.pk-contact-form input[type="email"],
.pk-contact-form input[type="tel"],
.pk-contact-form select {
	height: 3.55rem;
	padding-inline: 1rem;
}

.pk-contact-form textarea {
	min-height: 12rem;
	padding: 1rem;
	resize: vertical;
}

.pk-contact-form select option {
	background: #101114;
	color: #fff;
}

.pk-contact-form input:focus,
.pk-contact-form select:focus,
.pk-contact-form textarea:focus {
	border-color: var(--pk-red);
	background: rgba(0, 0, 0, 0.34);
	box-shadow: 0 0 0 1px var(--pk-red);
}

.pk-contact-form__consent {
	display: grid;
	grid-template-columns: 1.15rem minmax(0, 1fr);
	gap: 0.75rem;
	align-items: start;
	color: #9fa2a9;
	font-weight: 500;
	line-height: 1.55;
}

.pk-contact-form__consent input {
	width: 1.05rem;
	height: 1.05rem;
	margin-top: 0.15rem;
	accent-color: var(--pk-red);
}

.pk-contact-form__consent a {
	color: #fff;
	text-decoration-color: var(--pk-red);
}

.pk-contact-form__footer {
	display: flex;
	gap: 1.5rem;
	align-items: center;
	justify-content: space-between;
	padding-top: 0.5rem;
}

.pk-contact-form__footer p {
	margin: 0;
	color: #686c74;
	font-size: 0.78rem;
}

.pk-contact-form__submit {
	min-height: 3.35rem;
	padding-inline: 1.6rem;
	border: 1px solid var(--pk-red);
	background: var(--pk-red);
	color: #08090b;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
}

.pk-contact-form__submit:hover,
.pk-contact-form__submit:focus-visible {
	background: #fff;
	border-color: #fff;
}

.pk-contact-form__trap {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

@media (max-width: 62rem) {
	.pk-contact__grid {
		grid-template-columns: 1fr;
		gap: 3rem;
	}

	.pk-contact__intro {
		position: static;
	}

	.pk-contact__intro h2 {
		max-width: none;
	}

	.pk-contact__form-wrap {
		margin-left: 0;
	}
}

@media (max-width: 42rem) {
	.pk-contact-form__row {
		grid-template-columns: 1fr;
	}

	.pk-contact__form-wrap {
		margin-left: 0;
		padding: 1.4rem;
	}

	.pk-contact-form__footer {
		align-items: stretch;
		flex-direction: column;
	}

	.pk-contact-form__submit {
		width: 100%;
	}
}


/* TASK18AH — organization page hero title layering fix.
 * Mirrors the proven TASK18X behavior without touching activity pages
 * (including Kulinaria, which remains exactly as in TASK18AG).
 */
@media (min-width: 52.01rem) {
	.pk-page-main--historia .pk-page-hero--has-visual .pk-page-hero__copy,
	.pk-page-main--o-nas .pk-page-hero--has-visual .pk-page-hero__copy,
	.pk-page-main--wartosci .pk-page-hero--has-visual .pk-page-hero__copy {
		position: relative;
		z-index: 3;
	}

	.pk-page-main--historia .pk-page-hero--has-visual .pk-page-hero__visual,
	.pk-page-main--o-nas .pk-page-hero--has-visual .pk-page-hero__visual,
	.pk-page-main--wartosci .pk-page-hero--has-visual .pk-page-hero__visual {
		z-index: 1;
	}

	.pk-page-main--historia .pk-page-hero--has-visual .pk-page-hero__figure::before,
	.pk-page-main--o-nas .pk-page-hero--has-visual .pk-page-hero__figure::before,
	.pk-page-main--wartosci .pk-page-hero--has-visual .pk-page-hero__figure::before {
		position: absolute;
		z-index: 1;
		inset: 0 auto 0 0;
		width: clamp(7rem, 13vw, 12rem);
		background: linear-gradient(
			90deg,
			rgba(4, 5, 7, 0.72) 0%,
			rgba(4, 5, 7, 0.32) 44%,
			rgba(4, 5, 7, 0) 100%
		);
		content: "";
		pointer-events: none;
	}

	.pk-page-main--historia .pk-page-hero__title,
	.pk-page-main--o-nas .pk-page-hero__title,
	.pk-page-main--wartosci .pk-page-hero__title {
		text-shadow: 0 0.08em 0.3em rgba(4, 5, 7, 0.72);
	}
}


/* TASK23A - downloadable consent forms. */
.pk-legal-downloads {
	margin-top: clamp(2.5rem, 5vw, 4.75rem);
	padding-top: clamp(1.75rem, 3vw, 2.5rem);
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.pk-legal-downloads__head {
	max-width: 52rem;
}

.pk-legal-downloads__head h2 {
	margin: 0.25rem 0 0.7rem;
	font-size: clamp(1.8rem, 4vw, 3.2rem);
	line-height: 0.98;
}

.pk-legal-downloads__head > p:last-child {
	margin: 0;
	max-width: 46rem;
	color: var(--pk-muted, #aaaab2);
}

.pk-legal-downloads__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 1.5rem;
}

.pk-legal-downloads__grid--1 {
	grid-template-columns: minmax(0, 42rem);
}

.pk-legal-download-card {
	padding: clamp(1.1rem, 2.2vw, 1.6rem);
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.025);
}

.pk-legal-download-card h3 {
	margin: 0 0 1.15rem;
	font-size: clamp(1.05rem, 2vw, 1.35rem);
	line-height: 1.2;
}

.pk-legal-download-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
}

.pk-page-content .pk-legal-download-card__button {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-width: 9.5rem;
	padding: 0.8rem 0.95rem;
	border: 1px solid rgba(255, 255, 255, 0.22);
	color: #fff;
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.055em;
	text-decoration: none;
	text-transform: uppercase;
	transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.pk-page-content .pk-legal-download-card__button:hover,
.pk-page-content .pk-legal-download-card__button:focus-visible {
	border-color: #ea1f35;
	background: rgba(234, 31, 53, 0.09);
	color: #fff;
}

.pk-page-content .pk-legal-download-card__button--primary {
	border-color: #ea1f35;
	background: #ea1f35;
}

.pk-page-content .pk-legal-download-card__button--primary:hover,
.pk-page-content .pk-legal-download-card__button--primary:focus-visible {
	background: #fff;
	border-color: #fff;
	color: #0c0c0e;
}

@media (max-width: 720px) {
	.pk-legal-downloads__grid {
		grid-template-columns: 1fr;
	}

	.pk-legal-download-card__actions {
		flex-direction: column;
	}

	.pk-page-content .pk-legal-download-card__button {
		width: 100%;
	}
}
