/*
 * AV-Security — «Услуги» page (/uslugi/)
 * ----------------------------------------------------------------------------
 * Loaded only on the services page (inc/services.php), after sections.css.
 *
 * Section order (templates/page-uslugi.html):
 *   01 Hero (dark) · 02 Task picker · 03 Physical security (navy) ·
 *   04 Technologies · 05 Integrated system (navy) · 06 Process (light) ·
 *   07 After launch (photo band) · 08 Cost factors · 09 FAQ ·
 *   10 Request form (the site's .av-calc panel)
 *
 * Layout follows the approved mock-up (941px wide; ×1.53 at 1440). Colours,
 * type, buttons and the form come from the theme: --av-container, --av-ink,
 * --av-ink-deep, --av-primary, --av-primary-hover, --av-accent,
 * --av-hairline (main.css); .av-section / .av-container and the .av-calc
 * form component (sections.css); the hero title class .av-hero__title
 * (main.css). The mock-up's red connector lines use the header's lifted brand
 * red for navy (#f0485c, main.css). Everything new is .av-svc-* and scoped to
 * this page.
 *
 * Breakpoints follow the theme: 600 / 769 / 900 (header overlay) / 1024 /
 * 1200.
 */

/* Only colours that already exist in the theme (no new palette). */
.av-services-page {
	--av-svc-navy: #0a1a2b;                 /* footer / Technologies navy (sections.css) */
	--av-svc-light: #f3f6f9;                /* light bands (= .av-calc bg, sections.css) */
	--av-svc-muted: rgba(11, 31, 51, 0.72); /* = --av-ink-muted (sections.css) */
	--av-svc-line: var(--av-hairline);
	--av-svc-on-navy: #6fa3e6;              /* --av-primary tint on navy (sections.css) */
	--av-svc-on-navy-icon: #8fb8ea;         /* .av-calc benefit icons (sections.css) */
	--av-svc-on-navy-text: rgba(203, 216, 232, 0.82); /* ≈ --av-calc-on-navy */
	--av-svc-red-on-navy: #f0485c;          /* --av-accent-on-dark (main.css header) */
	--av-svc-gutter: var(--wp--preset--spacing--50);
}

@media (min-width: 769px) {
	/* Same edges as .av-section .av-container and the hero (sections.css). */
	.av-services-page {
		--av-svc-gutter: max(
			calc(var(--wp--preset--spacing--50) * 3),
			calc((100% - var(--av-container)) / 2 + var(--wp--preset--spacing--50))
		);
	}
}

/* Sections are full-bleed siblings inside the constrained <main>. */
.av-services-page > .wp-block-group {
	margin-block: 0;
}

/* Elements toggled by services.js keep `hidden` even where they set display. */
.av-services-page [hidden] {
	display: none !important;
}

.av-svc-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.av-svc-nowrap {
	white-space: nowrap;
}

.av-svc-icon {
	display: block;
	flex: 0 0 auto;
}

/* ------------------------------------------------------------ Shared type */

.av-svc-head > * {
	margin-block: 0;
}

/* Mock-up eyebrow «01 — НАЗВАНИЕ»: number, short brand-red rule, label. */
.av-services-page .av-svc-eyebrow {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 0.9rem;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(11, 31, 51, 0.62);
}

.av-svc-eyebrow__num {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--av-ink);
}

.av-svc-eyebrow__num::after {
	content: "";
	width: 1.5rem;
	height: 2px;
	background-color: var(--av-accent);
}

.av-services-page .av-svc-eyebrow--light {
	color: rgba(255, 255, 255, 0.66);
}

.av-svc-eyebrow--light .av-svc-eyebrow__num {
	color: #fff;
}

.av-services-page .av-svc-title {
	margin: 0;
	font-size: clamp(1.625rem, 1.15rem + 1.6vw, 2.375rem); /* mock-up ≈ 34px at 1440 */
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.015em;
	color: var(--av-ink);
	text-wrap: balance;
}

.av-services-page .av-svc-title--light {
	color: #fff;
}

.av-services-page .av-svc-lead {
	max-width: 34rem;
	margin: 1rem 0 0;
	font-size: 1rem;
	line-height: 1.65;
	color: var(--av-svc-muted);
}

.av-services-page .av-svc-lead--light {
	color: var(--av-svc-on-navy-text);
}

/* ------------------------------------------------------------ Buttons / links
   .av-svc-btn = the site's primary button (homepage hero CTA: primary blue,
   2px radius, 0.9 × 1.75rem, 600) with the header CTA's arrow. */

.av-services-page .av-svc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	box-sizing: border-box;
	min-height: 3.25rem;
	padding: 0.9rem 1.75rem;
	border-radius: 2px;
	background-color: var(--av-primary);
	color: #fff;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.01em;
	text-decoration: none;
	transition: background-color 0.18s ease;
}

.av-services-page .av-svc-btn:hover,
.av-services-page .av-svc-btn:focus-visible {
	background-color: var(--av-primary-hover);
	color: #fff;
	text-decoration: none;
}

.av-services-page .av-svc-btn:focus-visible {
	outline: 2px solid var(--av-primary);
	outline-offset: 3px;
}

.av-svc-btn__arrow,
.av-svc-textlink__arrow {
	transition: transform 0.2s ease;
}

.av-svc-btn:hover .av-svc-btn__arrow,
.av-svc-btn:focus-visible .av-svc-btn__arrow,
.av-svc-textlink:hover .av-svc-textlink__arrow,
.av-svc-textlink:focus-visible .av-svc-textlink__arrow {
	transform: translateX(3px);
}

.av-services-page .av-svc-textlink {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.75rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--av-primary);
	text-decoration: none;
	transition: color 0.2s ease;
}

.av-services-page .av-svc-textlink:hover,
.av-services-page .av-svc-textlink:focus-visible {
	color: var(--av-primary-hover);
	text-decoration: none;
}

.av-services-page .av-svc-textlink:focus-visible {
	outline: 2px solid var(--av-primary);
	outline-offset: 3px;
	border-radius: 2px;
}

.av-services-page .av-svc-textlink--light,
.av-services-page .av-svc-textlink--light:hover,
.av-services-page .av-svc-textlink--light:focus-visible {
	color: #fff;
}

/* Focus on navy / photo bands: white ring (as the homepage hero). */
.av-svc-hero a:focus-visible,
.av-svc-physical a:focus-visible,
.av-svc-system a:focus-visible,
.av-svc-system button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
	border-radius: 2px;
}

/* ------------------------------------------------------------ Placeholders
   Printed by av_security_services_photo() while a photo is missing; replaced
   automatically by the <img> once the file is in assets/images/. */

