.delka-slider {
	--delka-slider-accent: #f59d00;
	--delka-slider-dark: #121820;
	--delka-slider-light: #ffffff;
	--delka-slider-muted: rgba(255, 255, 255, 0.78);
	position: relative;
	width: 100%;
	min-height: var(--delka-slider-height-desktop, 620px);
	overflow: hidden;
	background: #111820;
	font-family: inherit;
}

.delka-slider *,
.delka-slider *::before,
.delka-slider *::after {
	box-sizing: border-box;
}

.delka-slider .swiper,
.delka-slider .swiper-wrapper,
.delka-slider .swiper-slide {
	min-height: var(--delka-slider-height-desktop, 620px);
}

.delka-slider-slide {
	position: relative;
	display: flex;
	align-items: stretch;
	overflow: hidden;
}

.delka-slider-bg,
.delka-slider-overlay {
	position: absolute;
	inset: 0;
}

.delka-slider-bg {
	width: 100%;
	height: 100%;
	background-image: var(--delka-bg-desktop, none);
	background-position: center;
	background-position: var(--delka-bg-position-desktop, center center);
	background-repeat: no-repeat;
	background-size: cover;
	transform: scale(1.01);
	transition: opacity 0.28s ease, background-image 0.35s ease, transform 0.7s ease;
}

.delka-slider-bg.is-loading-bg {
	opacity: 0.72;
}

.delka-slider .swiper-slide-active .delka-slider-bg {
	transform: scale(1);
}

.delka-slider-overlay {
	background: var(--delka-slider-overlay-color, #000000);
	opacity: var(--delka-slider-overlay-opacity, 0.35);
	pointer-events: none;
}

.delka-slider-color-dark .delka-slider-overlay {
	background: var(--delka-slider-overlay-color, #000000);
}

.delka-slider-inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: min(1180px, calc(100% - 48px));
	min-height: var(--delka-slider-height-desktop, 620px);
	margin: 0 auto;
	padding: 78px 0;
}

.delka-slider-content {
	width: min(570px, 100%);
	opacity: 0;
	transition:
		opacity var(--delka-animation-duration, 600ms) ease,
		transform var(--delka-animation-duration, 600ms) ease;
}

.delka-slider-content[data-delka-animation="fade-up"] {
	transform: translateY(24px);
}

.delka-slider-content[data-delka-animation="fade-left"] {
	transform: translateX(-24px);
}

.delka-slider-content[data-delka-animation="none"] {
	transform: none;
	transition: none;
}

.delka-slider-content.is-visible,
.delka-slider-content.delka-text-visible {
	opacity: 1;
	transform: translate(0, 0);
}

.delka-slider-content.is-product-transitioning {
	opacity: 0;
	transform: translateY(12px);
	transition:
		opacity var(--delka-product-transition-duration, var(--delka-animation-duration, 600ms)) ease,
		transform var(--delka-product-transition-duration, var(--delka-animation-duration, 600ms)) ease;
}

.delka-text-light .delka-slider-content,
.delka-slider-color-light .delka-slider-content,
.delka-slider-content.delka-text-light {
	color: #fff;
}

.delka-text-dark .delka-slider-content,
.delka-slider-color-dark .delka-slider-content,
.delka-slider-content.delka-text-dark {
	color: #222;
}

.delka-text-left .delka-slider-inner,
.delka-slider-text-left .delka-slider-inner {
	align-items: flex-start;
	text-align: left;
}

.delka-text-center .delka-slider-inner,
.delka-slider-text-center .delka-slider-inner {
	align-items: center;
	text-align: center;
}

.delka-text-right .delka-slider-inner,
.delka-slider-text-right .delka-slider-inner {
	align-items: flex-end;
	text-align: right;
}

.delka-slider h2 {
	margin: 0 0 16px;
	color: inherit;
	font-size: clamp(34px, 4vw, 66px);
	line-height: 1.04;
	font-weight: 760;
	letter-spacing: 0;
}

.delka-slider-description {
	max-width: 620px;
	color: inherit;
	font-size: 18px;
	line-height: 1.65;
}

.delka-slider-description p {
	margin: 0 0 12px;
}

.delka-text-light .delka-slider-description,
.delka-slider-color-light .delka-slider-description {
	color: var(--delka-slider-muted);
}

.delka-text-dark .delka-slider-description,
.delka-slider-color-dark .delka-slider-description {
	color: rgba(34, 34, 34, 0.78);
}

.delka-slider-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	min-height: 46px;
	margin-top: 14px;
	padding: 12px 24px;
	border-radius: 999px;
	background: var(--delka-slider-accent);
	color: #111820;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	overflow-wrap: anywhere;
}

