/* ==========================================================================
   AV-Security — a vacancy's own page (/vakansii/{slug}/)

   Loaded only there (inc/vacancy-detail.php), after vacancies.css, whose
   tokens (--vc-*), container (.av-vac-wrap), eyebrow, buttons and reveal
   (.av-vac-rv) it reuses. Every rule is scoped to .av-vjob-* classes.

   Sections: shell · icons · hero · description (01/02/03) · response form
   · «Кратко о позиции» · closing band · motion.
   ========================================================================== */

/* ---------- shell ---------- */
.av-vjob-page {
	--vj-bg: #f4f6f9;     /* hero field / cards — light cool grey */
	--vj-box: #eef1f6;    /* number squares */
	--vj-field: #d5dbe5;  /* input borders */
	--vj-muted: #9aa5b8;  /* big section numbers, placeholders */
	--vj-hero-h: auto;

	overflow-x: clip;
}

/* ---------- icons (SVG file = shape, colour = currentColor) ---------- */
.av-vjob-ico {
	display: inline-block;
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	background-color: currentColor;
	-webkit-mask: var(--av-vjob-ico) center / contain no-repeat;
	mask: var(--av-vjob-ico) center / contain no-repeat;
}

/* ---------- hero ---------- */
.av-vjob-hero {
	position: relative;
	isolation: isolate;
	background: var(--vj-bg);
}

.av-vjob-hero__in {
	position: relative;
	z-index: 1;
	padding-block: 20px 40px;
}

.av-vjob-hero__in > .av-breadcrumbs {
	margin: 0 0 var(--av-crumbs-gap-eyebrow);
}

.av-vjob-hero__copy > * {
	margin-block: 0;
}

.av-vjob-page .av-vjob-h1 {
	margin: 0.9rem 0 0;
	max-width: 11.5em;
	font-size: clamp(2.25rem, 1.2rem + 3.6vw, 3.875rem);
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: -0.025em;
	color: var(--vc-ink);
}

.av-vjob-page .av-vjob-hero__lead {
	margin-top: 1.1rem;
	max-width: 33rem;
	font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem);
	line-height: 1.45;
	color: var(--vc-ink2);
}

/* Key facts: icon + value + caption, thin dividers. */
.av-vjob-facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 16px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.av-vjob-fact {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.av-vjob-fact__ico {
	width: 28px;
	height: 28px;
	color: var(--vc-red);
}

.av-vjob-fact__txt {
	display: grid;
	gap: 2px;
	min-width: 0;
	line-height: 1.25;
}

.av-vjob-fact__txt strong {
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--vc-ink);
}

.av-vjob-fact__txt span {
	font-size: 0.8125rem;
	color: var(--vc-ink3);
}

.av-vjob-hero__media {
	position: relative;
	margin: 0;
}

.av-vjob-hero__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1808 / 870;
	object-fit: cover;
}

/* Phone / tablet: copy, facts, then the whole photo (nothing important cut). */
@media (max-width: 1023px) {
	.av-vjob-hero {
		display: flex;
		flex-direction: column-reverse;
	}

	.av-vjob-hero__media::before {
		content: "";
		position: absolute;
		inset: 0 0 auto;
		height: 28%;
		background: linear-gradient(180deg, var(--vj-bg) 0%, rgba(244, 246, 249, 0) 100%);
		pointer-events: none;
	}
}

@media (min-width: 640px) {
	.av-vjob-facts {
		display: flex;
		flex-wrap: wrap;
		gap: 16px 0;
	}

	.av-vjob-fact {
		padding-inline: 22px;
		border-left: 1px solid var(--vc-rule2);
	}

	.av-vjob-fact:first-child {
		padding-left: 0;
		border-left: 0;
	}
}

/* Desktop: the photo fills the right part; a CSS fade makes the light text
   field on the left (the photo itself has no lightening). */