.av-services-page .av-svc-ph {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	padding: 1.25rem;
	text-align: center;
	color: rgba(255, 255, 255, 0.5);
	background-color: var(--av-svc-navy);
	background-image:
		linear-gradient(160deg, rgba(111, 163, 230, 0.2) 0%, rgba(111, 163, 230, 0) 60%),
		repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 16px);
}

.av-svc-ph__label {
	max-width: 22rem;
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* ==========================================================================
   01 · Hero — dark; photo of the patrol cars right, text left, benefits bar
   along the bottom. The header's navigation row runs over the top (≥900px).
   Below 900px: text, then the photo as its own band, then the benefits.
   ========================================================================== */

.av-svc-hero {
	--av-hero-under: 0px;
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background-color: var(--av-ink-deep);
	color: #fff;
}

.av-svc-hero__inner {
	order: 1;
	box-sizing: border-box;
	width: 100%;
	padding: 2rem var(--av-svc-gutter) 2.25rem;
}

.av-services-page .av-svc-hero__inner {
	margin-block: 0;
}

.av-svc-hero__inner > * {
	margin-block: 0;
}

.av-svc-hero__media {
	order: 2;
	position: relative;
	aspect-ratio: 16 / 10;
}

.av-svc-hero__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 100% 50%;              /* crop the trees (left), keep both cars */
}

.av-svc-hero .av-svc-ph {
	align-items: flex-end;
	justify-content: flex-end;
	padding: 1.25rem var(--av-svc-gutter);
	text-align: right;
	background-color: #071624;
	background-image:
		radial-gradient(80% 90% at 78% 30%, rgba(26, 95, 180, 0.28) 0%, rgba(26, 95, 180, 0) 70%),
		repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 16px);
}

/* Breadcrumbs — same component as «Контакты» (contacts.css), which is not
   loaded on this page. */
.av-services-page .av-breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.875rem;
	line-height: 1.2;
	color: rgba(255, 255, 255, 0.86);
}

.av-services-page .av-breadcrumbs__item {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
}

.av-services-page .av-breadcrumbs__item + .av-breadcrumbs__item::before {
	content: "";
	width: 0.4rem;
	height: 0.4rem;
	margin-right: 0.15rem;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	transform: rotate(45deg);
}

.av-services-page .av-breadcrumbs a {
	display: inline-block;
	margin-block: -0.75rem;                 /* larger tap area, same layout */
	padding-block: 0.75rem;
	color: rgba(255, 255, 255, 0.86);
	text-decoration: none;
	transition: color 0.2s ease;
}

.av-services-page .av-breadcrumbs a:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.av-services-page .av-breadcrumbs [aria-current="page"] {
	color: #fff;
}

/* Hero type = the homepage system: the title is .av-hero__title (main.css)
   at the homepage H1 size (theme preset xx-large, as .has-xx-large-font-size
   on the homepage); the lead is set like the homepage description
   .av-hero__text (1.05rem / 1.65, 1rem ≤390px). Only widths and spacing are
   page-specific. Always «Услуги / AV-Security» in two lines (mock-up), so
   at 900–1199px the title does not run across the lead car. */
.av-services-page .av-svc-hero__title {
	max-width: 8em;
	margin-top: 1.25rem;
	font-size: var(--wp--preset--font-size--xx-large);
}

.av-services-page .av-svc-hero__lead {
	max-width: 31rem;
	margin-top: 1.1rem;
	font-size: 1.05rem;                     /* = .av-hero__text */
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.86);
}

@media (max-width: 390px) {
	.av-services-page .av-svc-hero__lead {
		font-size: 1rem;                    /* = .av-hero__text ≤390px */
	}
}

.av-svc-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 2rem;
	margin-top: 1.75rem;
}

.av-svc-hero__bar {
	order: 3;
	box-sizing: border-box;
	padding: 1.25rem var(--av-svc-gutter) 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.av-svc-hero__benefits {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.av-svc-hero__benefit {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.8125rem;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.9);
}

.av-svc-hero__benefit-icon {
	color: var(--av-svc-on-navy);
}

/* PNG icons: the drawing fills ~55–65% of the 512px canvas, so the image is
   drawn at 70px (visible drawing ≈ 36–39px tall). The negative margins keep a
   42×28px layout box: 28px tall, so the bar keeps its height and the icon
   stays centred on the text; 42px wide, so the widest drawing clears the
   12px gap to the text. */
.av-svc-hero__benefit-img {
	display: block;
	flex: 0 0 auto;
	width: 70px;
	height: 70px;
	margin: -21px -14px;
	object-fit: contain;
}

@media (max-width: 599px) {
	.av-svc-hero__actions .av-svc-btn {
		width: 100%;
	}

	.av-svc-hero__benefit-icon {
		width: 24px;
		height: 24px;
	}

	/* Phones: 54px drawn (visible ≈ 28–30px), 32×24px layout box. */
	.av-svc-hero__benefit-img {
		width: 54px;
		height: 54px;
		margin: -15px -11px;
	}
}

@media (min-width: 900px) {
	.av-svc-hero {
		--av-hero-under: 5rem;              /* main.css --av-main-h */
		min-height: 33rem;
	}

	.av-svc-hero__media {
		position: absolute;
		inset: 0;
		z-index: -1;
		aspect-ratio: auto;
	}

	/* Readability: dark on the left behind the text, clear over the cars;
	   a light grounding under the benefits bar. */
	.av-svc-hero__media::after {
		content: "";
		position: absolute;
		inset: 0;
		background:
			linear-gradient(90deg, rgba(6, 17, 31, 0.92) 0%, rgba(6, 17, 31, 0.78) 30%, rgba(6, 17, 31, 0.3) 56%, rgba(6, 17, 31, 0) 76%),
			linear-gradient(0deg, rgba(6, 17, 31, 0.8) 0%, rgba(6, 17, 31, 0) 26%);
		pointer-events: none;
	}

	.av-svc-hero .av-svc-ph {
		padding-bottom: 7.5rem;
	}

	.av-svc-hero__inner {
		display: flex;
		flex: 1 0 auto;
		flex-direction: column;
		justify-content: center;
		padding-block: calc(var(--av-hero-under) + 2.25rem) 2.5rem;
	}

	.av-svc-hero__inner > * {
		max-width: 36rem;
	}

	.av-svc-hero__bar {
		padding-block: 1.4rem 1.6rem;
	}

	.av-svc-hero__benefits {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 0;
	}

	.av-svc-hero__benefit {
		padding-inline: 1.5rem;
	}

	.av-svc-hero__benefit:first-child {
		padding-left: 0;
	}

	.av-svc-hero__benefit + .av-svc-hero__benefit {
		border-left: 1px solid rgba(255, 255, 255, 0.14);
	}
}

@media (min-width: 1200px) {
	.av-svc-hero {
		--av-hero-under: 4.625rem;          /* main.css --av-main-h ≥1200 */
		min-height: 36rem;                  /* ≈ mock-up 310px × 1.53 + nav row */
	}

	/* Wide screens: the photo starts a little right of the edge (dark field
	   under the text), so the lead car's bonnet clears the lead text. */
	.av-svc-hero__media {
		left: 16%;
	}

	.av-svc-hero__benefit {
		font-size: 0.875rem;
	}
}

/* ==========================================================================
   02 · Task picker — five task cards, recommendation panel under them
   ========================================================================== */

.av-services-page .av-section.av-svc-picker {
	--av-section-pt: 2.75rem;
	--av-section-pb: 3rem;
}

/* Light geometric background, edge to edge; the content stays in the
   container. A faint white veil at the top and bottom edges keeps the seams
   to the hero and the next section clean. */
.av-services-page .av-section.av-svc-picker {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 9%, rgba(255, 255, 255, 0) 91%, rgba(255, 255, 255, 0.7) 100%),
		url("../images/services-picker-bg.webp") center center / cover no-repeat,
		#fff;
}

