/* Content pages with their own design: O nas (B-ONas) and Kontakt (B-Kontakt). */

/* Entrance animations (on load) ------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
	.enter {
		animation: pages-in-up 1s var(--ease-out) both;
	}

	.enter:nth-child(2) { animation-delay: .1s; }
	.enter:nth-child(3) { animation-delay: .2s; }
	.enter:nth-child(4) { animation-delay: .3s; }
	.enter:nth-child(5) { animation-delay: .4s; }

	.enter-clip {
		animation: pages-in-clip 1.6s cubic-bezier(.76, 0, .24, 1) .15s both;
	}

	.enter-clip img {
		animation: pages-in-img 2.4s var(--ease-out) .15s both;
	}
}

@keyframes pages-in-up {
	from { opacity: 0; transform: translateY(36px); }
	to { opacity: 1; transform: none; }
}

@keyframes pages-in-clip {
	from { clip-path: inset(18% 0 18% 0 round 28px); }
	to { clip-path: inset(0 0 0 0 round 28px); }
}

@keyframes pages-in-img {
	from { transform: scale(1.3); }
	to { transform: scale(1); }
}

/* O nas ------------------------------------------------------------------------ */
.about-intro__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 40px clamp(32px, 5vw, 80px);
	padding-top: 44px;
	padding-bottom: clamp(64px, 8vw, 120px);
}

.about-intro__text {
	flex: 1 1 600px;
	min-width: 0;
}

.about-intro__text .eyebrow {
	margin-bottom: 20px;
}

.about-intro__title {
	font-size: clamp(3.5rem, 8vw, 8rem);
}

.about-intro__lead {
	max-width: 560px;
	margin: 32px 0 0;
	font-size: var(--fs-title-s);
	line-height: 1.65;
	color: var(--muted);
}

.about-intro__photo {
	position: relative;
	flex: 1 1 420px;
	min-width: 0;
	max-height: 640px;
	margin: 0;
	aspect-ratio: 4 / 5;
	overflow: clip;
	border-radius: 28px;
	background: var(--surface);
}

.about-intro__photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 55% 60%;
}

.about-intro__photo figcaption {
	position: absolute;
	left: 16px;
	bottom: 16px;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(11, 26, 43, .72);
	color: #f4efe8;
	font-size: var(--fs-micro);
}

.about-section {
	position: relative;
	padding-block: clamp(72px, 9vw, 130px);
	background: var(--bg);
}

.about-section--alt {
	background: var(--bg2);
}

.about-h2 {
	font-size: clamp(2.5rem, 4.8vw, 4.5rem);
}

.about-h2--lg {
	font-size: clamp(2.75rem, 5.2vw, 5.25rem);
}

.about-split {
	display: flex;
	flex-wrap: wrap;
	gap: 48px clamp(32px, 6vw, 96px);
}

.about-split__head {
	flex: 1 1 360px;
	min-width: 0;
}

.about-split__head .eyebrow,
.about-media__text > .eyebrow,
.about-safety__head .eyebrow {
	margin-bottom: 18px;
}

.about-split__body {
	flex: 2 1 560px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 22px;
	font-size: var(--fs-lead);
	line-height: 1.7;
	color: var(--muted);
}

.about-split__body p {
	margin: 0;
}

.about-media {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 40px clamp(32px, 5vw, 80px);
}

.about-media__photo {
	position: relative;
	flex: 1 1 520px;
	min-width: 0;
	margin: 0;
	aspect-ratio: 16 / 10;
	overflow: clip;
	border-radius: 28px;
	background: var(--surface);
}

.about-media__photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.about-media__text {
	flex: 1 1 420px;
	min-width: 0;
}

.about-media__text .about-h2 {
	margin-bottom: 24px;
}

.about-media__text p:not(.eyebrow) {
	margin: 0 0 16px;
	font-size: var(--fs-lead);
	line-height: 1.7;
	color: var(--muted);
}

.about-safety__head {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	justify-content: space-between;
	gap: 24px 64px;
	margin-bottom: clamp(36px, 5vw, 64px);
}

.about-safety__head > div {
	flex: 1 1 560px;
	min-width: 0;
}

.about-safety__head > p {
	flex: 0 1 380px;
	margin: 0;
	font-size: var(--fs-body);
	line-height: 1.6;
}

