.wps_works_section {
	margin-top: var(--space-3xl);
	margin-bottom: 0;
}

/* Нижний отступ секции = верхний у следующего блока (адаптивно) */
.home_services:has(.wps_works_section) {
	padding-bottom: 90px;
}

.wps_works {
	margin: var(--space-xl) 0;
}

.wps_works_section .wps_works {
	margin: 0;
}

.content > .wps_works {
	margin-bottom: var(--space-lg);
}

.wps_works_section .content > .wps_works {
	margin-bottom: 0;
}

.wps_works_head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-md);
	margin-bottom: var(--space-lg);
}

.content .wps_works_head h2 {
	margin: 0;
}

.wps_works_section .content .wps_works_head h2 {
	color: #00364D;
	font-family: 'Manrope', Arial, Verdana, Tahoma;
	font-weight: 600;
	font-size: var(--text-2xl);
	line-height: var(--leading-tight);
	letter-spacing: -0.02em;
	text-transform: none;
}

.wps_works_nav {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 8px;
}

.wps_works_nav[hidden] {
	display: none !important;
}

.wps_works_nav_btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid #F0F0F0;
	border-radius: 50%;
	background: #FFFFFF;
	box-shadow: 0 6px 16px rgba(0, 54, 77, 0.08);
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.wps_works_nav_btn span {
	display: block;
	width: 10px;
	height: 10px;
	border-top: 2px solid #00364D;
	border-right: 2px solid #00364D;
	transform: translateX(-1px) rotate(45deg);
}

.wps_works_nav_prev span {
	transform: translateX(1px) rotate(-135deg);
}

.wps_works_nav_btn:hover,
.wps_works_nav_btn:focus,
.wps_works_nav_btn:active {
	border-color: #F0F0F0;
	background: #FFFFFF;
	box-shadow: 0 6px 16px rgba(0, 54, 77, 0.08);
	outline: none;
}

.wps_works_nav_btn:hover span,
.wps_works_nav_btn:focus span,
.wps_works_nav_btn:active span {
	border-color: #006894;
}

.wps_works_carousel {
	display: block;
	width: 100%;
}

/* Поля под тень; меньше зазора между слайдами (1.5rem), соседние не видны */
.wps_works_viewport {
	overflow: hidden;
	width: calc(100% + 28px);
	padding: 6px 14px 12px;
	margin: -6px -14px -12px;
}

.wps_works_track {
	--wps_works_gap: 1.5rem;
	--wps_works_cols: 2;
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	width: 100%;
	column-gap: var(--wps_works_gap);
	row-gap: 0;
	transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
	will-change: transform;
}

.wps_works_slide {
	display: flex;
	flex: 0 0 calc((100% - (var(--wps_works_cols) - 1) * var(--wps_works_gap)) / var(--wps_works_cols));
	width: calc((100% - (var(--wps_works_cols) - 1) * var(--wps_works_gap)) / var(--wps_works_cols));
	max-width: none;
	min-width: 0;
}

.wps_works_slide > .wps_card {
	min-height: 100%;
	box-shadow: 0 4px 12px rgba(0, 54, 77, 0.06);
}

.wps_works .wps_card.wps_works_card_empty {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 160px;
	text-align: center;
}

.wps_works_card_empty_label {
	display: block;
	max-width: 14em;
	margin: 0;
	color: #00364D;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: 1.5;
	letter-spacing: normal;
}

.wps_works_tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 12px;
}

