/*
Мост между блочной разметкой (Gutenberg) и дизайном уралмс.рф.
Только для страницы-песочницы с обёрткой .ums-scope.ums-blocks.
*/

.ums-scope.ums-blocks figure {
	margin: 0;
}

.ums-scope.ums-blocks .wp-block-buttons,
.ums-scope.ums-blocks .wp-block-button {
	display: contents;
}

.ums-scope.ums-blocks a.wp-block-button__link {
	text-decoration: none;
	color: inherit;
	box-shadow: none;
	width: auto;
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 0;
}

.ums-scope.ums-blocks p.hero-trust {
	max-width: none;
	font-size: 14px;
}

.ums-scope.ums-blocks .hero p.eyebrow {
	max-width: none;
}

.ums-scope.ums-blocks .home-hero-caption {
	display: flex;
	align-items: center;
}

.ums-scope.ums-blocks .wp-block-button.secondary-button > a {
	align-items: center;
	gap: 16px;
	font-size: 14px;
	font-weight: 700;
	display: flex;
}

.ums-scope.ums-blocks .wp-block-button.button > a {
	color: #fff;
	background: #fb5927;
	border: 1px solid #0000;
	border-radius: 3px;
	justify-content: space-between;
	align-items: center;
	gap: 30px;
	padding: 16px 24px;
	font-size: 14px;
	font-weight: 650;
	transition: background .2s, transform .2s;
	display: inline-flex;
}

.ums-scope.ums-blocks .wp-block-button.button > a:hover {
	background: #df4213;
	transform: translateY(-2px);
}

.ums-scope.ums-blocks.home-page .wp-block-button.secondary-button > a {
	color: #fff;
	border-bottom: 1px solid #ffffff70;
	padding-bottom: 8px;
}

.ums-scope.ums-blocks.home-page .wp-block-button.button > a {
	background: var(--home-accent);
	color: #171719;
	border-radius: 1px;
	padding: 17px 26px;
	font-weight: 800;
}

.ums-scope.ums-blocks.home-page .wp-block-button.button > a:hover {
	background: #ffad50;
}

/* Home-варианты секций, завязанные в оригинале на strong/svg/span */
.ums-scope.ums-blocks.home-page .stats .stat-value {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 40px;
	color: #fff;
}

.ums-scope.ums-blocks.home-page .stats .stat-value span {
	color: var(--home-accent);
}

.ums-scope.ums-blocks.home-page .process-tags > .process-tag:before {
	color: var(--home-accent);
}

.ums-scope.ums-blocks.home-page .category-body::after {
	color: #e77d08;
}

.ums-scope.ums-blocks.home-page .advantages > .wp-block-group::before {
	color: var(--home-accent);
}

.ums-scope.ums-blocks.home-page .quality-label::before {
	color: #b66606;
}