@media (min-width: 1024px) {
	.av-vjob-hero {
		min-height: 424px;
	}

	.av-vjob-hero__media {
		position: absolute;
		inset: 0 0 0 auto;
		z-index: 0;
		width: 62%;
	}

	.av-vjob-hero__img {
		height: 100%;
		aspect-ratio: auto;
		object-position: 72% 32%;
	}

	.av-vjob-hero__media::after {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(
			90deg,
			var(--vj-bg) 0%,
			rgba(244, 246, 249, 0.96) 18%,
			rgba(244, 246, 249, 0.86) 32%,
			rgba(244, 246, 249, 0.45) 46%,
			rgba(244, 246, 249, 0) 60%
		);
		pointer-events: none;
	}

	.av-vjob-hero__in {
		padding-block: 18px 28px;
	}

	.av-vjob-hero__copy {
		max-width: 640px;
	}

	.av-vjob-facts {
		flex-wrap: nowrap;
		margin-top: 26px;
	}

	.av-vjob-fact {
		padding-inline: 26px;
	}
}

/* Laptops: a narrower photo keeps all four facts on the light field. */
@media (min-width: 1024px) and (max-width: 1279px) {
	.av-vjob-hero__media {
		width: 46%;
	}

	.av-vjob-fact {
		padding-inline: 18px;
	}
}

@media (min-width: 1024px) and (max-width: 1199px) {
	.av-vjob-hero__media {
		width: 40%;
	}

	.av-vjob-hero__img {
		object-position: 82% 32%;
	}

	/* Four facts do not fit beside the photo here: 2 × 2. */
	.av-vjob-facts {
		display: grid;
		grid-template-columns: repeat(2, max-content);
		gap: 16px 0;
	}

	.av-vjob-fact:nth-child(odd) {
		padding-left: 0;
		border-left: 0;
	}

	.av-vjob-fact:nth-child(even) {
		padding-inline: 26px 0;
	}
}

/* ---------- main: description + side column ---------- */
.av-vjob-main {
	display: grid;
	gap: 48px;
	padding-block: 40px 72px;
	background: #fff;
}

.av-vjob-desc,
.av-vjob-side {
	min-width: 0;
}

@media (min-width: 1024px) {
	.av-vjob-main {
		grid-template-columns: minmax(0, 1fr) 392px;
		align-items: start;
		gap: 36px;
		padding-block: 18px 34px;
	}

	.av-vjob-desc {
		padding-top: 20px;
	}
}

@media (min-width: 1024px) and (max-width: 1199px) {
	.av-vjob-main {
		grid-template-columns: minmax(0, 1fr) 360px;
		gap: 32px;
	}
}

/* Numbered section: «01 | Обязанности». */
.av-vjob-sec {
	position: relative;
}

.av-vjob-sec + .av-vjob-sec {
	margin-top: 22px;
	padding-top: 32px;
	border-top: 1px solid var(--vc-rule);
}

.av-vjob-sec__head {
	display: flex;
	align-items: center;
	gap: 18px;
}

.av-vjob-sec__num {
	position: relative;
	flex: 0 0 auto;
	padding-right: 18px;
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.02em;
	color: var(--vj-muted);
	font-variant-numeric: tabular-nums;
}

/* Red vertical rule between the number and the heading. */
.av-vjob-sec__num::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 0;
	width: 3px;
	height: 26px;
	background: var(--vc-red);
	transform: translateY(-50%);
}

