/* ==========================================================================
   BNS UX Portfolio – wygląd bloków (strona i edytor).
   ========================================================================== */

:root {
	--bns-ink: #101010;
	--bns-yellow: #fac900;
	--bns-yellow-soft: #fdc435;
	--bns-teal: #297082;
	--bns-mint: #ebf6f6;
	--bns-mist: #f5f5f5;
	--bns-pill: #f2f2f7;
	--bns-orange: #c4611a;
	--bns-font: var(--wp--preset--font-family--work-sans, "Work Sans", system-ui, sans-serif);
	--bns-font-head: var(--wp--preset--font-family--montserrat, Montserrat, system-ui, sans-serif);
	--bns-radius-card: 16px;
	--bns-shadow-soft: 0 1px 25px rgba(0, 0, 0, 0.15);
	--bns-shadow-strong: 0 2px 17px rgba(0, 0, 0, 0.2);
	--bns-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Automatyczna numeracja nagłówków sekcji w obrębie jednej strony. */
.entry-content,
.is-root-container,
.editor-styles-wrapper .is-root-container {
	counter-reset: bns-section;
}

/* Akapity w case study domyślnie nie szersze niż czytelna długość wiersza */
.bns-case__content > p {
	max-width: 1244px;
}

@font-face {
	font-family: "Raleway BNS";
	font-weight: 800;
	font-style: normal;
	font-display: swap;
	src: url("../fonts/raleway-extrabold-qmark.woff") format("woff");
	unicode-range: U+003F;
}

/* --------------------------------------------------------------------------
   Powitanie (hero)
   ----------------------------------------------------------------------- */

.bns-hero {
	padding: clamp(32px, 5vw, 56px) 0 0;
}

.bns-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
	gap: 32px;
}

.bns-hero.has-media .bns-hero__inner {
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
}

.bns-hero__emoji {
	margin: 0 0 4px;
	font-size: calc(clamp(30px, 3.4vw, 42px) * var(--bns-type, 1));
	line-height: 1.2;
}

.bns-hero__title {
	margin: 0 0 clamp(20px, 2.5vw, 34px);
	font: 700 calc(clamp(40px, 5.6vw, 68px) * var(--bns-type, 1))/1.2 var(--bns-font-head);
	letter-spacing: 0.02em;
	color: #151413;
}

.bns-highlight,
mark.bns-highlight {
	position: relative;
	z-index: 0;
	background: none;
	color: inherit;
	white-space: nowrap;
}

.bns-highlight::after {
	content: "";
	position: absolute;
	z-index: -1;
	left: -0.04em;
	right: -0.18em;
	bottom: -0.2em;
	height: 0.3em;
	background: var(--bns-yellow);
}

.bns-hero__intro {
	max-width: 34em;
	margin: 0 0 clamp(20px, 2.4vw, 32px);
	font: 400 calc(clamp(17px, 1.6vw, 20px) * var(--bns-type, 1))/1.5 var(--bns-font);
	color: var(--bns-ink);
}

.bns-hero__social {
	display: flex;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bns-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 8px;
	color: #6b6b70;
	transition: color 0.2s, background-color 0.2s;
}

.bns-social-link:hover {
	color: var(--bns-teal);
	background: var(--bns-mint);
}

.bns-hero__media {
	display: flex;
	justify-content: flex-end;
}

.bns-hero__img {
	display: block;
	width: 100%;
	max-width: 760px;
	height: auto;
}

@media (max-width: 900px) {
	.bns-hero.has-media .bns-hero__inner {
		grid-template-columns: 1fr;
	}

	.bns-hero__media {
		justify-content: center;
	}

	.bns-hero__img {
		max-width: 560px;
	}
}

/* --------------------------------------------------------------------------
   Tagi / pigułki
   ----------------------------------------------------------------------- */

.bns-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bns-tags > li {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 6px 20px;
	border-radius: 999px;
	font: 500 calc(13px * var(--bns-type, 1))/1.4 var(--bns-font);
	color: #000;
}

.bns-tags--grey > li {
	background: var(--bns-pill);
}

.bns-tags--mint > li {
	background: var(--bns-mint);
}

.bns-tags--mist > li {
	background: var(--bns-mist);
	font-weight: 600;
	font-size: calc(clamp(14px, 1.3vw, 17px) * var(--bns-type, 1));
	min-height: 50px;
	padding: 10px 28px;
}

.bns-tags--outline > li {
	border: 2.5px solid var(--bns-yellow-soft);
	padding: 6px 22px;
}

.bns-tags--outline-thin > li {
	border: 1px solid var(--bns-yellow-soft);
}

.bns-tags--outline-large > li {
	border: 3px solid var(--bns-yellow-soft);
	font-weight: 600;
	font-size: calc(clamp(14px, 1.3vw, 17px) * var(--bns-type, 1));
	min-height: 50px;
	padding: 10px 28px;
}

.bns-tags-block.is-align-center .bns-tags,
.bns-tags-block.is-align-center .bns-tags-block__title {
	justify-content: center;
	text-align: center;
}

.bns-tags-block__title {
	margin: 0 0 18px;
}

/* Nagłówek z kropką (jak „• Praca”, „• Umiejętności”) */
.bns-bullet-heading {
	display: flex;
	align-items: baseline;
	gap: 14px;
	font: 600 calc(clamp(20px, 2vw, 24px) * var(--bns-type, 1))/1.5 var(--bns-font) !important;
	color: var(--bns-ink);
}

.bns-bullet-heading::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
	transform: translateY(-0.2em);
}

/* --------------------------------------------------------------------------
   Nagłówek sekcji z numerem
   ----------------------------------------------------------------------- */

.bns-section-heading {
	display: flex;
	align-items: center;
	gap: clamp(10px, 1.2vw, 16px);
	margin-top: clamp(48px, 7vw, 100px);
	margin-bottom: clamp(20px, 2.5vw, 32px);
	font: 700 calc(clamp(24px, 2.6vw, 34px) * var(--bns-type, 1))/1.25 var(--bns-font-head);
}

.bns-section-heading.has-number:not(.has-manual-number) {
	counter-increment: bns-section;
}

.bns-section-heading__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: clamp(48px, 5vw, 72px);
	height: clamp(48px, 5vw, 72px);
	border-radius: 50%;
	background: var(--bns-yellow-soft);
	color: #fff;
	font: 700 calc(clamp(22px, 2.4vw, 34px) * var(--bns-type, 1))/1 var(--bns-font-head);
}

.bns-section-heading:not(.has-manual-number) .bns-section-heading__num::before {
	content: counter(bns-section);
}

/* Na ciemnym tle */
.has-night-background-color .bns-section-heading,
.has-black-background-color .bns-section-heading,
.has-ink-background-color .bns-section-heading {
	color: #fff;
}

/* --------------------------------------------------------------------------
   Karta
   ----------------------------------------------------------------------- */

.bns-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
	border-radius: var(--bns-radius-card);
	overflow: hidden;
	isolation: isolate;
}

.bns-card--pad-s { --bns-pad-y: clamp(18px, 2vw, 24px); padding: var(--bns-pad-y); }
.bns-card--pad-m { --bns-pad-y: clamp(24px, 3vw, 40px); padding: var(--bns-pad-y); }
.bns-card--pad-l { --bns-pad-y: clamp(28px, 4vw, 56px); padding: var(--bns-pad-y) clamp(24px, 5vw, 72px); }

