/*
Theme Name: SJ.Consulting
Theme URI: https://sj-consulting.com.pl/
Author: SJ.Consulting
Description: Dwujęzyczny (polski i włoski) motyw firmowy SJ.Consulting (Temporary Export Management, Polska–Włochy). Po aktywacji tworzy strony w obu językach, menu, grafiki, baner z przenikającymi się treściami, sekcję z logotypami klientów i formularze kontaktowe. Treści edytuje się w edytorze blokowym, nagłówek strony głównej i stopkę w Wygląd → Dostosuj.
Version: 1.4.0
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sj-consulting
*/

/* ------------------------------------------------------------------
   1. Kroje pisma (hostowane lokalnie, bez połączeń z zewnętrznymi serwerami)
   ------------------------------------------------------------------ */
@font-face {
	font-family: "Poppins";
	src: url("assets/fonts/poppins-regular.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Poppins";
	src: url("assets/fonts/poppins-medium.woff") format("woff");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Lora";
	src: url("assets/fonts/lora-variable.woff") format("woff");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Lora";
	src: url("assets/fonts/lora-italic-variable.woff") format("woff");
	font-weight: 400 700;
	font-style: italic;
	font-display: swap;
}

/* ------------------------------------------------------------------
   2. Zmienne
   ------------------------------------------------------------------ */
:root {
	--ink: #14233b;
	--paper: #f2f5f4;
	--white: #ffffff;
	--rosso: #c4202f;
	--rosso-dark: #a01724;
	--verde: #0e7a4e;
	--mist: #cbd5d8;
	--slate: #4f5d75;

	--font-ui: "Poppins", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	--font-text: "Lora", Georgia, "Times New Roman", serif;

	--wrap: 72rem;
	--gutter: clamp(1.25rem, 4vw, 2.5rem);
	--band-y: clamp(3.5rem, 8vw, 6.5rem);
	--radius: 0.375rem;
	--marker: 2.75rem;
}

/* ------------------------------------------------------------------
   3. Podstawy
   ------------------------------------------------------------------ */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-text);
	font-size: 1.125rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4 {
	margin: 0;
	font-family: var(--font-ui);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

h2 {
	font-size: clamp(1.75rem, 3.2vw, 2.5rem);
}

h3 {
	font-size: 1.3rem;
	letter-spacing: -0.01em;
	line-height: 1.25;
}

p,
ul,
ol,
figure {
	margin: 0;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

a:hover {
	color: var(--rosso);
}

strong {
	font-weight: 600;
}

:focus-visible {
	outline: 3px solid var(--rosso);
	outline-offset: 3px;
}

[id] {
	scroll-margin-top: 1.5rem;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: var(--gutter);
	top: -4rem;
	z-index: 10;
	padding: 0.6rem 1rem;
	background: var(--ink);
	color: var(--white);
	font-family: var(--font-ui);
	font-size: 0.95rem;
	border-radius: var(--radius);
}

.skip-link:focus {
	top: 0.75rem;
	color: var(--white);
}

/* ------------------------------------------------------------------
   4. Przyciski (motyw i blok „Przyciski")
   ------------------------------------------------------------------ */
.sj-btn,
.wp-block-button .wp-block-button__link {
	display: inline-block;
	padding: 0.9rem 1.5rem;
	border: 2px solid var(--rosso);
	border-radius: var(--radius);
	background: var(--rosso);
	color: var(--white);
	font-family: var(--font-ui);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sj-btn:hover,
.wp-block-button .wp-block-button__link:hover {
	background: var(--rosso-dark);
	border-color: var(--rosso-dark);
	color: var(--white);
}

.sj-btn.sj-btn--ghost,
.wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link {
	padding: 0.9rem 1.5rem;
	border: 2px solid var(--ink);
	background: transparent;
	color: var(--ink);
}

.sj-btn.sj-btn--ghost:hover,
.wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--white);
}

.wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

/* ------------------------------------------------------------------
   5. Nagłówek serwisu
   ------------------------------------------------------------------ */
.site-header {
	background: var(--paper);
	border-bottom: 1px solid var(--mist);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	max-width: calc(var(--wrap) + 2 * var(--gutter));
	margin-inline: auto;
	padding: 1rem var(--gutter);
}

.site-brand {
	font-family: var(--font-ui);
	font-size: 1.3rem;
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1;
}

.site-brand a {
	text-decoration: none;
}

.site-brand a:hover {
	color: inherit;
}

.site-brand img {
	display: block;
	max-height: 3rem;
	width: auto;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.site-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a {
	display: block;
	padding: 0.5rem 0.85rem;
	font-family: var(--font-ui);
	font-size: 0.95rem;
	text-decoration: none;
}

.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
	box-shadow: inset 0 -2px 0 var(--rosso);
}

.site-nav .lang-switch {
	gap: 0;
	padding-left: 1rem;
	border-left: 1px solid var(--mist);
}

.site-nav .lang-switch a {
	padding-inline: 0.55rem;
	color: var(--slate);
}

.site-nav .lang-switch .is-current a {
	color: var(--ink);
	font-weight: 500;
	box-shadow: inset 0 -2px 0 var(--ink);
}

.nav-toggle {
	display: none;
	padding: 0.55rem 1rem;
	border: 2px solid var(--ink);
	border-radius: var(--radius);
	background: transparent;
	color: var(--ink);
	font-family: var(--font-ui);
	font-size: 0.95rem;
	font-weight: 500;
	cursor: pointer;
}

@media (max-width: 860px) {
	.site-header__inner {
		flex-wrap: wrap;
	}

	.js .nav-toggle {
		display: inline-block;
	}

	.site-nav {
		flex-basis: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 0.5rem;
	}

	.js .site-nav {
		display: none;
	}

	.js .site-nav.is-open {
		display: flex;
	}

	.site-nav ul {
		flex-direction: column;
		gap: 0;
	}

	.site-nav a {
		padding: 0.85rem 0;
		border-top: 1px solid var(--mist);
		font-size: 1.05rem;
	}

	.site-nav .current-menu-item > a,
	.site-nav .current_page_item > a {
		box-shadow: inset 3px 0 0 var(--rosso);
		padding-left: 0.85rem;
	}

	.site-nav .lang-switch {
		flex-direction: row;
		gap: 1.25rem;
		padding-left: 0;
		border-left: 0;
	}

	.site-nav .lang-switch a,
	.site-nav .lang-switch .is-current a {
		padding: 0.85rem 0.25rem;
		box-shadow: none;
	}

	.site-nav .lang-switch .is-current a {
		text-decoration: underline;
		text-decoration-thickness: 2px;
		text-underline-offset: 0.3em;
	}
}

/* ------------------------------------------------------------------
   6. Sekcja otwierająca stronę główną
   ------------------------------------------------------------------ */
.hero__banner {
	padding: clamp(3rem, 8vw, 6rem) var(--gutter) 0;
}

.hero__route {
	padding: 0 var(--gutter) clamp(3rem, 7vw, 5.5rem);
}

.hero__inner {
	max-width: var(--wrap);
	margin-inline: auto;
}

/* baner: slajdy leżą jeden na drugim i przenikają się; wysokość wyznacza najdłuższy */
.hero__slides {
	display: grid;
}

.hero__slide {
	grid-area: 1 / 1;
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: clamp(1.5rem, 5vw, 4.5rem);
	align-items: end;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.9s ease, visibility 0s linear 0.9s;
}

.hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.9s ease, visibility 0s;
}

