.o-nas-team,
.o-nas-team * {
	box-sizing: border-box;
}

.o-nas-team {
	--o-nas-team-accent: #0590c6;
	--o-nas-team-accent-dark: #047ca9;
	--o-nas-team-accent-rgb: 5, 144, 198;

	position: relative;
	overflow: hidden;
	padding: 76px 16px 82px;
	color: #151b2a;
	background:
		/* Мягкое акцентное свечение слева. */
		radial-gradient(
			circle at 8% 12%,
			rgba(var(--o-nas-team-accent-rgb), 0.10) 0%,
			transparent 30%
		),
		/* Лёгкое свечение под декором справа сверху. */
		radial-gradient(
			circle at 94% 5%,
			rgba(var(--o-nas-team-accent-rgb), 0.12) 0%,
			transparent 28%
		),
		/* Симметричный переход к соседним секциям сверху и снизу. */
		linear-gradient(
			180deg,
			#c8d8ef 0%,
			#dce7f7 58px,
			#eaf1fb 132px,
			#f5f8fd 270px,
			#fbfdff 50%,
			#f5f8fd calc(100% - 270px),
			#eaf1fb calc(100% - 132px),
			#dce7f7 calc(100% - 58px),
			#c8d8ef 100%
		);
	box-shadow:
		inset 0 62px 92px -76px rgba(3, 25, 76, 0.40),
		inset 0 -62px 92px -76px rgba(3, 25, 76, 0.40),
		inset 0 1px 0 rgba(255, 255, 255, 0.52),
		inset 0 -1px 0 rgba(255, 255, 255, 0.34);
	content-visibility: auto;
	contain-intrinsic-size: 1180px;
}

/*
 * Точка перехода для ссылки #o-nas-team.
 *
 * На больших экранах якорь расположен внутри секции, а scroll-margin-top
 * компенсирует его положение. Благодаря этому после перехода секция
 * занимает экран целиком: заголовок остается видимым, а карточки команды
 * сразу попадают в область просмотра.
 */
.o-nas-team__anchor {
	position: absolute;
	top: 25%;
	left: 0;
	z-index: 2;

	width: 1px;
	height: 1px;

	opacity: 0;
	pointer-events: none;
	scroll-margin-top: 30vh;
}

.o-nas-team::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background:
		linear-gradient(90deg, rgba(var(--o-nas-team-accent-rgb), 0.026) 1px, transparent 1px),
		linear-gradient(180deg, rgba(var(--o-nas-team-accent-rgb), 0.020) 1px, transparent 1px);
	background-size: 64px 64px;
	opacity: 0.34;
	pointer-events: none;
}

/*
 * Декоративные дуги справа сверху.
 * Они продолжают визуальный язык секции специализации,
 * но расположены зеркально — в правом верхнем углу.
 */
.o-nas-team::after {
	content: "";
	position: absolute;
	top: -270px;
	right: -250px;
	z-index: 0;
	width: 680px;
	height: 680px;
	border: 1px solid rgba(var(--o-nas-team-accent-rgb), 0.13);
	border-radius: 50%;
	box-shadow:
		0 0 0 58px rgba(var(--o-nas-team-accent-rgb), 0.032),
		0 0 0 116px rgba(var(--o-nas-team-accent-rgb), 0.022),
		0 0 0 174px rgba(var(--o-nas-team-accent-rgb), 0.014);
	opacity: 0.92;
	pointer-events: none;
}

.o-nas-team__inner {
	position: relative;
	z-index: 1;
	width: min(100%, 1440px);
	margin: 0 auto;
}

.o-nas-team__header {
	margin: 0 0 38px;
	display: grid;
	grid-template-columns: minmax(0, 0.94fr) minmax(420px, 0.72fr);
	align-items: end;
	gap: 34px;
}

.o-nas-team__header-content {
	min-width: 0;
}

.o-nas-team__eyebrow {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	min-height: 34px;
	margin: 0 0 18px;
	padding: 8px 14px;
	color: #ff4e33;
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid rgba(16, 42, 91, 0.09);
	border-radius: 999px;
	box-shadow:
		0 10px 24px rgba(16, 42, 91, 0.08),
		inset 0 1px 0 rgba(255, 255, 255, 0.98);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.o-nas-team__eyebrow span:first-child {
	display: none;
}

.o-nas-team__title {
	position: relative;
	margin: 0;
	padding-bottom: 22px;
	color: #071f63;
	font-size: clamp(36px, 3.7vw, 58px);
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: -0.052em;
	text-transform: uppercase;
}

.o-nas-team__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: min(100%, 760px);
	height: 1px;
	background: linear-gradient(90deg, rgba(var(--o-nas-team-accent-rgb), 0.48), rgba(var(--o-nas-team-accent-rgb), 0.08));
}