.av-svc-picker .av-svc-head {
	margin-bottom: 1.75rem;
}

.av-svc-picker__tasks {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.625rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.av-svc-picker__task {
	display: flex;
	min-width: 0;
}

/* Phones: compact rows — icon | title + text | arrow. */
.av-services-page .av-svc-task {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.2rem 0.9rem;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 0.95rem 1rem;
	border: 1px solid var(--av-svc-line);
	border-radius: 4px;
	background-color: #fff;
	color: var(--av-ink);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.av-svc-task__icon {
	grid-row: 1 / span 2;
	color: var(--av-primary);
}

.av-svc-task__num {
	display: none;
}

.av-svc-task__title {
	grid-column: 2;
	font-size: 0.975rem;
	font-weight: 700;
	line-height: 1.3;
}

.av-svc-task__text {
	grid-column: 2;
	font-size: 0.8125rem;
	line-height: 1.45;
	color: var(--av-svc-muted);
}

.av-svc-task__arrow {
	grid-column: 3;
	grid-row: 1 / span 2;
	color: var(--av-ink);
	transition: transform 0.2s ease;
}

.av-services-page .av-svc-task:hover {
	border-color: rgba(26, 95, 180, 0.45);
	box-shadow: 0 18px 36px -30px rgba(11, 31, 51, 0.45);
}

.av-svc-task:hover .av-svc-task__arrow {
	transform: translateX(3px);
}

.av-services-page .av-svc-task:focus-visible {
	outline: 2px solid var(--av-primary);
	outline-offset: 3px;
}

/* Chosen task: the mock-up's navy card. */
.av-services-page .av-svc-task[aria-pressed="true"] {
	border-color: var(--av-svc-navy);
	background-color: var(--av-svc-navy);
	color: #fff;
}

.av-svc-task[aria-pressed="true"] .av-svc-task__icon,
.av-svc-task[aria-pressed="true"] .av-svc-task__num {
	color: var(--av-svc-on-navy);
}

.av-svc-task[aria-pressed="true"] .av-svc-task__text {
	color: rgba(255, 255, 255, 0.72);
}

.av-svc-task[aria-pressed="true"] .av-svc-task__arrow {
	color: #fff;
}

@media (min-width: 600px) {
	.av-svc-picker__tasks {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.75rem;
	}

	.av-svc-picker__task:last-child {
		grid-column: 1 / -1;
	}
}

/* Cards from 1024px: five in a row, as in the mock-up. */
@media (min-width: 1024px) {
	.av-svc-picker__tasks {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 0.875rem;
	}

	.av-svc-picker__task:last-child {
		grid-column: auto;
	}

	.av-services-page .av-svc-task {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		min-height: 13.5rem;
		padding: 1.375rem 1.25rem 1.25rem;
	}

	.av-svc-task__num {
		position: absolute;
		top: 1.375rem;
		right: 1.25rem;
		display: block;
		font-size: 0.75rem;
		font-weight: 700;
		letter-spacing: 0.04em;
		color: rgba(11, 31, 51, 0.4);
	}

	.av-svc-task__title {
		margin-top: 1.25rem;
		font-size: 1rem;
	}

	.av-svc-task__text {
		margin-top: 0.5rem;
	}

	.av-svc-task__arrow {
		margin-top: auto;
		padding-top: 1rem;
	}
}

/* ----------------------------------------------------- Recommendation
   Compact CTA row = the homepage «Нужна охрана объекта?» row
   (.av-process__cta, sections.css — scoped to .av-process, so its values are
   repeated here): #f8fafc band, 3px primary bar on the left, 20px title,
   15px muted text, the primary button on the right from 768px. */

.av-svc-advice {
	position: relative;
	display: grid;
	gap: 1.25rem;
	margin-top: 1.25rem;
	padding: 1.125rem 1.25rem 1.125rem 1.5rem;
	border-radius: 4px;
	background-color: #f8fafc;
}

.av-svc-advice::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 3px;
	border-radius: 4px 0 0 4px;
	background: var(--av-primary);
}

.av-svc-advice > *,
.av-svc-advice__main > * {
	margin-block: 0;
}

.av-services-page .av-svc-advice__title {
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--av-ink);
}

.av-services-page .av-svc-advice__text {
	margin-top: 0.4rem;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--av-svc-muted);
}

/* Button: as .av-process__cta-btn (16px / 600, 0.9rem × 1.75rem). */
.av-services-page .av-svc-advice__cta {
	width: 100%;
	min-height: 0;
	padding: 0.9rem 1.75rem;
	font-size: 1rem;
	line-height: 1.3;
}

/* Phones: the label + arrow keep to one line in the full-width button. */
@media (max-width: 599px) {
	.av-services-page .av-svc-advice__cta {
		padding-inline: 1.25rem;
	}
}

@media (min-width: 768px) {
	.av-svc-advice {
		padding: 1.375rem 2rem 1.375rem 2.25rem;
	}

	.av-services-page .av-svc-advice__cta {
		justify-self: start;
		width: auto;
	}
}

/* Button beside the text from 900px (the recommendation is longer than the
   homepage line; at 768px it would wrap to five lines next to the button). */
@media (min-width: 900px) {
	.av-svc-advice {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: 2rem;
	}

	.av-services-page .av-svc-advice__cta {
		justify-self: auto;
	}
}