.delka-slider-button:hover,
.delka-slider-button:focus {
	background: var(--delka-slider-accent);
	color: #111820;
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
	transform: translateY(-1px);
	text-decoration: none;
}

.delka-slider-button.is-hidden {
	display: none;
}

.delka-slider-arrow {
	position: absolute;
	z-index: 5;
	top: 50%;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(18, 24, 32, 0.58);
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
	cursor: pointer;
	transform: translateY(-50%);
	transition: background 0.2s ease, transform 0.2s ease;
}

.delka-slider-arrow::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 12px;
	border-top: 2px solid #fff;
	border-left: 2px solid #fff;
}

.delka-slider-prev {
	left: 22px;
}

.delka-slider-prev::before {
	transform: translate(-35%, -50%) rotate(-45deg);
}

.delka-slider-next {
	right: 22px;
}

.delka-slider-next::before {
	transform: translate(-65%, -50%) rotate(135deg);
}

.delka-slider-arrow:hover {
	background: var(--delka-slider-accent);
	transform: translateY(-50%) scale(1.04);
}

.delka-slider-arrow:focus,
.delka-slider-arrow:active {
	background: rgba(18, 24, 32, 0.58);
	transform: translateY(-50%);
	outline: none;
}

.delka-slider-arrow:focus-visible {
	background: rgba(18, 24, 32, 0.58);
	outline: 2px solid var(--delka-slider-accent);
	outline-offset: 3px;
}

.delka-slider-dots {
	position: absolute;
	z-index: 20;
	left: 50%;
	bottom: 20px;
	display: flex;
	gap: 8px;
	transform: translateX(-50%);
}

.delka-slider-dot {
	display: block;
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	cursor: pointer;
	appearance: none;
	transition: width 0.2s ease, background 0.2s ease;
}

.delka-slider-dot.is-active {
	background: var(--delka-slider-accent);
}

.delka-slider-tabs {
	position: absolute;
	z-index: 6;
	top: 22px;
	left: 50%;
	right: auto;
	display: inline-flex;
	justify-content: flex-start;
	gap: 8px;
	width: auto !important;
	max-width: calc(100% - 48px);
	box-sizing: border-box;
	overflow-x: auto;
	padding: 8px;
	border-radius: 999px;
	background: rgba(18, 24, 32, 0.5);
	transform: translateX(-50%);
	scrollbar-width: none;
	white-space: nowrap;
	-webkit-overflow-scrolling: touch;
}

.delka-slider-tabs::-webkit-scrollbar {
	display: none;
}

.delka-slider-tab {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 8px 16px;
	border: 0;
	border-radius: 999px;
	background: rgba(18, 24, 32, 0.72);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.2s ease, color 0.2s ease;
}

.delka-slider-tab-icon {
	display: block;
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
	border-radius: 50%;
	object-fit: contain;
}