.about-safety__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
	gap: 16px 48px;
}

.about-safety__group {
	margin: 0 0 6px;
	color: var(--muted);
}

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

.rule {
	display: grid;
	grid-template-columns: 44px 1fr;
	gap: 16px;
	padding: 18px 0;
	border-top: 1px solid var(--line);
	font-size: var(--fs-body);
	line-height: 1.55;
}

.rule svg {
	color: var(--acc-text);
}

.about-faq {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 40px clamp(32px, 5vw, 80px);
}

.about-faq__intro {
	position: sticky;
	top: calc(var(--admin-bar) + var(--header-h) + 26px);
	flex: 1 1 340px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.about-faq__intro p {
	margin: 0;
	font-size: var(--fs-body);
	line-height: 1.6;
}

.about-faq__list {
	flex: 2 1 600px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.faq-tools {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.faq-tools[hidden] {
	display: none;
}

.faq-search {
	position: relative;
}

.faq-search svg {
	position: absolute;
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--muted);
}

.faq-search input {
	width: 100%;
	min-height: 58px;
	padding: 0 18px 0 52px;
	border: 1px solid var(--line2);
	border-radius: 999px;
	background: var(--surface);
	color: var(--text);
	font: 500 var(--fs-body-l) var(--font-sans);
}

.faq-search input::placeholder {
	color: var(--muted);
}

.faq-search input:focus {
	outline: none;
	border-color: var(--acc);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 18%, transparent);
}

.faq-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.faq-tab {
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--line2);
	border-radius: 999px;
	background: transparent;
	color: var(--text);
	font: 600 var(--fs-ui) var(--font-sans);
	cursor: pointer;
	transition: background-color .3s ease, color .3s ease;
}

.faq-tab[aria-pressed="true"] {
	border-color: var(--text);
	background: var(--text);
	color: var(--bg);
}

.faq-tab__count {
	margin-left: 6px;
	font-family: var(--font-mono);
	font-size: var(--fs-micro);
	opacity: .6;
}

.faq-tools [data-faq-status]:empty {
	display: none;
}

.faq--full .faq__item summary {
	min-height: 72px;
	font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
	font-weight: 700;
}

.faq__cat {
	display: block;
	margin-bottom: 4px;
	font-family: var(--font-mono);
	font-size: var(--fs-micro);
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
}

.faq__item[hidden] {
	display: none;
}

.faq-empty {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 28px;
	border: 1px dashed var(--line2);
	border-radius: 20px;
}

.faq-empty[hidden] {
	display: none;
}

.about-close {
	padding-block: clamp(64px, 8vw, 110px);
}

.about-close__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 32px 64px;
}

.about-close__inner > div {
	flex: 1 1 520px;
	min-width: 0;
}

.about-close__inner .about-h2 {
	margin-bottom: 28px;
}

.company-card {
	flex: 1 1 360px;
	min-width: 0;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 10px 20px;
	margin: 0;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: 22px;
	font-size: var(--fs-body-s);
}

.company-card dt,
.company-list dt {
	color: var(--muted);
}

.company-card dd,
.company-list dd {
	margin: 0;
}

/* Kontakt ---------------------------------------------------------------------- */
.contact__grid {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 48px clamp(32px, 5vw, 88px);
	padding-top: 44px;
	padding-bottom: clamp(80px, 10vw, 140px);
}

.contact__info {
	flex: 1 1 520px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: clamp(36px, 4vw, 56px);
}

.contact__info .eyebrow--warm {
	margin-bottom: 20px;
}

.contact__title {
	font-size: clamp(3.25rem, 6.6vw, 6.5rem);
}

.contact__lead {
	max-width: 520px;
	margin: 26px 0 0;
	font-size: var(--fs-lead);
	line-height: 1.65;
	color: var(--muted);
}

.contact__block {
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-size: var(--fs-body-s);
}

.big-tel {
	align-self: flex-start;
	padding-bottom: 6px;
	font-size: clamp(2.625rem, 4.6vw, 4.5rem);
	font-weight: 900;
	font-stretch: 76%;
	line-height: .9;
	letter-spacing: -.01em;
	color: var(--text);
	text-decoration: none;
	background-image: linear-gradient(var(--acc), var(--acc));
	background-position: 0 100%;
	background-repeat: no-repeat;
	background-size: 0 4px;
	transition: background-size .6s var(--ease);
}

