/* ==========================================================
   Single Branża (CPT branze) – single-branze.php
   ========================================================== */

.branza-single {
	--br-navy: #0E316B;
	--br-navy-dark: #010A3F;
	--br-blue: #2457C5;
	--br-blue-light: #DFE5EC;
	--br-gray: #F6F6F6;
	--br-text: #4F4F4F;
	--br-header-offset: 7rem; /* wysokość stałego headera – dopasuj, jeśli trzeba */
	font-family: 'Mukta Mahee', sans-serif;
	color: #000;
}

.branza-single h1,
.branza-single h2,
.branza-single h3,
.branza-single h4 {
	font-family: 'Mukta Mahee', sans-serif;
	margin: 0;
	clear: none;
}

.branza-single p {
	margin: 0;
}

/* ---------- wspólne ---------- */
.br-title {
	color: var(--br-navy);
	font-size: 2.2rem;
	font-weight: 700;
	line-height: 1.2;
}

.br-subtitle {
	color: var(--br-blue);
	font-size: 0.95rem;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	margin-bottom: 0.6rem;
}

.br-head {
	text-align: center;
	max-width: 52rem;
	margin: 0 auto 3.5rem;
}

.br-head__text {
	color: var(--br-text);
	font-size: 1.05rem;
	line-height: 1.6;
	margin-top: 1rem !important;
}

/* ---------- menu sekcji ---------- */
.br-subnav {
	position: sticky;
	top: var(--br-header-offset);
	z-index: 50;
	margin-top: var(--br-header-offset);
	background: #fff;
	border-top: 1px solid #EDEDED;
	box-shadow: 0 2px 10px rgba(1, 10, 63, .06);
	transition: top .5s ease-out; 
}

body:has(.header.header_fixed) .br-subnav {
	top: 4rem;
}

.br-subnav__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	min-height: 3.6rem;
}

.br-subnav__title {
	flex-shrink: 0;
	color: var(--br-navy);
	font-size: 1.05rem;
	font-weight: 500;
	line-height: 1.2;
}

.br-subnav__list {
	display: flex;
	align-items: center;
	gap: 0 2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.br-subnav__list a {
	position: relative;
	display: block;
	padding: 1.1rem 0 1rem;
	color: #000;
	font-size: 0.95rem;
	font-weight: 600;
	white-space: nowrap;
	text-decoration: none;
	transition: color .3s;
}

.br-subnav__list a::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: var(--br-blue);
	transform: scaleX(0);
	transition: transform .3s;
}

.br-subnav__list a:hover,
.br-subnav__list a.is-active {
	color: var(--br-blue);
}

.br-subnav__list a.is-active::after {
	transform: scaleX(1);
}

/* odstęp przy przewijaniu do kotwicy: header + menu sekcji */
.br-anchor,
.branza-single [id] {
	scroll-margin-top: calc(var(--br-header-offset) + 4rem);
}

/* ---------- baner ---------- */
.br-hero {
	position: relative;
	min-height: 34rem;
	display: flex;
	align-items: center;
	background-color: var(--br-navy-dark);
	background-size: cover;
	background-position: center;
	overflow: hidden;
}

.br-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(1, 10, 63, .92) 0%, rgba(14, 49, 107, .7) 45%, rgba(14, 49, 107, .15) 100%);
}

.br-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	padding-top: 4rem;
	padding-bottom: 4rem;
	color: #fff;
}

.br-hero__title {
	color: #fff;
	font-size: 3.4rem;
	font-weight: 700;
	line-height: 1.1;
	margin-bottom: 1.5rem;
}

.br-hero__text {
	max-width: 42rem;
	font-size: 1.15rem;
	line-height: 1.55;
	margin-bottom: 1.5rem;
}

.br-hero__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem 1rem;
	font-size: 1rem;
}

.br-hero__links-label {
	font-weight: 600;
}

.br-hero__links a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.br-hero__links a:hover {
	opacity: .8;
}