.av-vjob-page .av-vjob-sec__title {
	margin: 0;
	font-size: clamp(1.5rem, 1.25rem + 0.8vw, 1.75rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.015em;
	color: var(--vc-ink);
}

.av-vjob-page .av-vjob-sec__intro {
	margin: 12px 0 0;
	max-width: 36rem;
	font-size: 1rem;
	line-height: 1.55;
	color: var(--vc-ink2);
}

/* Numbered rows: light square · divider · text. */
.av-vjob-rows {
	display: grid;
	gap: 10px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

.av-vjob-row {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	align-items: center;
	min-height: 44px;
}

.av-vjob-row__num {
	display: grid;
	place-items: center;
	width: 48px;
	height: 40px;
	border-radius: var(--vc-r-btn);
	background: var(--vj-box);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--vc-ink);
	font-variant-numeric: tabular-nums;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.av-vjob-row__txt {
	margin-left: 16px;
	padding: 6px 0 6px 18px;
	border-left: 1px solid var(--vc-rule2);
	font-size: 1rem;
	line-height: 1.45;
	color: var(--vc-ink2);
}

.av-vjob-row:hover .av-vjob-row__num {
	background: var(--vc-ink);
	color: #fff;
}

/* Conditions panel: 3 × 2 on desktop. */
.av-vjob-perks {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	margin: 24px 0 0;
	padding: 8px 20px;
	border-radius: var(--vc-r);
	background: var(--vj-bg);
	list-style: none;
}

.av-vjob-perk {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
	padding: 12px 0;
	font-size: 0.9375rem;
	line-height: 1.35;
	color: var(--vc-ink);
}

.av-vjob-perk + .av-vjob-perk {
	border-top: 1px solid var(--vc-rule);
}

.av-vjob-perk__ico {
	width: 34px;
	height: 34px;
	color: var(--vc-ink);
	transition: color 0.25s ease, transform 0.25s var(--vc-ease);
}

.av-vjob-perk:hover .av-vjob-perk__ico {
	color: var(--vc-red);
	transform: translateY(-2px);
}

@media (min-width: 560px) {
	.av-vjob-perks {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 24px;
	}

	.av-vjob-perk + .av-vjob-perk {
		border-top: 0;
	}

	.av-vjob-perk:nth-child(n + 3) {
		border-top: 1px solid var(--vc-rule);
	}
}

@media (min-width: 900px) {
	.av-vjob-perks {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: 0;
		padding: 10px 0;
	}

	.av-vjob-perk,
	.av-vjob-perk:nth-child(n + 3) {
		border-top: 0;
		padding: 10px 20px;
	}

	.av-vjob-perk:not(:nth-child(3n + 1)) {
		border-left: 1px solid var(--vc-rule2);
	}
}

/* Section numbers indent the content (desktop / tablet, as in the mock-up). */
@media (min-width: 768px) {
	.av-vjob-sec {
		padding-left: 104px;
	}

	.av-vjob-sec__head {
		margin-left: -104px;
		gap: 0;
	}

	.av-vjob-sec__num {
		width: 104px;
		padding-right: 0;
	}

	.av-vjob-sec__num::after {
		right: 28px;
	}

	.av-vjob-perks {
		margin-left: -66px;
	}
}

/* ---------- side cards ---------- */
.av-vjob-side {
	display: grid;
	gap: 16px;
}

.av-vjob-card {
	padding: 24px 20px;
	border: 1px solid var(--vc-rule);
	border-radius: var(--vc-r);
	background: var(--vj-bg);
}

@media (min-width: 480px) {
	.av-vjob-card {
		padding: 22px 22px 24px;
	}
}

.av-vjob-page .av-vjob-card__title {
	margin: 0;
	font-size: 1.4375rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--vc-ink);
}

.av-vjob-page .av-vjob-card__note,
.av-vjob-apply__ok p {
	margin: 12px 0 0;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--vc-ink2);
}

.av-vjob-apply__ok:focus {
	outline: none;
}

/* ---------- response form ---------- */
.av-vjob-form > * {
	margin-block: 0;
}

.av-vjob-field {
	display: grid;
	gap: 7px;
	margin-top: 14px;
}

.av-vjob-card__note + .av-vjob-field {
	margin-top: 22px;
}

.av-vjob-field > label {
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.3;
	color: var(--vc-ink);
}

.av-vjob-req {
	color: var(--vc-red);
}