.bns-card--white {
	background: #fff;
	box-shadow: var(--bns-shadow-soft);
}

.bns-card--white-strong {
	background: #fff;
	box-shadow: var(--bns-shadow-strong);
	border-radius: clamp(24px, 3vw, 44px);
}

.bns-card--outline {
	background: #fff;
	border: 4px solid var(--bns-yellow-soft);
	border-radius: clamp(24px, 3vw, 40px);
}

.bns-card--outline-dark {
	background: transparent;
	border: 4px solid var(--bns-yellow-soft);
	border-radius: clamp(24px, 3vw, 40px);
	color: #fff;
}

.bns-card--outline-grey {
	background: #fff;
	border: 1px solid #8e8e93;
	border-radius: clamp(24px, 3vw, 40px);
}

.bns-card--mint {
	background: var(--bns-mint);
}

.bns-card--dark {
	background: var(--bns-ink);
	color: #fff;
	border-radius: clamp(24px, 3vw, 48px);
}

.bns-card--dark-soft {
	background: #181818;
	color: #fff;
	box-shadow: 0 1px 25px rgba(0, 0, 0, 0.3);
}

.bns-card--transparent {
	background: transparent;
	box-shadow: none;
}

.bns-card--dark :where(h1, h2, h3, h4, h5, h6, p, li),
.bns-card--dark-soft :where(h1, h2, h3, h4, h5, h6, p, li),
.bns-card--outline-dark :where(h1, h2, h3, h4, h5, h6, p, li) {
	color: inherit;
}

.bns-card__content {
	position: relative;
	z-index: 1;
	min-width: 0;
}

.bns-card__content > :first-child { margin-top: 0; }
.bns-card__content > :last-child { margin-bottom: 0; }

.bns-card__number {
	position: relative;
	z-index: 1;
	margin: 0;
	font: 700 calc(clamp(26px, 2.6vw, 34px) * var(--bns-type, 1))/1.2 var(--bns-font-head);
}

.bns-card.is-number-corner .bns-card__number {
	position: absolute;
	top: clamp(14px, 1.6vw, 22px);
	right: clamp(18px, 2.4vw, 34px);
	z-index: 0;
	font-size: calc(clamp(44px, 5vw, 64px) * var(--bns-type, 1));
	color: #303131;
}

.bns-card--white.is-number-corner .bns-card__number {
	color: #dcdcdc;
}

.bns-card--mint.is-number-corner .bns-card__number {
	color: #cde0e0;
}

.bns-card__watermark {
	position: absolute;
	z-index: 0;
	right: -0.06em;
	bottom: -0.28em;
	font: 800 calc(clamp(200px, 26vw, 380px) * var(--bns-type, 1))/1 var(--bns-font-head);
	color: var(--bns-mint);
	pointer-events: none;
	user-select: none;
}

.bns-card__watermark:not(:empty) + * {
	position: relative;
}

.bns-card__icon-wrap {
	position: relative;
	z-index: 1;
	line-height: 0;
}

.bns-card__icon,
.bns-card__icon-wrap svg {
	display: block;
	height: auto;
	max-width: 100%;
}

.bns-card__icon-svg {
	display: inline-block;
	line-height: 0;
	color: var(--bns-ink);
}

.bns-card--dark .bns-card__icon-svg,
.bns-card--dark-soft .bns-card__icon-svg,
.bns-card--outline-dark .bns-card__icon-svg {
	color: #fff;
}

.bns-card.is-icon-top-center .bns-card__icon-wrap {
	display: flex;
	justify-content: center;
}

.bns-card.is-icon-left {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: start;
	column-gap: clamp(20px, 3vw, 48px);
}

.bns-card.is-icon-left.has-number .bns-card__number {
	grid-column: 1 / -1;
}

.bns-card.is-icon-left-bottom {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: end;
	column-gap: clamp(20px, 3vw, 48px);
}

.bns-card.is-icon-left-bottom .bns-card__icon-wrap {
	align-self: end;
	/* ikona stoi na dolnej linii ramki */
	margin-bottom: calc(-1 * var(--bns-pad-y, 32px));
	line-height: 0;
}

.bns-card.is-icon-left-bottom .bns-card__icon-wrap svg {
	display: block;
}

.bns-card.is-icon-left-bottom .bns-card__content {
	align-self: center;
	padding-bottom: 8px;
}

@media (max-width: 600px) {
	.bns-card.is-icon-left,
	.bns-card.is-icon-left-bottom {
		grid-template-columns: 1fr;
		row-gap: 16px;
	}

	.bns-card.is-icon-left-bottom .bns-card__icon-wrap {
		order: 2;
		margin-bottom: calc(-1 * var(--bns-pad-y, 32px));
	}
}

.bns-card.has-text-align-center {
	text-align: center;
}

.bns-card.has-text-align-center .bns-card__icon-wrap {
	display: flex;
	justify-content: center;
}

/* Dekoracje kart */
.bns-card.has-deco-yellow-shape::after {
	content: "";
	position: absolute;
	z-index: 0;
	right: 6%;
	top: 50%;
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: var(--bns-yellow-soft);
	transform: translateY(-50%);
	box-shadow: -40px 70px 0 -18px rgba(253, 196, 53, 0.55), 30px -60px 0 -26px rgba(253, 196, 53, 0.7);
}

.bns-card.has-deco-yellow-shape > .bns-card__content {
	position: relative;
	z-index: 1;
	padding-right: clamp(0px, 16%, 180px);
}

@media (max-width: 600px) {
	.bns-card.has-deco-yellow-shape > .bns-card__content {
		padding-right: 0;
		padding-top: 56px;
	}

	.bns-card.has-deco-yellow-shape::after {
		top: 28px;
		right: 28px;
		width: 44px;
		height: 44px;
		transform: none;
		box-shadow: -26px 22px 0 -12px rgba(253, 196, 53, 0.55);
	}
}

.bns-card.has-deco-exclamation {
	overflow: visible;
}

.bns-card.has-deco-exclamation::after {
	content: "";
	position: absolute;
	z-index: 0;
	right: 4%;
	top: clamp(-90px, -6vw, -40px);
	width: clamp(44px, 7.5vw, 104px);
	aspect-ratio: 140 / 420;
	background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 420'%3E%3Cpath fill='%23FDC435' d='M10 22C8 10 16 0 28 0h84c12 0 20 10 18 22L98 262c-2 14-12 22-28 22s-26-8-28-22z'/%3E%3Ccircle fill='%23FDC435' cx='70' cy='366' r='46'/%3E%3C/svg%3E");
	pointer-events: none;
}

.bns-card.has-deco-exclamation > .bns-card__content {
	position: relative;
	z-index: 1;
	padding-right: clamp(0px, 12%, 150px);
}

@media (max-width: 600px) {
	.bns-card.has-deco-exclamation > .bns-card__content {
		padding-right: 44px;
	}

	.bns-card.has-deco-exclamation::after {
		top: -24px;
		right: 14px;
		width: 30px;
	}
}

