/*
Секция команды налоговых юристов.
*/

.section-tax-lawyers-team,
.section-tax-lawyers-team * {
	box-sizing: border-box;
}

.section-tax-lawyers-team {
	position: relative;
	overflow: hidden;
	padding: 76px 16px 82px;
	color: #151b2a;
	background:
		radial-gradient(circle at 8% 10%, rgba(11, 150, 198, 0.08) 0, transparent 28%),
		radial-gradient(circle at 92% 0%, rgba(255, 210, 31, 0.08) 0, transparent 24%),
		linear-gradient(180deg, #ffffff 0%, #f5fbff 100%);
	content-visibility: auto;
	contain-intrinsic-size: 1180px;
}

.section-tax-lawyers-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;
}

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

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

.section-tax-lawyers-team__header-content {
	min-width: 0;
}

.section-tax-lawyers-team__eyebrow {
	margin: 0 0 18px;
	display: flex;
	align-items: center;
	gap: 14px;
	color: #0b78d0;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.section-tax-lawyers-team__eyebrow span:first-child {
	flex: 0 0 42px;
	width: 42px;
	height: 3px;
	border-radius: 999px;
	background: #0b78d0;
}

.section-tax-lawyers-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;
}

.section-tax-lawyers-team__title::after {
	content: "";
	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));
}

.section-tax-lawyers-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;
}

.section-tax-lawyers-team__summary {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	padding: 18px;
	background: rgba(255, 255, 255, 0.82);
	border: 1px solid rgba(11, 150, 198, 0.14);
	border-radius: 20px;
	box-shadow:
		0 18px 44px rgba(7, 31, 99, 0.06),
		0 0 0 1px rgba(255, 255, 255, 0.76) inset;
}

.section-tax-lawyers-team__summary-item {
	position: relative;
	padding: 14px 16px 14px 18px;
	background:
		linear-gradient(135deg, rgba(234, 247, 253, 0.80) 0%, rgba(255, 255, 255, 0.86) 100%);
	border: 1px solid rgba(11, 150, 198, 0.10);
	border-radius: 15px;
	overflow: hidden;
}

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

.section-tax-lawyers-team__summary-title {
	color: #071f63;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.22;
	letter-spacing: -0.01em;
}

.section-tax-lawyers-team__summary-text {
	margin-top: 5px;
	color: rgba(21, 27, 42, 0.72);
	font-size: 13.5px;
	font-weight: 400;
	line-height: 1.42;
}

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

.section-tax-lawyers-team__card {
	min-width: 0;
	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(11, 150, 198, 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;
}

.section-tax-lawyers-team__card:hover {
	transform: translateY(-4px);
	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;
}

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

.section-tax-lawyers-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;
}

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

.section-tax-lawyers-team__card:hover .section-tax-lawyers-team__photo {
	transform: scale(1.025);
}

.section-tax-lawyers-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;
}

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

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

.section-tax-lawyers-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;
}

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

.section-tax-lawyers-team__facts li {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr);
	align-items: start;
	gap: 10px;
	color: #15234a;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.42;
}

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

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

.section-tax-lawyers-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;
}

.section-tax-lawyers-team__button:hover,
.section-tax-lawyers-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);
}

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

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

/* Адаптив */

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

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

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

	.section-tax-lawyers-team__summary {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.section-tax-lawyers-team__grid {
		gap: 22px;
	}

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

	.section-tax-lawyers-team__name {
		font-size: 22px;
	}

	.section-tax-lawyers-team__position {
		margin-bottom: 20px;
		font-size: 14px;
	}

	.section-tax-lawyers-team__facts li {
		font-size: 13.5px;
	}
}

@media (max-width: 1024px) {
	.section-tax-lawyers-team {
		contain-intrinsic-size: 1620px;
	}

	.section-tax-lawyers-team__summary {
		grid-template-columns: 1fr;
	}

	.section-tax-lawyers-team__grid {
		grid-template-columns: 1fr;
	}

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

	.section-tax-lawyers-team__photo-wrap,
	.section-tax-lawyers-team__photo {
		min-height: 320px;
	}
}

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

	.section-tax-lawyers-team__header {
		margin-bottom: 28px;
		gap: 20px;
	}

	.section-tax-lawyers-team__eyebrow {
		margin-bottom: 16px;
		gap: 12px;
		font-size: 12px;
	}

	.section-tax-lawyers-team__eyebrow span:first-child {
		flex-basis: 36px;
		width: 36px;
	}

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

	.section-tax-lawyers-team__lead {
		margin-top: 16px;
		font-size: 15px;
		line-height: 1.52;
	}

	.section-tax-lawyers-team__summary {
		padding: 14px;
		border-radius: 16px;
	}

	.section-tax-lawyers-team__summary-item {
		padding: 13px 14px 13px 16px;
		border-radius: 13px;
	}

	.section-tax-lawyers-team__summary-title {
		font-size: 15px;
	}

	.section-tax-lawyers-team__summary-text {
		font-size: 13px;
	}

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

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

	.section-tax-lawyers-team__photo {
		min-height: 0;
		height: 100%;
	}

	.section-tax-lawyers-team__content {
		padding: 0 2px 2px;
	}

	.section-tax-lawyers-team__name {
		font-size: 22px;
	}

	.section-tax-lawyers-team__position {
		max-width: none;
		margin-bottom: 18px;
		font-size: 14px;
	}

	.section-tax-lawyers-team__facts {
		gap: 13px;
		margin-bottom: 20px;
	}

	.section-tax-lawyers-team__facts li {
		font-size: 13.5px;
	}

	.section-tax-lawyers-team__button {
		min-height: 46px;
		padding: 13px 14px;
	}
}

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

	.section-tax-lawyers-team__title {
		font-size: 32px;
	}

	.section-tax-lawyers-team__lead {
		font-size: 14.5px;
	}

	.section-tax-lawyers-team__card {
		padding: 12px;
	}

	.section-tax-lawyers-team__photo-wrap {
		aspect-ratio: 4 / 4.8;
	}

	.section-tax-lawyers-team__experience {
		left: 12px;
		right: 12px;
		bottom: 12px;
		font-size: 12.5px;
	}

	.section-tax-lawyers-team__button {
		font-size: 11px;
		gap: 9px;
	}
}
