/* Home page "Наши услуги" block (plugin_blocks/templates/service_plugin.html), variant F */
.sa-svc {
	--sv-blue: #355a9f; --sv-blue-d: #2a4a86; --sv-ink: #1d2433; --sv-text: #4b5563; --sv-muted: #6b7280;
	--sv-line: #e5e7eb; --sv-soft: #f3f6fb;
	width: 100vw;
	margin: 0 calc(50% - 50vw);
	padding: var(--sa-section, 72px) 0;
	background: #fff;
	color: var(--sv-ink);
	font-family: 'Roboto', sans-serif;
	line-height: 1.4;
	text-align: left;
}
.sa-svc * { box-sizing: border-box; }
.sa-svc-in { max-width: calc(var(--sa-wrap, 1200px) + 2 * var(--sa-gutter, 32px)); margin: 0 auto; padding: 0 var(--sa-gutter, 32px); }

.sa-svc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
html body .sa-svc .sa-svc-title {
	margin: 0; padding: 0; color: var(--sv-ink); font-family: inherit; font-size: clamp(28px, 3.4vw, 40px); font-weight: 700;
	line-height: 1.1; letter-spacing: 0; text-transform: none; text-align: left;
}
.sa-svc .sa-svc-title::before, .sa-svc .sa-svc-title::after { display: none; }
.sa-svc .sa-svc-sub { margin: 8px 0 0; padding: 0; color: var(--sv-text); font-size: 17px; line-height: 1.4; }
.sa-svc .sa-svc-all { display: inline-flex; align-items: center; gap: 6px; color: var(--sv-blue); font-size: 17px; font-weight: 500; text-decoration: none; }
.sa-svc .sa-svc-all::after { content: '→'; transition: transform .15s; }
.sa-svc .sa-svc-all:hover { color: var(--sv-blue-d); }
.sa-svc .sa-svc-all:hover::after { transform: translateX(3px); }

/* Featured cards */
.sa-svc-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sa-svc .sa-fc {
	display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--sv-line); border-radius: 20px;
	background: #fff; color: var(--sv-ink); text-decoration: none; transition: box-shadow .2s, transform .2s;
}
.sa-svc .sa-fc:hover { color: var(--sv-ink); box-shadow: 0 14px 34px rgba(17, 24, 39, .09); transform: translateY(-3px); }
.sa-svc .sa-fc.is-hit { border: 2px solid var(--sv-blue); }
.sa-fc-ph { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sv-soft); }
.sa-fc-ph img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .6s; }
.sa-fc:hover .sa-fc-ph img { transform: scale(1.04); }
.sa-fc-tag {
	position: absolute; left: 14px; top: 14px; padding: 5px 11px; border-radius: 20px;
	background: #fff; color: var(--sv-blue); font-size: 13px; font-weight: 500; line-height: 1.3;
}
.sa-fc.is-hit .sa-fc-tag { background: var(--sv-blue); color: #fff; }
.sa-fc-bd { flex: 1; display: flex; flex-direction: column; padding: 22px 24px 24px; }
html body .sa-svc .sa-fc h3 {
	margin: 0 0 4px; padding: 0; color: var(--sv-ink); font-family: inherit; font-size: 22px; font-weight: 700;
	line-height: 1.25; letter-spacing: 0; text-transform: none; text-align: left;
}
.sa-svc .sa-fc h3::before, .sa-svc .sa-fc h3::after { display: none; }
.sa-fc-pr { margin: 0 0 16px; color: var(--sv-blue); font-size: 26px; font-weight: 700; line-height: 1.3; white-space: nowrap; }
/* template.css styles every ul/li (uppercase, 35px line, 70px margin) */
html body .sa-svc ul.sa-fc-list { flex: 1; margin: 0 0 20px; padding: 0; list-style: none; }
html body .sa-svc ul.sa-fc-list li {
	position: relative; margin: 0; padding: 6px 0 6px 28px; color: var(--sv-text); font-size: 16px; line-height: 1.4;
	text-transform: none; letter-spacing: 0; background: none;
}
html body .sa-svc ul.sa-fc-list li::before {
	content: ''; position: absolute; left: 0; top: 8px; width: 18px; height: 18px; border-radius: 50%;
	background: var(--sv-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23355a9f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.sa-fc-btn {
	display: flex; align-items: center; justify-content: center; margin-top: auto; padding: 13px 22px; border-radius: 10px;
	background: #fff; border: 1px solid #c9d6ee; color: var(--sv-blue); font-size: 16px; font-weight: 500; line-height: 1.2;
	transition: background .15s, color .15s;
}
.sa-fc:hover .sa-fc-btn { background: var(--sv-soft); }
.sa-fc.is-hit .sa-fc-btn { background: var(--sv-blue); border-color: var(--sv-blue); color: #fff; }
.sa-fc.is-hit:hover .sa-fc-btn { background: var(--sv-blue-d); }

/* Other services as chips */
.sa-svc-more { margin-top: 32px; padding: 26px; border-radius: 20px; background: var(--sv-soft); }
.sa-svc-top:empty + .sa-svc-more, .sa-svc-head + .sa-svc-more { margin-top: 0; }
html body .sa-svc .sa-svc-more h3 {
	margin: 0 0 16px; padding: 0; color: var(--sv-ink); font-family: inherit; font-size: 20px; font-weight: 700;
	line-height: 1.3; text-transform: none; letter-spacing: 0; text-align: left;
}
.sa-svc .sa-svc-more h3::before, .sa-svc .sa-svc-more h3::after { display: none; }
.sa-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.sa-svc .sa-chip {
	display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px; border: 1px solid var(--sv-line); border-radius: 30px;
	background: #fff; color: var(--sv-ink); font-size: 16px; line-height: 1.3; text-decoration: none; transition: all .15s;
}
.sa-svc .sa-chip b { color: var(--sv-blue); font-weight: 700; white-space: nowrap; }
.sa-svc .sa-chip:hover { border-color: var(--sv-blue); background: var(--sv-blue); color: #fff; }
.sa-svc .sa-chip:hover b { color: #fff; }
.sa-svc .sa-chip.is-all { border-color: var(--sv-blue); background: var(--sv-blue); color: #fff; font-weight: 500; }
.sa-svc .sa-chip.is-all:hover { border-color: var(--sv-blue-d); background: var(--sv-blue-d); }

@media (max-width: 960px) {
	.sa-svc-top { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 860px) {
	html body .sa-svc .sa-fc h3 { font-size: 21px; }
	html body .sa-svc ul.sa-fc-list li { font-size: 17px; }
	.sa-svc-more { padding: 18px; }
	.sa-svc .sa-chip { font-size: 16px; padding: 10px 14px; }
}

/* The contacts block below has margin-top: 110px (template.css); the services block already has bottom padding */
.sa-svc + #block_content_2 { margin-top: 0; }