.bns-card.has-deco-checkmark::before {
	content: "";
	position: absolute;
	z-index: 0;
	top: 24px;
	left: 8px;
	width: 260px;
	height: 260px;
	background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 13.5l5.5 5.5L21 6.5' fill='none' stroke='%23d8e9eb' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	opacity: 0.9;
}

.bns-card.has-deco-checkmark .bns-card__watermark {
	left: 16px;
	right: auto;
	bottom: auto;
	top: 4px;
	color: #fff;
	text-shadow: 0 0 1px rgba(41, 112, 130, 0.12);
}

/* --------------------------------------------------------------------------
   Siatka kart
   ----------------------------------------------------------------------- */

.bns-cards-grid {
	display: grid;
	gap: clamp(20px, 2.5vw, 36px);
	align-items: stretch;
}

.bns-cards-grid--gap-s { gap: 16px; }
.bns-cards-grid--gap-l { gap: clamp(24px, 3.5vw, 52px); }

.bns-cards-grid--cols-1 { grid-template-columns: 1fr; }
.bns-cards-grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bns-cards-grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bns-cards-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.bns-cards-grid.is-staggered {
	align-items: start;
}

.bns-cards-grid.is-staggered > :nth-child(3n + 2) {
	margin-top: clamp(40px, 6vw, 110px);
}

.bns-cards-grid.is-staggered > :nth-child(3n + 3) {
	margin-top: clamp(20px, 3vw, 60px);
}

@media (max-width: 1080px) {
	.bns-cards-grid--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bns-cards-grid--cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
	.bns-cards-grid--cols-2,
	.bns-cards-grid--cols-3,
	.bns-cards-grid--cols-4 {
		grid-template-columns: 1fr;
	}

	.bns-cards-grid.is-staggered > * {
		margin-top: 0 !important;
	}
}

/* Edytor: siatka kart działa na wrapperze InnerBlocks */
.bns-cards-grid > .block-editor-inner-blocks > .block-editor-block-list__layout {
	display: contents;
}

/* --------------------------------------------------------------------------
   O mnie – tekst i zdjęcie
   ----------------------------------------------------------------------- */

.bns-about {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	align-items: start;
	gap: clamp(32px, 5vw, 72px);
}

.bns-about--img-left {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
}

.bns-about--img-left .bns-about__media {
	order: -1;
}

.bns-about__text {
	min-width: 0;
}

.bns-about__text > :first-child {
	margin-top: 0;
}

.bns-about__media {
	position: relative;
	margin: clamp(0px, 1.5vw, 18px) 0 0;
	display: flex;
	justify-content: center;
}

.bns-about.has-shape .bns-about__media::before {
	content: "";
	position: absolute;
	z-index: 0;
	top: 30%;
	left: 0;
	width: 200vw;
	height: 59%;
	border-radius: 86px 0 0 86px;
	background: var(--bns-mint);
}

.bns-about--img-left.has-shape .bns-about__media::before {
	left: auto;
	right: 0;
	border-radius: 0 86px 86px 0;
}

.bns-about__img {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	max-width: 500px;
	height: auto;
}

@media (max-width: 860px) {
	.bns-about,
	.bns-about--img-left {
		grid-template-columns: 1fr;
	}

	.bns-about__media {
		order: -1;
		max-width: 420px;
		margin: 0 auto;
	}
}

/* --------------------------------------------------------------------------
   Oś czasu
   ----------------------------------------------------------------------- */

.bns-timeline {
	margin-bottom: clamp(36px, 4vw, 56px);
}

.bns-timeline__title {
	margin: 0 0 18px;
}

.bns-timeline__list {
	position: relative;
	margin: 0;
	padding: 0 0 0 clamp(36px, 4vw, 56px);
	list-style: none;
}

.bns-timeline__list::before {
	content: "";
	position: absolute;
	left: 9px;
	top: 12px;
	bottom: 24px;
	width: 1.5px;
	background: var(--bns-yellow-soft);
}

.bns-timeline__item {
	position: relative;
	padding-bottom: clamp(26px, 3vw, 40px);
}

.bns-timeline__item::before {
	content: "";
	position: absolute;
	left: calc(-1 * clamp(36px, 4vw, 56px) + 1px);
	top: 5px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--bns-yellow-soft);
}

.bns-timeline__label {
	margin: 0;
	font: 400 calc(clamp(15px, 1.4vw, 18px) * var(--bns-type, 1))/1.4 var(--bns-font);
}

.bns-timeline__date {
	margin: 0;
	font: 400 calc(clamp(15px, 1.4vw, 18px) * var(--bns-type, 1))/1.5 var(--bns-font);
}

.bns-timeline__role {
	margin: 2px 0 4px;
	font: 600 calc(clamp(19px, 1.9vw, 22px) * var(--bns-type, 1))/1.3 var(--bns-font) !important;
	color: var(--bns-ink);
}

.bns-timeline__org {
	margin: 0 0 10px;
	font: 400 calc(16px * var(--bns-type, 1))/1.4 var(--bns-font);
}

.bns-timeline__content {
	font-size: calc(14px * var(--bns-type, 1));
	line-height: 1.5;
	max-width: 46em;
}

.bns-timeline__content ul {
	margin: 0;
	padding-left: 1.2em;
}

.bns-timeline__content li + li {
	margin-top: 2px;
}

.bns-timeline__content > :last-child {
	margin-bottom: 0;
}

.bns-timeline__item:last-child {
	padding-bottom: 0;
}

/* --------------------------------------------------------------------------
   Statystyka (liczba w kole na turkusowym pasie)
   ----------------------------------------------------------------------- */

.bns-stat {
	position: relative;
	display: flex;
	align-items: center;
	gap: clamp(16px, 2vw, 32px);
	min-height: 164px;
	margin: 0;
	padding: 10px clamp(16px, 2vw, 32px) 10px 10px;
	border-radius: 84px 0 0 84px;
	background: var(--bns-teal);
	color: #fff;
}

.bns-stat.is-bleed::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 100%;
	width: 100vw;
	background: inherit;
}

.bns-stat--left {
	flex-direction: row-reverse;
	padding: 10px 10px 10px clamp(16px, 2vw, 32px);
	border-radius: 0 84px 84px 0;
}

.bns-stat--left.is-bleed::after {
	left: auto;
	right: 100%;
}

.bns-stat__circle {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 144px;
	height: 144px;
	margin: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--bns-ink);
	text-align: center;
}

.bns-stat__number {
	font: 700 calc(clamp(40px, 4.4vw, 54px) * var(--bns-type, 1))/1 var(--bns-font-head);
}

.bns-stat__label {
	font: 400 calc(clamp(16px, 1.6vw, 20px) * var(--bns-type, 1))/1.4 var(--bns-font);
}

.bns-stat__items {
	margin: 0;
	padding-left: 1.2em;
	font: 400 calc(clamp(16px, 1.6vw, 20px) * var(--bns-type, 1))/1.5 var(--bns-font);
}

@media (max-width: 600px) {
	.bns-stat,
	.bns-stat--left {
		flex-direction: column;
		align-items: flex-start;
		padding: 20px;
		border-radius: 32px;
	}

	.bns-stat.is-bleed::after {
		display: none;
	}

	.bns-stat__circle {
		width: 120px;
		height: 120px;
	}
}

/* --------------------------------------------------------------------------
   Korzyści (ptaszek)
   ----------------------------------------------------------------------- */

