/**
 * Блок reb/price-table (блок 03 страницы «Цены»).
 * Таблица прайса по направлениям; на мобильном строки - карточки.
 */

.reb-price-table {
	background: #fff;
}

.reb-price-table__inner {
	display: flex;
	flex-direction: column;
	gap: 26px;
	padding-top: 24px;
	padding-bottom: 56px;
}

.reb-price-table__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 24px;
}

.reb-price-table__heading {
	margin: 0;
	font-size: 34px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

/* Легенда. */
.reb-price-table__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	font-size: 13px;
	color: var(--reb-text-muted);
}

.reb-price-table__legend-item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.reb-price-table__legend-dot {
	width: 9px;
	height: 9px;
	border-radius: 999px;
}

.reb-price-table__legend-dot--green {
	background: var(--reb-accent);
}

.reb-price-table__legend-dot--yellow {
	background: #FFC43D;
}

/* Группа направления. */
.reb-price-table__group {
	border: 1px solid var(--reb-border);
}

.reb-price-table__group-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	padding: 16px 22px;
	background: var(--reb-bg);
	border-bottom: 1px solid var(--reb-border);
}

.reb-price-table__group-title {
	font-size: 17px;
	font-weight: 800;
}

.reb-price-table__group-subtitle {
	font-size: 13px;
	color: var(--reb-text-faint);
}

.reb-price-table__table {
	width: 100%;
	border-collapse: collapse;
}

.reb-price-table__table th {
	padding: 10px 22px;
	font-family: var(--reb-font-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-align: left;
	color: var(--reb-text-faint);
	border-bottom: 1px solid var(--reb-border);
}

.reb-price-table__table td {
	padding: 16px 22px;
	vertical-align: middle;
	border-bottom: 1px solid var(--reb-border);
}

.reb-price-table__row:last-child td {
	border-bottom: none;
}

.reb-price-table__service {
	display: block;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

.reb-price-table__note {
	display: block;
	margin-top: 3px;
	font-size: 13px;
	line-height: 1.4;
	color: var(--reb-text-faint);
}

.reb-price-table__price {
	white-space: nowrap;
	font-size: 16px;
	font-weight: 800;
}

.reb-price-table__price--from {
	color: var(--reb-accent);
}

.reb-price-table__price--text {
	font-weight: 600;
	color: var(--reb-text-muted);
}

.reb-price-table__price--empty {
	font-weight: 600;
	color: var(--reb-text-faint);
}

.reb-price-table__duration {
	white-space: nowrap;
	font-size: 14px;
	color: var(--reb-text-muted);
}

.reb-price-table__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 700;
	border: 1px solid var(--reb-accent);
	color: var(--reb-accent);
	transition: background 0.2s, color 0.2s;
}

.reb-price-table__cta:hover {
	background: var(--reb-accent);
	color: #fff;
}

/* Адаптив: таблица превращается в карточки. */
@media (max-width: 768px) {
	.reb-price-table__inner {
		padding-bottom: 40px;
	}

	.reb-price-table__heading {
		font-size: 24px;
	}

	.reb-price-table__table thead {
		display: none;
	}

	.reb-price-table__table,
	.reb-price-table__table tbody,
	.reb-price-table__table tr,
	.reb-price-table__table td {
		display: block;
		width: 100%;
	}

	.reb-price-table__row {
		padding: 16px 18px;
		border-bottom: 1px solid var(--reb-border);
	}

	.reb-price-table__row:last-child {
		border-bottom: none;
	}

	.reb-price-table__table td {
		padding: 0;
		border-bottom: none;
	}

	.reb-price-table__table td + td {
		margin-top: 8px;
	}

	/* Подписи колонок перед значениями. */
	.reb-price-table__table td[data-label]::before {
		content: attr(data-label);
		display: block;
		margin-bottom: 2px;
		font-family: var(--reb-font-mono);
		font-size: 10px;
		font-weight: 500;
		letter-spacing: 0.1em;
		text-transform: uppercase;
		color: var(--reb-text-faint);
	}

	.reb-price-table__table td:last-child {
		margin-top: 12px;
	}

	.reb-price-table__cta {
		width: 100%;
	}
}
