/**
 * Страница прайса /price/ (page-price.php).
 *
 * Базу — хлебные крошки, hero, табы, кнопки — даёт service-page.css, здесь только
 * сама таблица расценок и вводные блоки. Селекторы намеренно самодостаточные:
 * style.min.css привязан к DOM главной страницы и сюда не достаёт.
 */

/* Вводные условия над таблицей. */
.price_note {
	background: #f5f0eb;
	border-radius: 16px;
	padding: 28px 32px;
	margin-bottom: 40px;
	display: grid;
	gap: 16px;
}

.price_note_row {
	font-size: 15px;
	line-height: 1.6;
	color: rgba(34, 34, 34, .8);
}

.price_note_row span {
	display: block;
	font-weight: 600;
	color: #222;
	margin-bottom: 2px;
}

/* Заголовки разделов дублируются табами, но остаются в разметке для поисковика
   и для случая, когда JS не отработал (тогда видны все разделы подряд). */
.price_page .service_index.has-tabs .price_group .m_title { display: none; }

.price_table {
	border: 1px solid #eae4dd;
	border-radius: 16px;
	overflow: hidden;
}

.price_row {
	display: grid;
	grid-template-columns: 1fr 90px 130px;
	gap: 16px;
	align-items: baseline;
	padding: 14px 24px;
	border-bottom: 1px solid #f0ebe4;
}

.price_row:last-child { border-bottom: 0; }
.price_row:nth-child(even):not(.price_row--head) { background: #fbf9f7; }

/* Шапку таблицы намеренно НЕ делаем sticky: у сайта фиксированная шапка
   (.header{position:fixed}), и залипающая строка уезжала бы под неё. */
.price_row--head {
	background: #222;
	font-size: 13px;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.price_row--head .price_name,
.price_row--head .price_unit,
.price_row--head .price_value { color: #fff; }

.price_name { font-size: 15px; line-height: 1.5; color: #222; }
.price_unit { font-size: 14px; color: rgba(34, 34, 34, .55); }

.price_value {
	font-size: 16px;
	font-weight: 600;
	color: #222;
	text-align: right;
	white-space: nowrap;
}

/* Поиск по прайсу. */
.price_search {
	position: relative;
	max-width: 560px;
	margin-bottom: 28px;
}

.price_search input {
	width: 100%;
	height: 56px;
	padding: 0 52px 0 22px;
	border: 1px solid #eae4dd;
	border-radius: 14px;
	background: #fff;
	font-size: 16px;
	color: #222;
	box-sizing: border-box;
	outline: none;
	transition: border-color .2s;
	-webkit-appearance: none;
	appearance: none;
}

.price_search input:focus { border-color: #c9ae98; }
.price_search input::-webkit-search-cancel-button { display: none; }

.price_search_clear {
	position: absolute;
	top: 50%;
	right: 10px;
	transform: translateY(-50%);
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: rgba(34, 34, 34, .45);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: none;
}

.price_search.is-searching .price_search_clear { display: block; }
.price_search_clear:hover { background: #f5f0eb; color: #222; }

.price_search_count { font-size: 15px; color: rgba(34, 34, 34, .7); margin-bottom: 20px; }
.price_search_section { margin-bottom: 32px; }

.price_search_section_title {
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: #c9ae98;
	margin-bottom: 10px;
}

.price_search_empty {
	padding: 28px 32px;
	background: #f5f0eb;
	border-radius: 16px;
}

.price_search_empty p { margin: 0 0 10px; font-size: 16px; line-height: 1.6; color: rgba(34, 34, 34, .8); }
.price_search_empty p:last-child { margin-bottom: 0; }

/* Блок дизайна: тарифы и цены по площади. Сетку тарифов и карточки даёт
   service-page.css (.service_design_tiers_list), здесь только отступы блока. */
.price_design { margin-top: 64px; }
.price_design .service_design_styles_lead { max-width: 760px; margin-bottom: 28px; }
.price_design .service_design_tiers_list { margin-bottom: 44px; }

.price_design_sub {
	font-size: 20px;
	font-weight: 600;
	color: #222;
	margin: 0 0 16px;
}

.price_design .service_price_hint { margin-bottom: 40px; }
.price_design .price_name a { color: #222; text-decoration: underline; text-underline-offset: 3px; }
.price_design .price_name a:hover { color: #c9ae98; }

/* Финальный блок: текст с кнопками слева, фото справа. */
.price_cta {
	margin: 60px 0 0;
	padding: 48px 52px;
	background: #f5f0eb;
	border-radius: 20px;
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 44px;
	align-items: center;
}

.price_cta .h3 { font-size: 30px; line-height: 1.2; color: #222; margin: 0 0 16px; }

.price_cta p {
	font-size: 17px;
	line-height: 1.6;
	color: rgba(34, 34, 34, .8);
	margin: 0 0 28px;
}

/* Кнопки в строку: общее правило темы для .btn_c растягивает их на всю ширину
   и позиционирует абсолютно — здесь это перебивается, как в .service_hero_btns. */
.price_cta_btns { display: flex; flex-wrap: wrap; gap: 14px; }

.price_cta_btns .btn_c {
	position: static !important;
	left: auto !important;
	right: auto !important;
	bottom: auto !important;
	width: auto !important;
	margin: 0 !important;
}

.price_cta_btns .btn_m { max-width: none !important; }

.price_cta_img { border-radius: 16px; overflow: hidden; }
.price_cta_img img { display: block; width: 100%; height: 300px; object-fit: cover; }

.price_faq { margin-top: 60px; }

@media (max-width: 767px) {
	.price_note { padding: 20px; border-radius: 12px; }

	/* На узком экране длинные названия работ не влезают в три колонки:
	   разворачиваем строку в две — название сверху, ед. изм. и цена снизу. */
	.price_row {
		grid-template-columns: 1fr auto;
		gap: 6px 12px;
		padding: 14px 16px;
	}

	.price_name { grid-column: 1 / -1; font-size: 14px; }
	.price_unit { font-size: 13px; }
	.price_value { font-size: 15px; }

	.price_row--head { display: none; }

	.price_search input { height: 50px; font-size: 15px; }

	/* Фото уходит под текст, кнопки остаются в строку, пока помещаются. */
	.price_cta {
		grid-template-columns: 1fr;
		gap: 24px;
		padding: 28px 20px;
		border-radius: 14px;
	}

	.price_cta .h3 { font-size: 24px; }
	.price_cta p { font-size: 15px; margin-bottom: 22px; }
	.price_cta_btns .btn_c { flex: 1 1 200px; }
	.price_cta_btns .btn_m { width: 100%; }
	.price_cta_img img { height: 220px; }

	.price_faq { margin-top: 44px; }
}


/* Баннер перехвата: «сравниваете с чужой сметой?». Тёмный, чтобы отделяться от
   светлых блоков прайса и не читаться как ещё одна справочная плашка. */
.price_smeta_cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	background: #222;
	border-radius: 20px;
	padding: 28px 34px;
	margin-bottom: 32px;
	text-decoration: none;
	transition: background .2s ease;
}
.price_smeta_cta:hover { background: #2e2e2e; }
.price_smeta_cta .h4 { color: #fff; margin-bottom: 8px; }
.price_smeta_cta p { margin: 0; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .75); max-width: 640px; }
.price_smeta_cta_arrow { flex-shrink: 0; color: #c9ae98; font-size: 26px; line-height: 1; }
@media (max-width: 700px) {
	.price_smeta_cta { flex-direction: column; align-items: flex-start; padding: 24px 22px; gap: 14px; }
}
