/*
Секция: другие услуги по налоговым спорам.
Файл: sections-modules/tax-dispute-services/tax-dispute-services.css
Версия: v14
*/

.tax-dispute-services,
.tax-dispute-services * {
	box-sizing: border-box;
}

.tax-dispute-services {
	--tds-blue: #1494d2;
	--tds-blue-dark: #24354d;
	--tds-title-dark: #08245c;
	--tds-border: rgba(36, 53, 77, 0.16);

	position: relative;
	width: 100%;
	padding: clamp(42px, 5vw, 76px) clamp(16px, 3vw, 34px);
	overflow: hidden;
	color: var(--tds-blue-dark);
	background: linear-gradient(180deg, #f8fbfe 0%, #edf5fa 100%);
}

/* Тонкая внутренняя рамка по периметру всей секции. */
.tax-dispute-services::before {
	content: "";
	position: absolute;
	inset: clamp(8px, 0.85vw, 14px);
	z-index: 0;
	pointer-events: none;
	border: 1px solid rgba(20, 148, 210, 0.22);
	border-radius: 28px;
	box-shadow:
		inset 0 0 0 1px rgba(255, 255, 255, 0.72),
		inset 0 18px 42px rgba(255, 255, 255, 0.24);
}

/* Небольшой акцент в верхней части рамки. */
.tax-dispute-services::after {
	content: "";
	position: absolute;
	top: clamp(8px, 0.85vw, 14px);
	left: clamp(46px, 5vw, 86px);
	z-index: 0;
	width: 112px;
	height: 2px;
	pointer-events: none;
	border-radius: 999px;
	background: linear-gradient(90deg, rgba(20, 148, 210, 0) 0%, rgba(20, 148, 210, 0.78) 50%, rgba(20, 148, 210, 0) 100%);
}

.tax-dispute-services__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
}

/* Заголовок секции */
.tax-dispute-services__title {
	position: relative;
	max-width: 980px;
	margin: 0 0 clamp(28px, 3vw, 40px);
	padding-bottom: 16px;
	font-family: var(--font-heading);
	font-size: clamp(32px, 3.15vw, 52px);
	font-weight: 720;
	line-height: 1.08;
	letter-spacing: -0.012em;
	text-transform: uppercase;
}

.tax-dispute-services__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 76px;
	height: 4px;
	border-radius: 999px;
	background: var(--tds-blue);
}

.tax-dispute-services__title-dark,
.tax-dispute-services__title-blue {
	display: block;
}

.tax-dispute-services__title-dark {
	color: var(--tds-title-dark);
}

.tax-dispute-services__title-blue {
	margin-top: 8px;
	color: var(--tds-blue);
	white-space: nowrap;
}

/* Основная сетка */
.tax-dispute-services__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(18px, 2vw, 25px);
	align-items: stretch;
}

.tax-dispute-services__card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 176px;
	padding: 22px 24px 24px;
	overflow: hidden;
	border: 1px solid var(--tds-border);
	border-radius: 12px;
	color: var(--tds-blue-dark);
	text-decoration: none;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 8px 22px rgba(36, 53, 77, 0.06);
	transition:
		transform 0.28s ease,
		box-shadow 0.28s ease,
		border-color 0.28s ease;
}

.tax-dispute-services__card:focus-visible {
	outline: 3px solid rgba(20, 148, 210, 0.24);
	outline-offset: 3px;
}

.tax-dispute-services__card-top,
.tax-dispute-services__card-title {
	position: relative;
	z-index: 3;
}

.tax-dispute-services__card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	min-height: 32px;
	margin-bottom: 28px;
}