.wps_works_tag {
	display: inline-block;
	padding: 3px 9px;
	border: 1px solid #006894;
	border-radius: 6px;
	background: transparent;
	color: #006894;
	font-family: 'Manrope', Arial, Verdana, Tahoma;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.01em;
	text-decoration: none;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.content a.wps_works_tag:hover,
.content a.wps_works_tag:focus,
.content a.wps_works_tag:active,
.wps_works_tag:hover,
.wps_works_tag:focus,
.wps_works_tag:active {
	border-color: #006894;
	background: #006894;
	color: #FFFFFF;
	text-decoration: none;
}

.wps_works_sectors_block {
	margin: var(--space-3xl) 0 0;
}

.wps_works_section .content .wps_works_sectors_block > h2 {
	margin: 0 0 var(--space-lg);
	padding: 0;
	color: #00948A;
	font-family: 'Manrope', Arial, Verdana, Tahoma;
	font-weight: 600;
	font-size: var(--text-2xl);
	line-height: var(--leading-tight);
	letter-spacing: -0.02em;
	text-transform: none;
	text-align: left;
}

.wps_works_sectors {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 10px;
	margin: 0;
}

.wps_works_sectors .wps_works_tag {
	min-height: 50px;
	padding: 0 15px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-color: #00948A;
	border-radius: 6px;
	color: #00948A;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: normal;
	text-decoration: none;
	cursor: default;
}

.wps_works_sectors a.wps_works_tag {
	cursor: pointer;
}

.wps_works_sectors span.wps_works_tag:hover,
.wps_works_sectors span.wps_works_tag:focus,
.wps_works_sectors span.wps_works_tag:active {
	border-color: #00948A;
	background: transparent;
	color: #00948A;
}

.content .wps_works_sectors a.wps_works_tag:hover,
.content .wps_works_sectors a.wps_works_tag:focus,
.content .wps_works_sectors a.wps_works_tag:active,
.wps_works_sectors a.wps_works_tag:hover,
.wps_works_sectors a.wps_works_tag:focus,
.wps_works_sectors a.wps_works_tag:active {
	border-color: #00948A;
	background: #00948A;
	color: #FFFFFF;
	text-decoration: none;
}

.wps_works_section .content .wps_works_sectors_text {
	margin: var(--space-lg) 0 0;
	padding: 0;
	color: #00364D;
	font-family: 'Manrope', Arial, Verdana, Tahoma;
	font-weight: 400;
	font-size: var(--text-md);
	line-height: var(--leading-body);
	text-align: left;
}

.wps_works_more {
	margin-top: var(--space-sm);
}

.wps_works_more a {
	color: #006894;
	font-weight: 600;
	text-decoration: none;
}

.wps_works_more a:hover,
.wps_works_more a:focus,
.wps_works_more a:active {
	color: #00948A;
	text-decoration: underline;
}

.wps_works_modal.modal {
	padding: 16px !important;
	background: transparent;
}

.wps_works_modal .mobile_menu_panel_title {
	line-height: 1.35;
}

.wps_works_modal .modal-dialog {
	margin: 0 auto;
	max-width: min(640px, 100%);
	width: 100%;
	pointer-events: none;
}

.wps_works_modal .modal-content {
	pointer-events: auto;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-height: min(82dvh, 760px);
	overflow: hidden;
	padding: 18px 16px 20px;
	border: 1px solid rgba(0, 104, 148, 0.12);
	border-radius: 16px;
	background: #FFFFFF;
	box-shadow: 0 24px 60px rgba(0, 54, 77, 0.28);
}

.wps_works_modal .modal-body {
	padding: 0;
	overflow-x: hidden;
	overflow-y: auto;
	font-size: var(--text-sm);
	line-height: 1.55;
	color: #00364D;
}

.wps_works_modal .modal-body.content > :first-child {
	margin-top: 0;
}

.wps_works_modal .modal-body.content > :last-child {
	margin-bottom: 0;
}

.wps_works_modal .modal-body.content h2,
.wps_works_modal .modal-body.content h3,
.wps_works_modal .modal-body.content h4,
.wps_works_modal .modal-body.content h5,
.wps_works_modal .modal-body.content h6 {
	margin-top: 12px;
	margin-bottom: 6px;
	padding: 0;
	font-size: var(--text-md);
	line-height: var(--leading-snug);
	letter-spacing: -0.01em;
}

.wps_works_modal .modal-body.content h2 {
	font-size: var(--text-lg);
}

.wps_works_modal .modal-body.content h3 {
	font-size: 17px;
}

.wps_works_modal .modal-body.content h4,
.wps_works_modal .modal-body.content h5,
.wps_works_modal .modal-body.content h6 {
	font-size: var(--text-sm);
}

.wps_works_modal .modal-body.content h2:first-child,
.wps_works_modal .modal-body.content h3:first-child,
.wps_works_modal .modal-body.content h4:first-child,
.wps_works_modal .modal-body.content p:first-child,
.wps_works_modal .modal-body.content ul:first-child,
.wps_works_modal .modal-body.content ol:first-child,
.wps_works_modal .modal-body.content blockquote:first-child {
	margin-top: 0;
}

.wps_works_modal .modal-body.content p,
.wps_works_modal .modal-body.content li,
.wps_works_modal .modal-body.content td,
.wps_works_modal .modal-body.content th {
	font-size: var(--text-sm);
	line-height: 1.55;
}

.wps_works_modal .modal-body.content p {
	margin: 0 0 8px;
	padding: 0;
}

.wps_works_modal .modal-body.content p.wps_works_modal_note {
	margin: 8px 0 0;
	color: #006894;
	font-size: var(--text-sm);
	line-height: 1.55;
}

.wps_works_modal .modal-body.content ul,
.wps_works_modal .modal-body.content ol {
	margin: 0 0 8px;
	padding: 0 0 0 1.15em;
}

.wps_works_modal .modal-body.content li {
	margin: 0 0 4px;
	padding: 0;
}

.wps_works_modal .modal-body.content li:last-child {
	margin-bottom: 0;
}

.wps_works_modal .modal-body.content blockquote {
	margin: 10px 0;
	padding: 10px 12px;
	font-size: var(--text-xs);
	line-height: 1.5;
}

.wps_works_modal .modal-body.content blockquote p {
	margin: 0;
}

.wps_works_modal .modal-body.content blockquote p + p {
	margin-top: 6px;
}

.wps_works_modal .modal-body.content table {
	margin: 0 0 8px;
}

.wps_works_modal .modal-body.content img {
	max-width: 100%;
	height: auto;
	margin: 0 0 8px;
}

.wps_works_modal .modal-body.content .gallery {
	margin-top: 10px;
	margin-bottom: 10px;
}

.wps_works_modal .modal-body.content .gallery > .row {
	--bs-gutter-x: 8px;
	--bs-gutter-y: 8px;
}

.wps_works_modal .modal-body.content .gallery .gallery_box {
	border-radius: 6px;
}

.wps_works_modal .modal-body.content .gallery .gallery_box img {
	margin: 0;
	border-radius: 6px;
}

.wps_works_modal .modal-body.content .gallery .gallery_caption {
	margin-top: 4px;
	font-size: 12px;
	line-height: 1.3;
}

.wps_works_modal .modal-body .wps_works_modal_tags {
	margin: 0;
}

.wps_works_modal .modal-body .wps_works_modal_tags .wps_works_tags {
	gap: 8px;
	margin: 0;
}

.wps_works_modal .modal-body .wps_works_modal_tags .wps_works_tag {
	padding: 5px 12px;
	font-size: 13px;
	line-height: 1.35;
}

.wps_works_modal_tags_divider {
	display: block;
	width: 100%;
	height: 0;
	margin: 12px 0;
	padding: 0;
	border: 0;
	border-top: 1px solid rgba(0, 104, 148, 0.12);
	opacity: 1;
	color: transparent;
}

.wps_works_tags_sector .wps_works_tag {
	border-color: #00948A;
	color: #00948A;
}

.content .wps_works_tags_sector a.wps_works_tag:hover,
.content .wps_works_tags_sector a.wps_works_tag:focus,
.content .wps_works_tags_sector a.wps_works_tag:active,
.wps_works_tags_sector a.wps_works_tag:hover,
.wps_works_tags_sector a.wps_works_tag:focus,
.wps_works_tags_sector a.wps_works_tag:active {
	border-color: #00948A;
	background: #00948A;
	color: #FFFFFF;
	text-decoration: none;
}

.wps_works_tags_sector span.wps_works_tag:hover,
.wps_works_tags_sector span.wps_works_tag:focus,
.wps_works_tags_sector span.wps_works_tag:active {
	border-color: #00948A;
	background: transparent;
	color: #00948A;
}


body:has(.wps_works_modal.show) .modal-backdrop,
body:has(.wps_works_modal.showing) .modal-backdrop {
	background: rgba(0, 54, 77, 0.62);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	opacity: 1;
	box-shadow: none;
	transform: none;
	transition: opacity 0.35s ease;
}

/* LG */
@media screen and (min-width: 991.98px) and (max-width: 1199.98px) {
	.home_services:has(.wps_works_section) {
		padding-bottom: 72px;
	}
}

/* MD */
@media screen and (min-width: 767.98px) and (max-width: 991.98px) {
	.home_services:has(.wps_works_section) {
		padding-bottom: 64px;
	}
}

/* < MD */
@media screen and (min-width: 0px) and (max-width: 767.98px) {
	.wps_works_section {
		margin-top: var(--space-2xl);
	}

	.home_services:has(.wps_works_section) {
		padding-bottom: 48px;
	}

	.wps_works_track {
		--wps_works_cols: 1;
	}

	.wps_works_head {
		margin-bottom: var(--space-md);
	}

	.wps_works_section .content .wps_works_head h2 {
		font-size: 26px;
	}

	.wps_works_sectors_block {
		margin-top: var(--space-2xl);
	}

	.wps_works_section .content .wps_works_sectors_block > h2 {
		font-size: 26px;
		margin-bottom: var(--space-md);
	}

	.wps_works_section .content .wps_works_sectors_text {
		font-size: 16px;
		line-height: 1.65;
	}
}

/* XS */
@media screen and (min-width: 0px) and (max-width: 575.98px) {
	.home_services:has(.wps_works_section) {
		padding-bottom: 40px;
	}

	.wps_works_nav_btn {
		width: 36px;
		height: 36px;
	}

	.wps_works .wps_card.wps_works_card_empty {
		min-height: 140px;
	}

	.wps_works_modal.modal {
		padding: 12px !important;
	}

	.wps_works_modal .modal-content {
		max-height: calc(100dvh - 24px);
		padding: 14px 12px 16px;
		border-radius: 14px;
	}

	.wps_works_modal .modal-body.content h2 {
		font-size: var(--text-md);
	}

	.wps_works_modal .modal-body.content h3 {
		font-size: var(--text-sm);
	}

	.wps_works_modal .modal-body.content p,
	.wps_works_modal .modal-body.content li {
		font-size: var(--text-xs);
	}
}