.hero__title {
	font-family: var(--font-ui);
	font-size: clamp(2.2rem, 5.6vw, 4.4rem);
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

.hero__lead {
	font-size: clamp(1.15rem, 1.5vw, 1.3rem);
	line-height: 1.55;
}

.hero__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem 2rem;
	margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.75rem;
}

.hero__bar .hero__actions {
	margin-top: 0;
}

/* sterowanie banerem: widoczne tylko, gdy działa skrypt */
.hero__controls {
	display: none;
	align-items: center;
	gap: 0.15rem;
}

.js .hero__controls {
	display: flex;
}

.hero__dot,
.hero__pause {
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.hero__dot::before {
	content: "";
	width: 0.8rem;
	height: 0.8rem;
	border: 2px solid currentColor;
	border-radius: 50%;
	transition: background-color 0.2s ease;
}

.hero__dot.is-active::before {
	background: currentColor;
}

.hero__pause {
	margin-left: 0.5rem;
	border: 2px solid currentColor;
}

.hero__icon--play,
.hero__pause.is-paused .hero__icon--pause {
	display: none;
}

.hero__pause.is-paused .hero__icon--play {
	display: block;
}

/* tło banera: zdjęcia lub grafiki slajdów leżą jedna na drugiej i przenikają się razem z treścią */
.hero--photo .hero__banner {
	position: relative;
	padding-top: clamp(4rem, 10vw, 7.5rem);
	padding-bottom: clamp(2.5rem, 6vw, 4rem);
	background-color: var(--ink);
	color: var(--white);
}

.hero__bgs {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.hero__bg {
	position: absolute;
	inset: 0;
	background-position: center;
	background-size: cover;
	opacity: 0;
	transition: opacity 1.2s ease;
}

.hero__bg.is-active {
	opacity: 1;
}

/* przyciemnienie, żeby tekst był czytelny na każdym zdjęciu */
.hero__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(20, 35, 59, 0.93) 0%, rgba(20, 35, 59, 0.78) 55%, rgba(20, 35, 59, 0.6) 100%);
}