/* ==========================================================================
   03 · Physical security — the photo is the background of the whole band
   (≥1024px): text left over a navy gradient that fades out by the middle,
   officers + car in the middle, translucent «Форматы охраны» card right.
   No shade over the right of the photo. Below 1024px: text, photo band, card.
   ========================================================================== */

.av-svc-physical {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background-color: var(--av-svc-navy);
	color: #fff;
}

.av-svc-physical__media {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.av-svc-physical__img,
.av-svc-physical__media .av-svc-ph {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* Phones / tablets: the lead officer, the car logo and the second
	   officer (photo 1774×887). */
	object-position: 40% 50%;
}

.av-services-page .av-svc-physical__grid {
	display: grid;
	margin-block: 0;
}

.av-svc-physical__grid > *,
.av-svc-physical__text > * {
	margin-block: 0;
}

/* Phones / tablets: text first, then the photo band, then the card. */
.av-svc-physical__text {
	order: -1;
	padding: 3rem var(--av-svc-gutter) 2.5rem;
}

.av-svc-physical {
	display: flex;
	flex-direction: column;
}

.av-svc-physical__grid {
	display: contents !important;
}

.av-svc-physical__formats {
	padding: 2.25rem var(--av-svc-gutter) 3rem;
}

.av-svc-physical__action {
	margin: 1.75rem 0 0;
}

.av-services-page .av-svc-physical__formats-title {
	margin: 0 0 0.5rem;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.72);
}

.av-svc-physical__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.av-svc-physical__item {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	padding: 0.8rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.9375rem;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.94);
}

.av-svc-physical__item:last-child {
	border-bottom: 0;
}

.av-svc-physical__icon {
	color: var(--av-svc-on-navy);
}

@media (min-width: 600px) and (max-width: 1023px) {
	.av-svc-physical__list {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 2rem;
	}

	.av-svc-physical__item:nth-last-child(2) {
		border-bottom: 0;
	}
}

@media (min-width: 1024px) {
	.av-svc-physical {
		display: block;
	}

	/* Photo = background of the band. */
	.av-svc-physical__media {
		position: absolute;
		inset: 0;
		z-index: -1;
		aspect-ratio: auto;
	}

	.av-svc-physical__img,
	.av-svc-physical__media .av-svc-ph {
		object-position: 100% 30%;
	}

	/* Navy on the left for the text, fading out by the middle; the right
	   half of the photo is left as it is. */
	.av-svc-physical__media::after {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(90deg, var(--av-svc-navy) 0%, rgba(10, 26, 43, 0.9) 24%, rgba(10, 26, 43, 0.5) 38%, rgba(10, 26, 43, 0) 52%);
		pointer-events: none;
	}

	.av-svc-physical__grid {
		display: grid !important;
		grid-template-columns: minmax(0, 18.5rem) minmax(0, 1fr) minmax(0, 19rem);
		grid-template-areas: "text . card";
		align-items: center;
		gap: 2rem;
		box-sizing: border-box;
		min-height: 34rem;
		padding: 3.5rem var(--av-svc-gutter);
	}

	/* The text group sits 40px above the vertical centre (approved); offset
	   only, so the band height and the card stay as they are. */
	.av-svc-physical__text {
		position: relative;
		top: -2.5rem;
		grid-area: text;
		padding: 0;
	}

	/* Translucent card: its own background only, for the text in it. */
	.av-svc-physical__formats {
		grid-area: card;
		padding: 1.5rem 1.625rem;
		border: 1px solid rgba(255, 255, 255, 0.14);
		border-radius: 4px;
		background-color: rgba(10, 26, 43, 0.72);
		-webkit-backdrop-filter: blur(6px);
		backdrop-filter: blur(6px);
	}
}

@media (min-width: 1200px) {
	/* Wide screens: the photo starts 18% in (navy field under the text, as in
	   the hero), so the whole photo fits — the car logo sits right of the
	   text, the lead officer in the middle, the second officer left of the
	   card. */
	.av-svc-physical__media {
		left: 18%;
	}

	.av-svc-physical__img,
	.av-svc-physical__media .av-svc-ph {
		object-position: 0 30%;
	}

	.av-svc-physical__media::after {
		background: linear-gradient(90deg, var(--av-svc-navy) 0%, rgba(10, 26, 43, 0.72) 10%, rgba(10, 26, 43, 0.25) 22%, rgba(10, 26, 43, 0) 34%);
	}

	.av-svc-physical__grid {
		grid-template-columns: minmax(0, 22rem) minmax(0, 1fr) minmax(0, 19rem);
		min-height: 36rem;
	}
}

/* ==========================================================================
   04 · Technologies — approved mock-up services-technologies-reference.png
   (1774×887): intro + wide «Пультовая охрана» card on top, four photo
   cards in one row below; light background image behind both rows.
   Cards: .av-svc-tc (patterns/services-tech.php). ≥600 the photo is a
   layer under the text with a tone gradient; <600 it sits above the text.
   ========================================================================== */

.av-services-page .av-section.av-svc-tech {
	--av-section-pt: 3rem;
	--av-section-pb: 3rem;
	--tc-navy: #061a36;         /* mock-up title / dark card navy */
	--tc-blue: #1570ef;         /* mock-up «которые усиливают» */
	--tc-light: #f1f6fc;        /* light card base (photo fades into it) */
	--tc-dark: #04193a;         /* dark card base */
	--tc-r: 4px;                /* homepage cards (.av-tech, service cards, bento --bx-r-card) */
	--tc-r-sm: 2px;             /* inner tiles = buttons / bento card photos */
	--tc-reveal: cubic-bezier(0.22, 1, 0.36, 1);
	--tc-ease: cubic-bezier(0.2, 0.7, 0.3, 1);
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background-color: #f3f7fc;
}

.av-services-page .av-section.av-svc-tech::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: url("../images/services-technologies-bg.webp") center / cover no-repeat;
	pointer-events: none;
}

.av-svc-tech__wrap {
	box-sizing: border-box;
	display: grid;
	gap: 0.75rem;
	width: 100%;
	padding-inline: var(--av-svc-gutter); /* the site container (sections.css) */
}

.av-svc-tech__wrap > *,
.av-svc-tech__top > * {
	margin-block: 0;
}

.av-svc-tech__top {
	display: grid;
	gap: 1.75rem 0.75rem;
}

/* ------------------------------------------------------------ Intro */

.av-svc-tech__intro {
	container-type: inline-size;
	align-self: center;
}

