.prices-tables {
	--prices-tables-section-padding: clamp(5rem, 5.85vw, 7rem);
	--prices-tables-container-width: min(100% - clamp(2rem, 3vw, 2.5rem), 1280px);
	--prices-tables-container-padding: clamp(1rem, 1.875vw, 1.5rem);
	--prices-tables-title-size: clamp(2rem, 1.64rem + 1.15vw, 2.4rem);
	padding: var(--prices-tables-section-padding) 0;
	background: var(--site-color-surface);
	color: var(--site-color-ink);
}

.prices-tables__container {
	display: flex;
	width: var(--prices-tables-container-width);
	flex-direction: column;
	align-items: center;
	gap: clamp(3rem, 3.35vw, 4rem);
	padding-right: var(--prices-tables-container-padding);
	padding-left: var(--prices-tables-container-padding);
}

.prices-tables__header {
	display: flex;
	width: min(100%, 77rem);
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.prices-tables__eyebrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.375rem;
	padding: 0.5625rem 1.0625rem;
	border: 1px solid var(--site-color-accent-20);
	border-radius: 999px;
	background: var(--site-color-accent-10);
	font-size: var(--site-font-size-14);
	font-weight: 500;
	line-height: 1.43;
	color: #a96d14;
}

.prices-tables__title {
	margin: 1.1875rem 0 0;
	font-family: var(--site-font-heading);
	font-size: var(--prices-tables-title-size);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0;
	color: var(--site-color-ink);
}

.prices-tables__description {
	width: min(100%, 53.125rem);
	margin: 1.1875rem 0 0;
	font-size: var(--site-font-size-18);
	line-height: 1.56;
	color: #6a7282;
}

.prices-tables__list {
	display: flex;
	width: min(100%, 74rem);
	flex-direction: column;
	gap: 0.75rem;
}

.prices-tables__group {
	overflow: hidden;
	border: 1px solid #f3f4f6;
	border-radius: 1rem;
	background: #ffffff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.prices-tables__group.is-open {
	border-color: var(--site-color-accent-40);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.prices-tables__trigger {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.5rem;
	border: 0;
	background: transparent;
	text-align: left;
}

.prices-tables__group-title {
	font-family: var(--site-font-heading);
	font-size: var(--site-font-size-18);
	font-weight: 700;
	line-height: 1.56;
	color: var(--site-color-ink);
	transition: color 0.2s ease;
}

.prices-tables__group.is-open .prices-tables__group-title {
	color: var(--site-color-accent);
}

.prices-tables__icon {
	position: relative;
	display: inline-flex;
	width: 2rem;
	height: 2rem;
	flex: 0 0 2rem;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: #f3f4f6;
	transition: background 0.2s ease;
}

.prices-tables__icon::before,
.prices-tables__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0.875rem;
	height: 1.333px;
	border-radius: 999px;
	background: #99a1af;
	transform: translate(-50%, -50%);
	transition: background 0.2s ease, opacity 0.2s ease;
}

.prices-tables__icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.prices-tables__group.is-open .prices-tables__icon {
	background: var(--site-color-accent);
}

.prices-tables__group.is-open .prices-tables__icon::before {
	background: #ffffff;
}

.prices-tables__group.is-open .prices-tables__icon::after {
	opacity: 0;
}

.prices-tables__group:not(.is-open):hover .prices-tables__icon {
	background: var(--site-color-accent);
}

.prices-tables__group:not(.is-open):hover .prices-tables__icon::before,
.prices-tables__group:not(.is-open):hover .prices-tables__icon::after {
	background: #ffffff;
}

.prices-tables__panel {
	display: block;
}

.prices-tables__panel[hidden] {
	display: none;
}

.prices-tables__panel-inner {
	padding: 0 1.5rem 1.5rem;
}

.prices-tables__divider {
	width: 100%;
	height: 1px;
	margin-bottom: 1.25rem;
	background: #f3f4f6;
}

.prices-tables__table {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.prices-tables__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 12rem 12rem;
	border-bottom: 1px solid var(--site-color-accent-40);
}

.prices-tables__row:last-child {
	border-bottom: 0;
}

.prices-tables__row--head {
	border-bottom-color: var(--site-color-accent-40);
	border-radius: 0.75rem 0.75rem 0 0;
}

.prices-tables__cell {
	display: flex;
	min-height: 3.625rem;
	align-items: center;
	padding: 1rem;
	font-size: var(--site-font-size-16);
	line-height: 1.625;
	color: #4a5565;
}

.prices-tables__cell--work {
	padding-left: 0;
}

.prices-tables__cell--unit,
.prices-tables__cell--price {
	justify-content: center;
	text-align: center;
}

.prices-tables__row--head .prices-tables__cell {
	font-family: var(--site-font-heading);
	font-weight: 600;
	line-height: 1.5;
	color: var(--site-color-ink);
}

.prices-tables__cell--price {
	font-family: var(--site-font-heading);
	font-weight: 600;
	line-height: 1.5;
	color: var(--site-color-ink);
}

.prices-tables__note {
	width: min(100%, 74rem);
	margin: -0.25rem 0 0;
	font-size: var(--site-font-size-16);
	line-height: 1.5;
	color: #6a7282;
	text-align: center;
}

@media (max-width: 991.98px) {
	.prices-tables__row {
		grid-template-columns: minmax(0, 1fr) 9rem 9rem;
	}
}

@media (max-width: 767.98px) {
	.prices-tables {
		padding: clamp(4rem, 14vw, 5rem) 0;
	}

	.prices-tables__container {
		padding-right: 0;
		padding-left: 0;
	}

	.prices-tables__trigger {
		padding: 1.125rem;
	}

	.prices-tables__panel-inner {
		padding-right: 1.125rem;
		padding-bottom: 1.125rem;
		padding-left: 1.125rem;
	}

	.prices-tables__row {
		display: grid;
		grid-template-columns: 1fr;
		gap: 0.4rem;
		padding: 1rem 0;
	}

	.prices-tables__row--head {
		display: none;
	}

	.prices-tables__cell {
		min-height: 0;
		align-items: center;
		justify-content: start;
		gap: 1rem;
		padding: 0;
		text-align: left;
	}

	.prices-tables__cell::before {
		content: attr(data-label);
		flex: 0 0 6rem;
		font-family: var(--site-font-heading);
		font-size: 0.875rem;
		font-weight: 600;
		line-height: 1.4;
		color: var(--site-color-ink);
		text-align: right;
	}

	.prices-tables__cell--unit,
	.prices-tables__cell--price {
		text-align: right;
	}
}
