/* Мелкие добавки к перенесённым стилям.
   Основная CSS лежит в site.css и приехала со старого сайта как есть,
   здесь только то, чего там не было: значки вместо FontAwesome,
   кнопки фильтра и подсказки форм. */

/* «Галочка» вправо – ею старый сайт разделял хлебные крошки и помечал
   раскрывающиеся пункты меню на телефоне. Раньше её давал платный шрифт
   значков Font Awesome, теперь это своя картинка */
:root {
	--labarte-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Cpath d='M2 1.5 L8 8 L2 14.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.labarte-icon {
	display: inline-block;
	vertical-align: middle;
	flex: none;
}

.btn-search .labarte-icon,
.open-search .labarte-icon {
	width: 18px;
	height: 18px;
}

.item-select__angle {
	width: 14px;
	height: 14px;
	margin-left: auto;
	transition: transform .2s;
}

.item-select.active .item-select__angle {
	transform: rotate(180deg);
}

/* раскрытая группа фильтра: в smart-filter.css высота 55px, на Битриксе её
   подгонял под список их скрипт, у нас список раскрывает slideToggle */
.bx-filter .bx-filter-block {
	height: auto;
}

/* col-xs-12 и отступы у .checkbox давал Bootstrap 3 старого сайта,
   в нашей сетке их нет – без них пункты липнут к рамке и друг к другу */
.bx-filter-parameters-box-container .col-xs-12 {
	width: 100%;
	padding: 0 15px;
}

.bx-filter .checkbox {
	margin: 10px 0;
}

/* действия под фильтром */
.filter-catalog__actions {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 10px 0 20px;
}

.filter-catalog__actions .btn-main {
	min-width: 180px;
	padding: 0 24px;
}

.filter-catalog__reset {
	font-size: 14px;
	letter-spacing: .05em;
	border-bottom: 1px dashed currentColor;
	text-decoration: none;
	cursor: pointer;
}

/* кнопка закрытия окошка «Запрос цены» */
.order-container__close {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	color: inherit;
}

/* поле-приманка для роботов: человек его не видит */
.labarte-trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.order-form__result:not(:empty) {
	margin-top: 14px;
	font-size: 14px;
	line-height: 140%;
}

.btn-main.is-busy {
	opacity: .6;
	pointer-events: none;
}

/* стрелки каруселей: у slick свои, подменяем на наши значки */
.slick-prev,
.slick-next {
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	cursor: pointer;
}

.slick-prev::before,
.slick-next::before {
	content: none;
}

/* --- Корзина и оформление заказа --- */

/* количество: у WooCommerce своя разметка поля, приводим к виду сайта */
.item-basket .quantity .count_inpt,
.item-basket .quantity input[type="number"] {
	width: 56px;
	text-align: center;
	border: 0;
	background: none;
	font: inherit;
	-moz-appearance: textfield;
}

.item-basket .quantity input[type="number"]::-webkit-outer-spin-button,
.item-basket .quantity input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.item-basket .quantity-button {
	user-select: none;
	cursor: pointer;
}

.item-basket .remove-basket a {
	font-size: 22px;
	line-height: 1;
	text-decoration: none;
	color: inherit;
}

.update-cart {
	margin-top: 20px;
}

.basket-info .woocommerce-shipping-methods,
.basket-info #shipping_method {
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
}

.basket-info #shipping_method li {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 6px;
}

.basket-info__link {
	display: inline-block;
	margin-top: 14px;
	font-size: 14px;
}

/* оформление заказа: поля и блоки в тех же рамках, что формы сайта */
.checkout-block {
	margin-bottom: 30px;
}

.checkout-block__title {
	margin-bottom: 18px;
	font-size: 22px;
	font-weight: 600;
}

.page-checkout .form-row {
	margin-bottom: 14px;
}

.page-checkout .form-row label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
}

.page-checkout .form-row input,
.page-checkout .form-row textarea,
.page-checkout .form-row select {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #d5d5d5;
	background: #fff;
	font: inherit;
}