.av-services-page .av-svc-tech__intro .av-svc-eyebrow {
	gap: 1.1rem;
	margin-bottom: 1.4rem;
	font-size: 0.8125rem;
	letter-spacing: 0.18em;
	color: rgba(11, 31, 51, 0.5);
}

.av-svc-tech__intro .av-svc-eyebrow__num {
	gap: 1.1rem;
	font-size: 0.9375rem;
	color: var(--tc-navy);
}

.av-svc-tech__intro .av-svc-eyebrow__num::after {
	width: 1.9rem;
}

.av-services-page .av-svc-tech__title {
	margin: 0;
	font-size: clamp(1.875rem, 9.7cqi, 2.875rem); /* mock-up 46px at 1774 */
	font-weight: 800;
	line-height: 1.09;
	letter-spacing: -0.022em;
	color: var(--tc-navy);
}

.av-svc-tech__accent {
	display: block;
	color: var(--tc-blue);
}

.av-services-page .av-svc-tech__lead {
	max-width: 23.5em;
	margin: 1.15rem 0 0;
	font-size: clamp(1rem, 4.1cqi, 1.21875rem);
	line-height: 1.42;
	color: rgba(11, 31, 51, 0.74);
}

/* ------------------------------------------------------------ Cards */

.av-svc-tech__cards {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.av-svc-tc {
	--tc-shade: none;
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.85);
	border-radius: var(--tc-r);
	background-color: var(--tc-light);
	color: var(--tc-navy);
	box-shadow: 0 12px 30px -24px rgba(6, 26, 54, 0.4);
	transition:
		opacity 0.65s var(--tc-reveal) var(--tc-d, 0ms),
		translate 0.65s var(--tc-reveal) var(--tc-d, 0ms),
		transform 0.3s var(--tc-ease),
		box-shadow 0.3s var(--tc-ease);
}

.av-svc-tc--dark {
	border-color: rgba(70, 120, 200, 0.35);
	background-color: var(--tc-dark);
	color: #fff;
}

.av-svc-tc__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.av-svc-tc__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--tc-shade);
	pointer-events: none;
}

.av-svc-tc__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s var(--tc-ease);
}

.av-svc-tc__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	box-sizing: border-box;
	padding: 1.5rem 1.25rem 1.375rem;
}

.av-svc-tc__no {
	display: inline-flex;
	align-items: center;
	gap: 0.9rem;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.02em;
}

.av-svc-tc__no::after {
	content: "";
	width: 1.75rem;
	height: 1px;
	background-color: currentColor;
	opacity: 0.55;
}

.av-svc-tc__icon {
	display: grid;
	place-items: center;
	box-sizing: border-box;
	width: 3.75rem;
	aspect-ratio: 1;
	margin-top: 0.8rem;
	border-radius: var(--tc-r-sm);
	background-color: #fff;
	color: var(--tc-navy);
	box-shadow: 0 8px 22px -16px rgba(6, 26, 54, 0.45);
}

.av-svc-tc__icon svg {
	width: 54%;
	height: 54%;
}

.av-svc-tc--dark .av-svc-tc__icon {
	border: 1px solid rgba(110, 160, 240, 0.5);
	background-color: rgba(16, 48, 98, 0.85);
	color: #fff;
	box-shadow: none;
}

.av-services-page .av-svc-tc__title {
	margin: 1.2rem 0 0;
	font-size: clamp(1.25rem, 0.5rem + 1.05vw, 1.5rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: inherit;
}

/* The title is the card's one link, stretched over the whole card. */
.av-services-page .av-svc-tc__link {
	color: inherit;
	text-decoration: none;
}

.av-svc-tc__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}

.av-services-page .av-svc-tc__link:focus-visible {
	outline: none;
}

.av-svc-tc:focus-within {
	outline: 2px solid var(--tc-blue);
	outline-offset: 3px;
}

.av-svc-tc__text {
	max-width: 16.5rem;
	margin-top: 0.55rem;
	font-size: 1rem;
	line-height: 1.36;
	color: rgba(11, 31, 51, 0.74);
}

.av-svc-tc--dark .av-svc-tc__text {
	color: rgba(226, 235, 247, 0.86);
}

.av-svc-tc__cta {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	margin-top: auto;
	padding-top: 0.75rem;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.3;
}

.av-svc-tc__btn {
	display: grid;
	place-items: center;
	box-sizing: border-box;
	width: 3.5rem;
	aspect-ratio: 1;
	flex: 0 0 auto;
	border: 1.5px solid #4a7fd6;
	border-radius: 50%;
	background-color: #fff;
	color: var(--tc-navy);
	transition: border-color 0.3s var(--tc-ease);
}

.av-svc-tc--dark .av-svc-tc__btn {
	border-color: #fff;
}

.av-svc-tc__arrow {
	transition: transform 0.3s var(--tc-ease);
}

@media (hover: hover) {
	.av-svc-tc:hover {
		transform: translateY(-4px);
		box-shadow: 0 22px 40px -26px rgba(6, 26, 54, 0.55);
	}

	.av-svc-tc:hover .av-svc-tc__img {
		transform: scale(1.04);
	}

	.av-svc-tc:hover .av-svc-tc__arrow {
		transform: translateX(4px);
	}

	.av-svc-tc--light:hover .av-svc-tc__btn {
		border-color: var(--tc-blue);
	}
}

/* Reveal on scroll (services.js §6 adds av-svc-tech-anim to <html> and
   is-revealed to each item, with its delay in --tc-d). The rise uses the
   `translate` property, so the hover lift (`transform`) never competes
   with it. Without the class nothing is hidden. */
.av-svc-tech-anim .av-svc-tech__intro > *,
.av-svc-tech-anim .av-svc-tc {
	opacity: 0;
	translate: 0 20px;
}

.av-svc-tech-anim .av-svc-tech__intro > * {
	transition:
		opacity 0.65s var(--tc-reveal) var(--tc-d, 0ms),
		translate 0.65s var(--tc-reveal) var(--tc-d, 0ms);
}

.av-svc-tech-anim .av-svc-tech__intro > .is-revealed,
.av-svc-tech-anim .av-svc-tc.is-revealed {
	opacity: 1;
	translate: none;
}

@media (prefers-reduced-motion: reduce) {
	.av-svc-tech-anim .av-svc-tech__intro > *,
	.av-svc-tech-anim .av-svc-tc {
		opacity: 1;
		translate: none;
	}

	.av-svc-tc,
	.av-svc-tc__img,
	.av-svc-tc__arrow,
	.av-svc-tc__btn {
		transition: none;
	}

	.av-svc-tc:hover,
	.av-svc-tc:hover .av-svc-tc__img,
	.av-svc-tc:hover .av-svc-tc__arrow {
		transform: none;
	}
}