.bns-benefits {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	gap: clamp(16px, 2.5vw, 34px);
	align-items: start;
}

.bns-benefits__icon {
	color: var(--bns-yellow-soft);
	line-height: 0;
}

.bns-benefits__content > :first-child { margin-top: 0; }
.bns-benefits__content > :last-child { margin-bottom: 0; }

.bns-benefits__content p:first-child {
	font-weight: 600;
	margin-bottom: 6px;
}

.bns-benefits__content ul {
	margin: 0;
	padding-left: 1.2em;
}

/* --------------------------------------------------------------------------
   Dwie kolumny z pasem tła
   ----------------------------------------------------------------------- */

.bns-split {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(28px, 5vw, 72px);
	align-items: center;
	margin-top: clamp(40px, 6vw, 96px);
	margin-bottom: clamp(40px, 6vw, 96px);
}

.bns-split.is-valign-top { align-items: start; }
.bns-split.is-valign-bottom { align-items: end; }

.bns-split--ratio-40 { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.bns-split--ratio-60 { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }

.bns-split--media-right > .bns-split__col--media,
.bns-split--media-right > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="bnsux/split-col"]:first-child {
	order: 2;
}

.bns-split > .block-editor-inner-blocks {
	display: contents;
}

.bns-split > .block-editor-inner-blocks > .block-editor-block-list__layout {
	display: contents;
}

.bns-split__col {
	position: relative;
	min-width: 0;
}

.bns-split__col > :first-child { margin-top: 0; }
.bns-split__col > :last-child { margin-bottom: 0; }

.bns-split__col--media {
	z-index: 0;
}

.bns-split__col--media > * {
	position: relative;
	z-index: 1;
}

/* Pas tła sięgający krawędzi ekranu po stronie grafiki */
.bns-split.has-band .bns-split__col--media::before {
	content: "";
	position: absolute;
	z-index: 0;
	top: 50%;
	height: 62%;
	min-height: 200px;
	transform: translateY(-50%);
	width: calc(100% + 50vw);
	right: 0;
	border-radius: 0 84px 84px 0;
	background: var(--bns-mint);
}

/* Grafiki na pasie (np. telefony): wysokość jak w projekcie; wyrównane do zewnętrznej krawędzi treści
   (grafika po lewej – do lewej, po prawej – do prawej), jak w Figmie */
.bns-split.has-band .bns-split__col--media .wp-block-image {
	text-align: left;
}

.bns-split--media-right.has-band .bns-split__col--media .wp-block-image {
	text-align: right;
}

.bns-split.has-band .bns-split__col--media .wp-block-image img {
	width: auto;
	max-width: 100%;
	max-height: clamp(280px, 34vw, 460px);
	object-fit: contain;
}

.bns-split--media-right.has-band .bns-split__col--media::before {
	right: auto;
	left: 0;
	border-radius: 84px 0 0 84px;
}