.big-tel:hover {
	background-size: 100% 4px;
}

.contact__block + .contact__block {
	margin-top: calc(-1 * clamp(14px, 2vw, 28px));
}

.contact__email {
	align-self: flex-start;
	font-size: clamp(1.375rem, 2.4vw, 2rem);
	font-weight: 800;
	color: var(--text);
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
	overflow-wrap: anywhere;
}

/* Airfield band: the route map's base map zoomed in on the airfield, with a glass card (as on the route map). */
.airfield {
	--m-bg: #0c1d30;
	--m-road: #e3a77f;
	--m-pin: #f4efe8;
	--m-town: rgba(244, 239, 232, .62);
	--m-water-label: #8fc0ea;
	--m-glass: rgba(9, 22, 37, .74);
	--m-glass-line: rgba(244, 239, 232, .12);
	--m-halo: 0 1px 12px rgba(8, 21, 35, .9), 0 0 3px rgba(8, 21, 35, .9);
	padding-bottom: clamp(80px, 10vw, 140px);
}

:root[data-theme="light"] .airfield {
	--m-bg: #e4ebf0;
	--m-road: #c0713f;
	--m-pin: #0b1a2b;
	--m-town: rgba(11, 26, 43, .62);
	--m-water-label: #2f6fa8;
	--m-glass: rgba(250, 251, 252, .86);
	--m-glass-line: rgba(11, 26, 43, .1);
	--m-halo: 0 1px 10px rgba(255, 255, 255, .95), 0 0 3px rgba(255, 255, 255, .95);
}

.airfield__frame {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(520px, 62vh, 680px);
	padding-block: 72px;
	background: var(--m-bg);
}

.airfield__map {
	position: absolute;
	inset: 0;
	overflow: clip;
	container-type: size;
}

/* Edges fade into the page background. */
.airfield__map::before,
.airfield__map::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	z-index: 2;
	height: 72px;
	pointer-events: none;
}

.airfield__map::before {
	top: 0;
	background: linear-gradient(180deg, var(--bg), rgba(0, 0, 0, 0));
}

.airfield__map::after {
	bottom: 0;
	background: linear-gradient(0deg, var(--bg), rgba(0, 0, 0, 0));
}

/* About 6× the route map's zoom: the airfield, the 801/712 crossroads and Karczew; the pin sits right of centre, clear of the card. */
.airfield__canvas {
	--cw: max(750cqw, 8000px);
	--ch: calc(var(--cw) * var(--map-h) / var(--map-w));
	position: absolute;
	left: calc(64cqw - var(--cw) * var(--px) / 100);
	top: calc(50cqh - var(--ch) * var(--py) / 100);
	width: var(--cw);
	height: var(--ch);
}

.airfield__base {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	user-select: none;
	-webkit-user-drag: none;
}

/* Provincial roads to the airfield, over the base map; numbers in road-sign shields. */
.airfield__roads {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
	pointer-events: none;
}

.airfield__roads path {
	fill: none;
	stroke: var(--m-road);
	stroke-width: 3px;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.airfield__shield {
	position: absolute;
	left: var(--x);
	top: var(--y);
	padding: 1px 7px;
	border: 1.5px solid var(--m-road);
	border-radius: 4px;
	background: var(--m-bg);
	color: var(--text);
	font-size: var(--fs-micro);
	font-weight: 700;
	letter-spacing: .04em;
	line-height: 1.4;
	transform: translate(-50%, -50%);
}

.airfield__town,
.airfield__water,
.airfield__pin {
	position: absolute;
	left: var(--x);
	top: var(--y);
}

.airfield__town,
.airfield__water {
	transform: translate(-50%, -50%);
	white-space: nowrap;
	text-shadow: var(--m-halo);
}

.airfield__town {
	font-size: var(--fs-micro);
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--m-town);
}

.airfield__water {
	transform: translate(-50%, -50%) rotate(var(--r, 0deg));
	font-family: var(--font-serif);
	font-size: var(--fs-heading-s);
	font-style: italic;
	font-weight: 500;
	letter-spacing: .04em;
	color: var(--m-water-label);
}