.av-vjob-form input[type="text"],
.av-vjob-form input[type="tel"],
.av-vjob-form input[type="email"],
.av-vjob-form textarea,
.av-vjob-form select {
	display: block;
	width: 100%;
	min-height: 42px;
	margin: 0;
	padding: 9px 14px;
	border: 1px solid var(--vj-field);
	border-radius: var(--vc-r-btn);
	background: #fff;
	color: var(--vc-ink);
	font: inherit;
	font-size: 0.9375rem;
	line-height: 1.4;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.av-vjob-form textarea {
	min-height: 72px;
	resize: vertical;
}

.av-vjob-form ::placeholder {
	color: var(--vj-muted);
	opacity: 1;
}

.av-vjob-form input:hover,
.av-vjob-form textarea:hover,
.av-vjob-form select:hover {
	border-color: #b9c3d3;
}

.av-vjob-page .av-vjob-form input:focus-visible,
.av-vjob-page .av-vjob-form textarea:focus-visible,
.av-vjob-page .av-vjob-form select:focus-visible {
	outline: none;
	border-color: var(--vc-blue);
	box-shadow: 0 0 0 3px rgba(26, 95, 180, 0.18);
}

.av-vjob-form [aria-invalid="true"] {
	border-color: var(--vc-err) !important;
}

.av-vjob-err {
	font-size: 0.8125rem;
	line-height: 1.35;
	color: var(--vc-err);
}

/* Select with the icon chevron. */
.av-vjob-select {
	position: relative;
	display: block;
}

.av-vjob-form select {
	padding-right: 44px;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

.av-vjob-form select:has(option[value=""]:checked) {
	color: var(--vj-muted);
}

.av-vjob-select__ico {
	position: absolute;
	top: 50%;
	right: 14px;
	width: 18px;
	height: 18px;
	color: var(--vc-ink);
	transform: translateY(-50%);
	pointer-events: none;
}

/* File: dashed drop area; the input stays focusable (visually hidden). */
.av-vjob-file {
	position: relative;
}

.av-vjob-file input[type="file"] {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
}

.av-vjob-file__box {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 74px;
	padding: 12px 16px;
	border: 1px dashed #b7c1d1;
	border-radius: var(--vc-r-btn);
	background: rgba(255, 255, 255, 0.4);
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.av-vjob-file__box:hover,
.av-vjob-file.has-file .av-vjob-file__box {
	border-color: var(--vc-ink);
	background: #fff;
}

.av-vjob-file input:focus-visible + .av-vjob-file__box {
	outline: 2px solid var(--vc-blue);
	outline-offset: 2px;
}

.av-vjob-file input[aria-invalid="true"] + .av-vjob-file__box {
	border-color: var(--vc-err);
}

.av-vjob-file__ico {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: var(--vc-r-btn);
	background: #fff;
	box-shadow: 0 1px 3px rgba(11, 31, 51, 0.08);
	color: var(--vc-ink);
}

.av-vjob-file__txt {
	display: grid;
	gap: 4px;
	min-width: 0;
	line-height: 1.3;
}

.av-vjob-file__txt strong {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--vc-ink);
}

.av-vjob-file__txt span {
	font-size: 0.8125rem;
	color: var(--vc-ink3);
}

.av-vjob-file__txt .av-vjob-file__name {
	color: var(--vc-ink);
	font-weight: 500;
	overflow-wrap: anywhere;
}

.av-vjob-file__clear {
	margin-top: 6px;
	padding: 4px 0;
	border: 0;
	background: none;
	color: var(--vc-blue);
	cursor: pointer;
	font: inherit;
	font-size: 0.8125rem;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* Consent. */
.av-vjob-field--agree {
	margin-top: 20px;
}

.av-vjob-agree {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 0.78rem;
	line-height: 1.45;
	color: var(--vc-ink2);
	cursor: pointer;
}

.av-vjob-page .av-vjob-agree > span {
	font-size: 0.78rem;
	line-height: 1.45;
}

.av-vjob-agree input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	accent-color: var(--vc-ink);
	cursor: pointer;
}

.av-vjob-agree a {
	color: var(--vc-blue);
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.av-vjob-agree a:hover {
	color: var(--vc-hover);
}

.av-vjob-page .av-vjob-submit {
	width: 100%;
	min-height: 52px;
	margin-top: 22px;
}

.av-vjob-status {
	margin-top: 14px !important;
	font-size: 0.875rem;
	line-height: 1.45;
	color: var(--vc-err);
}

.av-vjob-status a {
	color: inherit;
	font-weight: 600;
	white-space: nowrap;
}

/* ---------- «Кратко о позиции» ---------- */
.av-vjob-page .av-vjob-brief__title {
	font-size: 1.3125rem;
}

.av-vjob-brief__list {
	display: grid;
	gap: 18px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.av-vjob-brief__list li {
	display: flex;
	align-items: center;
	gap: 18px;
	font-size: 1rem;
	line-height: 1.35;
	color: var(--vc-ink2);
}

.av-vjob-brief__ico {
	width: 22px;
	height: 22px;
	color: var(--vc-ink);
}

/* ---------- closing band: navy + red diagonal + photo ---------- */
/*
 * One coordinate system for the whole composition: --vj-x0 is the left
 * content edge of the site container (the .av-vac-wrap formula). The red
 * diagonal (its top and bottom x) and the photo layer are offsets from it,
 * so text, stripe and photo move together at any width or browser zoom;
 * only the navy field is full-bleed. The photo may run past the container
 * by --vj-cta-bleed (to the screen edge at 1440), never further.
 */
.av-vjob-cta {
	--vj-x0: var(--wp--preset--spacing--50, 1.5rem);
	--vj-cta-photo: 210px;  /* phone: photo strip under the copy */
	--vj-cta-bleed: 154px;  /* photo overhang past the container's right content edge */

	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-bottom: var(--vj-cta-photo);
	background: #0b1f33;
	color: #fff;
}

.wp-block-group.av-vjob-cta {
	margin-block: 0;
}

.av-vjob-cta__media {
	position: absolute;
	inset: auto 0 0;
	z-index: -2;
	height: calc(var(--vj-cta-photo) + 60px);
	background: url("../images/vacancies/detail/vacancy-detail-resume-bg.webp") 78% 100% / cover no-repeat;
	pointer-events: none;
}

/* Navy field with a diagonal edge, red stripe along it. */
.av-vjob-cta::before,
.av-vjob-cta::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

.av-vjob-cta::before {
	background: linear-gradient(90deg, #0b1f33 0%, #0e2742 100%);
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--vj-cta-photo) - 40px), 0 calc(100% - var(--vj-cta-photo) + 30px));
}

.av-vjob-cta::after {
	background: var(--vc-red);
	clip-path: polygon(0 calc(100% - var(--vj-cta-photo) + 30px), 100% calc(100% - var(--vj-cta-photo) - 40px), 100% calc(100% - var(--vj-cta-photo) - 32px), 0 calc(100% - var(--vj-cta-photo) + 38px));
}

.av-vjob-cta__in {
	position: relative;
	padding-block: 48px 64px;
}

/* The photo layer comes first in the band: no block-gap above the copy. */
.av-vjob-cta > .av-vjob-cta__in {
	margin-block: 0;
}

.av-vjob-cta__copy > * {
	margin-block: 0;
}

.av-vjob-page .av-vjob-cta__eb {
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.82);
}

.av-vjob-page .av-vjob-cta__title {
	margin-top: 10px;
	font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.25rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.015em;
	color: #fff;
}

.av-vjob-page .av-vjob-cta__text {
	margin-top: 14px;
	max-width: 33rem;
	font-size: 1rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.86);
}

