/* Nagłówek podstrony z przymglonym zdjęciem (np. O warsztacie). */
.page-hero--photo { min-height: clamp(520px, 62vh, 720px); display: flex; align-items: flex-end; }
.page-hero--photo > .container { position: relative; z-index: 1; }
.page-hero__photo {
	position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; width: min(62%, 1100px);
	background-size: cover; background-position: 62% 28%; background-repeat: no-repeat;
	opacity: .42;
	filter: grayscale(.55) contrast(.92) brightness(.85) blur(1.5px);
	-webkit-mask-image: linear-gradient(to left, #000 30%, rgba(0,0,0,.6) 60%, transparent 100%), linear-gradient(to top, transparent 0%, #000 30%);
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(to left, #000 30%, rgba(0,0,0,.6) 60%, transparent 100%), linear-gradient(to top, transparent 0%, #000 30%);
	mask-composite: intersect;
	transform: scale(1.03);
	animation: tycHeroIn 1.6s cubic-bezier(.2,.7,.2,1) both;
}
.page-hero--photo::after {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: radial-gradient(700px 420px at 78% 30%, rgba(212,255,54,.07), transparent 65%);
}
@keyframes tycHeroIn { from { opacity: 0; transform: scale(1.08); } to { opacity: .42; transform: scale(1.03); } }
@media (max-width: 899.98px) {
	.page-hero--photo { min-height: 0; }
	.page-hero__photo {
		width: 100%; opacity: .22; background-position: 70% 20%;
		-webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.5) 55%, transparent 100%);
		mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.5) 55%, transparent 100%);
		animation: none;
	}
}
@media (prefers-reduced-motion: reduce) { .page-hero__photo { animation: none; } }

/* Dojazd: zdjęcie wjazdu z oznaczeniami + kroki. */
.route { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: clamp(32px, 4vw, 56px); }
@media (min-width: 1000px) { .route { grid-template-columns: 1.15fr .85fr; } .route--nophoto { grid-template-columns: 1fr; max-width: 760px; } }
.route__photo { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); background: var(--graphite); box-shadow: var(--shadow-lg); }
.route__photo a { display: block; }
.route__photo img { width: 100%; height: auto; display: block; filter: saturate(.92) contrast(1.04); transition: transform .8s var(--ease); }
.route__photo:hover img { transform: scale(1.02); }
.route__photo figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: var(--r-pill); background: rgba(16,19,23,.82); color: var(--silver); font: 500 .72rem/1.3 var(--f-mono); letter-spacing: .06em; pointer-events: none; }
.route__pin { position: absolute; z-index: 2; width: 34px; height: 34px; margin: -17px 0 0 -17px; display: grid; place-items: center; border-radius: 50%; background: var(--carbon); color: var(--volt); border: 2px solid var(--volt); font: 700 .95rem/1 var(--f-head); box-shadow: 0 0 0 6px rgba(212,255,54,.18), 0 8px 20px rgba(0,0,0,.5); pointer-events: none; }
.route__pin--turn { background: var(--volt); color: var(--volt-ink); animation: routePulse 2.2s ease-in-out infinite; }
@keyframes routePulse { 0%,100% { box-shadow: 0 0 0 6px rgba(212,255,54,.25), 0 8px 20px rgba(0,0,0,.5); } 50% { box-shadow: 0 0 0 14px rgba(212,255,54,0), 0 8px 20px rgba(0,0,0,.5); } }
@media (max-width: 599.98px) { .route__pin { width: 26px; height: 26px; margin: -13px 0 0 -13px; font-size: .8rem; } }
.route__steps { list-style: none; display: grid; gap: 14px; margin: 0 0 var(--s-5); }
.route__steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--graphite-2); }
.route__steps strong { display: block; color: var(--ice); font: 600 1.02rem/1.35 var(--f-head); margin-bottom: 4px; }
.route__steps span:not(.route__num) { color: var(--muted); font-size: var(--fs-sm); }
.route__num { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--volt); color: var(--volt); font: 700 1rem/1 var(--f-head); }
.route__key { border-color: var(--volt-line) !important; background: linear-gradient(160deg, rgba(212,255,54,.10), rgba(212,255,54,0) 60%), var(--graphite-2) !important; }
.route__key .route__num { background: var(--volt); color: var(--volt-ink); }
.route__help { color: var(--muted); font-size: var(--fs-sm); }
.route__help a { color: var(--volt); font-weight: 600; text-decoration: none; }

/* O warsztacie: zdjęcie wjazdu w historii (pełny kadr 4:3, żeby znacznik trafiał w strzałkę) + pasek dojazdu. */
.about__frame--route { aspect-ratio: 4 / 3; }
.section--history { padding-bottom: clamp(28px, 3vw, 48px); }
.section--hint { padding-top: 0; padding-bottom: clamp(48px, 5vw, 88px); }
.section--hint .section-foot { padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--graphite-2); }

/* Galeria lokalizacji. */
.loc-grid { list-style: none; display: grid; gap: var(--s-5); }
@media (min-width: 720px) { .loc-grid--2, .loc-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .loc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.loc-grid--1 { max-width: 960px; }
.loc-item { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); background: var(--graphite); }
.loc-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter var(--t); filter: saturate(.9); }
.loc-item::after { content: "Powiększ"; position: absolute; right: 12px; bottom: 12px; padding: 6px 10px; border-radius: var(--r-pill); background: var(--carbon); color: var(--ice); font: 500 .7rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; opacity: 0; transform: translateY(6px); transition: opacity var(--t), transform var(--t); }
.loc-item:hover img { transform: scale(1.04); filter: saturate(1); }
.loc-item:hover::after, .loc-item:focus-visible::after { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .route__pin--turn { animation: none; } }