.bns-split--band-mist .bns-split__col--media::before { background: var(--bns-mist); }
.bns-split--band-teal .bns-split__col--media::before { background: var(--bns-teal); }
.bns-split--band-yellow .bns-split__col--media::before { background: #fff3c4; }

@media (max-width: 800px) {
	.bns-split,
	.bns-split--ratio-40,
	.bns-split--ratio-60 {
		grid-template-columns: 1fr;
	}

	.bns-split--media-right > .bns-split__col--media {
		order: 0;
	}

	.bns-split.has-band .bns-split__col--media::before {
		width: 200vw;
		right: auto;
		left: 50%;
		transform: translate(-50%, -50%);
		border-radius: 0;
		height: 70%;
	}
}

/* --------------------------------------------------------------------------
   Przed / Po (ekrany obok siebie)
   ----------------------------------------------------------------------- */

.bns-ba {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: clamp(10px, 2vw, 24px);
	max-width: 620px;
}

.bns-ba__item {
	margin: 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.bns-ba__label {
	order: -1;
	font: 500 calc(clamp(13px, 1.3vw, 17px) * var(--bns-type, 1))/1.25 var(--bns-font-head);
	text-transform: uppercase;
	letter-spacing: 0.02em;
	text-align: center;
}

.bns-ba__label--after {
	color: var(--bns-teal);
}

.bns-ba__zoom {
	display: block;
	line-height: 0;
	border-radius: 18px;
	cursor: zoom-in;
}

.bns-ba__img {
	display: block;
	width: 100%;
	max-width: 240px;
	height: auto;
	border: 1px solid rgba(0, 0, 0, 0.8);
	border-radius: 18px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.bns-ba__arrow {
	margin-top: 32px;
	color: var(--bns-orange);
}

.bns-ba--none .bns-ba__img {
	max-width: 260px;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.bns-ba--none .bns-ba__zoom {
	border-radius: 0;
}

/* --------------------------------------------------------------------------
   Ekran w laptopie (przewijany)
   ----------------------------------------------------------------------- */

.bns-device {
	position: relative;
	margin: clamp(28px, 4vw, 56px) auto;
	max-width: 1312px;
}

.bns-device__toolbar {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px 20px;
	margin-bottom: 16px;
}

.bns-device__toggle {
	display: inline-flex;
	gap: 6px;
	padding: 4px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.bns-device__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 6px 18px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #555;
	font: 700 calc(clamp(16px, 1.8vw, 22px) * var(--bns-type, 1))/1 var(--bns-font-head);
	cursor: pointer;
}

.bns-device__btn.is-active,
.bns-device__btn[aria-pressed="true"] {
	background: var(--bns-ink);
	color: #fff;
}

.bns-device__state {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	margin: 0;
}

.bns-device__chip {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 6px 18px;
	border-radius: 999px;
	background: #d8a448;
	color: #000;
	font: 500 calc(14px * var(--bns-type, 1))/1 var(--bns-font);
}

.bns-device__stage {
	position: relative;
}

.bns-device__frame {
	position: relative;
	width: min(100%, var(--bns-laptop, 940px));
	margin: 0 auto;
	aspect-ratio: 1560 / 950;
}

.bns-device__laptop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 2;
}

.bns-device__screen {
	position: absolute;
	z-index: 1;
	left: 11.8%;
	top: 4.89%;
	width: 77.42%;
	height: 79.7%;
	overflow-y: auto;
	overflow-x: hidden;
	background: #fff;
	scrollbar-width: thin;
	overscroll-behavior: contain;
}

.bns-device__screen:focus-visible {
	outline: 3px solid var(--bns-teal);
	outline-offset: 2px;
	z-index: 3;
}

.bns-device__layer[hidden] {
	display: none;
}

.bns-device__shot {
	display: block;
	width: 100%;
	height: auto;
}

.bns-device__caption {
	margin-top: 12px;
	text-align: center;
	font-size: calc(14px * var(--bns-type, 1));
	color: #5c5c60;
}

/* --------------------------------------------------------------------------
   Prototyp Figmy
   ----------------------------------------------------------------------- */

.bns-figma {
	margin: clamp(28px, 4vw, 56px) 0;
}

.bns-figma__frame {
	position: relative;
	width: 100%;
	border-radius: 16px;
	overflow: hidden;
	background: #1e1e1e;
}

.bns-figma__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.bns-figma__caption {
	margin-top: 10px;
	font-size: calc(14px * var(--bns-type, 1));
}

.bns-figma__caption a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.bns-figma--phone .bns-figma__frame {
	max-width: 420px;
	margin: 0 auto;
	border-radius: 36px;
	border: 10px solid #111;
}

/* ==========================================================================
   Style bloków WordPressa (warianty w panelu „Style”)
   ========================================================================== */

/* Akapit */
.is-style-lead {
	font: 600 calc(clamp(22px, 2.6vw, 36px) * var(--bns-type, 1))/1.5 var(--bns-font);
}

.is-style-eyebrow,
h1.is-style-eyebrow,
h2.is-style-eyebrow,
h3.is-style-eyebrow,
h4.is-style-eyebrow {
	margin-bottom: 4px;
	font: 500 calc(clamp(14px, 1.3vw, 17px) * var(--bns-type, 1))/1.3 var(--bns-font-head) !important;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--bns-teal);
}

.is-style-badge {
	display: inline-block;
	width: fit-content;
	padding: 6px 28px;
	border-radius: 34px;
	background: #ffd52f;
	color: #242424;
	font: 600 calc(clamp(16px, 1.6vw, 20px) * var(--bns-type, 1))/1.3 var(--bns-font);
}

.is-style-big-number {
	font: 700 calc(clamp(36px, 4.4vw, 54px) * var(--bns-type, 1))/1.1 var(--bns-font-head) !important;
	color: #8d8d8d;
	margin: 0;
}

.is-style-quote {
	font-style: italic;
	font-weight: 300;
}

.is-style-small-caps {
	font: 500 calc(clamp(13px, 1.2vw, 16px) * var(--bns-type, 1))/1.4 var(--bns-font-head);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

/* Nagłówek */
h1.is-style-yellow,
h2.is-style-yellow,
h3.is-style-yellow,
h4.is-style-yellow {
	text-align: center;
	font-family: var(--bns-font);
	font-weight: 600;
}

h1.is-style-yellow::after,
h2.is-style-yellow::after,
h3.is-style-yellow::after,
h4.is-style-yellow::after {
	content: "";
	display: block;
	width: min(100%, 240px);
	height: 6px;
	margin: 12px auto 0;
	border-radius: 3px;
	background: var(--bns-yellow-soft);
}

h1.is-style-subtle,
h2.is-style-subtle,
h3.is-style-subtle,
h4.is-style-subtle {
	font-family: var(--bns-font);
	font-weight: 600;
	color: var(--bns-teal);
}

/* Listy */
ul.is-style-checks,
ul.is-style-dots,
ul.is-style-plain {
	list-style: none;
	padding-left: 0;
}

ul.is-style-checks > li,
ul.is-style-dots > li {
	position: relative;
	padding-left: 34px;
}

ul.is-style-checks > li + li,
ul.is-style-dots > li + li {
	margin-top: 8px;
}

ul.is-style-checks > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--bns-yellow-soft) no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 7' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

ul.is-style-dots > li::before {
	content: "";
	position: absolute;
	left: 8px;
	top: 0.55em;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--bns-yellow-soft);
}

.is-style-spaced > li + li {
	margin-top: 1.1em;
}

/* Grupy */
.wp-block-group.is-style-info-panel {
	padding: clamp(24px, 3vw, 36px) clamp(20px, 6vw, 96px);
	border: 4px solid var(--bns-teal);
	border-radius: clamp(28px, 3.5vw, 48px);
	background: var(--bns-mint);
}

.wp-block-group.is-style-info-panel p {
	margin: 0;
}

.wp-block-group.is-style-callout {
	padding: clamp(24px, 3vw, 44px) clamp(20px, 4vw, 64px);
	border: 4px solid var(--bns-yellow-soft);
	border-radius: clamp(24px, 3vw, 40px);
}

.wp-block-group.is-style-card {
	padding: clamp(24px, 3vw, 40px);
	border-radius: 16px;
	background: #fff;
	box-shadow: var(--bns-shadow-soft);
}

.wp-block-group.is-style-rounded-top {
	border-radius: clamp(40px, 7vw, 100px) clamp(40px, 7vw, 100px) 0 0;
	padding-top: clamp(48px, 7vw, 108px);
	padding-bottom: clamp(48px, 7vw, 108px);
}

.wp-block-group.is-style-next-section {
	background: var(--bns-mist);
}

.wp-block-group.is-style-band-right,
.wp-block-group.is-style-band-left {
	position: relative;
	isolation: isolate;
	padding-top: clamp(24px, 3vw, 40px);
	padding-bottom: clamp(24px, 3vw, 40px);
}

.wp-block-group.is-style-band-right::before,
.wp-block-group.is-style-band-left::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: 0;
	bottom: 0;
	width: 100vw;
	background: var(--bns-band, var(--bns-mint));
}

.wp-block-group.is-style-band-right::before {
	left: 0;
	border-radius: 84px 0 0 84px;
}

.wp-block-group.is-style-band-left::before {
	right: 0;
	border-radius: 0 84px 84px 0;
}

.wp-block-group.is-style-band-right.has-background,
.wp-block-group.is-style-band-left.has-background {
	background: transparent !important;
}

.wp-block-group.is-style-rings {
	position: relative;
	isolation: isolate;
}

.wp-block-group.is-style-rings::after {
	content: "";
	position: absolute;
	z-index: -1;
	right: clamp(-120px, -6vw, -20px);
	top: 50%;
	width: clamp(200px, 30vw, 540px);
	aspect-ratio: 1;
	transform: translateY(-40%);
	background: no-repeat center / contain url("../icons/rings.svg");
	pointer-events: none;
}

/* Kolumny */
.wp-block-columns.is-style-dividers > .wp-block-column + .wp-block-column {
	border-left: 1px solid rgba(0, 0, 0, 0.8);
	padding-left: clamp(16px, 3vw, 40px);
}

.wp-block-columns.is-style-dividers > .wp-block-column p + p,
.wp-block-columns.is-style-dividers > .wp-block-column p + h3,
.wp-block-columns.is-style-dividers > .wp-block-column p + h4 {
	margin-top: 0;
}

.wp-block-columns.is-style-dividers hr,
.wp-block-columns.is-style-dividers .wp-block-separator {
	margin: 14px 0;
	border: 0;
	border-top: 1px solid rgba(0, 0, 0, 0.8);
	opacity: 1;
}

@media (max-width: 781px) {
	.wp-block-columns.is-style-dividers > .wp-block-column + .wp-block-column {
		border-left: 0;
		border-top: 1px solid rgba(0, 0, 0, 0.8);
		padding-left: 0;
		padding-top: 16px;
	}
}

.wp-block-columns.is-style-arrow {
	position: relative;
}

@media (min-width: 782px) {
	.wp-block-columns.is-style-arrow > .wp-block-column:first-child {
		position: relative;
	}

	.wp-block-columns.is-style-arrow > .wp-block-column:first-child::after {
		content: "";
		position: absolute;
		top: 50%;
		right: calc(-1 * var(--wp--style--block-gap, 2em) / 2 - 22px);
		width: 44px;
		height: 44px;
		transform: translateY(-50%);
		background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 12h17M14 6l6 6-6 6' fill='none' stroke='%23c4611a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	}
}

.wp-block-columns.is-style-stagger {
	align-items: flex-start !important;
}