/* ---------- typy zespołów ---------- */
.br-teams {
	padding: 4rem 0 4.5rem;
}

.br-teams__title {
	margin-bottom: 1.8rem;
	font-size: 2rem;
}

.br-teams__list {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.br-teams__pill {
	display: inline-flex;
	align-items: center;
	padding: 0.75rem 1.6rem 0.6rem;
	background: var(--br-blue);
	color: #fff;
	border-radius: 0.5rem;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	box-shadow: 0 6px 16px rgba(36, 87, 197, .25);
	cursor: default;
	user-select: none;
}

/* ---------- dlaczego tmsys ---------- */
.br-why {
	background: var(--br-gray);
	padding: 4.5rem 0;
}

.br-why__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 4rem;
}

.br-why__content {
	flex: 1 1 55%;
}

.br-why__title {
	font-size: 2rem;
	margin-bottom: 1rem;
}

.br-why__text {
	color: var(--br-text);
	font-size: 1rem;
	line-height: 1.6;
	max-width: 36rem;
}

.br-why__stats {
	flex: 0 0 38%;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2.5rem 2rem;
	text-align: center;
}

.br-stat__num {
	color: #000;
	font-size: 2.4rem;
	font-weight: 600;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.br-stat__label {
	color: var(--br-text);
	font-size: 1rem;
	margin-top: 0.4rem;
}

/* ---------- etapy ---------- */
.br-steps {
	padding: 6rem 0 4rem;
}

.br-steps__list {
	display: flex;
	flex-direction: column;
	gap: 6rem;
}

.br-step {
	display: flex;
	align-items: center;
	gap: 4rem;
}

.br-step__image {
	flex: 0 0 46%;
}

.br-step__image img {
	display: block;
	width: 100%;
	height: auto;
}

.br-step__content {
	flex: 1;
}

.br-step__badge {
	display: inline-block;
	background: var(--br-navy);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	padding: 0.25rem 0.8rem 0.15rem;
	border-radius: 1rem;
	margin-bottom: 0.8rem;
}

.br-step__title {
	color: #000;
	font-size: 1.9rem;
	font-weight: 600;
	line-height: 1.25;
	margin-bottom: 1rem !important;
}

.br-step__quote {
	color: var(--br-text);
	font-style: italic;
	font-size: 1rem;
	line-height: 1.6;
	margin-bottom: 2rem !important;
}

.br-step__features {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	margin-bottom: 2.5rem;
}

.br-step__feature h4 {
	color: var(--br-blue);
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.3;
	padding-bottom: 0.5rem;
	margin-bottom: 0.7rem;
	border-bottom: 2px solid var(--br-blue-light);
}

.br-step__feature p {
	color: var(--br-text);
	font-size: 0.95rem;
	line-height: 1.55;
}

.br-step__software-label {
	color: var(--br-navy);
	font-weight: 700;
	font-size: 1rem;
	margin-bottom: 0.6rem;
}

.br-step__software-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.8rem;
}

.br-step__software-list a {
	color: var(--br-blue);
	font-size: 0.95rem;
	text-decoration: none;
	transition: color .3s;
}

.br-step__software-list a span {
	margin-left: 0.3rem;
}

.br-step__software-list a:hover {
	color: var(--br-navy);
}

/* ---------- karty (skanery + usługi) ---------- */
.br-card {
	position: relative;
	background: #fff;
	border: 2px solid var(--br-blue);
	border-radius: 0.8rem;
	padding: 0 2rem 2rem;
	box-shadow: 0 10px 30px rgba(14, 49, 107, .08);
}

.br-card__top {
	display: flex;
	align-items: flex-end;
	gap: 1rem;
	margin-top: -3.5rem;
	margin-bottom: 1.5rem;
}

.br-card__img {
	flex: 0 0 7.5rem;
}

.br-card__img img {
	display: block;
	width: 100%;
	height: auto;
}

.br-card__title {
	color: var(--br-navy);
	font-size: 1.4rem;
	font-weight: 700;
	line-height: 1.2;
	padding-bottom: 0.4rem;
}