.av-vjob-page .av-vjob-cta__actions {
	margin-top: 26px;
}

/* White button, navy text — the homepage button geometry (2px). */
.av-vjob-page .av-vjob-cta__btn,
.av-vjob-page .av-vjob-cta__btn:visited {
	min-width: 228px;
	background: #fff;
	border-color: #fff;
	color: var(--vc-ink);
}

.av-vjob-page .av-vjob-cta__btn:hover,
.av-vjob-page .av-vjob-cta__btn:focus-visible {
	background: #e9eef5;
	border-color: #e9eef5;
	color: var(--vc-ink);
	text-decoration: none;
}

.av-vjob-page .av-vjob-cta__btn:focus-visible {
	outline-color: #fff;
}

@media (max-width: 479px) {
	.av-vjob-page .av-vjob-cta__btn {
		width: 100%;
	}
}

/*
 * Tablet / desktop: the diagonal runs top → bottom between the copy and
 * the photo. Stripe: top at x0 + --vj-d-top, bottom at x0 + --vj-d-bot
 * (12px wide); the photo layer starts under the navy field, just left of
 * the stripe's bottom point, and ends at the container edge + bleed.
 */
@media (min-width: 768px) {
	.av-vjob-cta {
		--vj-d-top: 542px;
		--vj-d-bot: 412px;
		--vj-d-w: 12px;

		padding-bottom: 0;
	}

	.av-vjob-cta__media {
		inset: 0 max(0px, calc(var(--vj-x0) - var(--vj-cta-bleed))) 0 calc(var(--vj-x0) + var(--vj-d-bot) - 40px);
		height: auto;
		background-position: 60% 40%;
	}

	.av-vjob-cta::before {
		clip-path: polygon(0 0, calc(var(--vj-x0) + var(--vj-d-top)) 0, calc(var(--vj-x0) + var(--vj-d-bot)) 100%, 0 100%);
	}

	.av-vjob-cta::after {
		clip-path: polygon(
			calc(var(--vj-x0) + var(--vj-d-top)) 0,
			calc(var(--vj-x0) + var(--vj-d-top) + var(--vj-d-w)) 0,
			calc(var(--vj-x0) + var(--vj-d-bot) + var(--vj-d-w)) 100%,
			calc(var(--vj-x0) + var(--vj-d-bot)) 100%
		);
	}

	.av-vjob-cta__in {
		padding-block: 28px 32px;
	}

	.av-vjob-cta__copy {
		max-width: 440px;
	}
}