.tax-dispute-services__card-label {
	font-size: 12px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.tax-dispute-services__card-arrow {
	display: block;
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	padding: 7px;
	border: 1px solid rgba(20, 148, 210, 0.2);
	border-radius: 50%;
	color: var(--tds-blue);
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 5px 15px rgba(36, 53, 77, 0.08);
	transition:
		transform 0.28s ease,
		color 0.28s ease,
		background-color 0.28s ease,
		border-color 0.28s ease,
		box-shadow 0.28s ease;
}

.tax-dispute-services__card-title {
	display: block;
	margin-top: auto;
	font-size: clamp(22px, 1.65vw, 27px);
	font-weight: 600;
	line-height: 1.22;
	letter-spacing: -0.018em;
}

/* Верхние 6 карточек с фоновыми изображениями */
.tax-dispute-services__card--image {
	isolation: isolate;
	min-height: 188px;
	color: #ffffff;
	border-color: rgba(20, 148, 210, 0.30);
	background: #dbeaf3;
	box-shadow:
		0 10px 28px rgba(36, 53, 77, 0.10),
		inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.tax-dispute-services__card-media,
.tax-dispute-services__card-overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.tax-dispute-services__card-media {
	z-index: 0;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	transform: scale(1.01);
	filter: grayscale(0.22) saturate(0.46) brightness(1.08) contrast(0.86);
	transition:
		transform 0.42s cubic-bezier(0.2, 0.72, 0.2, 1),
		filter 0.32s ease;
}

/* Постоянная приглушенная вуаль: базовое состояние спокойное и менее пестрое. */
.tax-dispute-services__card-overlay {
	z-index: 1;
	background:
		linear-gradient(
			180deg,
			rgba(206, 224, 235, 0.42) 0%,
			rgba(142, 174, 194, 0.34) 44%,
			rgba(36, 53, 77, 0.62) 100%
		);
	transition: background 0.32s ease;
}

.tax-dispute-services__card--image .tax-dispute-services__card-label {
	color: rgba(36, 53, 77, 0.82);
	text-shadow: 0 1px 8px rgba(255, 255, 255, 0.58);
	transition:
		color 0.28s ease,
		text-shadow 0.28s ease;
}

.tax-dispute-services__card--image .tax-dispute-services__card-title {
	color: #2f4a63;
	text-shadow: 0 1px 8px rgba(255, 255, 255, 0.44);
	transition:
		color 0.28s ease,
		text-shadow 0.28s ease;
}

.tax-dispute-services__card--image .tax-dispute-services__card-arrow {
	color: var(--tds-blue);
	background: rgba(255, 255, 255, 0.94);
	border-color: rgba(255, 255, 255, 0.48);
}

.tax-dispute-services__card--image:hover,
.tax-dispute-services__card--image:focus-visible {
	transform: translateY(-6px);
	border-color: rgba(20, 148, 210, 0.58);
	box-shadow:
		0 22px 46px rgba(36, 53, 77, 0.23),
		0 6px 16px rgba(20, 148, 210, 0.10);
}

.tax-dispute-services__card--image:hover .tax-dispute-services__card-media,
.tax-dispute-services__card--image:focus-visible .tax-dispute-services__card-media {
	transform: scale(1.045);
	filter: grayscale(0.08) saturate(0.74) brightness(0.94) contrast(0.98);
}

.tax-dispute-services__card--image:hover .tax-dispute-services__card-overlay,
.tax-dispute-services__card--image:focus-visible .tax-dispute-services__card-overlay {
	background:
		linear-gradient(
			135deg,
			rgba(67, 137, 178, 0.46) 0%,
			rgba(45, 101, 140, 0.54) 44%,
			rgba(36, 53, 77, 0.80) 100%
		);
}

.tax-dispute-services__card--image:hover .tax-dispute-services__card-label,
.tax-dispute-services__card--image:focus-visible .tax-dispute-services__card-label,
.tax-dispute-services__card--image:hover .tax-dispute-services__card-title,
.tax-dispute-services__card--image:focus-visible .tax-dispute-services__card-title {
	color: #ffffff;
	text-shadow: 0 2px 12px rgba(8, 28, 48, 0.32);
}

.tax-dispute-services__card--image:hover .tax-dispute-services__card-arrow,
.tax-dispute-services__card--image:focus-visible .tax-dispute-services__card-arrow {
	color: #ffffff;
	background: var(--tds-blue);
	border-color: rgba(255, 255, 255, 0.36);
	transform: translate(3px, -3px);
	box-shadow: 0 9px 22px rgba(8, 36, 69, 0.28);
}

/* Аккордеон */
.tax-dispute-services__more {
	position: relative;
	margin-top: clamp(30px, 3vw, 42px);
	border: 1px solid transparent;
	border-radius: 20px;
}

.tax-dispute-services__summary {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 10px 18px 10px 12px;
	border: 1px solid rgba(20, 148, 210, 0.24);
	border-radius: 999px;
	color: var(--tds-blue-dark);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	list-style: none;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 8px 22px rgba(36, 53, 77, 0.07);
	transition:
		transform 0.2s ease,
		color 0.2s ease,
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		background-color 0.2s ease;
}

.tax-dispute-services__summary::-webkit-details-marker {
	display: none;
}

.tax-dispute-services__summary:hover,
.tax-dispute-services__summary:focus-visible {
	transform: translateY(-1px);
	color: var(--tds-blue);
	border-color: rgba(20, 148, 210, 0.42);
	background: #ffffff;
	box-shadow: 0 12px 28px rgba(36, 53, 77, 0.10);
	outline: none;
}

.tax-dispute-services__summary-icon {
	display: grid;
	place-items: center;
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	padding: 5px;
	border-radius: 50%;
	color: var(--tds-blue);
	background: rgba(20, 148, 210, 0.10);
	transition:
		transform 0.24s ease,
		background-color 0.24s ease;
}

.tax-dispute-services__summary-text--open {
	display: none;
}

.tax-dispute-services__more[open] {
	padding: clamp(18px, 2vw, 26px);
	border-color: rgba(20, 148, 210, 0.22);
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.94) 0%, rgba(242, 248, 252, 0.97) 100%);
	box-shadow: 0 12px 28px rgba(36, 53, 77, 0.07);
}