.o-nas-team__lead {
	max-width: 760px;
	margin: 20px 0 0;
	color: rgba(21, 27, 42, 0.82);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.58;
	letter-spacing: -0.005em;
}

.o-nas-team__wordmark {
	justify-self: end;
	align-self: center;
	width: min(100%, 560px);
	min-height: 150px;
	background:
		url("../../assets/icons/team-wordmark.svg")
		center / contain no-repeat;
	opacity: 0.92;
	pointer-events: none;
	user-select: none;
}

.o-nas-team__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 26px 28px;
}

.o-nas-team__card {
	min-width: 0;
	min-height: 390px;
	display: grid;
	grid-template-columns: minmax(250px, 0.50fr) minmax(0, 1fr);
	gap: 24px;
	padding: 14px;
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid rgba(var(--o-nas-team-accent-rgb), 0.12);
	border-radius: 16px;
	box-shadow:
		0 18px 42px rgba(7, 31, 99, 0.075),
		0 0 0 1px rgba(255, 255, 255, 0.72) inset;
	transition:
		transform 0.22s ease,
		border-color 0.22s ease,
		box-shadow 0.22s ease;
}

.o-nas-team__card:hover {
	transform: translateY(-4px);
	border-color: rgba(var(--o-nas-team-accent-rgb), 0.24);
	box-shadow:
		0 24px 54px rgba(7, 31, 99, 0.11),
		0 0 0 1px rgba(255, 255, 255, 0.84) inset;
}

.o-nas-team__photo-wrap {
	position: relative;
	overflow: hidden;
	min-height: 310px;
	border-radius: 8px;
	background: #eaf4fb;
}

.o-nas-team__photo-wrap::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 42%;
	background: linear-gradient(180deg, rgba(7, 31, 99, 0) 0%, rgba(7, 31, 99, 0.34) 100%);
	pointer-events: none;
}

.o-nas-team__photo {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 310px;
	object-fit: cover;
	object-position: center top;
	transition: transform 0.28s ease;
}

.o-nas-team__card:hover .o-nas-team__photo {
	transform: scale(1.025);
}

.o-nas-team__experience {
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 14px;
	z-index: 2;
	min-height: 36px;
	padding: 9px 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	background: rgba(7, 31, 99, 0.78);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	box-shadow: 0 10px 24px rgba(7, 31, 99, 0.18);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.15;
	text-align: center;
	letter-spacing: -0.005em;
}

.o-nas-team__content {
	min-width: 0;
	display: flex;
	flex-direction: column;
	padding: 12px 14px 10px 0;
}

.o-nas-team__name {
	margin: 0 0 8px;
	color: #071f63;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.o-nas-team__position {
	max-width: 390px;
	margin: 0 0 22px;
	color: rgba(7, 31, 99, 0.68);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.45;
}

.o-nas-team__facts {
	display: grid;
	gap: 14px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.o-nas-team__facts li {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr);
	align-items: start;
	gap: 10px;
	color: #15234a;
	font-family: inherit;
	font-size: clamp(15px, 1vw, 17px);
	font-weight: 400;
	line-height: 1.62;
	letter-spacing: 0;
}

.o-nas-team__fact-icon {
	display: block;
	width: 18px;
	height: 18px;
	margin-top: 4px;
	background-color: var(--o-nas-team-accent);
	-webkit-mask:
		url("../../assets/icons/check-circle.svg")
		center / contain no-repeat;
	mask:
		url("../../assets/icons/check-circle.svg")
		center / contain no-repeat;
}