.delka-slider-tab span {
	display: block;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.delka-slider-tab.is-active,
.delka-slider-tab:hover,
.delka-slider-tab:focus {
	background: var(--delka-slider-accent);
	color: #111820;
}

.delka-slider-product .delka-slider-inner {
	justify-content: flex-end;
	padding-top: 96px;
	padding-bottom: 150px;
}

.delka-slider-product .delka-slider-content {
	margin-bottom: auto;
	padding-top: 80px;
}

.delka-product-cards {
	position: absolute;
	z-index: 6;
	left: 50%;
	bottom: 32px;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(210px, 260px);
	gap: 14px;
	width: min(1180px, calc(100% - 48px));
	margin: 0;
	padding: 2px 2px 10px;
	overflow-x: auto;
	transform: translateX(-50%);
	scrollbar-width: thin;
	touch-action: pan-x;
	overscroll-behavior-inline: contain;
	-webkit-overflow-scrolling: touch;
}

.delka-slider-no-swiping {
	touch-action: pan-x;
}

.delka-product-card {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	min-height: 104px;
	padding: 12px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	background: rgba(18, 24, 32, 0.72);
	color: #fff;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.delka-product-card img {
	display: block;
	width: 72px;
	height: 72px;
	border-radius: 8px;
	object-fit: cover;
	background: rgba(255, 255, 255, 0.14);
}

.delka-product-card span {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 5px;
}

.delka-product-card strong {
	color: inherit;
	font-size: 15px;
	line-height: 1.25;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.delka-product-card small {
	display: -webkit-box;
	overflow: hidden;
	color: rgba(255, 255, 255, 0.72);
	font-size: 12px;
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.delka-product-card.is-active,
.delka-product-card:hover,
.delka-product-card:focus {
	border-color: var(--delka-slider-accent);
	background: rgba(18, 24, 32, 0.9);
	transform: translateY(-2px);
}

.delka-slider-admin-message {
	padding: 12px 14px;
	border-left: 4px solid var(--delka-slider-accent, #f59d00);
	background: #fff8e7;
	color: #2c3338;
}

@media (max-width: 1024px) {
	.delka-slider-bg {
		background-image: var(--delka-bg-tablet, var(--delka-bg-desktop, none));
		background-position: var(--delka-bg-position-tablet, var(--delka-bg-position-desktop, center center));
	}

	.delka-slider,
	.delka-slider .swiper,
	.delka-slider .swiper-wrapper,
	.delka-slider .swiper-slide,
	.delka-slider-inner {
		min-height: var(--delka-slider-height-tablet, 520px);
	}

	.delka-slider-inner {
		width: min(100% - 36px, 920px);
		padding: 70px 0;
	}

	.delka-slider h2 {
		font-size: clamp(30px, 5vw, 48px);
	}

	.delka-slider-description {
		font-size: 16px;
	}

	.delka-slider-tabs {
		width: auto !important;
		max-width: calc(100% - 36px);
		overflow-x: auto;
	}

	.delka-product-cards {
		grid-auto-columns: minmax(190px, 230px);
		width: min(920px, calc(100% - 36px));
	}
}

@media (max-width: 640px) {
	.delka-slider-bg {
		background-image: var(--delka-bg-mobile, var(--delka-bg-tablet, var(--delka-bg-desktop, none)));
		background-position: var(--delka-bg-position-mobile, var(--delka-bg-position-tablet, var(--delka-bg-position-desktop, center center)));
	}

	.delka-slider,
	.delka-slider .swiper,
	.delka-slider .swiper-wrapper,
	.delka-slider .swiper-slide,
	.delka-slider-inner {
		min-height: var(--delka-slider-height-mobile, 460px);
	}

	.delka-slider-inner {
		width: calc(100% - 28px);
		padding: 62px 0 66px;
	}

	.delka-slider h2 {
		margin-bottom: 12px;
		font-size: 30px;
		line-height: 1.08;
	}

	.delka-slider-description {
		font-size: 15px;
		line-height: 1.5;
	}

	.delka-slider-button {
		min-height: 42px;
		padding: 11px 18px;
		font-size: 14px;
	}

	.delka-slider-arrow {
		top: auto;
		bottom: 20px;
		width: 36px;
		height: 36px;
		transform: none;
	}

	.delka-slider-arrow:hover,
	.delka-slider-arrow:focus-visible {
		transform: scale(1.04);
	}

	.delka-slider-arrow:focus,
	.delka-slider-arrow:active {
		transform: none;
	}

	.delka-slider-prev {
		left: 14px;
	}

	.delka-slider-next {
		right: 14px;
	}

	.delka-slider-dots {
		bottom: 28px;
	}

	.delka-slider-tabs {
		top: 12px;
		width: auto !important;
		max-width: calc(100% - 24px);
		overflow-x: auto;
		padding: 6px;
		border-radius: 999px;
	}

	.delka-slider-tab {
		gap: 6px;
		min-height: 38px;
		padding: 8px 12px;
		font-size: 13px;
	}

	.delka-slider-tab-icon {
		width: 20px;
		height: 20px;
		flex-basis: 20px;
	}

	.delka-slider-product .delka-slider-inner {
		padding-top: 78px;
		padding-bottom: 104px;
	}

	.delka-slider-product .delka-slider-content {
		padding-top: 16px;
	}

	.delka-slider-product .delka-slider-dots {
		bottom: 114px;
	}

	.delka-slider-product .delka-slider-arrow {
		bottom: 112px;
		background: rgba(18, 24, 32, 0.66);
	}

	.delka-product-cards {
		grid-auto-columns: minmax(180px, 82vw);
		gap: 10px;
		bottom: 14px;
		width: calc(100% - 28px);
		margin: 0;
		padding-bottom: 8px;
	}

	.delka-product-card {
		grid-template-columns: 58px minmax(0, 1fr);
		min-height: 86px;
		padding: 10px;
	}

	.delka-product-card img {
		width: 58px;
		height: 58px;
	}
}
