/*
Отдельная секция команды для страниц подготовки договоров.
*/

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

.dogovor-team {
	position: relative;
	overflow: hidden;
	--team-ink: #071f63;
	--team-text: #10266d;
	--team-blue: #0b96c6;
	padding: 64px 0 56px;
	color: var(--team-text);
	background:
		linear-gradient(180deg, #ffffff 0%, #f5fbff 100%);
	content-visibility: auto;
	contain-intrinsic-size: 1180px;
}

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

.dogovor-team__inner {
	position: relative;
	z-index: 1;
	width: min(1540px, calc(100% - 64px));
	margin: 0 auto;
}

.dogovor-team__header {
	margin: 0 0 38px;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	align-items: center;
	gap: 42px;
}

.dogovor-team__header-content {
	min-width: 0;
}

.dogovor-team__eyebrow {
	margin: 0 0 18px;
	display: flex;
	align-items: center;
	gap: 14px;
	color: var(--team-blue);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.25;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.dogovor-team__eyebrow span:first-child {
	flex: 0 0 42px;
	width: 42px;
	height: 3px;
	border-radius: 999px;
	background: var(--team-blue);
}

.dogovor-team__title {
	position: relative;
	margin: 0 0 22px;
	padding-bottom: 0;
	color: #071f63;
	font-size: clamp(34px, 3vw, 48px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0;
	text-transform: none;
}

.dogovor-team__title::after {
	content: none;
	position: absolute;
	left: 0;
	bottom: 0;
	width: min(100%, 760px);
	height: 1px;
	background: linear-gradient(90deg, rgba(11, 150, 198, 0.48), rgba(11, 150, 198, 0.08));
}

.dogovor-team__lead {
	max-width: 760px;
	margin: 0;
	color: var(--team-text);
	font-size: clamp(18px, 1.45vw, 23px);
	font-weight: 400;
	line-height: 1.35;
	letter-spacing: 0;
}

.dogovor-team__summary {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	padding: 0;
}

.dogovor-team__summary-item {
	position: relative;
	padding: 22px 24px 22px 26px;
	background:
		linear-gradient(110deg, #eef8ff, #e2f2fd);
	border: 1px solid rgba(7, 31, 99, 0.08);
	border-radius: 14px;
	box-shadow: 0 12px 32px rgba(13, 45, 98, 0.09);
	overflow: hidden;
}

.dogovor-team__summary-item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 14px;
	bottom: 14px;
	width: 3px;
	border-radius: 999px;
	background: #0b96c6;
}

.dogovor-team__summary-title {
	color: #071f63;
	font-size: 23px;
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: 0;
}

.dogovor-team__summary-text {
	margin-top: 10px;
	color: var(--team-text);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.42;
}

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

.dogovor-team__card {
	min-width: 0;
	display: grid;
	grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
	gap: 24px;
	padding: 14px;
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid rgba(11, 150, 198, 0.12);
	border-radius: 14px;
	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;
}

.dogovor-team__card:hover {
	border-color: rgba(11, 150, 198, 0.24);
	box-shadow:
		0 24px 54px rgba(7, 31, 99, 0.11),
		0 0 0 1px rgba(255, 255, 255, 0.84) inset;
}

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

.dogovor-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;
}

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

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

.dogovor-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;
}

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

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

.dogovor-team__position {
	max-width: 390px;
	margin: 0 0 22px;
	color: var(--team-text);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.45;
}

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

.dogovor-team__facts li {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr);
	align-items: start;
	gap: 10px;
	color: var(--team-text);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.42;
}

.dogovor-team__fact-icon {
	width: 18px;
	height: 18px;
	margin-top: 1px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #0b96c6;
}