.br-card__text {
	color: var(--br-text);
	font-size: 0.95rem;
	line-height: 1.6;
}

.br-card__text ul {
	margin: 1rem 0 0 1.2rem;
	padding: 0;
}

.br-card__text li {
	margin-bottom: 0.3rem;
	color: #000;
}

.br-card__text p + p {
	margin-top: 0.8rem;
}

/* skanery */
.br-scan {
	background: var(--br-gray);
	padding: 6rem 0;
}

.br-scan__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2rem;
	max-width: 62rem;
	margin: 6rem auto 0;
}

/* usługi */
.br-services {
	padding: 6rem 0;
}

.br-services__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	margin-top: 6rem;
}

/* ---------- logotypy ---------- */
.br-logos {
	padding: 5rem 0 6rem;
}

.br-logos .br-head {
	margin-bottom: 2.5rem;
}

.br-logos .br-title {
	font-size: 2rem;
}

.br-logos__grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 1.2rem;
}

.br-logo {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	min-height: 7rem;
	padding: 1.2rem 1rem 1rem;
	background: #fff;
	border: 2px solid var(--br-blue);
	border-radius: 0.8rem;
	text-decoration: none;
	transition: box-shadow .3s, transform .3s;
}

a.br-logo:hover {
	box-shadow: 0 10px 24px rgba(36, 87, 197, .18);
	transform: translateY(-3px);
}

.br-logo__img {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 2.6rem;
}

.br-logo__img img {
	max-height: 100%;
	max-width: 100%;
	width: auto;
	object-fit: contain;
}

.br-logo__label {
	color: #000;
	font-size: 0.85rem;
	font-weight: 600;
	text-align: center;
	line-height: 1.2;
}

/* ==========================================================
   RWD
   ========================================================== */
@media (max-width: 1440px) {
	.br-subnav__list { gap: 0 1.3rem; }
	.br-subnav__list a { font-size: 0.88rem; }
}

@media (max-width: 1220px) {
	.branza-single .container-new-page {
		padding: 0 4rem;
	}
	/* menu sekcji: przewijane poziomo */
	.br-subnav__title { display: none; }
	.br-subnav__inner { display: block; }
	.br-subnav__list {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	.br-subnav__list::-webkit-scrollbar { display: none; }
	.br-logos__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 1000px) {
	.br-hero__title { font-size: 2.6rem; }
	.br-title { font-size: 1.8rem; }

	.br-why__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 3rem;
	}
	.br-why__stats { width: 100%; }

	.br-step {
		flex-direction: column;
		gap: 2rem;
	}
	.br-step__image {
		flex-basis: auto;
		width: 100%;
		max-width: 34rem;
	}

	.br-services__grid {
		grid-template-columns: 1fr;
		gap: 6rem;
		max-width: 34rem;
		margin-left: auto;
		margin-right: auto;
	}
	.br-logos__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 760px) {
	.branza-single .container-new-page {
		padding: 0 1.5rem;
	}
	.br-hero { min-height: 26rem; }
	.br-hero__title { font-size: 2.1rem; }
	.br-hero__text { font-size: 1rem; }
	.br-title,
	.br-teams__title,
	.br-why__title,
	.br-logos .br-title { font-size: 1.6rem; }
	.br-step__title { font-size: 1.5rem; }

	.br-step__features { grid-template-columns: 1fr; }

	.br-scan__grid {
		grid-template-columns: 1fr;
		gap: 6rem;
	}
	.br-logos__grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.br-steps__list { gap: 4rem; }
	.br-steps,
	.br-scan,
	.br-services { padding: 4rem 0; }
}

@media (max-width: 450px) {
	.br-stat__num { font-size: 2rem; }
	.br-teams__pill { width: 100%; justify-content: center; }
	.br-card { padding: 0 1.3rem 1.5rem; }
	.br-card__img { flex-basis: 5.5rem; }
}