@media (min-width: 782px) {
	.wp-block-columns.is-style-stagger > .wp-block-column:nth-child(2) {
		margin-top: clamp(40px, 6vw, 110px);
	}

	.wp-block-columns.is-style-stagger > .wp-block-column:nth-child(3) {
		margin-top: clamp(20px, 3vw, 60px);
	}
}

/* Obrazy */
.wp-block-image.is-style-cs-hero {
	margin-top: 0 !important;
	margin-bottom: clamp(40px, 5vw, 100px);
}

.wp-block-image.is-style-cs-hero img {
	width: 100%;
	height: auto;
	min-height: 240px;
	/* stała proporcja kadru (ok. 2,4 : 1) – telefon zawsze w całości i na środku, przy każdej szerokości ekranu */
	aspect-ratio: 2.38;
	max-height: none;
	object-fit: cover;
	object-position: 50% 10%;
}

.wp-block-image.is-style-phone img {
	border: 1px solid rgba(0, 0, 0, 0.8);
	border-radius: 18px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.wp-block-image.is-style-rounded img {
	border-radius: 18px;
}

.wp-block-image.is-style-shadow img {
	border-radius: 18px;
	box-shadow: 0 2px 17px rgba(0, 0, 0, 0.2);
}

.wp-block-image.is-style-circle img {
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 50%;
	background: #ffd52f;
}

/* Przyciski */
.wp-block-button.is-style-yellow .wp-block-button__link {
	border-color: var(--bns-yellow);
	background: var(--bns-yellow);
	color: #000;
}

.wp-block-button.is-style-dark .wp-block-button__link {
	border-color: var(--bns-ink);
	background: var(--bns-ink);
	color: #fff;
}

.wp-block-button__link:hover {
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

/* Separator */
.wp-block-separator.is-style-thin {
	border-top-width: 1px;
	opacity: 1;
}

/* Powiększanie obrazów – kursor i podpowiedź */
.bns-zoomable img {
	cursor: zoom-in;
}

/* Ciemne sekcje – czytelne kolory linków i list */
.has-night-background-color,
.has-black-background-color,
.has-ink-background-color,
.has-graphite-background-color {
	color: #f2f2f7;
}

.has-night-background-color :where(h1, h2, h3, h4, p, li, a),
.has-black-background-color :where(h1, h2, h3, h4, p, li, a),
.has-ink-background-color :where(h1, h2, h3, h4, p, li, a) {
	color: inherit;
}

/* Pełna szerokość – grupy z tłem mają wewnętrzny odstęp */
.wp-block-group.alignfull.has-background {
	padding-top: clamp(40px, 6vw, 96px);
	padding-bottom: clamp(40px, 6vw, 96px);
}

/* Odstępy między blokami w case study: zob. „Rytm pionowy case study” w site.css */

/* Długi zrzut ekranu (np. strona w wersji mobilnej) – przewijany w ramce o stałej wysokości. */
.wp-block-image.is-style-scroll {
	max-height: min(78vh, 720px);
	overflow-y: auto;
	overscroll-behavior: contain;
	border-radius: 18px;
	box-shadow: var(--wp--preset--shadow--card, 0 8px 24px rgba(0, 0, 0, 0.12));
	scrollbar-width: thin;
}

.wp-block-image.is-style-scroll img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0;
}

.wp-block-image.is-style-scroll:focus-visible {
	outline: 3px solid var(--bns-teal);
	outline-offset: 3px;
}

/* Doświadczenie: dwie kolumny (ścieżka | umiejętności) jak w Figmie – także na tablecie i w wąskim oknie; jedna kolumna dopiero na telefonie. */
@media (min-width: 520px) and (max-width: 781px) {
	.wp-block-columns.bns-cv-columns {
		flex-wrap: nowrap !important;
		gap: clamp(20px, 4vw, 32px);
	}

	.wp-block-columns.bns-cv-columns > .wp-block-column {
		flex-basis: 0 !important;
		flex-grow: 3;
		min-width: 0;
	}

	.wp-block-columns.bns-cv-columns > .wp-block-column + .wp-block-column {
		flex-grow: 2;
	}
}

/* Pytania z wywiadów – układ kart jak w Figmie, znaki zapytania w tle między kartami */
.bns-cards-grid.is-layout-questions {
	position: relative;
	isolation: isolate;
	gap: clamp(24px, 3vw, 40px);
	align-items: stretch;
}

.bns-cards-grid.is-layout-questions > .bns-card {
	position: relative;
	z-index: 1;
	margin: 0;
}

.bns-cards-grid.is-layout-questions .bns-card :is(h3, h4) {
	margin: 0 0 16px;
	font: 700 calc(clamp(15px, 1.2vw, 17px) * var(--bns-type, 1))/1.35 var(--bns-font-head);
}

.bns-cards-grid.is-layout-questions .bns-card p {
	margin: 0;
	font-size: calc(clamp(13px, 1vw, 14px) * var(--bns-type, 1));
	font-style: normal;
	font-weight: 400;
	line-height: 1.6;
}

.bns-qmark {
	position: absolute;
	z-index: 0;
	font: 800 calc(clamp(160px, 19vw, 280px) * var(--bns-type, 1))/1 "Raleway BNS", "Raleway", var(--bns-font-head);
	color: #dcefef;
	transform: translateX(-50%);
	pointer-events: none;
	user-select: none;
}

@media (min-width: 900px) {
	/* 5 kart: 3 w górnym rzędzie, 2 w dolnym przesunięte o pół karty */
	.bns-cards-grid--q5 {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	.bns-cards-grid--q5 > .bns-card:nth-child(1) { grid-column: 1 / span 2; grid-row: 1; }
	.bns-cards-grid--q5 > .bns-card:nth-child(2) { grid-column: 3 / span 2; grid-row: 1; }
	.bns-cards-grid--q5 > .bns-card:nth-child(3) { grid-column: 5 / span 2; grid-row: 1; }
	.bns-cards-grid--q5 > .bns-card:nth-child(4) { grid-column: 2 / span 2; grid-row: 2; }
	.bns-cards-grid--q5 > .bns-card:nth-child(5) { grid-column: 4 / span 2; grid-row: 2; }
	/* znaki zapytania jako elementy siatki (bez wysokości), wyśrodkowane na stykach kart */
	.bns-cards-grid--q5 .bns-qmark {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 0;
		height: 0;
		justify-self: center;
		align-self: center;
		transform: none;
		overflow: visible;
	}

	.bns-cards-grid--q5 .bns-qmark--1 { grid-column: 2 / span 2; grid-row: 1; }
	/* prawy znak – na przecięciu trzech kart (2, 3 i 5) */
	.bns-cards-grid--q5 .bns-qmark--2 { grid-column: 4 / span 2; grid-row: 1 / span 2; }
	.bns-cards-grid--q5 .bns-qmark--3 { grid-column: 3 / span 2; grid-row: 2; align-self: end; }

	/* 4 karty: mozaika w trzech kolumnach (środkowa kolumna – dwie karty) */
	.bns-cards-grid--q4 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		grid-auto-rows: minmax(0, 1fr);
		row-gap: 0;
	}

	.bns-cards-grid--q4 > .bns-card:nth-child(1) { grid-column: 1; grid-row: 2 / span 4; }
	.bns-cards-grid--q4 > .bns-card:nth-child(2) { grid-column: 2; grid-row: 1 / span 4; }
	.bns-cards-grid--q4 > .bns-card:nth-child(3) { grid-column: 3; grid-row: 4 / span 4; }
	.bns-cards-grid--q4 > .bns-card:nth-child(4) { grid-column: 2; grid-row: 5 / span 4; margin-top: clamp(24px, 3vw, 40px); }
	.bns-cards-grid--q4 .bns-qmark--1 { left: 33.3%; top: 30%; }
	.bns-cards-grid--q4 .bns-qmark--2 { left: 66.7%; top: 16%; }
	.bns-cards-grid--q4 .bns-qmark--3 { left: 58%; top: 74%; }
}

@media (max-width: 899px) {
	.bns-cards-grid.is-layout-questions {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bns-qmark {
		display: none;
	}
}

@media (max-width: 600px) {
	.bns-cards-grid.is-layout-questions {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Wszystkie laptopy w case study mają ten sam rozmiar */
.bns-case {
	--bns-laptop: 940px;
}

/* Kilka laptopów jeden pod drugim (np. strony sekcji) */
.bns-device-stack {
	display: flex;
	flex-direction: column;
	gap: var(--bns-s-block, 64px);
}

.bns-device-stack > .bns-device {
	width: 100%;
	margin: 0;
}

/* --------------------------------------------------------------------------
   Opisy z linią przy laptopie (np. „Szybkie filtrowanie…”) – linia i kropka
   pokazują się, gdy wskazany element zrzutu jest na wysokości opisu.
   ----------------------------------------------------------------------- */
.bns-device.has-notes .bns-device__stage {
	--bns-note-w: calc((100% - min(100%, var(--bns-laptop, 940px))) / 2 - 24px);
}

.bns-device__note {
	position: absolute;
	z-index: 4;
	top: var(--bns-note-top, 20%);
	width: var(--bns-note-w);
	margin: 0;
	transform: translateY(-50%);
	font: 400 calc(15px * var(--bns-type, 1))/1.4 var(--bns-font);
	color: var(--bns-ink);
}

.bns-device__note--left {
	left: 0;
	text-align: right;
}

.bns-device__note--right {
	right: 0;
	text-align: left;
}

.bns-device__line {
	position: absolute;
	z-index: 5;
	height: 2px;
	background: #b8862f;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85);
	pointer-events: none;
	opacity: 0;
	transform-origin: left center;
	transition: opacity 0.25s ease;
}

.bns-device__line.is-on {
	opacity: 1;
}

.bns-device__line::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #b8862f;
	box-shadow: 0 0 0 2px #fff;
	transform: translateY(-50%);
}

.bns-device__line--to-right::after { right: -5px; }
.bns-device__line--to-left::after { left: -5px; }
.bns-device__line.no-dot::after { display: none; }

@media (max-width: 1100px) {
	.bns-device__note {
		position: static;
		width: auto;
		margin: 12px 0 0;
		padding-left: 16px;
		border-left: 3px solid #b8862f;
		transform: none;
		text-align: left;
	}

	.bns-device__line {
		display: none;
	}

	.bns-device.has-notes .bns-device__stage {
		display: flex;
		flex-direction: column;
	}

	.bns-device.has-notes .bns-device__frame {
		order: -1;
	}
}

/* --------------------------------------------------------------------------
   Długi zrzut w telefonie (przewijany) – ramka w proporcjach smartfona
   ----------------------------------------------------------------------- */
.wp-block-image.is-style-phone-scroll {
	position: relative;
	width: min(100%, 240px);
	aspect-ratio: 390 / 844;
	margin-inline: auto;
	overflow-y: auto;
	overflow-x: hidden;
	overscroll-behavior: contain;
	border: clamp(7px, 0.8vw, 11px) solid #121212;
	border-radius: clamp(30px, 3.4vw, 46px);
	background: #fff;
	box-shadow: 0 0 0 1px #3a3a3a, 0 10px 30px rgba(0, 0, 0, 0.18);
	scrollbar-width: none;
}

.wp-block-image.is-style-phone-scroll::-webkit-scrollbar {
	display: none;
}

.wp-block-image.is-style-phone-scroll::before {
	content: "";
	position: sticky;
	z-index: 2;
	top: 8px;
	display: block;
	width: 34%;
	height: clamp(14px, 1.6vw, 22px);
	margin: 8px auto calc(-1 * (clamp(14px, 1.6vw, 22px) + 8px));
	border-radius: 999px;
	background: #121212;
}

.wp-block-image.is-style-phone-scroll img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0;
}

.wp-block-image.is-style-phone-scroll:focus-visible {
	outline: 3px solid var(--bns-teal);
	outline-offset: 4px;
}

/* --------------------------------------------------------------------------
   Persona – zdjęcie i opis w jednej karcie, karta ma wysokość zdjęcia
   ----------------------------------------------------------------------- */
.bns-card.bns-persona {
	padding: 0;
}

.bns-persona > .bns-card__content {
	display: grid;
	grid-template-columns: minmax(0, 37fr) minmax(0, 63fr);
	align-items: stretch;
}

.bns-persona.is-photo-right > .bns-card__content {
	grid-template-columns: minmax(0, 63fr) minmax(0, 37fr);
}

.bns-persona__photo {
	position: relative;
	margin: 0 !important;
	aspect-ratio: 454 / 732;
	min-height: 100%;
}

.bns-persona__photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}

.bns-persona__text {
	align-self: center;
	padding: clamp(28px, 3vw, 44px) clamp(24px, 3.4vw, 52px);
}

.bns-persona__text > * {
	margin-block: 0;
}

.bns-persona .bns-persona__name {
	margin: 0;
	color: var(--bns-teal);
	font: 700 calc(clamp(22px, 2.3vw, 33px) * var(--bns-type, 1))/1.15 var(--bns-font);
}

.bns-persona .bns-persona__role {
	margin: 4px 0 0;
	color: var(--bns-teal);
	font-size: calc(clamp(13px, 1.1vw, 16px) * var(--bns-type, 1));
}

.bns-persona .bns-persona__quote {
	margin: clamp(14px, 1.6vw, 22px) 0 0;
	font-style: italic;
	font-weight: 300;
	font-size: calc(clamp(14px, 1.25vw, 18px) * var(--bns-type, 1));
	line-height: 1.5;
}

.bns-persona .bns-persona__cols {
	gap: clamp(20px, 2.4vw, 36px);
	margin: clamp(18px, 2vw, 28px) 0 0;
}

.bns-persona .bns-persona__label {
	margin: 0 0 10px;
	text-align: center;
	color: var(--bns-teal);
	font: 600 calc(clamp(17px, 1.7vw, 24px) * var(--bns-type, 1))/1.3 var(--bns-font);
}

.bns-persona__cols ul {
	margin: 0;
	padding-left: 1.1em;
	font-size: calc(clamp(13px, 1.2vw, 17px) * var(--bns-type, 1));
	line-height: 1.5;
}

.bns-persona__cols li + li {
	margin-top: 4px;
}

@media (max-width: 760px) {
	.bns-persona > .bns-card__content,
	.bns-persona.is-photo-right > .bns-card__content {
		grid-template-columns: minmax(0, 1fr);
	}

	.bns-persona__photo {
		aspect-ratio: 4 / 3;
		min-height: 0;
	}

	.bns-persona__photo img {
		object-position: 50% 25%;
	}

	.bns-persona.is-photo-right .bns-persona__photo {
		order: -1;
	}
}

/* --------------------------------------------------------------------------
   „How might we” i pytania z wywiadów – więcej światła w kartach
   ----------------------------------------------------------------------- */
.bns-case .bns-cards-grid--cols-4 > .bns-card {
	padding-block: clamp(36px, 4.4vw, 64px);
}

.bns-case .bns-cards-grid.is-layout-questions > .bns-card {
	padding: clamp(36px, 4.2vw, 60px) clamp(28px, 3.2vw, 44px);
}

/* Znak zapytania nad białą kartą, ale pod tekstem: tło karty jest osobną warstwą. */
.bns-cards-grid.is-layout-questions > .bns-card {
	isolation: auto;
	overflow: visible;
	z-index: auto;
	background: transparent;
	box-shadow: none;
}

.bns-cards-grid.is-layout-questions > .bns-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	border-radius: var(--bns-radius-card);
	background: #fff;
	box-shadow: var(--bns-shadow-soft);
}

