/* Стили прейскуранта */

.price-header {
	display: grid;
	grid-template-columns: 1fr auto; /* левая часть тянется, qr фиксирован */
	align-items: flex-start;
	column-gap: 32px;
	min-height: 126px; /* фиксированная высота блока */
	margin-bottom: 40px;
}

.price-header-left {
	flex: 1 1 auto;
}

.price-header-left h1 {
	margin-bottom: 30px;
}

.price-header-right {
	display: flex;
	flex-direction: column;
	align-items: end;
	gap: 10px;
}

.price-notes {
	margin: 0;
	padding-left: 18px; /* для маркеров */
	font-size: 18px;
	line-height: 23px;
}

.price-notes li::before {
	content: "\2022";
	color: var(--color-black);
	margin-right: 10px;
}

.price-qr {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	font-size: 14px;
	width: 92px;
	height: 92px;
	object-fit: contain;
}

.price-header-right span {
	font-size: 16px;
	line-height: 20px;
}

/* Сетка карточек */
.price-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	max-width: 1200px;
	gap: 20px;
	max-width: 1220px;
	margin-left: auto;
	margin-right: auto;
    padding: 0 20px;
}

/* Ограничиваем максимум 2 колонки */
@media (min-width: 681px) {
	.price-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Центрируем последнюю карточку, если она одна в строке */
	.price-grid > .price-card:last-child:nth-child(odd) {
		grid-column: 1 / -1;
		justify-self: center;
		max-width: 580px;
	}
}

.price-card {
	background: #ffffff;
	border: 1px solid #e2e4e8;
	border-radius: 24px;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	overflow: hidden;
	justify-self: stretch; /* позволяет гриду растягивать элемент */
}

/* Для карточек, которые занимают всю ширину (последняя) */
.price-card.full {
	max-width: 580px;
}

.price-card__header {
	background: var(--color-light-gray);
	display: flex;
	gap: 16px;
	align-items: center;
	padding-left: clamp(24px, 4vw, 39.5px);
	padding-right: clamp(24px, 4vw, 39.5px);
	padding-bottom: 20px;
	height: 126px;
}

.price-card__number {
	flex-shrink: 0;
	background: var(--accent-primary);
	color: #ffffff;
	border-radius: 50%;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 400;
	font-size: 16px;
}

.price-card__title {
	font-size: clamp(14px, 2vw, 18px);
	line-height: clamp(16px, 2vw, 23px);
	text-transform: uppercase;
}

.price-card__body {
	background: #ffffff;
	padding: 16.5px 30px;
	display: flex;
	flex-direction: column;
	margin-top: -24px; /* поднимаем тело чтобы перекрыть хедер */
	border-radius: 24px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
}

.price-row {
	display: flex;
	justify-content: space-between;
	font-size: clamp(14px, 2vw, 18px);
	line-height: clamp(16px, 2vw, 23px);
	color: #00000080;
	border-bottom: 1px solid var(--border-primary);
	padding: 15px 0;
}

.price-row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.price-row .price {
	font-weight: 400;
	color: var(--accent-primary);
	font-size: clamp(14px, 2vw, 18px);
	line-height: clamp(16px, 2vw, 23px);
}

/* Адаптивность */
@media (max-width: 768px) {
	.price-header {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.price-header-right {
		display: flex;
		flex-direction: row;
		align-items: center;
		gap: 16px;
		justify-self: center;
	}

	.price-header-left h1 {
		margin-bottom: 20px;
	}

	.price-card__header {
		height: 146px;
	}
}

@media (max-width: 680px) {
	/* При меньшей ширине выводим карточки в одну колонку */
	.price-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.price-header-right {
		flex-direction: column;
	}

	.price-notes {
		font-size: 16px;
		line-height: 20px;
	}

	.price-card__title {
		font-size: 12px;
		line-height: 16px;
	}
}
