/**
 * Landing: Cięcie i gięcie CNC — styl B.S.G (jak portal zamówień i strona malowania proszkowego)
 * Wrapper: .bsg-cnc · klasy .bc-* (nic nie wycieka na resztę serwisu)
 */

.bsg-cnc {
	--bc-card: linear-gradient(165deg, rgba(255, 255, 255, 0.068), rgba(255, 255, 255, 0.022));
	--bc-line: rgba(255, 255, 255, 0.09);
	--bc-line2: rgba(255, 255, 255, 0.16);
	--bc-text: #dbe4ef;
	--bc-muted: #9db0c6;
	--bc-faint: #6a7e96;
	--bc-amber: #d4892a;
	--bc-amber2: #e8a04a;
	--bc-mint: #7dd3c0;
	--bc-green: #3ecf8e;
	--bc-display: "Outfit", "Plus Jakarta Sans", system-ui, sans-serif;
	--bc-ease: cubic-bezier(0.22, 1, 0.36, 1);
	max-width: 1080px;
	margin: 0 auto;
	padding: clamp(28px, 5vw, 56px) 16px clamp(48px, 7vw, 88px);
	font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.7;
	color: var(--bc-text);
	letter-spacing: normal;
	-webkit-font-smoothing: antialiased;
}

.bsg-cnc *,
.bsg-cnc *::before,
.bsg-cnc *::after {
	box-sizing: border-box;
	word-break: normal;
	overflow-wrap: normal;
	-webkit-hyphens: none;
	hyphens: none;
}

.bsg-cnc :where(h1, h2, h3, p, ol, ul, dl, dd, dt, table) {
	margin: 0;
	padding: 0;
}

.bsg-cnc :where(ol, ul) {
	list-style: none;
}

.bsg-cnc a {
	color: var(--bc-amber2);
	text-decoration: none;
}

.bsg-cnc a:hover {
	color: #fff;
}

.bsg-cnc svg {
	flex: none;
}

.bsg-cnc h1,
.bsg-cnc h2,
.bsg-cnc h3 {
	font-family: var(--bc-display);
	color: #fff;
	text-transform: none;
	letter-spacing: -0.015em;
}

.bsg-cnc strong {
	color: #fff;
	font-weight: 600;
}

.bsg-cnc .bc-k {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--bc-mint);
}

.bsg-cnc .bc-k i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--bc-amber2);
	box-shadow: 0 0 0 4px rgba(232, 160, 74, 0.18), 0 0 16px rgba(232, 160, 74, 0.7);
}

/* ---------- Hero ---------- */
.bsg-cnc .bc-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: grid;
	gap: 20px;
	padding: clamp(28px, 5vw, 56px);
	border-radius: 22px;
	border: 1px solid rgba(255, 255, 255, 0.11);
	background:
		radial-gradient(700px 360px at 0% 0%, rgba(212, 137, 42, 0.22), transparent 60%),
		radial-gradient(700px 400px at 100% 0%, rgba(14, 95, 163, 0.3), transparent 60%),
		linear-gradient(160deg, #0f243b, #081422);
	box-shadow: 0 30px 80px -32px rgba(0, 0, 0, 0.75);
}