/* Below 1200 (wide card: below 600) the photo sits above the text, its
   lower edge fading into the card. */
.av-svc-tc--light {
	--tc-shade: linear-gradient(0deg, var(--tc-light) 0%, rgba(241, 246, 252, 0) 40%);
}

.av-svc-tc--dark {
	--tc-shade: linear-gradient(0deg, var(--tc-dark) 0%, rgba(4, 25, 58, 0) 45%);
}

.av-svc-tc--monitoring .av-svc-tc__img {
	object-position: 78% center;
}

.av-svc-tc--cctv .av-svc-tc__img {
	object-position: center 30%;
}

.av-svc-tc--access .av-svc-tc__img {
	object-position: 70% center;
}

.av-svc-tc--audit .av-svc-tc__img {
	object-position: center top;
}

/* ≥600: two columns (photo above the text below 1200); the wide card's
   photo is a layer under the text. */
@media (min-width: 600px) {
	.av-svc-tech__cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.av-svc-tc__body {
		padding: 1.75rem 1.6rem 1.5rem;
	}

	.av-svc-tc--monitoring {
		min-height: 24rem;
		--tc-shade: linear-gradient(90deg, rgba(4, 25, 58, 0.97) 0%, rgba(4, 25, 58, 0.9) 22%, rgba(4, 25, 58, 0.55) 36%, rgba(4, 25, 58, 0) 52%);
	}

	.av-svc-tc--monitoring .av-svc-tc__media {
		position: absolute;
		inset: 0;
		z-index: -1;
		aspect-ratio: auto;
	}

	.av-svc-tc--monitoring .av-svc-tc__img {
		object-position: right center;
	}
}

/* ≥1200: every photo is a layer under the text, tone gradient per card. */
@media (min-width: 1200px) {
	.av-svc-tc__media {
		position: absolute;
		inset: 0;
		z-index: -1;
		aspect-ratio: auto;
	}

	.av-svc-tc--cctv {
		--tc-shade:
			linear-gradient(90deg, rgba(241, 246, 252, 0.9) 0%, rgba(241, 246, 252, 0.72) 34%, rgba(241, 246, 252, 0.08) 64%, rgba(241, 246, 252, 0) 76%),
			linear-gradient(0deg, rgba(241, 246, 252, 0.94) 0%, rgba(241, 246, 252, 0.55) 34%, rgba(241, 246, 252, 0) 58%);
	}

	.av-svc-tc--cctv .av-svc-tc__img {
		object-position: 62% 18%;
	}

	.av-svc-tc--access {
		--tc-shade:
			linear-gradient(90deg, rgba(4, 30, 66, 0.96) 0%, rgba(4, 30, 66, 0.86) 34%, rgba(4, 30, 66, 0.3) 60%, rgba(4, 30, 66, 0) 76%),
			linear-gradient(0deg, rgba(4, 25, 58, 0.6) 0%, rgba(4, 25, 58, 0) 42%);
	}

	.av-svc-tc--access .av-svc-tc__img {
		object-position: 62% center;
	}

	.av-svc-tc--mobile {
		--tc-shade:
			linear-gradient(90deg, rgba(241, 246, 252, 0.9) 0%, rgba(241, 246, 252, 0.55) 26%, rgba(241, 246, 252, 0) 50%),
			linear-gradient(0deg, var(--tc-light) 0%, var(--tc-light) 34%, rgba(241, 246, 252, 0.7) 44%, rgba(241, 246, 252, 0) 62%);
	}

	/* The car is large in the photo: it only covers the upper part of the
	   card, so the title and text sit below the car's livery. */
	.av-svc-tc--mobile .av-svc-tc__img {
		height: 66%;
		object-position: 64% 45%;
	}

	.av-svc-tc--audit {
		--tc-shade:
			linear-gradient(0deg, rgba(246, 249, 253, 0.98) 0%, rgba(246, 249, 253, 0.92) 40%, rgba(246, 249, 253, 0.35) 60%, rgba(246, 249, 253, 0) 76%),
			linear-gradient(90deg, rgba(246, 249, 253, 0.8) 0%, rgba(246, 249, 253, 0) 55%);
	}

	.av-svc-tc--audit .av-svc-tc__img {
		object-position: 55% top;
	}
}

@media (min-width: 1024px) {
	.av-services-page .av-section.av-svc-tech {
		--av-section-pt: clamp(2.25rem, 2.3vw, 2.75rem);
		--av-section-pb: clamp(2.75rem, 3vw, 3.5rem);
	}


	.av-svc-tc--monitoring .av-svc-tc__body {
		padding: 1.75rem 1.75rem 1.25rem;
	}

	.av-svc-tc--monitoring .av-svc-tc__no {
		font-size: 1.125rem;
	}

	.av-svc-tc--monitoring .av-svc-tc__icon {
		width: 3.5rem;
		margin-top: 0.7rem;
	}

	.av-services-page .av-svc-tc--monitoring .av-svc-tc__title {
		margin-top: 0.95rem;
		font-size: 1.625rem;
	}

	.av-svc-tc--monitoring .av-svc-tc__text {
		max-width: 17rem;
		margin-top: 0.5rem;
		font-size: 1rem;
		line-height: 1.22;
	}

	.av-svc-tc--monitoring .av-svc-tc__cta {
		padding-top: 1rem;
	}
}

/* ≥1200 the section sits in the site container (1132px of content), so
   sizes are fixed rather than viewport-relative. */
