/**
 * Services block styles
 */

.ct-services {
	padding: 80px 0;
}

.ct-services__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 52px;
}

.ct-services--layout-slider .ct-services__header {
	align-items: flex-end;
}

.ct-services__header-main,
.ct-services__header-copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.ct-services__header-copy {
	gap: 8px;
}

.ct-services--layout-slider .ct-services__title {
	margin-bottom: 0;
}

.ct-services__title {
	margin-bottom: 0;
}

.ct-services--layout-slider .ct-services__badge {
	margin-bottom: 16px;
}

.ct-services__title {
	color: var(--color-bg-deepest);
}

.ct-services__text {
	max-width: 744px;
	margin: 0;
	font-weight: 500;
	font-size: 18px;
	line-height: 140%;
	color: var(--color-bg-deepest);
}

.ct-services__slider-meta {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ct-services__badge {
	white-space: nowrap;
}

.ct-services__slider-wrap {
	min-width: 0;
}

.ct-services__slider {
	overflow: hidden;
}

.ct-services__slider .swiper-wrapper {
	align-items: stretch;
}

.ct-services__slider .swiper-slide {
	min-width: 0;
}

.ct-services__slider .swiper-slide > .ct-services__card {
	width: 100%;
	min-width: 0;
}

.ct-services__slider-counter {
	font-weight: 700;
	font-size: 14px;
	line-height: 100%;
	color: var(--color-neutral-400);
	white-space: nowrap;
}

.ct-services__slider-nav {
	position: relative;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--color-white);
	cursor: pointer;
}

.ct-services__slider-nav::before {
	content: '';
	position: absolute;
	inset: 0;
	margin: auto;
	width: 16px;
	height: 16px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.ct-services__slider-nav--prev::before {
	background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.3337 3.3335L8.3741 7.29306C7.98357 7.68358 7.98357 8.31674 8.3741 8.70727L12.3337 12.6668' stroke='%233F3880' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M6.99967 3.3335L3.04011 7.29306C2.64959 7.68358 2.64959 8.31674 3.04011 8.70727L6.99967 12.6668' stroke='%233F3880' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.ct-services__slider-nav--next::before {
	background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.66634 3.3335L7.6259 7.29306C8.01643 7.68358 8.01643 8.31674 7.6259 8.70727L3.66634 12.6668' stroke='%233F3880' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M9.00033 3.3335L12.9599 7.29306C13.3504 7.68358 13.3504 8.31674 12.9599 8.70727L9.00033 12.6668' stroke='%233F3880' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.ct-services__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	align-items: stretch;
}

.ct-services__grid-mobile {
	display: none;
}

.ct-services__mobile-slider-nav-hidden {
	display: none;
}

.ct-services__slider-editor {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.ct-services__slider .swiper-slide {
	display: flex;
	height: auto;
}

.ct-services__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	border-radius: 12px;
	background: var(--color-white);
	overflow: hidden;
}

.ct-services__card-media {
	flex: 0 0 auto;
}

.ct-services__card-image {
	display: block;
	width: 100%;
	height: 320px;
	object-fit: cover;
	border-radius: 12px;
}

.ct-services__card-content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 28px 20px 20px;
}

.ct-services__card-title {
	color: var(--color-bg-deepest);
}

.ct-services__card-excerpt {
	margin: 0 0 37px;
	font-weight: 400;
	font-size: 16px;
	line-height: 130%;
	color: var(--color-bg-deepest);
}

.ct-services__card-meta {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	justify-content: flex-end;
	margin-top: auto;
}

.ct-services__card-price {
	margin-bottom: 14px;
}

.ct-services__card-price-label {
	display: block;
	margin-bottom: 2px;
	font-weight: 500;
	font-size: 12px;
	line-height: 130%;
	color: var(--color-neutral-600);
}

.ct-services__card-price-value {
	display: block;
	font-weight: 700;
	font-size: 20px;
	line-height: 100%;
	text-transform: uppercase;
	color: var(--color-purple-deep);
}

.btn.ct-services__card-book {
	padding: 14px 28px;
	font-size: 14px;
}

.ct-services__card-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.ct-services__footer {
	display: flex;
	justify-content: flex-end;
	margin-top: 40px;
}

@media (max-width: 1200px) {
	.ct-services--layout-grid .ct-services__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.ct-services {
		padding: 40px 0;
	}

	.ct-services__header {
		flex-direction: column-reverse;
		gap: 12px;
		margin-bottom: 32px;
	}

	.ct-services--layout-slider .ct-services__header {
		align-items: flex-start;
	}

	.ct-services__title {
		margin-bottom: 0;
	}

	.ct-services__text {
		font-size: 16px;
	}

	.ct-services__header-copy {
		gap: 12px;
	}

	.ct-services__slider-meta {
		display: none;
	}

	.ct-services__slider-wrap {
		margin-right: calc(var(--container-px-mobile) * -1);
		margin-left: calc(var(--container-px-mobile) * -1);
		padding-right: var(--container-px-mobile);
		padding-left: var(--container-px-mobile);
	}

	.ct-services__grid-desktop {
		display: none;
	}

	.ct-services__grid-mobile {
		display: block;
	}

	.ct-services__card-image {
		height: 220px;
	}

	.ct-services__card-content {
		padding: 20px 16px 16px;
	}

	.ct-services__card-excerpt {
		margin-bottom: 17px;
		font-size: 14px;
	}

	.ct-services__card-price-value {
		font-size: 18px;
	}

	.btn.ct-services__card-book {
		padding: 10px 24px;
		font-size: 12px;
		width: auto;
	}

	.ct-services__card-bottom {
		gap: 12px;
	}

	.ct-services__footer {
		margin-top: 32px;
	}
}
