/**
 * Блок «Цены» на главной (после калькулятора).
 */

.front-prices {
	--fp-teal: #007979;
	--fp-teal-soft: rgba(0, 121, 121, 0.1);
	--fp-yellow: #f2d06b;
	--fp-ash: #3d4449;
	--fp-muted: #5c6468;
	--fp-surface: #f4fbfb;
	--fp-card: #ffffff;
	--fp-border: rgba(0, 121, 121, 0.14);
	--fp-radius: 18px;
	--fp-ease: cubic-bezier(0.23, 1, 0.32, 1);

	padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 7vw, 6rem);
	background: linear-gradient(180deg, #f0faf9 0%, #fafbfc 38%, #ffffff 100%);
	border-top: 1px solid rgba(0, 121, 121, 0.08);
	font-family: "Manrope", system-ui, sans-serif;
}

.front-prices__inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 clamp(1rem, 3vw, 1.5rem);
}

.front-prices__head {
	text-align: center;
	margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.front-prices__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0 0 0.65rem;
	padding: 0.35rem 0.85rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--fp-teal);
	background: var(--fp-teal-soft);
	border-radius: 999px;
	border: 1px solid rgba(0, 121, 121, 0.18);
}

.front-prices__badge i {
	opacity: 0.9;
}

.front-prices__title {
	margin: 0 0 0.65rem;
	font-size: clamp(1.65rem, 3.2vw, 2.25rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--fp-ash);
}

.front-prices__title span {
	color: var(--fp-teal);
}

.front-prices__lead {
	margin: 0 auto;
	max-width: 46rem;
	font-size: 1rem;
	line-height: 1.55;
	color: var(--fp-muted);
}

.front-prices__currency-note {
	margin: 0.65rem auto 0;
	max-width: 46rem;
	font-size: 0.875rem;
	line-height: 1.45;
	color: var(--fp-muted);
	opacity: 0.92;
}

.front-prices__block {
	margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.front-prices__block:last-child {
	margin-bottom: 0;
}

.front-prices__subtitle {
	margin: 0 0 1rem;
	font-size: clamp(1.15rem, 2vw, 1.35rem);
	font-weight: 800;
	color: var(--fp-ash);
}

.front-prices__table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: var(--fp-radius);
	box-shadow: 0 12px 40px rgba(61, 68, 73, 0.07);
	border: 1px solid var(--fp-border);
	background: var(--fp-card);
}