.bsg-cnc .bc-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 48px 48px;
	-webkit-mask-image: radial-gradient(ellipse 70% 70% at 30% 20%, #000 20%, transparent 75%);
	mask-image: radial-gradient(ellipse 70% 70% at 30% 20%, #000 20%, transparent 75%);
}

.bsg-cnc h1 {
	font-size: clamp(2.1rem, 5vw, 3.5rem);
	font-weight: 800;
	line-height: 1.05;
}

.bsg-cnc h1 em {
	display: block;
	font-style: normal;
	font-size: 0.62em;
	line-height: 1.15;
	margin-top: 0.25em;
	background: linear-gradient(100deg, var(--bc-amber2), #f3c68a 45%, var(--bc-mint));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}

.bsg-cnc .bc-lead {
	max-width: 64ch;
	font-size: clamp(1rem, 1.5vw, 1.12rem);
	color: var(--bc-muted);
}

.bsg-cnc .bc-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 4px;
}

.bsg-cnc .bc-btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-height: 52px;
	padding: 0 22px;
	border-radius: 13px;
	border: 1px solid transparent;
	font-weight: 700;
	font-size: 0.98rem;
	line-height: 1.2;
	white-space: nowrap;
	transition: transform 0.2s, box-shadow 0.25s, background-color 0.2s;
}

.bsg-cnc .bc-btn:hover {
	transform: translateY(-1px);
}

.bsg-cnc .bc-btn--p,
.bsg-cnc .bc-btn--p:hover {
	background: linear-gradient(135deg, #e8a04a, #d4892a 55%, #bb7420);
	border-color: rgba(255, 220, 170, 0.35);
	color: #1a1006;
	box-shadow: 0 14px 34px -14px rgba(212, 137, 42, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.bsg-cnc .bc-btn--g {
	background: rgba(255, 255, 255, 0.04);
	border-color: var(--bc-line2);
	color: #fff;
}

.bsg-cnc .bc-btn--g:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.bsg-cnc .bc-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin-top: 8px;
}

.bsg-cnc .bc-stat {
	padding: 16px 18px;
	border-radius: 15px;
	border: 1px solid var(--bc-line);
	background: rgba(2, 9, 17, 0.4);
}

.bsg-cnc .bc-stat b {
	display: block;
	font-family: var(--bc-display);
	font-size: 1.7rem;
	font-weight: 800;
	line-height: 1.1;
	color: var(--bc-amber2);
}

.bsg-cnc .bc-stat span {
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--bc-faint);
}

/* ---------- Wyróżnienia ---------- */
.bsg-cnc .bc-note {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 18px;
	align-items: start;
	margin-top: 22px;
	padding: 22px 24px;
	border-radius: 18px;
}

.bsg-cnc .bc-note--mint {
	border: 1px solid rgba(62, 207, 142, 0.3);
	background: linear-gradient(160deg, rgba(62, 207, 142, 0.09), rgba(255, 255, 255, 0.02));
}

.bsg-cnc .bc-note__ico {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 14px;
}

.bsg-cnc .bc-note--mint .bc-note__ico {
	background: rgba(62, 207, 142, 0.14);
	color: var(--bc-green);
}

.bsg-cnc .bc-note h3 {
	font-size: 1.15rem;
	margin-bottom: 6px;
}

.bsg-cnc .bc-note p {
	font-size: 0.96rem;
	color: var(--bc-text);
}

/* ---------- Sekcje ---------- */
.bsg-cnc .bc-sec {
	display: grid;
	gap: 18px;
	margin-top: clamp(36px, 6vw, 64px);
}

.bsg-cnc h2 {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: clamp(1.5rem, 2.8vw, 2rem);
	font-weight: 800;
	line-height: 1.15;
}

.bsg-cnc .bc-n {
	display: inline-grid;
	place-items: center;
	min-width: 40px;
	height: 32px;
	padding: 0 10px;
	border-radius: 9px;
	background: rgba(232, 160, 74, 0.12);
	border: 1px solid rgba(232, 160, 74, 0.35);
	color: var(--bc-amber2);
	font-size: 0.85rem;
	font-weight: 800;
	letter-spacing: 0.04em;
}

/* Tabela */
.bsg-cnc .bc-tw {
	overflow-x: auto;
	border-radius: 16px;
	border: 1px solid var(--bc-line);
	background: var(--bc-card);
}

.bsg-cnc .bc-tw table {
	width: 100%;
	min-width: 560px;
	border-collapse: collapse;
	border: 0;
	background: transparent;
	font-size: 0.92rem;
}

.bsg-cnc .bc-tw th {
	padding: 12px 18px;
	border: 0;
	border-bottom: 1px solid var(--bc-line);
	background: rgba(255, 255, 255, 0.03);
	color: var(--bc-faint);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-align: left;
	text-transform: uppercase;
}

.bsg-cnc .bc-tw td {
	padding: 13px 18px;
	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.055);
	background: transparent;
	color: var(--bc-text);
	vertical-align: top;
}

.bsg-cnc .bc-tw tr:last-child td {
	border-bottom: 0;
}

.bsg-cnc .bc-tw .bc-ok {
	color: var(--bc-mint);
	font-weight: 600;
}

/* Karty */
.bsg-cnc .bc-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.bsg-cnc .bc-card {
	display: grid;
	gap: 8px;
	align-content: start;
	padding: 18px 20px;
	border-radius: 16px;
	border: 1px solid var(--bc-line);
	background: var(--bc-card);
	transition: border-color 0.2s, transform 0.2s;
}

.bsg-cnc .bc-card:hover {
	border-color: rgba(232, 160, 74, 0.4);
	transform: translateY(-2px);
}

.bsg-cnc .bc-card__ico {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: rgba(232, 160, 74, 0.12);
	color: var(--bc-amber2);
}

.bsg-cnc .bc-card h3 {
	font-size: 1.02rem;
	font-weight: 700;
	line-height: 1.3;
}

.bsg-cnc .bc-card p {
	font-size: 0.88rem;
	line-height: 1.55;
	color: var(--bc-muted);
}

/* Kroki */
.bsg-cnc .bc-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.bsg-cnc .bc-steps--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bsg-cnc .bc-step {
	display: grid;
	gap: 8px;
	align-content: start;
	padding: 20px;
	border-radius: 16px;
	border: 1px solid var(--bc-line);
	background: var(--bc-card);
}

.bsg-cnc .bc-step__no {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--bc-amber2), var(--bc-amber));
	color: #1a1006;
	font-family: var(--bc-display);
	font-weight: 800;
	box-shadow: 0 0 0 5px rgba(232, 160, 74, 0.12);
}