.page-checkout .form-row textarea {
	min-height: 90px;
}

/* адрес нужен только при доставке, при самовывозе прячем */
.labarte-hidden,
.labarte-address.is-hidden {
	display: none;
}

.page-checkout .woocommerce-checkout-review-order-table {
	width: 100%;
	margin-bottom: 18px;
	border-collapse: collapse;
}

.page-checkout .woocommerce-checkout-review-order-table th,
.page-checkout .woocommerce-checkout-review-order-table td {
	padding: 8px 0;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid #ececec;
}

.page-checkout .woocommerce-checkout-review-order-table td:last-child,
.page-checkout .woocommerce-checkout-review-order-table th:last-child {
	text-align: right;
}

.page-checkout .wc_payment_methods {
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
}

.page-checkout .wc_payment_methods li {
	margin-bottom: 8px;
}

.page-checkout .payment_box {
	margin-top: 6px;
	font-size: 14px;
	color: #6b6b6b;
}

.page-checkout #place_order {
	width: 100%;
}

.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
	margin: 0 0 20px;
	padding: 14px 18px;
	background: #f5f5f5;
	list-style: none;
}

.woocommerce-error {
	background: #fdecec;
}

/* Ссылка на исполнителя в подвале – рядом со знаком копирайта,
   на узком экране переносится на свою строку */
.copyright__author {
	margin-left: 18px;
}

.copyright__author a {
	color: inherit;
	border-bottom: 1px solid currentColor;
}

@media (max-width: 768px) {
	.copyright__author {
		display: block;
		margin: 6px 0 0;
	}
}

/* Поле «Площадь, м²» на карточке товара (п. 4.4 ТЗ) */
.card-area__row {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.card-area input.labarte-area {
	width: 96px;
	padding: 8px 10px;
	border: 1px solid #d5d5d5;
	background: #fff;
	font: inherit;
	text-align: center;
}

.card-area__hint {
	font-size: 14px;
	color: #6b6b6b;
}

/* Сортировка над списком товаров (п. 4.2 ТЗ) */
.head-catalog .catalog-sort {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin-left: auto;
	margin-right: 24px;
	font-size: 14px;
}

.catalog-sort__label {
	color: #8a8a8a;
}

.catalog-sort__item {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px dashed currentColor;
}

.catalog-sort__item.active {
	border-bottom-color: transparent;
	font-weight: 600;
	pointer-events: none;
}

/* Заголовок, сортировка и кнопка фильтра помещаются в один ряд только на
   широком экране. Ниже этого сортировка начинала переноситься внутри себя
   и второй строкой прижималась к заголовку, поэтому опускаем её целиком
   под заголовок отдельной строкой. Перенос разрешаем самой шапке: без
   него order и width ничего не меняют, блоки остаются в одном ряду. */
@media (max-width: 1199px) {
	.head-catalog {
		flex-wrap: wrap;
	}

	.head-catalog .catalog-sort {
		order: 3;
		width: 100%;
		margin: 12px 0 0;
	}
}

/* Блок «Конструкция» над товарами раздела (просьба заказчика 02.10,
   тексты и картинки от него же 07.10). Серая подложка, внутри белые
   карточки конструкций – одна или две в ряд. Скругление одного угла –
   как у карточек товаров и плиток каталога. */
.construction {
	margin: 0 0 50px;
	padding: 36px 40px;
	background: #F5F5F5;
	border-radius: 0 40px 0 0;
}

.construction__head {
	max-width: 760px;
	margin-bottom: 24px;
}

.construction__label {
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #07379F;
}

.construction__heading {
	margin: 0 0 8px;
	font-size: 28px;
	line-height: 1.2;
	color: #000;
}

.construction__lead {
	margin: 0;
	font-size: 16px;
	line-height: 1.5;
	color: #595959;
}

.construction__items {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
}

.construction_items-2 .construction__items {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.construction__item {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 24px 28px;
	background: #fff;
	border-radius: 0 30px 0 0;
}

/* одна конструкция – картинка слева, текст справа */
.construction_items-1 .construction__item {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 40px;
	align-items: center;
}

.construction__image img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 240px;
	object-fit: contain;
}

/* две в ряд – картинки одной высоты, чтобы названия встали на одну линию */
.construction_items-2 .construction__image {
	display: flex;
	align-items: center;
	height: 150px;
}

.construction_items-2 .construction__image img {
	max-height: 100%;
}

.construction__title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin: 0 0 14px;
	font-size: 22px;
	line-height: 1.25;
	color: #000;
}

