/**
 * Epilacja – Hero (Figma 2:63, 1920 × 737).
 * Tokeny, przyciski i pasek nawigacji sekcji: assets/css/laser.css.
 */

.anm-epil-hero {
	overflow: hidden;
	background: var(--ls-ink);
}

/* Poświata za kolumną mediów — dekoracja, nie obraz. */
.anm-epil-hero__glow {
	position: absolute;
	top: -10%;
	right: -8%;
	bottom: 30%;
	left: 48%;
	background: radial-gradient(closest-side, rgba(146, 212, 246, 0.3), rgba(146, 212, 246, 0.08) 55%, transparent 78%);
	filter: blur(18px);
	pointer-events: none;
}

.anm-epil-hero > .anm-ls-shell {
	padding-block: clamp(44px, 4.6vw, 88px) 0;
}

/* Kolumny 653 : 707 z makiety — kolumna tekstu trzyma własne szerokości. */
.anm-epil-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 653fr) minmax(0, 707fr);
	align-items: start;
}

.anm-epil-hero__copy {
	min-width: 0;
	padding-right: clamp(24px, 3vw, 56px);
}

.anm-epil-hero .anm-epil-hero__label {
	margin-bottom: 21px;
	letter-spacing: 0.16em;
	color: var(--ls-accent);
}

.anm-epil-hero .anm-epil-hero__headline {
	max-width: 520px;
	font-size: clamp(36px, 3.125vw, 60px);
	line-height: 1.06;
	letter-spacing: -0.02em;
}

.anm-epil-hero .anm-epil-hero__lead {
	margin: 26px 0 0;
	max-width: 495px;
	font-size: clamp(15.5px, 0.92vw, 17.5px);
	line-height: 1.7;
}

.anm-epil-hero__lead > p {
	margin: 0;
}

.anm-epil-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px 28px;
	margin-top: clamp(32px, 2.5vw, 48px);
}

.anm-epil-hero .anm-epil-hero__link {
	font: 600 15px/1 var(--ls-font-sans);
	color: #fff;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	text-underline-position: from-font;
	transition: opacity 0.25s var(--ls-ease);
}

.anm-epil-hero .anm-epil-hero__link:hover,
.anm-epil-hero .anm-epil-hero__link:focus-visible {
	color: #fff;
	opacity: 0.8;
}

/* --- Karta mediów: obraz albo okładka wideo --- */

.anm-epil-hero__media {
	min-width: 0;
	margin-top: clamp(0px, 0.78vw, 15px);
}

.anm-epil-hero .anm-epil-hero__card {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 706.67 / 441.66;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--ls-line-dark);
	border-radius: var(--ls-radius);
	background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 12px), #151515;
	box-shadow: none;
	color: inherit;
	font: inherit;
	text-align: left;
}

.anm-epil-hero .anm-epil-hero__card.is-video {
	cursor: pointer;
}

.anm-epil-hero__image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Okładka wideo jest przygaszona pod przyciskiem odtwarzania (makieta 2:79). */
.anm-epil-hero__card.is-video .anm-epil-hero__image {
	opacity: 0.4;
	transition: opacity 0.35s var(--ls-ease);
}

.anm-epil-hero__card.is-video:hover .anm-epil-hero__image,
.anm-epil-hero__card.is-video:focus-visible .anm-epil-hero__image {
	opacity: 0.5;
}

.anm-epil-hero__card.is-video:focus-visible {
	outline: 2px solid var(--ls-accent);
	outline-offset: 3px;
}

.anm-epil-hero__play {
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	place-items: center;
	width: 96px;
	height: 96px;
	padding-left: 3px;
	border-radius: 999px;
	background: var(--ls-accent);
	box-shadow: 0 0 0 12px rgba(146, 212, 246, 0.18);
	color: var(--ls-ink);
	transform: translate(-50%, -50%);
	transition: transform 0.35s var(--ls-ease), box-shadow 0.35s var(--ls-ease);
}

.anm-epil-hero__card.is-video:hover .anm-epil-hero__play {
	box-shadow: 0 0 0 16px rgba(146, 212, 246, 0.22);
	transform: translate(-50%, -50%) scale(1.04);
}