/* grafiki motywu: przyciemnione tak, żeby linie tras nie utrudniały czytania tekstu */
.hero__bg--graphic {
	background-position: 68% center;
}

.hero__bg--graphic::after {
	background: linear-gradient(90deg, rgba(20, 35, 59, 0.9) 0%, rgba(20, 35, 59, 0.74) 50%, rgba(20, 35, 59, 0.6) 100%);
}


.hero--photo .hero__banner > .hero__inner {
	position: relative;
}

.hero--photo .sj-btn.sj-btn--ghost {
	border-color: var(--white);
	color: var(--white);
}

.hero--photo .sj-btn.sj-btn--ghost:hover {
	background: var(--white);
	color: var(--ink);
}

.hero--photo .hero__dot:focus-visible,
.hero--photo .hero__pause:focus-visible,
.hero--photo .sj-btn:focus-visible {
	outline-color: var(--white);
}

.page-figure img {
	display: block;
	width: 100%;
	border-radius: var(--radius);
}

@media (max-width: 860px) {
	.hero__slide {
		grid-template-columns: 1fr;
		align-items: start;
		align-content: start;
	}
}

/* ------------------------------------------------------------------
   7. Trasa Polska → Włochy (znak rozpoznawczy motywu)
   ------------------------------------------------------------------ */
.route {
	--gap: 1.5rem;
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: var(--gap);
	margin: clamp(3rem, 7vw, 5.5rem) 0 0;
	padding: 0;
	list-style: none;
	font-family: var(--font-ui);
}

.route__point {
	position: relative;
}

/* odcinek trasy do następnego punktu */
.route__point:not(:last-child)::after {
	content: "";
	position: absolute;
	top: calc(var(--marker) / 2 - 1px);
	left: var(--marker);
	right: calc(-1 * var(--gap));
	height: 2px;
	background: var(--ink);
	transform-origin: left center;
}

.route__point a {
	display: block;
	text-decoration: none;
}