.tax-dispute-services__more[open] .tax-dispute-services__summary {
	border-color: rgba(20, 148, 210, 0.34);
	background: #ffffff;
}

.tax-dispute-services__more[open] .tax-dispute-services__summary-icon {
	transform: rotate(180deg);
	background: rgba(20, 148, 210, 0.14);
}

.tax-dispute-services__more[open] .tax-dispute-services__summary-text--closed {
	display: none;
}

.tax-dispute-services__more[open] .tax-dispute-services__summary-text--open {
	display: inline;
}

.tax-dispute-services__more-panel {
	padding-top: clamp(20px, 2.2vw, 28px);
}

.tax-dispute-services__more-heading {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: clamp(16px, 1.8vw, 22px);
}

.tax-dispute-services__more-heading-line {
	flex: 0 0 52px;
	height: 2px;
	border-radius: 999px;
	background: var(--tds-blue);
}

.tax-dispute-services__more-heading-text {
	color: #67809a;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

/* Карточки внутри аккордеона */
.tax-dispute-services__grid--more {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: center;
	gap: 12px 16px;
}

.tax-dispute-services__grid--more > .tax-dispute-services__card {
	flex: 0 1 calc((100% - 32px) / 3);
}

.tax-dispute-services__card--compact {
	min-height: 0;
	padding: 14px 18px;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 13px;
	border-radius: 11px;
	border-color: rgba(20, 148, 210, 0.16);
	background: rgba(255, 255, 255, 0.84);
	box-shadow: 0 2px 8px rgba(36, 53, 77, 0.035);
}

.tax-dispute-services__compact-icon {
	display: grid;
	place-items: center;
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	color: var(--tds-blue);
	background: rgba(20, 148, 210, 0.09);
	box-shadow: inset 0 0 0 1px rgba(20, 148, 210, 0.04);
	transition:
		transform 0.26s ease,
		color 0.26s ease,
		background-color 0.26s ease,
		box-shadow 0.26s ease;
}

.tax-dispute-services__compact-body {
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
}

.tax-dispute-services__card-label--compact {
	color: #75899d;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	transition: color 0.26s ease;
}

.tax-dispute-services__card--compact .tax-dispute-services__card-title {
	margin-top: 0;
	color: #31465e;
	font-size: clamp(15px, 1.16vw, 19px);
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -0.006em;
	transition: color 0.26s ease;
}

.tax-dispute-services__card--compact:hover,
.tax-dispute-services__card--compact:focus-visible {
	transform: translateY(-3px);
	border-color: rgba(20, 148, 210, 0.40);
	background: linear-gradient(135deg, #1b8dcc 0%, #24354d 100%);
	box-shadow:
		0 15px 30px rgba(36, 53, 77, 0.17),
		0 4px 10px rgba(20, 148, 210, 0.07);
	outline: none;
}

.tax-dispute-services__card--compact:hover .tax-dispute-services__card-title,
.tax-dispute-services__card--compact:focus-visible .tax-dispute-services__card-title,
.tax-dispute-services__card--compact:hover .tax-dispute-services__card-label--compact,
.tax-dispute-services__card--compact:focus-visible .tax-dispute-services__card-label--compact {
	color: #ffffff;
}

.tax-dispute-services__card--compact:hover .tax-dispute-services__compact-icon,
.tax-dispute-services__card--compact:focus-visible .tax-dispute-services__compact-icon {
	transform: translateY(-1px);
	color: #ffffff;
	background: rgba(255, 255, 255, 0.14);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

@media (prefers-reduced-motion: reduce) {
	.tax-dispute-services__card,
	.tax-dispute-services__card-media,
	.tax-dispute-services__card-overlay,
	.tax-dispute-services__card-arrow,
	.tax-dispute-services__compact-icon,
	.tax-dispute-services__summary,
	.tax-dispute-services__summary-icon {
		transition: none;
	}
}

@media (max-width: 1100px) {
	.tax-dispute-services__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}

	.tax-dispute-services__grid--more {
		gap: 12px 14px;
	}

	.tax-dispute-services__grid--more > .tax-dispute-services__card {
		flex-basis: calc((100% - 14px) / 2);
	}
}

@media (max-width: 700px) {
	.tax-dispute-services {
		padding: 36px 12px;
	}

	.tax-dispute-services::before {
		inset: 6px;
		border-radius: 18px;
	}

	.tax-dispute-services::after {
		top: 6px;
		left: 30px;
		width: 82px;
	}

	.tax-dispute-services__title {
		font-size: clamp(30px, 8vw, 42px);
	}

	.tax-dispute-services__title-blue {
		margin-top: 6px;
		white-space: normal;
	}

	.tax-dispute-services__grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.tax-dispute-services__card,
	.tax-dispute-services__card--image {
		min-height: 154px;
		padding: 18px;
	}

	.tax-dispute-services__card-top {
		margin-bottom: 24px;
	}

	.tax-dispute-services__card-title {
		font-size: 23px;
	}

	.tax-dispute-services__card-label {
		font-size: 11px;
	}

	.tax-dispute-services__card-arrow {
		flex-basis: 30px;
		width: 30px;
		height: 30px;
	}

	.tax-dispute-services__more[open] {
		padding: 14px;
		border-radius: 16px;
	}

	.tax-dispute-services__summary {
		min-height: 42px;
		padding: 9px 14px 9px 10px;
		font-size: 15px;
	}

	.tax-dispute-services__more-panel {
		padding-top: 18px;
	}

	.tax-dispute-services__more-heading {
		margin-bottom: 14px;
	}

	.tax-dispute-services__more-heading-line {
		flex-basis: 38px;
	}

	.tax-dispute-services__more-heading-text {
		font-size: 11px;
	}

	.tax-dispute-services__grid--more {
		gap: 10px;
	}

	.tax-dispute-services__grid--more > .tax-dispute-services__card {
		flex-basis: 100%;
	}

	.tax-dispute-services__card--compact {
		min-height: 0;
		padding: 13px 15px;
		gap: 11px;
	}

	.tax-dispute-services__compact-icon {
		flex-basis: 34px;
		width: 34px;
		height: 34px;
	}

	.tax-dispute-services__card--compact .tax-dispute-services__card-title {
		font-size: 15px;
	}
}

@media (max-width: 480px) {
	.tax-dispute-services__card-title {
		font-size: 21px;
	}

	.tax-dispute-services__card--compact .tax-dispute-services__card-title {
		font-size: 14px;
	}

	.tax-dispute-services__summary {
		font-size: 14px;
	}
}