.airfield__dot {
	position: absolute;
	left: -9px;
	top: -9px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--acc);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--m-bg) 70%, transparent);
}

.airfield__ring {
	position: absolute;
	left: -9px;
	top: -9px;
	width: 18px;
	height: 18px;
	border: 1.5px solid var(--acc);
	border-radius: 50%;
	opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
	.airfield__ring {
		animation: airfield-pulse 2.4s ease-out infinite;
	}
}

@keyframes airfield-pulse {
	0% { opacity: .9; transform: scale(1); }
	100% { opacity: 0; transform: scale(4.4); }
}

.airfield__pin-label {
	position: absolute;
	top: 0;
	right: 24px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	transform: translateY(-50%);
	text-align: right;
	white-space: nowrap;
	text-shadow: var(--m-halo);
}

.airfield__kicker {
	font-family: var(--font-serif);
	font-size: var(--fs-lead);
	font-style: italic;
	font-weight: 500;
	line-height: 1;
	color: var(--muted);
}

.airfield__pin-name {
	font-size: var(--fs-small);
	font-weight: 700;
	letter-spacing: .12em;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--acc-text);
}

.airfield__wrap {
	position: relative;
	z-index: 3;
	width: 100%;
}

.airfield__card {
	display: flex;
	flex-direction: column;
	width: min(420px, 100%);
	overflow: clip;
	border: 1px solid var(--m-glass-line);
	border-radius: 6px;
	background: var(--m-glass);
	-webkit-backdrop-filter: blur(20px) saturate(140%);
	backdrop-filter: blur(20px) saturate(140%);
}

.airfield__photo {
	margin: 0;
	aspect-ratio: 16 / 9;
	overflow: clip;
	background: var(--surface);
}

.airfield__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 35% 50%;
}

.airfield__body {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 24px 26px 26px;
}

.airfield__title {
	margin: 0;
	font-size: clamp(1.625rem, 2.4vw, 2.125rem);
	font-weight: 500;
	letter-spacing: -.02em;
	line-height: 1.05;
}

.airfield__facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 12px;
	margin: 0;
	padding: 14px 0;
	border-block: 1px solid var(--line);
}

.airfield__coords {
	grid-column: 1 / -1;
}

.airfield__facts dt {
	font-size: var(--fs-micro);
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--muted);
}

.airfield__facts dd {
	margin: 4px 0 0;
	font-weight: 600;
}

.airfield__facts .mono {
	font-size: var(--fs-caption);
	font-weight: 500;
}

.airfield__nav {
	align-self: flex-start;
	margin-top: 4px;
}

.airfield__credit {
	position: absolute;
	right: var(--gutter);
	bottom: 30px;
	z-index: 3;
	margin: 0;
	font-size: var(--fs-micro);
	color: var(--muted);
}

.airfield__credit a {
	color: inherit;
}

/* Phones: the map becomes a strip above the card. */
@media (max-width: 700px) {
	.airfield__frame {
		flex-direction: column;
		align-items: stretch;
		min-height: 0;
		padding: 0;
		background: none;
	}

	.airfield__map {
		position: relative;
		height: 340px;
		background: var(--m-bg);
	}

	.airfield__canvas {
		--cw: 8000px;
		left: calc(40cqw - var(--cw) * var(--px) / 100);
	}

	.airfield__wrap {
		margin-top: -48px;
	}

	.airfield__card {
		width: 100%;
	}

	.airfield__credit {
		top: 262px;
		bottom: auto;
	}
}

.company-list {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 8px 20px;
	margin: 0;
	font-size: var(--fs-ui);
}

.company-list dt {
	font-size: var(--fs-micro);
}

.contact-card {
	flex: 1 1 520px;
	min-width: 0;
	padding: clamp(24px, 3vw, 40px);
	border: 1px solid var(--line);
	border-radius: 28px;
	background: var(--surface);
	scroll-margin-top: calc(var(--header-h) + 16px);
}

.contact-card__title {
	margin: 0 0 6px;
	font-size: var(--fs-heading);
	font-weight: 800;
}

.contact-card__note {
	margin: 0;
	font-size: var(--fs-body-s);
}