.route__marker {
	display: grid;
	place-items: center;
	width: var(--marker);
	height: var(--marker);
	border: 2px solid var(--ink);
	border-radius: 50%;
	background: var(--paper);
	font-size: 1rem;
	font-weight: 500;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.route__point--pl .route__marker {
	background: linear-gradient(to bottom, var(--white) 50%, var(--rosso) 50%);
}

.route__point--it .route__marker {
	background: linear-gradient(to right, var(--verde) 33.33%, var(--white) 33.33% 66.66%, var(--rosso) 66.66%);
}

.route__label {
	display: block;
	margin-top: 0.9rem;
	padding-right: 0.5rem;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.3;
}

.route__point--pl .route__label,
.route__point--it .route__label {
	font-size: 1.15rem;
}

.route__note {
	display: block;
	margin-top: 0.2rem;
	color: var(--slate);
	font-size: 0.9rem;
	line-height: 1.35;
}

.route__point a:hover {
	color: var(--ink);
}

.route__point a:hover .route__marker,
.route__point a:focus-visible .route__marker {
	background: var(--ink);
	color: var(--white);
}

.route__point a:hover .route__label {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

/* jedyna animacja wejścia na stronie: trasa rysuje się od Polski do Włoch */
@media (prefers-reduced-motion: no-preference) {
	.route__point::after {
		animation: sj-route-draw 0.32s ease-out both;
	}

	.route__marker,
	.route__label,
	.route__note {
		animation: sj-route-show 0.3s ease-out both;
	}

	.route__point:nth-child(1)::after { animation-delay: 0.35s; }
	.route__point:nth-child(2) > *,
	.route__point:nth-child(2) a > * { animation-delay: 0.6s; }
	.route__point:nth-child(2)::after { animation-delay: 0.7s; }
	.route__point:nth-child(3) a > * { animation-delay: 0.95s; }
	.route__point:nth-child(3)::after { animation-delay: 1.05s; }
	.route__point:nth-child(4) a > * { animation-delay: 1.3s; }
	.route__point:nth-child(4)::after { animation-delay: 1.4s; }
	.route__point:nth-child(5) a > * { animation-delay: 1.65s; }
	.route__point:nth-child(5)::after { animation-delay: 1.75s; }
	.route__point:nth-child(6) > * { animation-delay: 2s; }
}

@keyframes sj-route-draw {
	from { transform: scaleX(0); }
	to { transform: scaleX(1); }
}

@keyframes sj-route-draw-down {
	from { transform: scaleY(0); }
	to { transform: scaleY(1); }
}

@keyframes sj-route-show {
	from { opacity: 0; }
	to { opacity: 1; }
}

@media (max-width: 860px) {
	.route {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.route__point {
		padding-bottom: 1.5rem;
	}

	.route__point:last-child {
		padding-bottom: 0;
	}

	.route__point--pl,
	.route__point--it,
	.route__point a {
		display: grid;
		grid-template-columns: var(--marker) minmax(0, 1fr);
		column-gap: 1rem;
		align-items: center;
	}

	.route__point--pl .route__marker,
	.route__point--it .route__marker {
		grid-row: span 2;
	}

	.route__point--pl .route__label,
	.route__point--it .route__label {
		align-self: end;
	}

	.route__note {
		grid-column: 2;
		align-self: start;
		margin-top: 0;
	}

	.route__label {
		margin-top: 0;
	}

	.route__point:not(:last-child)::after {
		top: var(--marker);
		bottom: 0;
		left: calc(var(--marker) / 2 - 1px);
		right: auto;
		width: 2px;
		height: auto;
		transform-origin: center top;
		animation-name: sj-route-draw-down;
	}
}

/* ------------------------------------------------------------------
   8. Nagłówek podstron
   ------------------------------------------------------------------ */
.page-head {
	padding: clamp(3rem, 7vw, 5rem) var(--gutter) clamp(2.5rem, 5vw, 3.5rem);
	border-bottom: 1px solid var(--mist);
}

.page-head__inner {
	max-width: var(--wrap);
	margin-inline: auto;
}

.page-head h1 {
	font-size: clamp(1.55rem, 6.9vw, 3.75rem);
	line-height: 1.05;
	letter-spacing: -0.03em;
	overflow-wrap: break-word;
}

.page-head__lead {
	max-width: 42rem;
	margin-top: 1.25rem;
	font-size: clamp(1.15rem, 1.5vw, 1.3rem);
	line-height: 1.55;
}

.page-figure {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: var(--band-y) var(--gutter) 0;
	box-sizing: content-box;
}

/* ------------------------------------------------------------------
   9. Treść: rytm pionowy i bloki
   ------------------------------------------------------------------ */
.flow > * + *,
.sj-band > * + *,
.wp-block-group__inner-container > * + *,
.wp-block-column > * + * {
	margin-top: 1.25rem;
}

.sj-band h2 + *,
.flow h2 + * {
	margin-top: 1.5rem;
}

.sj-band h3 + *,
.flow h3 + * {
	margin-top: 0.6rem;
}

/* bloki wstawione poza sekcjami: wyśrodkowana, wąska kolumna tekstu */
.entry-content > *:not(.sj-band):not(.alignfull):not(.alignwide) {
	max-width: 44rem;
	margin-inline: auto;
	padding-inline: var(--gutter);
	box-sizing: content-box;
}

.entry-content > *:not(.sj-band) {
	margin-top: 1.5rem;
}

.entry-content > *:not(.sj-band):first-child {
	margin-top: var(--band-y);
}

.entry-content > *:not(.sj-band):last-child {
	margin-bottom: var(--band-y);
}

.entry-content > .alignwide {
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
	box-sizing: content-box;
}

.entry-content :where(ul, ol) {
	padding-left: 1.3em;
}

/* sekcja na całą szerokość: blok „Grupa" z klasą sj-band */
.sj-band {
	padding: var(--band-y) max(var(--gutter), calc((100% - var(--wrap)) / 2));
}

.sj-band.is-white {
	background: var(--white);
}

.sj-band.is-ink {
	background: var(--ink);
	color: var(--paper);
}

.sj-band.is-ink h2,
.sj-band.is-ink h3 {
	color: var(--white);
}

.sj-band.is-ink a:hover {
	color: var(--white);
}

.sj-band.is-ink .wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link {
	border-color: var(--white);
	color: var(--white);
}

.sj-band.is-ink .wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--white);
	color: var(--ink);
}

.sj-band .wp-block-columns {
	margin-bottom: 0;
}

.sj-band .wp-block-buttons {
	margin-top: 2rem;
}

.sj-lead {
	max-width: 44rem;
	font-size: clamp(1.15rem, 1.5vw, 1.3rem);
	line-height: 1.55;
}

/* układ: nagłówek po lewej, treść po prawej (blok „Kolumny" z klasą sj-split) */
.wp-block-columns.sj-split {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 1.5rem clamp(2rem, 6vw, 5rem);
}

.wp-block-columns.sj-split.sj-row {
	margin-top: 2.5rem;
	padding-top: 2.5rem;
	border-top: 1px solid var(--mist);
}

/* cztery równe kolumny (blok „Kolumny" z klasą sj-four) */
.wp-block-columns.sj-four {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 2rem clamp(1.5rem, 3vw, 2.5rem);
	margin-top: 3rem;
}

.sj-four > .wp-block-column {
	padding-top: 1.1rem;
	border-top: 2px solid var(--ink);
}

.sj-four p {
	font-size: 1.02rem;
	line-height: 1.6;
}

@media (max-width: 960px) {
	.wp-block-columns.sj-four {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 780px) {
	.wp-block-columns.sj-split {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 540px) {
	.wp-block-columns.sj-four {
		grid-template-columns: 1fr;
	}
}

/* lista stwierdzeń (blok „Lista" z klasą sj-checks) */
ul.sj-checks {
	padding: 0;
	list-style: none;
	border-top: 2px solid var(--ink);
}

ul.sj-checks li {
	padding: 0.95rem 0;
	border-bottom: 1px solid var(--mist);
}

/* etapy usługi: pionowa trasa (blok „Grupa" z klasą sj-stage) */
.sj-band {
	counter-reset: sj-stage;
}

.wp-block-group.sj-stage {
	position: relative;
	margin-top: 3rem;
	padding: 0 0 2.75rem calc(var(--marker) + 2rem);
	counter-increment: sj-stage;
}

.wp-block-group.sj-stage + .sj-stage {
	margin-top: 0;
}

.sj-stage::before {
	content: counter(sj-stage);
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: var(--marker);
	height: var(--marker);
	border: 2px solid var(--ink);
	border-radius: 50%;
	font-family: var(--font-ui);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1;
}

.sj-stage::after {
	content: "";
	position: absolute;
	top: var(--marker);
	bottom: 0;
	left: calc(var(--marker) / 2 - 1px);
	width: 2px;
	background: var(--ink);
}

.sj-stage:last-child {
	padding-bottom: 0;
}

.sj-stage:last-child::after {
	display: none;
}

.sj-stage h3 {
	padding-top: 0.5rem;
	font-size: clamp(1.3rem, 2vw, 1.6rem);
}

.sj-band .sj-stage h3 + * {
	margin-top: 1.25rem;
}

.sj-stage ul {
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--mist);
}

.sj-stage li {
	display: grid;
	grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
	gap: 0.15rem 2rem;
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--mist);
}

.sj-stage li strong {
	font-family: var(--font-ui);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.5;
}

@media (max-width: 780px) {
	.wp-block-group.sj-stage {
		padding-left: calc(var(--marker) + 1.1rem);
	}

	.sj-stage li {
		grid-template-columns: 1fr;
	}
}

/* grafiki: mapy (klasa sj-map) i schematy (klasa sj-diagram) w bloku „Obrazek" */
.wp-block-image {
	margin: 0;
}

.wp-block-image img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: var(--radius);
}