.bsg-cnc .bc-step.is-mint .bc-step__no {
	background: rgba(125, 211, 192, 0.14);
	border: 1px solid rgba(125, 211, 192, 0.4);
	color: var(--bc-mint);
	box-shadow: none;
}

.bsg-cnc .bc-step h3 {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
}

.bsg-cnc .bc-step p {
	font-size: 0.86rem;
	line-height: 1.55;
	color: var(--bc-muted);
}

/* FAQ */
.bsg-cnc .bc-faq {
	gap: 10px;
}

.bsg-cnc .bc-faq h2 {
	margin-bottom: 8px;
}

.bsg-cnc details {
	border-radius: 15px;
	border: 1px solid var(--bc-line);
	background: var(--bc-card);
	overflow: hidden;
}

.bsg-cnc summary {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	cursor: pointer;
	list-style: none;
	font-weight: 600;
	color: #fff;
}

.bsg-cnc summary::-webkit-details-marker {
	display: none;
}

.bsg-cnc .bc-q {
	flex: none;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 8px;
	background: rgba(232, 160, 74, 0.14);
	color: var(--bc-amber2);
	font-size: 0.75rem;
	font-weight: 800;
}

.bsg-cnc .bc-chev {
	display: inline-grid;
	margin-left: auto;
	color: var(--bc-muted);
	transition: transform 0.2s;
}

.bsg-cnc details[open] .bc-chev {
	transform: rotate(180deg);
}

.bsg-cnc details[open] summary {
	border-bottom: 1px solid var(--bc-line);
}

.bsg-cnc .bc-faq-a {
	padding: 14px 20px 18px 58px;
	font-size: 0.93rem;
	color: var(--bc-muted);
}

/* CTA */
.bsg-cnc .bc-cta {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap: 24px;
	align-items: center;
	margin-top: clamp(40px, 6vw, 64px);
	padding: clamp(24px, 4vw, 40px);
	border-radius: 22px;
	border: 1px solid rgba(232, 160, 74, 0.35);
	background:
		radial-gradient(600px 300px at 100% 0%, rgba(212, 137, 42, 0.2), transparent 65%),
		linear-gradient(160deg, #10263d, #0a1828);
	box-shadow: 0 30px 80px -32px rgba(0, 0, 0, 0.75);
}

.bsg-cnc .bc-cta h2 {
	display: block;
	margin-top: 6px;
	font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.bsg-cnc .bc-cta p {
	margin-top: 8px;
	color: var(--bc-muted);
}

.bsg-cnc .bc-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.bsg-cnc .bc-tags span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid var(--bc-line2);
	background: rgba(255, 255, 255, 0.03);
	color: var(--bc-text);
	font-size: 0.8rem;
	font-weight: 600;
}

.bsg-cnc .bc-tags svg {
	color: var(--bc-mint);
}

.bsg-cnc .bc-cta__side {
	display: grid;
	gap: 10px;
	justify-items: start;
}

.bsg-cnc .bc-ph {
	font-family: var(--bc-display);
	font-size: 2rem;
	font-weight: 800;
	color: #fff;
}

.bsg-cnc .bc-ph:hover {
	color: var(--bc-amber2);
}

/* ---------- Responsywność ---------- */
@media (max-width: 860px) {
	.bsg-cnc .bc-stats,
	.bsg-cnc .bc-steps,
	.bsg-cnc .bc-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bsg-cnc .bc-steps--3 {
		grid-template-columns: 1fr;
	}

	.bsg-cnc .bc-cta {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	.bsg-cnc .bc-steps,
	.bsg-cnc .bc-cards {
		grid-template-columns: 1fr;
	}

	.bsg-cnc .bc-stat {
		padding: 14px;
	}

	.bsg-cnc .bc-stat b {
		font-size: 1.3rem;
	}

	.bsg-cnc .bc-note {
		grid-template-columns: 1fr;
	}

	.bsg-cnc .bc-btn {
		width: 100%;
		justify-content: center;
	}

	.bsg-cnc .bc-faq-a {
		padding-left: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bsg-cnc * {
		transition: none !important;
	}
}