@media (min-width: 769px) {
	.av-vjob-cta {
		--vj-x0: max(
			calc(var(--wp--preset--spacing--50, 1.5rem) * 3),
			calc((100% - var(--av-container, 1180px)) / 2 + var(--wp--preset--spacing--50, 1.5rem))
		);
	}
}

@media (min-width: 1024px) {
	.av-vjob-cta {
		--vj-d-top: 716px;
		--vj-d-bot: 506px;
	}

	.av-vjob-cta__copy {
		max-width: 520px;
	}
}

/* Narrow photo layer (tablet): keep the operator in frame. */
@media (min-width: 768px) and (max-width: 1023px) {
	.av-vjob-cta__media {
		background-position: 88% 40%;
	}
}

/* Where the photo stops short of the screen edge, it fades into the navy. */
@media (min-width: 1441px) {
	.av-vjob-cta__media {
		-webkit-mask-image: linear-gradient(90deg, #000 82%, transparent 100%);
		mask-image: linear-gradient(90deg, #000 82%, transparent 100%);
	}
}

/* ---------- motion ---------- */
.av-vac-js .av-vjob-hero__copy > .av-vac-rv:nth-child(2) { --vc-d: 0.08s; }
.av-vac-js .av-vjob-hero__copy > .av-vac-rv:nth-child(3) { --vc-d: 0.16s; }
.av-vac-js .av-vjob-facts.av-vac-rv { --vc-d: 0.24s; }
.av-vac-js .av-vjob-brief.av-vac-rv { --vc-d: 0.1s; }

/* Rows of a section come in one after another. */
.av-vac-js .av-vjob-sec .av-vjob-row,
.av-vac-js .av-vjob-sec .av-vjob-perk {
	opacity: 0;
	transform: translate3d(0, 10px, 0);
	transition: opacity 0.5s ease, transform 0.5s var(--vc-ease);
}

.av-vac-js .av-vjob-sec.is-in .av-vjob-row,
.av-vac-js .av-vjob-sec.is-in .av-vjob-perk {
	opacity: 1;
	transform: none;
}

.av-vac-js .av-vjob-sec.is-in :is(.av-vjob-row, .av-vjob-perk):nth-child(1) { transition-delay: 0.12s; }
.av-vac-js .av-vjob-sec.is-in :is(.av-vjob-row, .av-vjob-perk):nth-child(2) { transition-delay: 0.19s; }
.av-vac-js .av-vjob-sec.is-in :is(.av-vjob-row, .av-vjob-perk):nth-child(3) { transition-delay: 0.26s; }
.av-vac-js .av-vjob-sec.is-in :is(.av-vjob-row, .av-vjob-perk):nth-child(4) { transition-delay: 0.33s; }
.av-vac-js .av-vjob-sec.is-in :is(.av-vjob-row, .av-vjob-perk):nth-child(5) { transition-delay: 0.4s; }
.av-vac-js .av-vjob-sec.is-in :is(.av-vjob-row, .av-vjob-perk):nth-child(n + 6) { transition-delay: 0.47s; }

/* Hover lift of the cards (pointer devices only). */
@media (hover: hover) {
	.av-vjob-brief {
		transition: box-shadow 0.3s ease, transform 0.3s var(--vc-ease);
	}

	.av-vjob-brief:hover {
		box-shadow: 0 10px 28px rgba(11, 31, 51, 0.08);
		transform: translateY(-2px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.av-vac-js .av-vjob-sec .av-vjob-row,
	.av-vac-js .av-vjob-sec .av-vjob-perk {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.av-vjob-row__num,
	.av-vjob-perk__ico,
	.av-vjob-brief,
	.av-vjob-file__box,
	.av-vjob-form input,
	.av-vjob-form textarea,
	.av-vjob-form select {
		transition: none;
	}

	.av-vjob-perk:hover .av-vjob-perk__ico,
	.av-vjob-brief:hover {
		transform: none;
	}
}