.bns-cards-grid.is-layout-questions .bns-qmark {
	z-index: 1;
	color: rgba(203, 232, 232, 0.75);
}

.bns-cards-grid.is-layout-questions > .bns-card > .bns-card__content {
	z-index: 2;
}

.bns-case .bns-cards-grid.is-layout-questions > .bns-card {
	padding-block: clamp(56px, 6.4vw, 96px);
}

/* Tagi: najpierw 3 w rzędzie, reszta w następnym */
.bns-tags-block.is-rows-3 .bns-tags::before {
	content: "";
	flex-basis: 100%;
	height: 0;
	order: 1;
}

.bns-tags-block.is-rows-3 .bns-tags > li:nth-child(n + 4) {
	order: 2;
}

/* Diagram architektury informacji na szerokość treści */
.wp-block-image.bns-ia-full {
	width: 100%;
	max-width: var(--wp--style--global--content-size, 1244px) !important;
	margin-inline: auto !important;
}

.wp-block-image.bns-ia-full img {
	width: 100%;
	height: auto;
}

/* Ciemne sekcje jedna po drugiej – bez białego paska; zaokrąglony róg kolejnej sekcji leży na tle poprzedniej */
.bns-case__content > .alignfull.has-background + .alignfull.has-background {
	margin-block-start: 0 !important;
}