.o-nas-team__button {
	width: 100%;
	min-height: 44px;
	margin-top: auto;
	padding: 12px 15px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	color: #ff3b1f;
	background: #ffffff;
	border: 1px solid rgba(255, 59, 31, 0.58);
	border-radius: 5px;
	box-shadow: 0 8px 18px rgba(255, 59, 31, 0.06);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	transition:
		transform 0.2s ease,
		background 0.2s ease,
		color 0.2s ease,
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

.o-nas-team__button:hover,
.o-nas-team__button:focus-visible {
	color: #ffffff;
	background: linear-gradient(135deg, #ff4b2f 0%, #ff2d16 100%);
	border-color: rgba(255, 59, 31, 0.85);
	box-shadow: 0 12px 24px rgba(255, 59, 31, 0.18);
	text-decoration: none;
	transform: translateY(-2px);
}

.o-nas-team__button:focus-visible {
	outline: 3px solid rgba(255, 59, 31, 0.22);
	outline-offset: 4px;
}

.o-nas-team__button-arrow {
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
	transform: translateY(-1px);
}

/* Адаптив */

@media (prefers-reduced-motion: reduce) {
	.o-nas-team__card,
	.o-nas-team__photo,
	.o-nas-team__button {
		transition: none;
	}
}

@media (max-width: 1280px) {
	.o-nas-team {
		padding-top: 66px;
		padding-bottom: 72px;
		contain-intrinsic-size: 1260px;
	}

	.o-nas-team::after {
		top: -300px;
		right: -310px;
		opacity: 0.78;
	}

	.o-nas-team__anchor {
		top: 23%;
		scroll-margin-top: 28vh;
	}

	.o-nas-team__header {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.o-nas-team__wordmark {
		justify-self: start;
		width: min(100%, 520px);
		min-height: 125px;
	}

	.o-nas-team__grid {
		gap: 22px;
	}

	.o-nas-team__card {
		grid-template-columns: minmax(225px, 0.48fr) minmax(0, 1fr);
		gap: 20px;
	}

	.o-nas-team__name {
		font-size: 22px;
	}

	.o-nas-team__position {
		margin-bottom: 20px;
		font-size: 14px;
	}

	.o-nas-team__facts li {
		font-size: 15.5px;
		line-height: 1.58;
	}
}

@media (max-width: 1024px) {
	.o-nas-team {
		contain-intrinsic-size: 1620px;
	}

	.o-nas-team__anchor {
		top: 12%;
		scroll-margin-top: 16vh;
	}

	.o-nas-team__wordmark {
		width: min(100%, 470px);
		min-height: 112px;
	}

	.o-nas-team__grid {
		grid-template-columns: 1fr;
	}

	.o-nas-team__card {
		grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
	}

	.o-nas-team__photo-wrap,
	.o-nas-team__photo {
		min-height: 320px;
	}
}

@media (max-width: 768px) {
	.o-nas-team {
		padding: 54px 14px 60px;
		contain-intrinsic-size: 2580px;
	}

	.o-nas-team::after {
		top: -185px;
		right: -220px;
		width: 460px;
		height: 460px;
		box-shadow:
			0 0 0 40px rgba(var(--o-nas-team-accent-rgb), 0.028),
			0 0 0 80px rgba(var(--o-nas-team-accent-rgb), 0.019),
			0 0 0 120px rgba(var(--o-nas-team-accent-rgb), 0.012);
		opacity: 0.70;
	}

	.o-nas-team__anchor {
		top: 88px;
		scroll-margin-top: 88px;
	}

	.o-nas-team__header {
		margin-bottom: 28px;
		gap: 20px;
	}

	.o-nas-team__eyebrow {
		margin-bottom: 16px;
	}

	.o-nas-team__title {
		padding-bottom: 18px;
		font-size: clamp(30px, 9vw, 42px);
		line-height: 1.08;
		letter-spacing: -0.04em;
	}

	.o-nas-team__lead {
		margin-top: 16px;
		font-size: 15px;
		line-height: 1.52;
	}

	.o-nas-team__wordmark {
		width: min(88vw, 420px);
		min-height: 96px;
		opacity: 0.78;
	}

	.o-nas-team__card {
		grid-template-columns: 1fr;
		gap: 18px;
		min-height: 0;
		padding: 14px;
		border-radius: 14px;
	}

	.o-nas-team__photo-wrap {
		min-height: 0;
		height: auto;
		aspect-ratio: 4 / 4.4;
	}

	.o-nas-team__photo {
		min-height: 0;
		height: 100%;
	}

	.o-nas-team__content {
		padding: 0 2px 2px;
	}

	.o-nas-team__name {
		font-size: 22px;
	}

	.o-nas-team__position {
		max-width: none;
		margin-bottom: 18px;
		font-size: 14px;
	}

	.o-nas-team__facts {
		gap: 13px;
		margin-bottom: 20px;
	}

	.o-nas-team__facts li {
		font-size: 15.5px;
		line-height: 1.58;
	}

	.o-nas-team__button {
		min-height: 46px;
		padding: 13px 14px;
	}
}

@media (max-width: 480px) {
	.o-nas-team {
		padding-left: 12px;
		padding-right: 12px;
		contain-intrinsic-size: 2720px;
	}

	.o-nas-team::after {
		top: -150px;
		right: -205px;
		width: 390px;
		height: 390px;
		opacity: 0.56;
	}

	.o-nas-team__anchor {
		top: 76px;
		scroll-margin-top: 76px;
	}

	.o-nas-team__title {
		font-size: 32px;
	}

	.o-nas-team__lead {
		font-size: 14.5px;
	}

	.o-nas-team__wordmark {
		width: min(92vw, 340px);
		min-height: 82px;
	}

	.o-nas-team__card {
		padding: 12px;
	}

	.o-nas-team__photo-wrap {
		aspect-ratio: 4 / 4.8;
	}

	.o-nas-team__experience {
		left: 12px;
		right: 12px;
		bottom: 12px;
		font-size: 12.5px;
	}

	.o-nas-team__button {
		font-size: 11px;
		gap: 9px;
	}
}