.sj-band .wp-block-image.sj-map,
.sj-band .wp-block-image.sj-diagram {
	margin-top: 3rem;
}

.wp-block-image.sj-map img {
	width: 100%;
	aspect-ratio: 2 / 1;
	object-fit: cover;
}

.sj-band.is-ink .wp-block-image.sj-map img {
	border-radius: 0;
}

.wp-block-image.sj-diagram {
	max-width: 44rem;
}

.wp-block-image.sj-diagram img {
	width: 100%;
	border-radius: 0;
}

@media (max-width: 700px) {
	/* na telefonie mapa pokazuje środkowy kwadrat, żeby nazwy miast były czytelne */
	.wp-block-image.sj-map img {
		aspect-ratio: 1 / 1;
	}
}

/* logotypy klientów: blok „Galeria" z klasą sj-logos */
.wp-block-gallery.sj-logos {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
	gap: 1rem !important;
	margin-top: 2.5rem;
}

.wp-block-gallery.sj-logos > :not(figure) {
	grid-column: 1 / -1;
}

.wp-block-gallery.sj-logos figure.wp-block-image {
	display: grid;
	place-items: center;
	width: auto !important;
	margin: 0 !important;
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--mist);
	border-radius: var(--radius);
	background: var(--white);
}

.wp-block-gallery.sj-logos figure.wp-block-image img {
	width: 100% !important;
	height: 3.75rem !important;
	object-fit: contain !important;
	border-radius: 0;
}