.bns-case__content > .alignfull.has-background:has(+ .alignfull.has-background.is-style-rounded-top) {
	padding-bottom: calc(var(--bns-s-section, 128px) + clamp(40px, 7vw, 100px));
}

.bns-case__content > .alignfull.has-background + .alignfull.has-background.is-style-rounded-top {
	position: relative;
	z-index: 1;
	margin-top: calc(-1 * clamp(40px, 7vw, 100px)) !important;
}

/* Nagłówek w jednej linii (np. „Opracowanie proto-persony”) */
.is-nowrap {
	white-space: nowrap;
}

@media (max-width: 600px) {
	.is-nowrap {
		white-space: normal;
	}
}

/* Imię i zawód persony – wspólne dla obu case study */
.bns-persona__name {
	margin: 0;
	color: var(--bns-teal);
	font: 700 calc(clamp(22px, 2.3vw, 33px) * var(--bns-type, 1))/1.15 var(--bns-font);
}

.bns-case .bns-persona__name + .bns-persona__role,
.bns-persona__name + .bns-persona__role {
	margin-block-start: 0 !important;
	line-height: 1.25;
	color: var(--bns-teal);
	font-size: calc(clamp(13px, 1.1vw, 16px) * var(--bns-type, 1));
}

/* How might we – szersze pole na tekst (mniejsze boczne marginesy), równe podziały wierszy */
.bns-case .bns-hmw.bns-card--pad-m {
	padding-inline: clamp(20px, 2.2vw, 32px);
}

.bns-hmw p {
	text-wrap: wrap;
	hyphens: manual;
}

/* Pytania z wywiadów – wyśrodkowane w pionie między treścią powyżej a „pain points” (równe odstępy) */
.bns-case .bns-case__content > .is-layout-questions,
.bns-case .bns-case__content > .is-layout-questions + h3 {
	margin-block-start: clamp(56px, 6vw, 88px) !important;
}

/* Akapit „Rozwiązanie:” – mała przerwa od treści powyżej */
.bns-case .bns-split__col--text p + p {
	margin-top: 14px;
}

/* Główne funkcje – więcej światła między kolejnymi funkcjami */
.bns-case .bns-split.has-band + .bns-split.has-band {
	margin-block-start: clamp(88px, 10vw, 144px) !important;
}

/* Informacje o projekcie – jednakowy odstęp między etykietą a treścią (tekst lub lista) */
.bns-info-label {
	margin-bottom: 0 !important;
}

.bns-case .bns-info-label + * {
	margin-top: 6px !important;
}

/* Kluczowe odkrycia (Korona) – numer w rogu, nagłówek pod nim, lżejszy tekst, więcej światła */
.bns-card.bns-finding {
	padding: clamp(36px, 4vw, 56px) clamp(28px, 3.4vw, 48px) clamp(44px, 5vw, 72px);
}

.bns-card.bns-finding .bns-card__number {
	position: static;
	align-self: flex-end;
	margin: 0 0 clamp(4px, 0.6vw, 10px);
	line-height: 1;
	font-size: calc(clamp(34px, 3.6vw, 48px) * var(--bns-type, 1));
	color: #303131;
}

.bns-card.bns-finding h3 {
	margin: 0;
	font: 700 calc(clamp(16px, 1.45vw, 20px) * var(--bns-type, 1))/1.35 var(--bns-font-head);
	color: #fff;
}

.bns-card.bns-finding .bns-card__content p {
	margin: clamp(16px, 1.8vw, 26px) 0 0;
	font-weight: 200;
	font-size: calc(clamp(14px, 1.2vw, 17px) * var(--bns-type, 1));
	line-height: 1.65;
	color: #fff;
}

/* Telefon: tekst w kartach wykorzystuje pełną szerokość */
@media (max-width: 600px) {
	/* wykrzyknik / kropki tylko obok nagłówka, nie obok całego tekstu */
	.bns-card.has-deco-exclamation > .bns-card__content,
	.bns-card.has-deco-yellow-shape > .bns-card__content {
		padding-right: 0;
		padding-top: 0;
	}

	.bns-card.has-deco-exclamation > .bns-card__content > :first-child,
	.bns-card.has-deco-yellow-shape > .bns-card__content > :first-child {
		padding-right: 44px;
	}

	body .bns-case .bns-card--pad-m,
	body .bns-case .bns-card--pad-l {
		--bns-pad-y: 26px;
		padding: 26px 20px;
	}

	/* „Jakie są korzyści?” – mniejsza ikona, lista szersza */
	.bns-benefits {
		grid-template-columns: 34px minmax(0, 1fr);
		gap: 12px;
	}

	.bns-benefits__icon svg {
		width: 34px;
		height: 34px;
	}

	.bns-benefits__content ul {
		padding-left: 1.1em;
	}
}