.anm-epil-hero__caption {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 50px;
	padding: 0 20px;
	background: linear-gradient(to bottom, rgba(10, 10, 10, 0), rgba(10, 10, 10, 0.8));
}

.anm-epil-hero__caption-text {
	font: 600 14px/1.3 var(--ls-font-sans);
	color: #fff;
}

.anm-epil-hero__caption-time {
	flex: 0 0 auto;
	font: 500 11px/1 var(--ls-font-mono);
	letter-spacing: 0.16em;
	color: rgba(255, 255, 255, 0.7);
}

/* --- Pasek udogodnień --- */

.anm-epil-hero__features {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: clamp(48px, 4.2vw, 80px) 0 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--ls-line-dark);
}

.anm-epil-hero__feature {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 97px;
	margin: 0;
	padding: 16px 24px;
}

.anm-epil-hero__feature:first-child {
	padding-left: 0;
}

.anm-epil-hero__feature + .anm-epil-hero__feature {
	border-left: 1px solid var(--ls-line-dark);
}

.anm-epil-hero__feature-icon {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(146, 212, 246, 0.4);
	border-radius: var(--ls-radius);
	font: 700 15px/1 var(--ls-font-sans);
	color: var(--ls-accent);
}

.anm-epil-hero__feature-icon.is-star {
	color: var(--ls-gold);
}

.anm-epil-hero__feature-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.anm-epil-hero__feature-title {
	font: 600 14.5px/1.3 var(--ls-font-sans);
	color: var(--ls-light);
}

.anm-epil-hero__feature-text {
	font-size: 13px;
	line-height: 1.4;
	color: var(--ls-on-dark-faint);
}

/* --- Modal wideo (wzór: blocks/hero-main) --- */

html.anm-video-modal-open {
	overflow: hidden;
}

.anm-epil-hero__modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	place-items: center;
	padding: clamp(16px, 4vw, 32px);
	pointer-events: none;
}

.anm-epil-hero__modal[hidden] {
	display: none;
}

.anm-epil-hero__modal .anm-epil-hero__modal-backdrop {
	position: absolute;
	inset: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: rgba(0, 0, 0, 0.92);
	cursor: pointer;
	pointer-events: auto;
}

.anm-epil-hero__modal-dialog {
	position: relative;
	z-index: 1;
	width: min(92vw, 1100px);
	pointer-events: auto;
}

.anm-epil-hero__modal-player {
	display: block;
	width: 100%;
	height: auto;
	max-height: 88vh;
	border-radius: var(--ls-radius);
	background: #000;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.anm-epil-hero__modal .anm-epil-hero__modal-close {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
	font: 400 32px/1 var(--ls-font-sans);
	color: var(--ls-ink);
	cursor: pointer;
	pointer-events: auto;
	transition: transform 0.2s ease;
}

.anm-epil-hero__modal .anm-epil-hero__modal-close:hover,
.anm-epil-hero__modal .anm-epil-hero__modal-close:focus-visible {
	background: #fff;
	color: var(--ls-ink);
	transform: scale(1.05);
}

.anm-epil-hero__modal-close span {
	display: block;
	margin-top: -2px;
}

@media (max-width: 1099px) {
	.anm-epil-hero__grid {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 40px;
	}

	.anm-epil-hero__copy {
		padding-right: 0;
	}

	.anm-epil-hero__media {
		margin-top: 0;
	}

	.anm-epil-hero__features {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.anm-epil-hero__feature:nth-child(odd) {
		padding-left: 0;
		border-left: 0;
	}

	.anm-epil-hero__feature:nth-child(n + 3) {
		border-top: 1px solid var(--ls-line-dark);
	}
}

@media (max-width: 599px) {
	.anm-epil-hero__play {
		width: 72px;
		height: 72px;
		box-shadow: 0 0 0 9px rgba(146, 212, 246, 0.18);
	}

	.anm-epil-hero__features {
		grid-template-columns: minmax(0, 1fr);
	}

	.anm-epil-hero__feature {
		min-height: 76px;
		padding-left: 0;
	}

	.anm-epil-hero__feature + .anm-epil-hero__feature {
		border-top: 1px solid var(--ls-line-dark);
		border-left: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.anm-epil-hero__image,
	.anm-epil-hero__play {
		transition: none;
	}
}