.dogovor-team__fact-icon svg {
	display: block;
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.dogovor-team__button {
	width: 100%;
	min-height: 80px;
	margin-top: auto;
	padding: 14px 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	color: #fff;
	background: linear-gradient(135deg, #ff6a24, #ff2519);
	border: 1px solid transparent;
	border-radius: 12px;
	box-shadow: 0 14px 34px rgba(13, 45, 98, 0.12);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	letter-spacing: 0;
	transition:
		transform 0.2s ease,
		background 0.2s ease,
		color 0.2s ease,
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

.dogovor-team__button:hover,
.dogovor-team__button:focus-visible {
	color: #ffffff;
	background: linear-gradient(135deg, #ff6a24, #ff2519);
	border-color: transparent;
	box-shadow: 0 18px 42px rgba(13, 45, 98, 0.16);
	text-decoration: none;
	transform: translateY(-3px);
}

.dogovor-team__button:focus-visible {
	outline: 3px solid var(--team-ink);
	outline-offset: 4px;
}

.dogovor-team__button-arrow {
	flex: 0 0 auto;
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
	transform: translateY(-1px);
}

/* Адаптив */

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

@media (max-width: 1280px) {
	.dogovor-team {
		padding-top: 48px;
		padding-bottom: 48px;
		contain-intrinsic-size: 1260px;
	}

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

	.dogovor-team__summary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.dogovor-team__grid {
		gap: 22px;
	}

	.dogovor-team__card {
		grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
		gap: 20px;
	}

	.dogovor-team__name {
		font-size: 22px;
	}

	.dogovor-team__position {
		margin-bottom: 20px;
		font-size: 16px;
	}

	.dogovor-team__facts li {
		font-size: 16px;
	}
}

@media (max-width: 1200px) {
	.dogovor-team__grid { grid-template-columns: minmax(0, 1fr); }
	.dogovor-team__card { grid-template-columns: minmax(0, .42fr) minmax(0, 1fr); }
}

@media (max-width: 1024px) {
	.dogovor-team__inner { width: calc(100% - 48px); }
	.dogovor-team__title { font-size: clamp(34px, 4.6vw, 46px); }
	.dogovor-team__lead { font-size: 21px; }

	.dogovor-team {
		contain-intrinsic-size: 1620px;
	}

	.dogovor-team__summary {
		grid-template-columns: 1fr;
	}

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

	.dogovor-team__card {
		grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
	}

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

@media (max-width: 768px) {
	.dogovor-team {
		padding: 36px 0 32px;
		contain-intrinsic-size: 2580px;
	}

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

	.dogovor-team__inner { width: calc(100% - 32px); }

	.dogovor-team__eyebrow {
		margin-bottom: 16px;
		gap: 12px;
		font-size: 12px;
	}

	.dogovor-team__eyebrow span:first-child {
		flex-basis: 36px;
		width: 36px;
	}

	.dogovor-team__title {
		padding-bottom: 0;
		font-size: clamp(30px, 7.3vw, 40px);
		line-height: 1.1;
		letter-spacing: 0;
	}

	.dogovor-team__lead {
		margin-top: 0;
		font-size: 19px;
		line-height: 1.35;
	}

	.dogovor-team__summary {
		padding: 0;
		border-radius: 16px;
	}

	.dogovor-team__summary-item {
		padding: 20px 20px 20px 22px;
		border-radius: 14px;
	}

	.dogovor-team__summary-title {
		font-size: 22px;
	}

	.dogovor-team__summary-text {
		font-size: 17px;
	}

	.dogovor-team__card {
		grid-template-columns: 1fr;
		gap: 18px;
		padding: 14px;
		border-radius: 14px;
	}

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

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

	.dogovor-team__content {
		padding: 0 2px 2px;
	}

	.dogovor-team__name {
		font-size: 22px;
	}

	.dogovor-team__position {
		max-width: none;
		margin-bottom: 18px;
		font-size: 16px;
	}

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

	.dogovor-team__facts li {
		font-size: 16px;
	}

	.dogovor-team__button {
		min-height: 80px;
		padding: 14px 16px;
	}
}

@media (max-width: 480px) {
	.dogovor-team {
		padding: 28px 0;
		contain-intrinsic-size: 2720px;
	}

	.dogovor-team__title {
		font-size: clamp(30px, 7.3vw, 40px);
	}

	.dogovor-team__lead {
		font-size: 17px;
	}

	.dogovor-team__card {
		padding: 12px;
	}

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

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

	.dogovor-team__button {
		font-size: 18px;
		gap: 9px;
	}
}