.wp-block-gallery.sj-logos figcaption {
	display: none;
}

/* małe logotypy firm („Zaufali nam") dodawane w Dostosuj: jeden przewijany rząd */
.sj-logos-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
}

.sj-logos-controls {
	display: flex;
	gap: 0.5rem;
}

.sj-logos-controls[hidden] {
	display: none;
}

.sj-logos-btn {
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 2px solid var(--ink);
	border-radius: 50%;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.sj-logos-btn:hover {
	background: var(--ink);
	color: var(--white);
}

.sj-logos-icon-play,
.sj-logos-pause.is-paused .sj-logos-icon-pause {
	display: none;
}

.sj-logos-pause.is-paused .sj-logos-icon-play {
	display: block;
}

.sj-band .sj-logos-scroller {
	margin-top: 2rem;
	padding-bottom: 0.75rem;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
	scrollbar-color: var(--mist) transparent;
}

.sj-logos-list {
	display: flex;
	gap: 0.75rem;
	width: max-content;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sj-logos-list li {
	flex: 0 0 9.5rem;
	display: grid;
	place-items: center;
	padding: 0.9rem 1.1rem;
	border: 1px solid var(--mist);
	border-radius: var(--radius);
	background: var(--white);
	scroll-snap-align: start;
}

.sj-logos-list img {
	display: block;
	width: 100%;
	height: 2.75rem;
	object-fit: contain;
}

@media (max-width: 540px) {
	.sj-logos-list {
		gap: 0.5rem;
	}

	.sj-logos-list li {
		flex-basis: 7.25rem;
		padding: 0.7rem 0.75rem;
	}

	.sj-logos-list img {
		height: 2.25rem;
	}
}

/* dane kontaktowe */
.sj-person a {
	text-decoration: none;
}

.sj-person a:hover {
	text-decoration: underline;
}

.sj-small {
	color: var(--slate);
	font-size: 0.98rem;
	line-height: 1.6;
}

/* kolory z palety edytora */
.has-ink-color { color: var(--ink); }
.has-paper-color { color: var(--paper); }
.has-white-color { color: var(--white); }
.has-rosso-color { color: var(--rosso); }
.has-verde-color { color: var(--verde); }
.has-slate-color { color: var(--slate); }
.has-ink-background-color { background-color: var(--ink); }
.has-paper-background-color { background-color: var(--paper); }
.has-white-background-color { background-color: var(--white); }
.has-rosso-background-color { background-color: var(--rosso); }
.has-verde-background-color { background-color: var(--verde); }
.has-slate-background-color { background-color: var(--slate); }

/* ------------------------------------------------------------------
   10. Formularze
   ------------------------------------------------------------------ */
.sj-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.1rem 1.25rem;
	font-family: var(--font-ui);
}

.sj-form > * {
	grid-column: 1 / -1;
	margin: 0;
}

.sj-form .sj-field--half {
	grid-column: span 1;
}

.sj-form label {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 0.92rem;
	font-weight: 500;
}

.sj-form .sj-optional {
	font-weight: 400;
	opacity: 0.75;
}

.sj-form input[type="text"],
.sj-form input[type="email"],
.sj-form input[type="tel"],
.sj-form textarea {
	display: block;
	width: 100%;
	padding: 0.8rem 0.9rem;
	border: 1px solid #8794a3;
	border-radius: var(--radius);
	background: var(--white);
	color: var(--ink);
	font: inherit;
	font-size: 1rem;
	line-height: 1.4;
}

.sj-form textarea {
	min-height: 9rem;
	resize: vertical;
}

.sj-form input[type="file"] {
	display: block;
	width: 100%;
	font: inherit;
	font-size: 0.92rem;
}

.sj-form input:focus-visible,
.sj-form textarea:focus-visible {
	outline: 3px solid var(--rosso);
	outline-offset: 1px;
}

.sj-form__hint,
.sj-form__privacy {
	font-size: 0.85rem;
	line-height: 1.5;
	opacity: 0.85;
}

.sj-form__hint {
	display: block;
	margin-top: 0.4rem;
}

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

.sj-form__notice {
	padding: 0.9rem 1.1rem;
	border-left: 4px solid var(--rosso);
	border-radius: var(--radius);
	background: var(--white);
	color: var(--ink);
	font-size: 0.98rem;
	line-height: 1.5;
}

.sj-form__notice.is-sent {
	border-left-color: var(--verde);
}

.sj-panel {
	padding: clamp(1.5rem, 3vw, 2.25rem);
	border: 1px solid var(--mist);
	border-radius: var(--radius);
	background: var(--white);
}

@media (max-width: 540px) {
	.sj-form .sj-field--half {
		grid-column: 1 / -1;
	}
}

/* ------------------------------------------------------------------
   11. Szybkie pytanie i stopka
   ------------------------------------------------------------------ */
.quick {
	padding: var(--band-y) var(--gutter);
	background: var(--ink);
	color: var(--paper);
}

.quick__inner {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 2rem clamp(2rem, 6vw, 5rem);
	max-width: var(--wrap);
	margin-inline: auto;
}

.quick h2 {
	color: var(--white);
}

.quick a:hover {
	color: var(--white);
}

.quick .sj-btn {
	justify-self: start;
}

.site-footer {
	padding: 2.5rem var(--gutter);
	background: var(--ink);
	color: var(--paper);
	font-family: var(--font-ui);
	font-size: 0.92rem;
	line-height: 1.6;
}

.quick + .site-footer .site-footer__inner {
	padding-top: 2.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.quick + .site-footer {
	padding-top: 0;
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1.5rem 3rem;
	max-width: var(--wrap);
	margin-inline: auto;
}

.site-footer__brand {
	color: var(--white);
	font-size: 1.15rem;
	font-weight: 500;
	letter-spacing: -0.02em;
}

.site-footer__note {
	max-width: 30rem;
	margin-top: 0.4rem;
	opacity: 0.85;
}

.site-footer ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__links {
	display: grid;
	gap: 0.75rem;
	align-content: start;
}

.site-footer a {
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--white);
	text-decoration: underline;
}

@media (max-width: 860px) {
	.quick__inner {
		grid-template-columns: 1fr;
	}
}

/* ------------------------------------------------------------------
   12. Wpisy, wyszukiwanie, 404
   ------------------------------------------------------------------ */
.post-list {
	max-width: 44rem;
	margin-inline: auto;
	padding: var(--band-y) var(--gutter);
	box-sizing: content-box;
}

.post-list article + article {
	margin-top: 2.5rem;
	padding-top: 2.5rem;
	border-top: 1px solid var(--mist);
}

.post-list h2 a {
	text-decoration: none;
}

.post-list .nav-links {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 3rem;
	font-family: var(--font-ui);
	font-size: 0.95rem;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	* {
		transition: none !important;
	}
}
