/**
 * Strona główna — flagship hero (Breeze 700).
 * Osobny plik — wgrywaj razem z inc/home-product-teaser.php.
 */

.cw-home-v2 {
	--h2-blue: #1a5cff;
	--h2-black: #0a0a0a;
	--h2-stone: #f4f4f1;
	--h2-gray: #6b6b6b;
	--h2-border: #e4e4df;
	--h2-section-pad: var(--cw-section-pad);
}

.cw-home-v2 a.cw-h2-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0 1.75rem;
	font-size: 0.9375rem;
	font-weight: 500;
	font-family: inherit;
	text-decoration: none;
	border-radius: var(--cw-btn-radius);
	border: 1px solid transparent;
	transition:
		background 0.2s ease,
		color 0.2s ease,
		border-color 0.2s ease,
		transform 0.2s ease,
		box-shadow 0.2s ease;
	cursor: pointer;
	box-sizing: border-box;
}

.cw-home-v2 a.cw-h2-btn--blue {
	background: var(--h2-blue, #1a5cff);
	color: #fff !important;
}

.cw-home-v2 a.cw-h2-btn--blue:hover,
.cw-home-v2 a.cw-h2-btn--blue:focus-visible {
	background: #1449d4;
	color: #fff !important;
}

.cw-home-v2 a.cw-h2-btn--outline {
	background: transparent;
	color: var(--h2-black, #0a0a0a) !important;
	border-color: rgba(10, 10, 10, 0.18);
}

.cw-home-v2 a.cw-h2-btn--outline:hover,
.cw-home-v2 a.cw-h2-btn--outline:focus-visible {
	border-color: var(--h2-black, #0a0a0a);
	color: var(--h2-black, #0a0a0a) !important;
}

.cw-home-v2 .cw-h2-section--product {
	background: #fff;
	padding-block: var(--h2-section-pad);
}

.cw-home-v2 .cw-h2-section--product-hero {
	position: relative;
	padding-block: clamp(2rem, 5vw, 3.5rem);
	overflow-x: clip;
	overflow-y: visible;
	background: #fff;
}

.cw-home-v2 .cw-h2-section--product-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background: radial-gradient(ellipse 40% 32% at 12% 8%, rgba(10, 10, 10, 0.02) 0%, transparent 72%);
}

.cw-home-v2 .cw-h2-section--product-hero .cw-h2-product {
	position: relative;
	z-index: 1;
}

.cw-home-v2 .cw-h2-product {
	display: grid;
	gap: clamp(2rem, 5vw, 3rem);
	align-items: center;
}

@media (min-width: 960px) {
	.cw-home-v2 .cw-h2-section--product-hero {
		min-height: clamp(560px, calc(100svh - var(--cw-header-offset, 108px)), 860px);
		display: flex;
		align-items: center;
		padding-block: clamp(1.5rem, 3vw, 2.5rem);
	}

	.cw-home-v2 .cw-h2-section--product-hero > .cw-h2-product {
		width: 100%;
	}

	.cw-home-v2 .cw-h2-product {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.86fr);
		gap: clamp(2rem, 4vw, 3.5rem);
		align-items: stretch;
		width: 100%;
	}

	.cw-home-v2 .cw-h2-product__stage {
		min-height: 100%;
	}

	.cw-home-v2 .cw-h2-product__frame {
		min-height: 100%;
	}

	.cw-home-v2 .cw-h2-product__frame img {
		max-width: 100%;
		max-height: min(58vh, 560px);
	}

	.cw-home-v2 .cw-h2-product__fade {
		inset: -2% -4%;
		background:
			radial-gradient(ellipse 78% 74% at 54% 46%, transparent 34%, rgba(255, 255, 255, 0.5) 60%, #fff 86%),
			linear-gradient(90deg, #fff 0%, transparent 10%, transparent 90%, #fff 100%);
	}
}

.cw-home-v2 .cw-h2-product__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0 0 1rem;
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--h2-blue, #1a5cff);
}

.cw-home-v2 .cw-h2-product__eyebrow-mark {
	width: 0.35rem;
	height: 0.35rem;
	border-radius: 50%;
	background: var(--h2-blue, #1a5cff);
	box-shadow: 0 0 0 2px rgba(26, 92, 255, 0.18);
	flex-shrink: 0;
}

.cw-home-v2 .cw-h2-product__name {
	font-size: clamp(2.5rem, 6.5vw, 4.25rem);
	font-weight: 500;
	letter-spacing: -0.045em;
	margin: 0;
	line-height: 1.02;
	color: var(--h2-black, #0a0a0a);
	max-width: none;
	text-wrap: balance;
}

.cw-home-v2 .cw-h2-product__name sup {
	font-size: 0.45em;
	top: -0.55em;
	font-weight: 400;
}

.cw-home-v2 .cw-h2-product__tagline {
	margin: 1.125rem 0 0;
	max-width: none;
	font-size: clamp(1rem, 1.8vw, 1.0625rem);
	line-height: 1.55;
	color: var(--h2-gray, #6b6b6b);
}

.cw-home-v2 ul.cw-h2-product__highlights {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.55rem;
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) {
	.cw-home-v2 ul.cw-h2-product__highlights {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 1.5rem;
		row-gap: 0.65rem;
	}
}

.cw-home-v2 .cw-h2-product__highlights li {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	margin: 0;
	padding: 0;
	font-size: 0.875rem;
	line-height: 1.45;
	color: var(--h2-black, #0a0a0a);
	list-style: none;
}

.cw-home-v2 .cw-h2-product__highlights li::before {
	content: "";
	flex-shrink: 0;
	width: 1.125rem;
	height: 1.125rem;
	margin-top: 0.1rem;
	border-radius: 50%;
	background-color: rgba(26, 92, 255, 0.1);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.2l2.8 2.8 6.2-6.4' stroke='%231a5cff' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 0.7rem;
}

.cw-home-v2 .cw-h2-product__buy {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 1rem;
	margin-top: 2rem;
}

@media (min-width: 720px) {
	.cw-home-v2 .cw-h2-product__buy {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: stretch;
		gap: 1rem 1.25rem;
	}
}

.cw-home-v2 .cw-h2-product__price-box {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.25rem;
	min-width: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.cw-home-v2 .cw-h2-product__actions {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	flex: 1 1 16rem;
}

@media (min-width: 720px) {
	.cw-home-v2 .cw-h2-product__actions {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: stretch;
	}
}

.cw-home-v2 .cw-h2-product__cta-primary,
.cw-home-v2 .cw-h2-product__cta-secondary {
	width: 100%;
}

@media (min-width: 720px) {
	.cw-home-v2 .cw-h2-product__cta-primary,
	.cw-home-v2 .cw-h2-product__cta-secondary {
		width: auto;
		flex: 1 1 auto;
	}
}

.cw-home-v2 .cw-h2-product__price-label {
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--h2-gray, #6b6b6b);
}

.cw-home-v2 .cw-h2-product__price {
	font-size: clamp(1.625rem, 3.2vw, 2.125rem);
	font-weight: 500;
	letter-spacing: -0.03em;
	color: var(--h2-black, #0a0a0a);
	line-height: 1.1;
}

.cw-home-v2 .cw-h2-product__price .woocommerce-Price-amount {
	font-weight: 500;
	color: inherit;
}

.cw-home-v2 .cw-h2-product__cta-primary {
	min-height: 52px;
	padding-inline: 2rem;
	box-shadow: 0 10px 28px rgba(26, 92, 255, 0.22);
}

.cw-home-v2 .cw-h2-product__cta-primary:hover,
.cw-home-v2 .cw-h2-product__cta-primary:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 14px 36px rgba(26, 92, 255, 0.28);
}

.cw-home-v2 .cw-h2-product__cta-secondary {
	min-height: 52px;
	padding-inline: 1.75rem;
}

.cw-home-v2 .cw-h2-product__meta {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	margin: clamp(1.75rem, 4vw, 2.25rem) 0 0;
	padding: 1.15rem 0 0;
	border-top: 1px solid rgba(10, 10, 10, 0.08);
}

.cw-home-v2 .cw-h2-product__meta-item {
	margin: 0;
	padding: 0 clamp(1rem, 2.5vw, 1.5rem);
	border-right: 1px solid rgba(10, 10, 10, 0.06);
}

.cw-home-v2 .cw-h2-product__meta-item:first-child {
	padding-left: 0;
}

.cw-home-v2 .cw-h2-product__meta-item:last-child {
	border-right: 0;
	padding-right: 0;
}

.cw-home-v2 .cw-h2-product__meta-k {
	margin: 0 0 0.35rem;
	font-size: 0.625rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(10, 10, 10, 0.38);
}

.cw-home-v2 .cw-h2-product__meta-v {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: -0.01em;
	color: var(--h2-black, #0a0a0a);
	line-height: 1.35;
}

.cw-home-v2 ul.cw-h2-product__trust {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem 1.25rem;
	list-style: none;
	margin: 1.25rem 0 0;
	padding: 1.25rem 0 0;
	border-top: 1px solid var(--h2-border, #e4e4df);
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--h2-gray, #6b6b6b);
}

.cw-home-v2 .cw-h2-product__trust li {
	position: relative;
	margin: 0;
	padding: 0 0 0 0.875rem;
	list-style: none;
}

.cw-home-v2 .cw-h2-product__trust li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.5em;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--h2-blue, #1a5cff);
}

.cw-home-v2 .cw-h2-product__stage {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
	min-height: clamp(340px, 42vw, 520px);
	padding: 0 0 0.25rem;
	overflow: visible;
}

.cw-home-v2 .cw-h2-product__frame {
	position: relative;
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	min-height: clamp(280px, 36vw, 460px);
	padding: clamp(0.5rem, 2vw, 1rem) 0;
	border: none;
	border-radius: 0;
	background: transparent;
	overflow: visible;
}

.cw-home-v2 .cw-h2-product__media {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}

.cw-home-v2 .cw-h2-product__media::after {
	content: "";
	position: absolute;
	left: 18%;
	right: 18%;
	bottom: 4%;
	height: 10%;
	border-radius: 50%;
	background: radial-gradient(ellipse at center, rgba(10, 10, 10, 0.09) 0%, transparent 72%);
	filter: blur(12px);
	pointer-events: none;
}

.cw-home-v2 .cw-h2-product__frame img {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	max-width: min(100%, 440px);
	height: auto;
	max-height: min(52vh, 500px);
	margin: 0 auto;
	object-fit: contain;
	object-position: center center;
	-webkit-mask-image: radial-gradient(ellipse 88% 82% at 50% 48%, #000 38%, transparent 76%);
	mask-image: radial-gradient(ellipse 88% 82% at 50% 48%, #000 38%, transparent 76%);
}

.cw-home-v2 .cw-h2-product__fade {
	position: absolute;
	inset: -4% -8%;
	z-index: 2;
	pointer-events: none;
	background:
		radial-gradient(ellipse 74% 70% at 52% 46%, transparent 36%, rgba(255, 255, 255, 0.55) 62%, #fff 84%),
		linear-gradient(90deg, #fff 0%, transparent 14%, transparent 86%, #fff 100%);
}

.cw-home-v2 a.cw-h2-product__link-detail {
	position: relative;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: center;
	flex-shrink: 0;
	margin-top: 1rem;
	padding: 0.4rem 0;
	min-height: 1.75rem;
	text-align: center;
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--h2-gray, #6b6b6b) !important;
	text-decoration: none;
	background: none;
	border: 0;
	border-radius: 0;
	overflow: visible;
	transition: color 0.2s ease;
}

.cw-home-v2 a.cw-h2-product__link-detail::after {
	content: "→";
	margin-left: 0.45rem;
	font-size: 0.85em;
	opacity: 0.7;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.cw-home-v2 a.cw-h2-product__link-detail:hover,
.cw-home-v2 a.cw-h2-product__link-detail:focus-visible {
	color: var(--h2-black, #0a0a0a) !important;
}

.cw-home-v2 a.cw-h2-product__link-detail:hover::after,
.cw-home-v2 a.cw-h2-product__link-detail:focus-visible::after {
	transform: translateX(2px);
	opacity: 1;
}

/* Hero bezpośrednio przed reassurance — bez pełnoekranowej wysokości i rozciągania kolumn */
@media (min-width: 960px) {
	.cw-home-v2 .cw-h2-section--product-hero:has(+ .cw-h2-section--reassurance) {
		min-height: auto;
		align-items: flex-start;
		padding-block: clamp(1.5rem, 3vw, 2.5rem);
	}

	.cw-home-v2 .cw-h2-section--product-hero:has(+ .cw-h2-section--reassurance) .cw-h2-product {
		align-items: start;
	}

	.cw-home-v2 .cw-h2-section--product-hero:has(+ .cw-h2-section--reassurance) .cw-h2-product__stage,
	.cw-home-v2 .cw-h2-section--product-hero:has(+ .cw-h2-section--reassurance) .cw-h2-product__frame {
		min-height: auto;
	}
}

.cw-home-v2 .cw-h2-section--product-hero + .cw-h2-section--reassurance-hero {
	padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
}

@media (max-width: 959px) {
	.cw-home-v2 .cw-h2-section--product-hero .cw-h2-product__stage {
		order: -1;
		min-height: auto;
		margin-bottom: 0.5rem;
	}

	.cw-home-v2 .cw-h2-product__frame {
		min-height: 240px;
		padding: 0.5rem 0;
	}

	.cw-home-v2 .cw-h2-product__frame img {
		max-height: 260px;
	}

	.cw-home-v2 .cw-h2-product__fade {
		inset: -2% -4%;
		background: radial-gradient(ellipse 82% 78% at 50% 48%, transparent 32%, rgba(255, 255, 255, 0.62) 58%, #fff 82%);
	}

	.cw-home-v2 .cw-h2-product__meta {
		grid-template-columns: 1fr;
		gap: 0.85rem;
	}

	.cw-home-v2 .cw-h2-product__meta-item {
		padding: 0;
		border-right: 0;
		border-bottom: 1px solid rgba(10, 10, 10, 0.06);
		padding-bottom: 0.85rem;
	}

	.cw-home-v2 .cw-h2-product__meta-item:last-child {
		border-bottom: 0;
		padding-bottom: 0;
	}

}