.contact-form {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.contact-form[hidden],
.contact-sent[hidden],
.contact-form [hidden] {
	display: none;
}

.hp-field {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.field-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.field-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
	gap: 16px;
}

.field-label {
	padding: 0;
	font-size: var(--fs-ui);
	font-weight: 600;
}

fieldset > .field-label {
	margin-bottom: 10px;
}

.field-label--split {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.field-optional {
	font-weight: 400;
	color: var(--muted);
}

.field-label--split .field-optional {
	font-size: var(--fs-micro);
}

.field {
	width: 100%;
	min-height: 56px;
	padding: 0 16px;
	border: 1px solid var(--line2);
	border-radius: 14px;
	background: var(--bg);
	color: var(--text);
	font: 500 var(--fs-body-l) var(--font-sans);
	transition: border-color .3s ease, box-shadow .3s ease;
}

.field--area {
	min-height: 160px;
	padding: 14px 16px;
	line-height: 1.5;
	resize: vertical;
}

.field::placeholder {
	color: var(--muted);
	opacity: .85;
}

.field:focus {
	outline: none;
	border-color: var(--acc);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 18%, transparent);
}

.contact {
	--err: #ff8a7a;
}

:root[data-theme="light"] .contact {
	--err: #b42318;
}

.field[aria-invalid="true"] {
	border-color: var(--err);
}

.field-error {
	font-size: var(--fs-ui);
	color: var(--err);
}

.form-alert {
	padding: 14px 18px;
	border: 1px solid var(--err);
	border-radius: 14px;
	color: var(--text);
	font-size: var(--fs-body-s);
}

.topics {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.topic {
	position: relative;
	cursor: pointer;
}

.topic input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.topic span {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--line2);
	border-radius: 999px;
	font-size: var(--fs-body-s);
	font-weight: 600;
	transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}

.topic input:checked + span {
	border-color: var(--text);
	background: var(--text);
	color: var(--bg);
}

.topic input:focus-visible + span {
	outline: 2px solid var(--focus);
	outline-offset: 3px;
}

.form-hint {
	display: flex;
	gap: 14px;
	padding: 16px 18px;
	border: 1px solid color-mix(in srgb, var(--acc) 40%, transparent);
	border-radius: 16px;
	background: color-mix(in srgb, var(--acc) 8%, transparent);
	font-size: var(--fs-body-s);
	line-height: 1.5;
}

.form-hint svg {
	flex: none;
	color: var(--acc-text);
}

/* What the data is used for, under the message field (information, not consent: the reply is based on
   legitimate interest). */
.contact-form__privacy {
	margin: 0;
	font-size: var(--fs-small);
	line-height: 1.5;
	color: var(--muted);
}

.contact-form__privacy a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.contact-form__submit {
	align-self: flex-start;
}

.contact-form__submit[disabled] {
	opacity: .7;
	cursor: progress;
}

.contact-sent {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 22px;
	min-height: 520px;
}

.contact-sent:focus {
	outline: none;
}

.contact-sent__art {
	width: 100%;
	max-width: 400px;
	color: var(--text);
}

.contact-sent__title {
	font-size: clamp(2.5rem, 4.4vw, 4rem);
}

.contact-sent__text {
	max-width: 460px;
	margin: 0;
	font-size: var(--fs-body-l);
	line-height: 1.6;
}

@media (prefers-reduced-motion: no-preference) {
	.contact-sent:not([hidden]) .contact-sent__trail {
		stroke-dashoffset: 400;
		animation: pages-trail 1.2s cubic-bezier(.65, 0, .35, 1) .2s forwards;
	}

	.contact-sent:not([hidden]) .contact-sent__plane {
		animation: pages-in-up 1.2s var(--ease-out) .3s both;
	}
}

@keyframes pages-trail {
	to { stroke-dashoffset: 0; }
}

/* Dokumenty ---------------------------------------------------------------------- */
.docs-page__lead {
	max-width: 620px;
	margin: 24px 0 0;
	font-size: var(--fs-lead);
	line-height: 1.65;
	color: var(--muted);
}

.docs-page__body {
	display: flex;
	flex-direction: column;
	gap: clamp(40px, 5vw, 64px);
	padding-bottom: clamp(80px, 10vw, 140px);
}

/* A ledger of documents: hairlines between rows, the whole row opens the PDF. */
.docs {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--line2);
}

