/* SmileClinic – baner na stronie głównej: przenikanie slajdów, zakładki z postępem i strzałki.
   Wszystkie reguły działają dopiero po włączeniu skryptu (.sc-hero-ready), więc bez JS baner wygląda jak dotąd. */

.sc-hero-carousel .carousel.sc-hero-ready {
	position: relative;
}

/* Slajdy nałożone na siebie w jednej komórce siatki – wszystkie mają wysokość najwyższego. */
.sc-hero-carousel .carousel.sc-hero-ready .swiper-wrapper {
	display: grid !important;
	grid-template-columns: 100%;
	align-items: stretch !important;
	transform: none !important;
	transition: none !important;
}

.sc-hero-carousel .carousel.sc-hero-ready .carousel__slide {
	grid-area: 1 / 1;
	width: 100% !important;
	opacity: 0;
	visibility: hidden;
	transition: opacity .8s ease, visibility 0s linear .8s;
}

.sc-hero-carousel .carousel.sc-hero-ready .carousel__slide.is-active {
	z-index: 1;
	opacity: 1;
	visibility: visible;
	transition: opacity .8s ease, visibility 0s linear 0s;
}

/* Stare oznaczenia karuzeli (i tak ukryte w stylach strony). */
.sc-hero-carousel .carousel.sc-hero-ready .swiper-pagination,
.sc-hero-carousel .carousel.sc-hero-ready .swiper-indicator {
	display: none !important;
}

/* --- Nawigacja --- */
.sc-hero-nav {
	position: absolute;
	z-index: 5;
	left: var(--sc-hero-content-left, 50px); /* w linii z lewą krawędzią tekstu – liczy skrypt */
	bottom: 40px;
	display: flex;
	align-items: center;
	gap: 28px;
}

.sc-hero-tabs {
	display: flex;
	gap: 20px;
}

.sc-hero-carousel .sc-hero-tab {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 96px;
	margin: 0;
	padding: 6px 0;
	border: 0;
	background: none;
	color: #000;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	text-align: left;
	cursor: pointer;
	opacity: .55;
	transition: opacity .2s ease;
}

.sc-hero-carousel .sc-hero-tab:hover,
.sc-hero-carousel .sc-hero-tab.is-active {
	opacity: 1;
}

.sc-hero-carousel .sc-hero-tab:focus-visible {
	outline: 2px solid #000;
	outline-offset: 4px;
	border-radius: 2px;
}

.sc-hero-tab__bar {
	position: relative;
	display: block;
	width: 100%;
	height: 3px;
	overflow: hidden;
	border-radius: 3px;
	background: rgba(0, 0, 0, .18);
}

.sc-hero-tab__fill {
	position: absolute;
	inset: 0;
	border-radius: 3px;
	background: #000;
	transform: scaleX(var(--sc-hero-progress, 0));
	transform-origin: left center;
}

.sc-hero-arrows {
	display: flex;
	gap: 8px;
}

.sc-hero-carousel .sc-hero-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 1px solid #000;
	border-radius: 50%;
	background: #000;
	color: #fff;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.sc-hero-carousel .sc-hero-arrow svg {
	width: 22px;
	height: 22px;
}

@media (hover: hover) {
	.sc-hero-carousel .sc-hero-arrow:hover {
		background: #fff;
		color: #000;
	}
}

.sc-hero-carousel .sc-hero-arrow:active {
	transform: scale(.94);
}

.sc-hero-carousel .sc-hero-arrow:focus-visible {
	outline: 2px solid #000;
	outline-offset: 3px;
}

/* --- Węższe ekrany: nawigacja w białej „pigułce”, żeby była czytelna na każdym zdjęciu --- */
@media (max-width: 1280px) {
	.sc-hero-nav {
		left: auto;
		right: calc(24px + 2vw); /* szablon wysuwa tu baner o ok. 2% poza ekran */
		bottom: 24px;
		gap: 16px;
		padding: 6px 6px 6px 18px;
		border-radius: 999px;
		background: rgba(255, 255, 255, .92);
		box-shadow: 0 4px 18px rgba(0, 0, 0, .12);
	}

	.sc-hero-tabs {
		gap: 14px;
	}

	.sc-hero-carousel .sc-hero-tab {
		min-width: 72px;
		font-size: 13px;
	}

	.sc-hero-carousel .sc-hero-arrow {
		width: 40px;
		height: 40px;
	}

	.sc-hero-carousel .sc-hero-arrow svg {
		width: 20px;
		height: 20px;
	}
}

/* 901–1279 px: szablon wysuwa baner poza ekran, przez co tekst stał 8 px od krawędzi – dajemy mu margines. */
@media (min-width: 901px) and (max-width: 1279px) {
	.sc-hero-carousel .carousel.sc-hero-ready .carousel__slide .carousel-item__content {
		padding-left: calc(2vw + 32px) !important;
	}
}

/* Telefon: zdjęcie u góry, tekst pod spodem – nawigacja na dolnej krawędzi zdjęcia (wysokość zdjęcia liczy skrypt). */
@media (max-width: 900px) {
	/* Slajdy mają wspólną wysokość – treść od góry, żeby nad zdjęciem nie powstał pusty pas. */
	.sc-hero-carousel .carousel.sc-hero-ready .carousel__slide {
		justify-content: flex-start !important;
	}

	.sc-hero-nav {
		top: calc(var(--sc-hero-media-h, 270px) - 58px);
		right: 12px;
		bottom: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sc-hero-carousel .carousel.sc-hero-ready .carousel__slide,
	.sc-hero-carousel .carousel.sc-hero-ready .carousel__slide.is-active {
		transition: none;
	}
}
