/* ================================================== */
/* SWIPE BLOCKS SECTION - APPLE-LIKE DESIGN */
/* ================================================== */

/**
 * 1. Базовые стили секции
 * 2. Мобильная версия (до 767px)
 * 3. Планшетная версия (768px - 1023px)
 * 4. Десктопная версия (1024px и выше)
 * 5. Стили блоков и элементов
 */

/* 1. Базовые стили секции */
.swipe-section {
	/* padding: 60px 0; */
	padding: 1em 0 2em;
	/* background-color: #f5f5f7; Светлый фон как на Apple.com */
	overflow: hidden;
	position: relative;
}

.swipe-section::before,
.swipe-section::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 30px;
	z-index: 2;
	pointer-events: none;
}

.swipe-section::before {
	left: 0;
	background: linear-gradient(to right, #f5f5f7 20%, transparent);
}

.swipe-section::after {
	right: 0;
	background: linear-gradient(to left, #f5f5f7 20%, transparent);
}

/* 2. Мобильная версия */
.swipe-wrapper {
	display: flex;
	gap: 20px;
	padding: 0 20px 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	scroll-padding-left: 20px;
	scroll-padding-right: 20px;
}

.swipe-wrapper::-webkit-scrollbar {
	display: none;
}

.swipe-block {
	flex: 0 0 calc(100% - 40px);
	scroll-snap-align: start;
	scroll-margin-left: 20px;
	background: white;
	border-radius: 30px;
	padding: 30px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s ease;
	
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.swipe-block-image {
	min-height: 250px;
	background-image: linear-gradient(135deg, rgba(255, 255, 255, 1) 30%, rgba(255, 255, 255, .1)), url("https://z.expokit.ru/wp-content/themes/devtheme/images/specritual66.ru_pohorony.svg");
	background-repeat: no-repeat;
	background-position: right bottom;
	background-size: 120px auto;
}

/* 3. Планшетная версия */

/* Планшет */
@media (max-width: 1024px) {
	.swipe-block {
		/* flex: 1 1 calc(50% - 10px); */
	}
}

@media (min-width: 768px) {
	.swipe-section::before,
	.swipe-section::after {
		width: 60px;
	}
	
	.swipe-wrapper {
		padding: 0 40px 20px;
		scroll-padding-left: 40px;
		scroll-padding-right: 40px;
	}
	
	.swipe-block {
		flex: 0 0 calc(50% - 30px);
		margin-left: 0;
		scroll-margin-left: 0;
	}
	
	.swipe-wrapper::after {
		content: "";
		flex: 0 0 20px;
	}
}

/* 4. Десктопная версия */
@media (min-width: 1024px) {
	.swipe-section {
		/* padding: 80px 0; */
		padding: 2em 0 3em;
	}
	
	.swipe-section::before,
	.swipe-section::after {
		display: none;
	}
	
	.swipe-wrapper {
		flex-wrap: wrap;
		overflow-x: visible;
		justify-content: center;
		max-width: 1200px;
		margin: 0 auto;
		padding: 0;
	}
	
	.swipe-block {
		flex: 0 0 calc(33.333% - 30px);
	}
	
	.swipe-wrapper::after {
		display: none;
	}
	
	.blocks {
		display: flex;
		flex-direction: column;
		justify-content: space-between;
	}
	
	.blocks {
		position: relative;
		flex: 1 1 calc(33.333% - 30px);
		box-sizing: border-box;
	}
}

/* 5. Стили элементов блоков */
.swipe-image-container {
	width: 100px;
	height: 100px;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.swipe-image {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	/* обесцвечивание изображения с плавным переходом */
	filter: grayscale(100%);
	transition: filter 0.5s ease;
	
	border-radius: var(--mini-radius-block);
}

.swipe-image:hover {
	/* возвращение цвета изображению с плавным переходом */
	filter: grayscale(0%);
}

.swipe-image__emoji {
	width: 300px;
	height: auto;
	font-size: 5rem;
	object-fit: contain;
	/* обесцвечивание изображения с плавным переходом */
	filter: grayscale(100%);
	transition: filter 0.5s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	/* Force consistent rendering across browsers */
	font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', sans-serif;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
.swipe-image__emoji:hover {
	/* возвращение цвета изображению с плавным переходом */
	filter: grayscale(0%);
}

.swipe-title {
	font-size: 24px;
	margin: 0 0 15px 0;
	font-weight: 600;
	line-height: 1.2;
}

.swipe-title a {
	color: #000;
	text-decoration: none;
	transition: color 0.3s ease;
}

.swipe-title a:hover {
	color: #0066cc;
}

.swipe-content {
	font-size: 17px;
	line-height: 1.4;
	/* color: #333; */
	color: #000;
	padding-top: 1em;
}

/* Анимация при наведении (только для десктопов) */
@media (hover: hover) and (min-width: 1024px) {
	.swipe-block:hover {
		transform: translateY(-5px);
		box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
	}
}

/* Микро-интерактивность для мобильных */
@media (max-width: 1023px) {
	.swipe-block:active {
		/* transform: scale(0.98); */
		transform: none;
	}
}

/* === ОФОРМЛЕНИЕ === */

.swipe-block-image {
	background-image: -webkit-linear-gradient(315deg, rgba(255, 255, 255, 1) 30%, rgba(255, 255, 255, 0.1)),
		url("https://z.expokit.ru/wp-content/themes/devtheme/images/empty.svg");
	background-image: -moz-linear-gradient(315deg, rgba(255, 255, 255, 1) 30%, rgba(255, 255, 255, 0.1)),
		url("https://z.expokit.ru/wp-content/themes/devtheme/images/empty.svg");
	background-image: -ms-linear-gradient(315deg, rgba(255, 255, 255, 1) 30%, rgba(255, 255, 255, 0.1)),
		url("https://z.expokit.ru/wp-content/themes/devtheme/images/empty.svg");
	background-image: -o-linear-gradient(315deg, rgba(255, 255, 255, 1) 30%, rgba(255, 255, 255, 0.1)),
		url("https://z.expokit.ru/wp-content/themes/devtheme/images/empty.svg");
	background-image: linear-gradient(135deg, rgba(255, 255, 255, 1) 30%, rgba(255, 255, 255, 0.1)),
		url("https://z.expokit.ru/wp-content/themes/devtheme/images/empty.svg");
	background-repeat: no-repeat;
	background-position: right 20px bottom 20px;
	/*background-size: 120px auto;*/
	/* background-size: 40% auto; */
	/* background-size: 96px auto; */
	background-size: 64px auto;
}

.swipe-block-image-pohorony {
	/* background-image: -webkit-linear-gradient(315deg, rgba(255, 255, 255, 1) 30%, rgba(255, 255, 255, 0.1)),
	url("https://z.expokit.ru/wp-content/themes/devtheme/images/specritual66.ru_ceremoniya_pohoron_1100x800.webp");
	background-image: -moz-linear-gradient(315deg, rgba(255, 255, 255, 1) 30%, rgba(255, 255, 255, 0.1)),
		url("https://z.expokit.ru/wp-content/themes/devtheme/images/specritual66.ru_ceremoniya_pohoron_1100x800.webp");
	background-image: -ms-linear-gradient(315deg, rgba(255, 255, 255, 1) 30%, rgba(255, 255, 255, 0.1)),
		url("https://z.expokit.ru/wp-content/themes/devtheme/images/specritual66.ru_ceremoniya_pohoron_1100x800.webp");
	background-image: -o-linear-gradient(315deg, rgba(255, 255, 255, 1) 30%, rgba(255, 255, 255, 0.1)),
		url("https://z.expokit.ru/wp-content/themes/devtheme/images/specritual66.ru_ceremoniya_pohoron_1100x800.webp");
	background-image: linear-gradient(135deg, rgba(255, 255, 255, 1) 30%, rgba(255, 255, 255, 0.1)),
		url("https://z.expokit.ru/wp-content/themes/devtheme/images/specritual66.ru_ceremoniya_pohoron_1100x800.webp"); */
	background-repeat: no-repeat;
	/* background-position: right 0px bottom 0px; */
	/* background-position: right 20px bottom 20px; */
	background-position: right -120px bottom -70px;
	/* background-size: 120px auto; */
	/* background-size: 40% auto; */
	/* background-size: 64px auto; */
	background-size: 320px auto;
	position: relative;
}

.swipe-block-image-kremacija {
	/* background-image: -webkit-linear-gradient(315deg, rgba(255, 255, 255, 1) 30%, rgba(255, 255, 255, 0.1)),
	url("https://z.expokit.ru/wp-content/themes/devtheme/images/specritual66.ru_ceremoniya_kremaciya_1100x800.webp");
	background-image: -moz-linear-gradient(315deg, rgba(255, 255, 255, 1) 30%, rgba(255, 255, 255, 0.1)),
		url("https://z.expokit.ru/wp-content/themes/devtheme/images/specritual66.ru_ceremoniya_kremaciya_1100x800.webp");
	background-image: -ms-linear-gradient(315deg, rgba(255, 255, 255, 1) 30%, rgba(255, 255, 255, 0.1)),
		url("https://z.expokit.ru/wp-content/themes/devtheme/images/specritual66.ru_ceremoniya_kremaciya_1100x800.webp");
	background-image: -o-linear-gradient(315deg, rgba(255, 255, 255, 1) 30%, rgba(255, 255, 255, 0.1)),
		url("https://z.expokit.ru/wp-content/themes/devtheme/images/specritual66.ru_ceremoniya_kremaciya_1100x800.webp");
	background-image: linear-gradient(135deg, rgba(255, 255, 255, 1) 30%, rgba(255, 255, 255, 0.1)),
		url("https://z.expokit.ru/wp-content/themes/devtheme/images/specritual66.ru_ceremoniya_kremaciya_1100x800.webp"); */
	background-repeat: no-repeat;
	/* background-position: right 20px bottom 20px; */
	background-position: right -120px bottom -70px;
	/*background-size: 120px auto;*/
	/* background-size: 40% auto; */
	/* background-size: 64px auto; */
	background-size: 320px auto;
	position: relative;
}

/* === АНИМАЦИЯ === */

.swipe-block-image {
	-webkit-transition: -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
	-moz-transition: -moz-transform 0.3s ease, -moz-box-shadow 0.3s ease;
	-ms-transition: -ms-transform 0.3s ease, box-shadow 0.3s ease;
	-o-transition: -o-transform 0.3s ease, box-shadow 0.3s ease;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.swipe-block-image:hover {
	-webkit-transform: translateY(-5px);
	-moz-transform: translateY(-5px);
	-ms-transform: translateY(-5px);
	-o-transform: translateY(-5px);
	transform: translateY(-5px);
	-webkit-box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
	-moz-box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
	box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

/* === КНОПКИ === */

.block__button {
	align-self: flex-start;
	padding: 12px 24px;
	margin: 1em 0 0 0;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	background: -webkit-linear-gradient(left, #000000, #333333);
	background: -moz-linear-gradient(left, #000000, #333333);
	background: -ms-linear-gradient(left, #000000, #333333);
	background: -o-linear-gradient(left, #000000, #333333);
	background: linear-gradient(to right, #000000, #333333);
	border: none;
	-webkit-border-radius: 100px;
	-moz-border-radius: 100px;
	border-radius: 100px;
	cursor: pointer;
	-webkit-transition: background 0.3s ease;
	-moz-transition: background 0.3s ease;
	-ms-transition: background 0.3s ease;
	-o-transition: background 0.3s ease;
	transition: background 0.3s ease;
}

.block__button:hover {
	background: -webkit-linear-gradient(left, #222222, #555555);
	background: -moz-linear-gradient(left, #222222, #555555);
	background: -ms-linear-gradient(left, #222222, #555555);
	background: -o-linear-gradient(left, #222222, #555555);
	background: linear-gradient(to right, #222222, #555555);
}

.block__button-description {
	align-self: flex-start;
	justify-content: end;
	/* margin: 0 0 1em 0; */
	padding: 12px 24px;
	font-size: 16px;
	font-weight: 600;
	color: var(--white);
	background: -webkit-linear-gradient(135deg, #1a9be6, #1a57e6);
	background: -moz-linear-gradient(135deg, #1a9be6, #1a57e6);
	background: -ms-linear-gradient(135deg, #1a9be6, #1a57e6);
	background: -o-linear-gradient(135deg, #1a9be6, #1a57e6);
	background: linear-gradient(135deg, #1a9be6, #1a57e6);
	border: none;
	-webkit-border-radius: 100px;
	-moz-border-radius: 100px;
	border-radius: 100px;
	cursor: pointer;
	-webkit-transition: background 0.3s ease;
	-moz-transition: background 0.3s ease;
	-ms-transition: background 0.3s ease;
	-o-transition: background 0.3s ease;
	transition: background 0.3s ease;
}

.block__button a {
	text-decoration: none;
	color: inherit;
}

.block__button-description a {
	text-decoration: none;
	color: white;
}

.block__button {
	display: flex;
	align-items: center;
	justify-content: center;
	-webkit-transition: background 0.3s ease;
	-moz-transition: background 0.3s ease;
	-ms-transition: background 0.3s ease;
	-o-transition: background 0.3s ease;
	transition: background 0.3s ease;
}
/* === КОНЕЦ КНОПКИ === */


/* === Медиа-запросы по ОФОРМЛЕНИЮ === */

@media (max-width: 1024px) {
	
	.swipe-image__emoji {
		font-size: 5rem;
	}
	
	.swipe-block-image {
		/*background-size: 100px auto;*/
		/* background-size: 40% auto; */
		/* background-size: 96px auto; */
		background-size: 64px auto;	
	}
}

@media (max-width: 768px) {
	
	.swipe-image__emoji {
		font-size: 5rem;
	}
	
	.swipe-block-image {
		/*background-size: 80px auto;*/
		/* background-size: 50% auto; */
		/* background-size: 96px auto; */
		background-size: 64px auto;	
	}
}

@media (max-width: 480px) {
	
	.swipe-image__emoji {
		font-size: 6rem;
	}
	
	.swipe-block-image {
		/*background-size: 60px auto;*/
		/* background-size: 60% auto; */
		/* background-size: 96px auto; */
		background-size: 64px auto;	
		padding: 24px;
		
		/* отмена движения по-вертиркали для мобильных */
		-webkit-transition: none;
		-moz-transition: none;
		-ms-transition: none;
		-o-transition: none;
		transition: none;
		
		-webkit-transform: none;
		-moz-transform: none;
		-ms-transform: none;
		-o-transform: none;
		transform: none;
		
		-webkit-box-shadow: none;
		-moz-box-shadow: none;
		box-shadow: none;
	}
	.block__button {
		font-size: 14px;
		padding: 10px 20px;
	}
}

/* Дополнительные стили для улучшения swipe-эффекта */
/* Отступ у последнего блока */
	.swipe-block-image:last-child {
		/* margin-right: 20px; */
	}
}

/* Поддержка Internet Explorer */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
	.blocks {
		-ms-overflow-style: -ms-autohiding-scrollbar;
	}

	.swipe-block-image {
		-ms-flex: 0 0 280px;
	}
}
/* === Конец Медиа-запросы по ОФОРМЛЕНИЮ === */