.doc {
	position: relative;
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 8px 28px;
	padding: clamp(20px, 2.4vw, 30px) clamp(8px, 1.5vw, 20px);
	border-bottom: 1px solid var(--line2);
	transition: background-color .3s ease;
}

.doc:hover,
.doc:focus-within {
	background: color-mix(in srgb, var(--acc) 5%, transparent);
}

.doc__mark {
	font-family: var(--font-serif);
	font-size: var(--fs-display-l);
	font-style: italic;
	font-weight: 500;
	line-height: 1;
	color: var(--warm);
	transition: color .3s ease, transform .4s var(--ease);
}

.doc:hover .doc__mark {
	color: var(--acc-text);
	transform: translateX(4px);
}

.doc__text {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.doc__title {
	margin: 0;
	font-size: clamp(1.375rem, 2.2vw, 1.875rem);
	font-weight: 500;
	letter-spacing: -.02em;
	line-height: 1.15;
}

.doc__link {
	color: var(--text);
	text-decoration: none;
}

/* Stretched link: the row is the target; "Wersja na stronie" sits above it. */
.doc__link::after {
	content: "";
	position: absolute;
	inset: 0;
}

.doc__link:focus-visible {
	outline: none;
}

.doc:has(.doc__link:focus-visible) {
	outline: 2px solid var(--focus);
	outline-offset: -2px;
}

.doc__desc {
	max-width: 62ch;
	margin: 0;
	font-size: var(--fs-body-s);
	line-height: 1.55;
	color: var(--muted);
}

.doc__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	font-size: var(--fs-small);
	white-space: nowrap;
}

.doc__date {
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}

.doc__page {
	position: relative;
	z-index: 1;
	color: var(--text);
	text-underline-offset: 3px;
}

.doc__pdf {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--line2);
	border-radius: 999px;
	font-size: var(--fs-small);
	font-weight: 700;
	letter-spacing: .08em;
	transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}

.doc:hover .doc__pdf {
	border-color: var(--acc);
	background: var(--acc);
	color: #0b1a2b;
}

.docs-page__prose {
	padding-bottom: 0;
}

/* A short line under the list, not a card. */
.docs-page__note {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 10px 40px;
	max-width: 900px;
	padding-left: 16px;
	border-left: 2px solid var(--acc);
	font-size: var(--fs-ui);
	color: var(--muted);
}

.docs-page__note > p {
	flex: 1 1 280px;
	max-width: 52ch;
	margin: 0;
	line-height: 1.6;
}

/* A document that is not ready yet: no link, no hover, a note in its place. */
.doc {
	scroll-margin-top: 120px; /* Links to a document that is not ready land on its entry, below the fixed header. */
}

.doc--soon:hover,
.doc--soon:focus-within {
	background: none;
}

.doc--soon .doc__title {
	color: var(--muted);
}

.doc--soon:hover .doc__mark {
	color: var(--warm);
	transform: none;
}

.doc__soon {
	max-width: 62ch;
	margin: 0;
	font-size: var(--fs-body-s);
	line-height: 1.55;
	color: var(--text);
}

.doc__soon a {
	color: inherit;
	text-underline-offset: 3px;
}

/* Arrived from a link to this document: show which entry it is. */
.doc:target {
	background: color-mix(in srgb, var(--acc) 10%, transparent);
	box-shadow: inset 3px 0 0 var(--acc);
}

@media (max-width: 760px) {
	.doc {
		grid-template-columns: 34px minmax(0, 1fr);
		align-items: start;
	}

	.doc__mark {
		font-size: var(--fs-heading-xl);
	}

	.doc__meta {
		grid-column: 2;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 6px 16px;
	}

	.doc__pdf {
		grid-column: 2;
		justify-self: start;
	}
}

/* Dostawa i płatność ------------------------------------------------------------- */
.ship__lead {
	max-width: 600px;
	margin: 24px 0 0;
	font-size: var(--fs-title-s);
	line-height: 1.6;
	color: var(--muted);
}

.ship__cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
	align-items: start;
	gap: 20px;
}

.ship-card {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: clamp(22px, 3vw, 36px);
	border: 1px solid var(--line);
	border-radius: 26px;
	background: var(--surface);
}

.ship-card__head {
	display: flex;
	align-items: center;
	gap: 14px;
}