/* Иконки-маски вместо inline SVG */
.ums-scope.ums-blocks .wp-block-button.secondary-button > a::after,
.ums-scope.ums-blocks .category-bottom a::after {
	content: "";
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ums-scope.ums-blocks .category-bottom a::after {
	width: 17px;
	height: 17px;
}

.ums-scope.ums-blocks .wp-block-button.button > a::after,
.ums-scope.ums-blocks a.text-link::after,
.ums-scope.ums-blocks .cert-caption::after {
	content: "";
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ums-scope.ums-blocks .wp-block-button.button > a::after {
	width: 20px;
	height: 20px;
}

.ums-scope.ums-blocks .cert-caption::after {
	width: 14px;
	height: 14px;
}

.ums-scope.ums-blocks .hero .eyebrow::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #fb5927;
	flex-shrink: 0;
}

.ums-scope.ums-blocks.home-page .hero .eyebrow::before {
	background: var(--home-accent);
}

.ums-scope.ums-blocks .hero-trust::before {
	content: "";
	width: 19px;
	height: 19px;
	flex-shrink: 0;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ums-scope.ums-blocks .advantages > .wp-block-group:nth-child(1)::before {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ums-scope.ums-blocks .advantages > .wp-block-group::before {
	content: "";
	width: 23px;
	height: 23px;
	color: #fb5927;
	margin-bottom: 14px;
	display: block;
	background-color: currentColor;
}

.ums-scope.ums-blocks .advantages > .wp-block-group:nth-child(2)::before {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2'/%3E%3Cpath d='M15 18H9'/%3E%3Cpath d='M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2'/%3E%3Cpath d='M15 18H9'/%3E%3Cpath d='M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ums-scope.ums-blocks .advantages > .wp-block-group:nth-child(3)::before {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 5H3'/%3E%3Cpath d='M12 19H3'/%3E%3Cpath d='M14 3v4'/%3E%3Cpath d='M16 17v4'/%3E%3Cpath d='M21 12h-9'/%3E%3Cpath d='M21 19h-5'/%3E%3Cpath d='M21 5h-7'/%3E%3Cpath d='M8 10v4'/%3E%3Cpath d='M8 12H3'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 5H3'/%3E%3Cpath d='M12 19H3'/%3E%3Cpath d='M14 3v4'/%3E%3Cpath d='M16 17v4'/%3E%3Cpath d='M21 12h-9'/%3E%3Cpath d='M21 19h-5'/%3E%3Cpath d='M21 5h-7'/%3E%3Cpath d='M8 10v4'/%3E%3Cpath d='M8 12H3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ums-scope.ums-blocks .advantages > .wp-block-group:nth-child(4)::before {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6v6h4'/%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6v6h4'/%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ums-scope.ums-blocks .quality-label::before {
	content: "";
	width: 15px;
	height: 15px;
	flex-shrink: 0;
	color: #fb5927;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ums-scope.ums-blocks .contact-line a::before {
	content: "";
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	color: #7c909c;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ums-scope.ums-blocks .contact-line a::after {
	content: "";
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	margin-left: auto;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ums-scope.ums-blocks .contact-line a[href^="mailto:"]::before {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7'/%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7'/%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Структурные алиасы: обёртки блоков вместо старых тегов */
.ums-scope.ums-blocks .link-p,
.ums-scope.ums-blocks .contact-line {
	display: contents;
}

.ums-scope.ums-blocks .stats .stat-value {
	letter-spacing: -.04em;
	white-space: nowrap;
	font-size: 32px;
	font-weight: 700;
	margin: 0;
}

.ums-scope.ums-blocks .stats .stat-value span {
	color: #fb5927;
	font-size: 20px;
	font-weight: 500;
}

.ums-scope.ums-blocks .stats p:not(.stat-value) {
	margin-top: 5px;
	font-size: 14px;
}

.ums-scope.ums-blocks .category-image > .wp-block-image {
	position: absolute;
	inset: 0;
}

.ums-scope.ums-blocks .category-image > .wp-block-image img {
	object-fit: cover;
	width: 100%;
	height: 100%;
	transition: transform .5s;
}

.ums-scope.ums-blocks .category-card:hover .wp-block-image img {
	transform: scale(1.05);
}

.ums-scope.ums-blocks .category-image > .category-num {
	z-index: 2;
	color: #fff;
	background: #162b3a88;
	padding: 2px 7px;
	font-size: 14px;
	position: absolute;
	top: 14px;
	left: 14px;
}

.ums-scope.ums-blocks .category-body::after {
	content: "";
	width: 22px;
	height: 22px;
	position: absolute;
	top: 23px;
	right: 20px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ums-scope.ums-blocks .production-feature > .wp-block-image {
	object-fit: cover;
	opacity: .52;
	width: 100%;
	height: 100%;
	position: absolute;
	inset: 0;
}

.ums-scope.ums-blocks .production-feature > .wp-block-image img {
	object-fit: cover;
	width: 100%;
	height: 100%;
}

.ums-scope.ums-blocks .process-tags > .process-tag:before {
	content: "+";
	color: #fb5927;
	margin-right: 9px;
}

.ums-scope.ums-blocks .quality-labels > .quality-label {
	align-items: center;
	gap: 5px;
	display: flex;
}

.ums-scope.ums-blocks .certificates > .certificate-card {
	background: #f4f5f4;
	padding: 12px;
	transition: transform .2s;
}

.ums-scope.ums-blocks .certificates > .certificate-card:hover {
	transform: translateY(-5px);
}

.ums-scope.ums-blocks .certificates .wp-block-image img {
	aspect-ratio: .7;
	object-fit: contain;
	width: 100%;
}

.ums-scope.ums-blocks .cert-caption {
	color: #77858c;
	justify-content: space-between;
	align-items: center;
	gap: 4px;
	margin-top: 10px;
	font-size: 14px;
	display: flex;
}

.ums-scope.ums-blocks .home-hero-caption > .caption-label {
	letter-spacing: .14em;
	color: #ddd;
	font-size: 14px;
	text-transform: none;
	margin: 0;
	font-family: inherit;
	line-height: inherit;
}

/* Растянутая ссылка карточки */
.ums-scope.ums-blocks .category-card,
.ums-scope.ums-blocks .certificate-card {
	position: relative;
}

.ums-scope.ums-blocks .card-overlay {
	position: absolute;
	inset: 0;
	z-index: 3;
	margin: 0;
}

.ums-scope.ums-blocks .card-overlay a {
	position: absolute;
	inset: 0;
	display: block;
}

/* Ссылка-растяжка не должна наследовать стили карточки-документа */
.ums-scope.ums-blocks .certificates .card-overlay a {
	background: transparent;
	padding: 0;
	transition: none;
}

.ums-scope.ums-blocks .certificates .card-overlay a:hover {
	transform: none;
}

@media (max-width: 1150px) {
	.ums-scope.ums-blocks .stats .stat-value {
		font-size: 26px;
	}
	.ums-scope.ums-blocks .stats > div {
		padding-inline: 20px;
	}
	.ums-scope.ums-blocks .wp-block-button.secondary-button > a {
		gap: 6px;
	}
}

@media (max-width: 900px) {
	.ums-scope.ums-blocks .contact-line a {
		font-size: 15px;
	}
	.ums-scope.ums-blocks .stats .stat-value {
		font-size: 23px;
	}
	.ums-scope.ums-blocks .stats .stat-value span {
		font-size: 16px;
	}
	.ums-scope.ums-blocks.home-page .stats .stat-value {
		font-size: 30px;
	}
}

@media (max-width: 650px) {
	.ums-scope.ums-blocks .stats .stat-value {
		font-size: 28px;
	}
	.ums-scope.ums-blocks .stats .stat-value span {
		font-size: 17px;
	}
	.ums-scope.ums-blocks.home-page .stats .stat-value {
		font-size: 30px;
	}
	.ums-scope.ums-blocks .stats p:not(.stat-value) {
		font-size: 14px;
	}
	.ums-scope.ums-blocks .hero-actions .wp-block-button.button > a {
		gap: 15px;
		padding: 14px 18px;
		font-size: 14px;
	}
	.ums-scope.ums-blocks .wp-block-button.secondary-button > a {
		font-size: 14px;
	}
	.ums-scope.ums-blocks .hero-trust {
		margin-top: 22px;
		font-size: 14px;
	}
	.ums-scope.ums-blocks .category-body::after {
		width: 17px;
		height: 17px;
		top: 15px;
		right: 12px;
	}
	.ums-scope.ums-blocks .contact-line a {
		font-size: 20px;
	}
	.ums-scope.ums-blocks .certificates > .certificate-card {
		padding: 7px;
	}
	.ums-scope.ums-blocks.home-page .home-hero-caption > .caption-label {
		display: none;
	}
}