@media (min-width: 1200px) {
	.av-svc-tech__top {
		grid-template-columns: minmax(0, 34fr) minmax(0, 66fr);
		column-gap: 2rem;
	}

	.av-svc-tech__intro {
		padding-block: 1rem;
	}

	.av-svc-tc--monitoring {
		min-height: 22.5rem;
		--tc-shade: linear-gradient(90deg, rgba(4, 25, 58, 0.97) 0%, rgba(4, 25, 58, 0.9) 28%, rgba(4, 25, 58, 0.5) 42%, rgba(4, 25, 58, 0) 56%);
	}

	/* Keeps the operator clear of the text column. */
	.av-svc-tc--monitoring .av-svc-tc__img {
		object-position: 62% center;
	}

	.av-svc-tech__cards {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 0.875rem;
	}

	.av-svc-tc__body {
		padding: 1.5rem 1.25rem 1.25rem;
	}

	.av-svc-tc__no {
		font-size: 1rem;
	}

	.av-svc-tc__icon {
		width: 3.5rem;
	}

	.av-services-page .av-svc-tc__title {
		margin-top: 1.1rem;
		font-size: 1.25rem;
	}

	/* Leaves the right edge of the narrow cards to the photo's subject. */
	.av-svc-tc__text {
		max-width: 13.25rem;
		font-size: 0.9375rem;
	}

	.av-svc-tc--access .av-svc-tc__img {
		object-position: 58% center;
	}

	/* The car stays in the upper part of the card, above the title. */
	.av-svc-tc--mobile {
		--tc-shade:
			linear-gradient(90deg, rgba(241, 246, 252, 0.6) 0%, rgba(241, 246, 252, 0) 32%),
			linear-gradient(0deg, var(--tc-light) 0%, var(--tc-light) 56%, rgba(241, 246, 252, 0.6) 64%, rgba(241, 246, 252, 0) 74%);
	}

	.av-svc-tc--mobile .av-svc-tc__img {
		height: 44%;
		object-position: center 45%;
	}

	.av-svc-tc--cctv {
		--tc-shade:
			linear-gradient(90deg, rgba(241, 246, 252, 0.92) 0%, rgba(241, 246, 252, 0.8) 46%, rgba(241, 246, 252, 0.1) 76%, rgba(241, 246, 252, 0) 84%),
			linear-gradient(0deg, rgba(241, 246, 252, 0.94) 0%, rgba(241, 246, 252, 0.55) 34%, rgba(241, 246, 252, 0) 58%);
	}

	.av-svc-tc__cta {
		gap: 1rem;
		padding-top: 1rem;
		font-size: 0.8125rem;
	}

	.av-svc-tc__btn {
		width: 3.25rem;
	}

	.av-svc-tc--monitoring .av-svc-tc__body {
		padding: 1.75rem 1.75rem 1.25rem;
	}

	.av-svc-tc--monitoring .av-svc-tc__no {
		font-size: 1.125rem;
	}

	.av-svc-tc--monitoring .av-svc-tc__text {
		max-width: 17rem;
		font-size: 1rem;
	}
}

/* ==========================================================================
   05 · Integrated system — navy; intro left, interactive 3D demo right
   ========================================================================== */

.av-services-page .av-section.av-svc-system {
	--av-section-pt: 3rem;
	--av-section-pb: 3rem;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background-color: var(--av-svc-navy);
	color: #fff;
}

/* The faint blue glow of the site's navy panels (.av-calc__intro). */
.av-services-page .av-section.av-svc-system::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(ellipse 60% 70% at 72% 40%, rgba(26, 95, 180, 0.22) 0%, rgba(26, 95, 180, 0) 70%);
	pointer-events: none;
}

.av-svc-system__action {
	margin: 1.75rem 0 0;
}

@media (min-width: 1024px) {
	.av-services-page .av-section.av-svc-system {
		--av-section-pt: 3.5rem;
		--av-section-pb: 3.5rem;
	}
}

/* Layout, 3D scene, switches and status panel: services-complex.css. */

/* ==========================================================================
   06 · Process — light band; intro left, four compact steps right
   ========================================================================== */

.av-services-page .av-section.av-svc-process {
	--av-section-pt: 3rem;
	--av-section-pb: 3rem;
	background-color: var(--av-svc-light);
}

.av-svc-process__grid {
	display: grid;
	gap: 1.75rem;
}

.av-svc-steps {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.av-svc-step {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: start;
	gap: 0.25rem 1rem;
	padding: 1.1rem 1.25rem;
	border: 1px solid var(--av-svc-line);
	border-radius: 4px;
	background-color: #fff;
}

.av-svc-step > * {
	margin: 0;
}

.av-svc-step__num {
	grid-row: 1 / span 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background-color: var(--av-primary);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.av-svc-step__icon {
	display: none;
}

.av-services-page .av-svc-step__title {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--av-ink);
}

.av-services-page .av-svc-step__text {
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--av-svc-muted);
}

/* Phones: a connected sequence. */
.av-svc-step + .av-svc-step::before {
	content: "";
	position: absolute;
	top: calc(-1rem - 1px);
	left: calc(1.25rem + 1.25rem - 1px);
	width: 2px;
	height: 1rem;
	background-color: rgba(26, 95, 180, 0.35);
}

@media (min-width: 600px) {
	.av-svc-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.av-svc-step {
		display: block;
		padding: 1.25rem 1.25rem 1.375rem;
	}

	.av-svc-step + .av-svc-step::before {
		content: none;
	}

	.av-svc-step__num {
		display: block;
		width: auto;
		height: auto;
		border-radius: 0;
		background: none;
		color: var(--av-ink);
		font-size: 1.125rem;
	}

	.av-svc-step__icon {
		display: block;
		margin-top: 0.85rem;
		color: var(--av-primary);
	}

	.av-services-page .av-svc-step__title {
		margin-top: 0.75rem;
		font-size: 0.975rem;
	}

	.av-services-page .av-svc-step__text {
		margin-top: 0.35rem;
		font-size: 0.8125rem;
	}
}

@media (min-width: 900px) {
	.av-svc-steps {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 0.875rem;
	}
}

@media (min-width: 1200px) {
	.av-svc-process__grid {
		grid-template-columns: minmax(0, 4.2fr) minmax(0, 7.8fr);
		align-items: center;
		gap: 3rem;
	}
}

/* ==========================================================================
   07 · After launch — photo band, text on a light veil left, points along
   the bottom of the photo. Below 1200px: photo, text, list.
   ========================================================================== */

.av-svc-support {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background-color: #fff;
	color: var(--av-ink);
}

.av-svc-support__media {
	position: relative;
	aspect-ratio: 16 / 9;
}

.av-svc-support__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 70% 40%;
}

.av-services-page .av-svc-support__inner {
	box-sizing: border-box;
	width: 100%;
	margin-block: 0;
	padding: 2.25rem var(--av-svc-gutter) 2.75rem;
}

.av-svc-support__inner > * {
	margin-block: 0;
}

.av-svc-support__points {
	display: grid;
	gap: 0.5rem;
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
}

.av-svc-support__point {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 0.75rem 1rem;
	border-radius: 4px;
	background-color: var(--av-svc-light);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.35;
}

.av-svc-support__icon {
	color: var(--av-primary);
}