.ship-card__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 48px;
	height: 48px;
	border: 1px solid color-mix(in srgb, var(--acc) 50%, transparent);
	border-radius: 14px;
	background: color-mix(in srgb, var(--acc) 10%, transparent);
	color: var(--acc-text);
}

.ship-card__title {
	margin: 0;
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	font-weight: 500;
	letter-spacing: -.02em;
}

.ship-card__price {
	margin-left: auto;
	padding: 4px 12px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--acc) 16%, transparent);
	color: var(--acc-text);
	font-size: var(--fs-ui);
	font-weight: 700;
}

.ship-card__list {
	display: flex;
	flex-direction: column;
	margin: 0;
}

.ship-card__list > div {
	display: grid;
	grid-template-columns: minmax(110px, 34%) 1fr;
	gap: 16px;
	padding: 12px 0;
	border-top: 1px solid var(--line);
}

.ship-card__list dt {
	font-size: var(--fs-ui);
	color: var(--muted);
}

.ship-card__list dd {
	margin: 0;
	font-size: var(--fs-body-s);
	font-weight: 500;
	line-height: 1.5;
}

/* Steps: a dashed flight path joins the numbers (the order matters, so they are numbered). */
.ship-steps {
	padding-block: clamp(64px, 8vw, 110px);
}

.ship-steps__title {
	margin: 0 0 clamp(28px, 3vw, 40px);
	font-size: clamp(1.875rem, 3.4vw, 3rem);
	font-weight: 500;
	letter-spacing: -.03em;
}

.ship-steps__list {
	position: relative;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ship-steps__list::before {
	content: "";
	position: absolute;
	top: 21px;
	left: 22px;
	right: 22px;
	border-top: 2px dashed color-mix(in srgb, var(--acc) 60%, transparent);
}

.ship-step {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ship-step__n {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-bottom: 8px;
	border: 2px solid var(--acc);
	border-radius: 50%;
	background: var(--bg);
	font-weight: 700;
}

.ship-step:last-child .ship-step__n {
	background: var(--acc);
	color: #0b1a2b;
}

.ship-step__title {
	margin: 0;
	font-size: var(--fs-lead);
	font-weight: 600;
}

.ship-step__text {
	margin: 0;
	font-size: var(--fs-body-s);
	line-height: 1.55;
	color: var(--muted);
}

@media (max-width: 900px) {
	.ship-steps__list {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.ship-steps__list::before {
		top: 22px;
		bottom: 22px;
		left: 21px;
		right: auto;
		border-top: 0;
		border-left: 2px dashed color-mix(in srgb, var(--acc) 60%, transparent);
	}

	.ship-step {
		display: grid;
		grid-template-columns: 44px 1fr;
		column-gap: 18px;
	}

	.ship-step__n {
		grid-row: span 2;
		margin: 0;
	}
}

.ship__more {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
	gap: 20px;
	padding-bottom: clamp(80px, 10vw, 140px);
}

.ship-note {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: clamp(22px, 3vw, 30px);
	border-top: 2px solid var(--acc);
	background: var(--bg2);
	border-radius: 0 0 20px 20px;
}

.ship-note__title {
	margin: 0;
	font-size: var(--fs-title-s);
	font-weight: 600;
}

.ship-note p {
	margin: 0;
	font-size: var(--fs-body-s);
	line-height: 1.6;
	color: var(--muted);
}

.ship-note__links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	font-weight: 600;
}

.ship-note__links a {
	color: var(--text);
}

.ship__docs {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 24px;
	margin: 0;
}

.ship__docs-link {
	color: var(--text);
	font-weight: 600;
	text-underline-offset: 4px;
}

/* Glass fallback for the airfield card. */
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
	.airfield__card {
		background: var(--surface);
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}
}

/* Light mode: darker accent for the airfield pin on the light map. */
:root[data-theme="light"] .airfield__dot {
	background: var(--acc-text);
}

:root[data-theme="light"] .airfield__ring {
	border-color: var(--acc-text);
}

/* Contact form: the topic fields fade in when a topic brings them back (contact.js). */
@media (prefers-reduced-motion: no-preference) {
	.field-row.is-revealed {
		animation: field-reveal .3s var(--ease-out) both;
	}
}

@keyframes field-reveal {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: none; }
}