h2.construction__title {
	font-size: 28px;
}

.construction__size {
	padding: 4px 10px;
	border-radius: 20px;
	background: #EEF1F8;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	color: #07379F;
	white-space: nowrap;
}

.construction__text {
	font-size: 15px;
	line-height: 1.55;
	color: #262626;
}

.construction__text p {
	margin: 0 0 10px;
}

.construction__layers {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
	counter-reset: layer;
}

.construction__layers li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	color: #262626;
	counter-increment: layer;
}

/* номер в синем круге */
.construction__layers li::before {
	content: counter(layer);
	flex: 0 0 24px;
	height: 24px;
	border-radius: 50%;
	background: #07379F;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 24px;
	text-align: center;
}

.construction__facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 10px;
	margin: 14px 0 4px;
}

.construction__fact {
	padding: 12px 10px;
	border-radius: 8px;
	background: #F5F5F5;
	text-align: center;
}

.construction__fact-value {
	display: block;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	color: #07379F;
}

.construction__fact-label {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	line-height: 1.3;
	color: #595959;
}

.construction__pros-title {
	margin: 16px 0 10px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #6B6B6B;
}

/* «Преимущества» – раскрывающийся блок: на компьютере всегда открыт
   и не сворачивается, на телефоне свёрнут (скрипт в parts/construction.php) */
.construction__more summary {
	list-style: none;
	pointer-events: none;
}

.construction__more summary::-webkit-details-marker {
	display: none;
}

.construction__pros {
	margin: 0;
	padding: 0;
	list-style: none;
}

.construction__pros li {
	position: relative;
	margin: 0 0 8px;
	padding-left: 20px;
	font-size: 15px;
	line-height: 1.45;
	color: #262626;
}

.construction__pros li::before {
	content: "";
	position: absolute;
	top: 0.5em;
	left: 0;
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: #07379F;
}

.construction__laying {
	margin-top: 24px;
	padding: 14px 18px;
	border-left: 4px solid #07379F;
	background: #fff;
	font-size: 16px;
	font-weight: 600;
	color: #000;
}

@media (max-width: 991px) {
	.construction {
		padding: 24px 16px;
		border-radius: 0 30px 0 0;
	}

	.construction__heading,
	h2.construction__title {
		font-size: 22px;
	}

	.construction__title {
		font-size: 19px;
	}

	.construction_items-2 .construction__items,
	.construction_items-1 .construction__item {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.construction__item {
		padding: 20px 18px;
	}

	.construction__image img {
		max-height: 200px;
	}

	.construction_items-2 .construction__image {
		height: auto;
	}

	.construction__more summary {
		display: flex;
		align-items: center;
		gap: 10px;
		margin: 12px 0 0;
		padding: 8px 0;
		color: #07379F;
		cursor: pointer;
		pointer-events: auto;
	}

	/* стрелка вниз, у открытого – вверх */
	.construction__more summary::after {
		content: "";
		width: 7px;
		height: 7px;
		margin-top: -4px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg);
		transition: transform 0.2s;
	}

	.construction__more[open] summary::after {
		margin-top: 3px;
		transform: rotate(-135deg);
	}

	.construction__more[open] summary {
		margin-bottom: 6px;
	}
}

/* текст SEO-специалиста под товарами посадочной; после пагинации отступ задаёт site.css */
.text-block_after {
	margin-top: 60px;
}