@media (min-width: 600px) and (max-width: 1199px) {
	.av-svc-support__media {
		aspect-ratio: 21 / 9;
	}

	.av-svc-support__points {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Photo band with the text over it only where the text column clears the
   photo; narrower screens keep the stacked layout. */
@media (min-width: 1200px) {
	.av-svc-support {
		min-height: 27rem;
	}

	.av-svc-support__media {
		position: absolute;
		inset: 0 0 0 30%;
		z-index: -1;
		aspect-ratio: auto;
	}

	/* Photo fades into the white text area on the left; dark grounding
	   under the points. */
	.av-svc-support__media::after {
		content: "";
		position: absolute;
		inset: 0;
		background:
			linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.8) 8%, rgba(255, 255, 255, 0) 24%),
			linear-gradient(0deg, rgba(6, 17, 31, 0.86) 0%, rgba(6, 17, 31, 0.35) 34%, rgba(6, 17, 31, 0) 60%);
		pointer-events: none;
	}

	.av-svc-support .av-svc-ph {
		justify-content: flex-start;
		padding-top: 3rem;
	}

	.av-services-page .av-svc-support__inner {
		display: grid;
		flex: 1 0 auto;
		grid-template-rows: 1fr auto;
		padding-block: 3rem 1.75rem;
	}

	.av-svc-support__text {
		max-width: 25rem;
	}

	.av-svc-support__points {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 0;
		margin: 2rem 0 0 calc(47% - 1rem);   /* past the photo's white fade */
	}

	.av-svc-support__point {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.6rem;
		padding: 0.25rem 1rem;
		border-radius: 0;
		background: none;
		color: #fff;
		font-size: 0.8125rem;
		font-weight: 600;
	}

	.av-svc-support__point + .av-svc-support__point {
		border-left: 1px solid rgba(255, 255, 255, 0.22);
	}

	.av-svc-support__icon {
		color: var(--av-svc-on-navy-icon);
	}
}

@media (min-width: 1200px) and (max-width: 1399px) {
	.av-svc-support__point {
		padding-inline: 0.75rem;
	}
}

/* ==========================================================================
   08 · Cost factors  ·  09 FAQ — intro left, accordion in two columns right
   ========================================================================== */

.av-services-page .av-section.av-svc-cost {
	--av-section-pt: 3rem;
	--av-section-pb: 2.5rem;
}

.av-services-page .av-section.av-svc-faq {
	--av-section-pt: 2.5rem;
	--av-section-pb: 3.25rem;
	border-top: 1px solid var(--av-svc-line);
}

.av-svc-split {
	display: grid;
	gap: 1.5rem;
}

.av-svc-split__action {
	margin: 1rem 0 0;
}

.av-svc-acc-grid {
	display: grid;
	gap: 0;
}

.av-svc-acc-col {
	min-width: 0;
}

.av-svc-acc {
	border-bottom: 1px solid var(--av-svc-line);
}

.av-svc-acc-col:first-child .av-svc-acc:first-child {
	border-top: 1px solid var(--av-svc-line);
}

.av-services-page .av-svc-acc__heading {
	margin: 0;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

.av-services-page .av-svc-acc__btn {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	box-sizing: border-box;
	width: 100%;
	min-height: 3.5rem;
	margin: 0;
	padding: 0.75rem 0;
	border: 0;
	background: none;
	color: var(--av-ink);
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.4;
	text-align: left;
	cursor: pointer;
	transition: color 0.2s ease;
}

.av-services-page .av-svc-acc__btn:hover {
	color: var(--av-primary);
}

.av-services-page .av-svc-acc__btn:focus-visible {
	outline: 2px solid var(--av-primary);
	outline-offset: 2px;
	border-radius: 2px;
}

.av-svc-acc__icon {
	box-sizing: border-box;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0.45rem;
	border-radius: 4px;
	background-color: var(--av-svc-light);
	color: var(--av-primary);
}

.av-svc-acc__label {
	flex: 1 1 auto;
	min-width: 0;
}

/* «+» that turns into «−» when open. */
.av-svc-acc__sign {
	position: relative;
	flex: 0 0 auto;
	width: 0.875rem;
	height: 0.875rem;
	color: var(--av-primary);
}

.av-svc-acc__sign::before,
.av-svc-acc__sign::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 2px;
	margin-top: -1px;
	background-color: currentColor;
	transition: transform 0.2s ease;
}

.av-svc-acc__sign::after {
	transform: rotate(90deg);
}

.av-svc-acc__btn[aria-expanded="true"] .av-svc-acc__sign::after {
	transform: rotate(0deg);
}

.av-svc-acc__panel p {
	max-width: 40rem;
	margin: 0;
	padding: 0 1.75rem 1.1rem 0;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--av-svc-muted);
}

.av-svc-acc-grid--factors .av-svc-acc__panel p {
	padding-left: 3.15rem;                  /* under the label, past the icon */
}

@media (min-width: 769px) {
	.av-svc-acc-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: start;
		column-gap: 2.5rem;
	}

	.av-svc-acc-col .av-svc-acc:first-child {
		border-top: 1px solid var(--av-svc-line);
	}
}

@media (min-width: 1024px) {
	.av-svc-split {
		grid-template-columns: minmax(0, 4.2fr) minmax(0, 7.8fr);
		gap: 3rem;
	}
}

/* ==========================================================================
   10 · Request form — the site's .av-calc panel (sections.css); only the
   inline errors and the «Задача» note are new.
   ========================================================================== */

.av-svc-request .av-calc__control[aria-invalid="true"] {
	border-color: var(--av-accent);
}

.av-services-page .av-svc-form__error {
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.4;
	color: var(--av-accent);
}

.av-services-page .av-svc-form__task {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.25rem 1rem;
	padding: 0.6rem 0.9rem;
	border-left: 2px solid var(--av-primary);
	border-radius: 2px;
	background-color: rgba(26, 95, 180, 0.07);
	font-size: 0.875rem;
	line-height: 1.45;
	color: var(--av-ink);
}

.av-services-page .av-svc-form__task-clear {
	min-height: 2rem;
	padding: 0;
	border: 0;
	background: none;
	color: var(--av-primary);
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.2em;
	cursor: pointer;
}

.av-services-page .av-svc-form__task-clear:focus-visible {
	outline: 2px solid var(--av-primary);
	outline-offset: 2px;
	border-radius: 2px;
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.av-services-page .av-svc-btn,
	.av-services-page .av-svc-textlink,
	.av-services-page .av-svc-task,
	.av-svc-btn__arrow,
	.av-svc-textlink__arrow,
	.av-svc-task__arrow,
	.av-services-page .av-svc-acc__btn,
	.av-svc-acc__sign::before,
	.av-svc-acc__sign::after {
		transition: none;
	}

	.av-svc-btn:hover .av-svc-btn__arrow,
	.av-svc-btn:focus-visible .av-svc-btn__arrow,
	.av-svc-textlink:hover .av-svc-textlink__arrow,
	.av-svc-textlink:focus-visible .av-svc-textlink__arrow,
	.av-svc-task:hover .av-svc-task__arrow {
		transform: none;
	}
}