.front-prices__table {
	width: 100%;
	min-width: 520px;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.front-prices__table--compact {
	min-width: 340px;
}

.front-prices__table caption {
	caption-side: bottom;
	padding: 0.75rem 1rem 1rem;
	font-size: 0.82rem;
	line-height: 1.45;
	color: var(--fp-muted);
	text-align: left;
}

.front-prices__table thead th {
	padding: 1rem 1.1rem;
	text-align: left;
	font-weight: 800;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #fff;
	background: linear-gradient(135deg, var(--fp-teal) 0%, #005f5f 100%);
	border-bottom: 3px solid var(--fp-yellow);
}

.front-prices__table thead th:first-child {
	border-radius: var(--fp-radius) 0 0 0;
}

.front-prices__table thead th:last-child {
	border-radius: 0 var(--fp-radius) 0 0;
}

.front-prices__table tbody td {
	padding: 0.95rem 1.1rem;
	vertical-align: top;
	color: var(--fp-ash);
	border-bottom: 1px solid rgba(61, 68, 73, 0.08);
}

.front-prices__table tbody tr:last-child td {
	border-bottom: 0;
}

.front-prices__table tbody tr:nth-child(even) td {
	background: var(--fp-surface);
}

.front-prices__tariff {
	font-weight: 800;
	color: var(--fp-teal);
	white-space: nowrap;
}

.front-prices__price {
	font-weight: 800;
	color: var(--fp-ash);
	white-space: nowrap;
}

.front-prices__note {
	margin: 1rem 0 0;
	padding: 1rem 1.15rem;
	font-size: 0.92rem;
	line-height: 1.55;
	color: var(--fp-ash);
	background: linear-gradient(135deg, rgba(242, 208, 107, 0.22) 0%, rgba(0, 121, 121, 0.06) 100%);
	border-left: 4px solid var(--fp-yellow);
	border-radius: 0 var(--fp-radius) var(--fp-radius) 0;
	box-shadow: 0 4px 18px rgba(0, 121, 121, 0.06);
}

.front-prices__note--muted {
	background: var(--fp-card);
	border: 1px solid var(--fp-border);
	border-left-width: 4px;
	border-left-color: var(--fp-teal);
}

.front-prices__subnote {
	margin: -0.75rem 0 1.25rem;
	color: var(--color-muted, #5c6468);
	font-size: 0.95rem;
	line-height: 1.55;
	max-width: 78ch;
}

.front-prices__highlights {
	margin-top: clamp(2rem, 4vw, 2.5rem);
	padding: 1.25rem 1.35rem;
	border-radius: var(--fp-radius);
	background: var(--fp-card);
	border: 1px solid var(--fp-border);
	box-shadow: 0 8px 28px rgba(61, 68, 73, 0.06);
}

.front-prices__highlights > .front-prices__note {
	margin-top: 0;
}

.front-prices__highlights-title {
	margin: 0 0 0.85rem;
	font-size: 1rem;
	font-weight: 800;
	color: var(--fp-teal);
}

.front-prices__list {
	margin: 0;
	padding-left: 1.15rem;
	color: var(--fp-ash);
	font-size: 0.95rem;
	line-height: 1.6;
}

.front-prices__list li + li {
	margin-top: 0.45rem;
}

.front-prices__example {
	margin: 1rem 0 0;
	padding: 0.85rem 1rem;
	font-size: 0.88rem;
	line-height: 1.55;
	color: var(--fp-muted);
	background: var(--fp-surface);
	border-radius: 12px;
	border: 1px dashed rgba(0, 121, 121, 0.25);
}

.front-prices__example em {
	font-style: normal;
	color: var(--fp-ash);
}

/* Мобильные: карточки вместо таблицы — всё влезает без горизонтального скролла */
@media (max-width: 640px) {
	.front-prices__table-wrap {
		overflow-x: visible;
		-webkit-overflow-scrolling: auto;
	}

	.front-prices__table,
	.front-prices__table--compact {
		min-width: 0;
		width: 100%;
		display: block;
		font-size: 0.9rem;
	}

	.front-prices__table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		clip-path: inset(50%);
		white-space: nowrap;
		border: 0;
	}

	.front-prices__table tbody {
		display: block;
	}

	.front-prices__table tbody tr {
		display: block;
		padding: 0.9rem 1rem;
		border-bottom: 1px solid rgba(61, 68, 73, 0.1);
	}

	.front-prices__table tbody tr:last-child {
		border-bottom: 0;
	}

	.front-prices__table tbody tr:nth-child(even) {
		background: var(--fp-surface);
	}

	.front-prices__table tbody td {
		display: block;
		width: 100%;
		padding: 0;
		border: 0;
		background: transparent !important;
		white-space: normal;
		word-break: break-word;
		overflow-wrap: anywhere;
	}

	.front-prices__table tbody td + td {
		margin-top: 0.35rem;
	}

	.front-prices__table tbody td.front-prices__tariff {
		margin-top: 0;
		font-size: 1rem;
		line-height: 1.3;
	}

	.front-prices__table:not(.front-prices__table--compact) tbody td:not(.front-prices__tariff):not(.front-prices__price) {
		font-size: 0.88rem;
		line-height: 1.45;
		color: var(--fp-muted);
	}

	.front-prices__table--compact tbody td:first-child {
		font-weight: 600;
		line-height: 1.4;
		color: var(--fp-ash);
	}

	.front-prices__table tbody td.front-prices__price {
		margin-top: 0.55rem;
		padding-top: 0.5rem;
		text-align: right;
		font-size: 1rem;
		line-height: 1.35;
		border-top: 1px dashed rgba(0, 121, 121, 0.22);
	}

	.front-prices__tariff,
	.front-prices__price {
		white-space: normal;
	}
}

/* Прайс демонтажа: 4 колонки + «Что входит» */
.front-prices__table--demolition {
	min-width: 720px;
}

.front-prices__included {
	font-size: 0.9rem;
	line-height: 1.45;
	color: var(--fp-muted);
	max-width: 16rem;
}

.service-demolition-prices__highlights {
	margin-top: 1.5rem;
}

.service-demolition-prices__phone {
	margin: 1.25rem 0 0;
	font-size: 1.05rem;
	font-weight: 700;
}

.service-demolition-prices__phone a {
	color: var(--fp-accent, #007979);
	text-decoration: none;
}

.service-demolition-prices__phone a:hover {
	text-decoration: underline;
}

.service-demolition-prices__messengers {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.88rem;
	font-weight: 500;
	color: var(--fp-muted);
}

@media (max-width: 767px) {
	.front-prices__table--demolition tbody td[data-label]::before {
		content: attr(data-label);
		display: block;
		font-size: 0.72rem;
		font-weight: 800;
		text-transform: uppercase;
		letter-spacing: 0.04em;
		color: var(--fp-muted);
		margin-bottom: 0.2rem;
	}
}
