/* home.css — WERGRAUF: стили главной страницы */

/* =====================
   Общие хелперы
===================== */

.page-wrapper {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.main-container {
	flex: 1;
}

/* Заголовок блока с разделителем */
.block-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid #e5e7eb;
	margin-bottom: 32px;
}

.block-header__title {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #6b7280;
}

.block-header__button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 500;
	color: #36393e;
	background: none;
	border: none;
	cursor: pointer;
	font-family: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.block-header__button:hover {
	color: #385081;
}

.block-header__button .button-icon {
	display: flex;
	align-items: center;
}

.nowrap {
	white-space: nowrap;
}

/* =====================
   Блок «Лидер продаж»
===================== */

#cooperation-block:first-of-type {
	padding: 48px 0 0;
}

#cooperation-block .container {
	padding: 0 24px;
}

.cooperation-main {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: start;
	padding: 32px 0 48px;
}

@media (max-width: 1023px) {
	.cooperation-main {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

/* Картинка */
.cooperation-main__image-container {
	border-radius: 20px;
	overflow: hidden;
	aspect-ratio: 3 / 4;
	max-height: 600px;
}

.cooperation-main__image-container .coop-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Контент */
.cooperation-main__content {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.cooperation-main__content__info {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cooperation-main__content__info__caption {
	margin: 0;
	font-size: clamp(24px, 3vw, 40px);
	font-weight: 600;
	line-height: 1.2;
	color: #0d0d0d;
}

.cooperation-main__content__info__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: #4a4f59;
}

.cooperation-main__content__info__btns {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

/* Кнопки в блоке сотрудничество */
.cooperation-main__content__info__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	border-radius: 999px;
	border: 1.5px solid #36393e;
	background: transparent;
	color: #36393e;
	font-size: 14px;
	font-weight: 500;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
	text-decoration: none;
}

.cooperation-main__content__info__btn:hover {
	background: #36393e;
	color: #fff;
}

/* Плитки преимуществ */
.cooperation-main__content__tiles {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

@media (max-width: 767px) {
	.cooperation-main__content__tiles {
		grid-template-columns: repeat(2, 1fr);
	}
}

.cooperation-main__content__tile {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px;
	background: #f7f7f7;
	border-radius: 16px;
}

.cooperation-main__content__tile__icon {
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.cooperation-main__content__tile__icon img {
	width: 32px;
	height: 32px;
	object-fit: contain;
}

.cooperation-main__content__tile__text {
	margin: 0;
	font-size: 13px;
	font-weight: 500;
	color: #36393e;
	line-height: 1.4;
}

/* =====================
   Блок «Популярные товары»
===================== */

.product-widget {
	padding: 40px 0;
}

.product-widget__inner {
	/* обёртка */
}

.product-widget__container {
	max-width: var(--container-max, 1920px);
	margin: 0 auto;
	padding: 0 24px;
}

.product-widget__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid #e5e7eb;
}

.product-widget__title {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #6b7280;
}

/* Слайдер */
.product-widget__block {
	position: relative;
}

.product-widget__swiper {
	overflow: hidden;
}

.swiper-wrapper {
	display: flex;
	transition-property: transform;
	box-sizing: content-box;
}

/* Карточка товара */
.product-widget__swiper-item {
	flex-shrink: 0;
	min-width: 0;
}

.product-widget__card {
	height: 100%;
}

.category-products__item {
	display: grid;
	grid-template-columns: 100%;
	align-content: space-between;
	gap: 16px;
	height: 100%;
}

.category-products__item-header {
	background: #fff;
	overflow: hidden;
	border-radius: 12px;
	box-shadow: 2px 4px 10px 0 rgba(18, 46, 83, 0.06);
	padding: 0 0 8px;
}

.category-products__item-top {
	display: flex;
	justify-content: flex-end;
	min-height: 10px;
}

.category-products__item-link {
	display: block;
	text-decoration: none;
}

.category-products__item-image {
	margin: 0 20px;
	min-height: 160px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.category-products__item-image img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: contain;
	object-position: center;
}

.category-products__item-footer {
	display: grid;
	grid-template-columns: 100%;
	gap: 10px;
}

/* Цена */
.category-products__item-price-wrapper {
	/* обёртка цены */
}

.price-container {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.price-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.price-wrap .special {
	font-size: 18px;
	font-weight: 600;
	color: #232528;
}

.price-wrap .old {
	font-size: 14px;
	font-weight: 600;
	color: #737373;
	text-decoration: line-through;
}

.savings {
	/* контейнер скидки */
}

.savings__label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 20px;
	border-radius: 8px;
	background: #232528;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 0 6px;
}

/* Название и артикул */
.category-products__item-title {
	font-size: 14px;
	line-height: 1.4;
	color: #0d0d0d;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.category-products__item-title a {
	color: #0d0d0d;
}

.category-products__item-sku {
	font-size: 12px;
	color: #737373;
}

/* Кнопка «В корзину» */
.category-products__item-buy .btn-add-to-cart {
	display: block;
	width: 100%;
	padding: 12px;
	border: none;
	border-radius: 12px;
	background: #232528;
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	font-family: inherit;
	cursor: pointer;
	text-align: center;
	transition: background 0.2s ease;
}

.category-products__item-buy .btn-add-to-cart:hover {
	background: #36393e;
}

/* Кнопки навигации слайдера */
.product-widget__navigation {
	position: absolute;
	inset: 91px -16px auto;
	z-index: 2;
	display: none;
	pointer-events: none;
	justify-content: space-between;
}

@media (min-width: 1024px) {
	.product-widget__navigation {
		display: flex;
	}
}

.product-widget__navigation-btn {
	pointer-events: all;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 2px 2px 12px 0 rgba(18, 46, 83, 0.1);
	border: none;
	color: #232528;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}

.product-widget__navigation-btn:hover {
	background: #f7f7f7;
}

.product-widget__navigation-btn.js-slider-btn_disabled {
	display: none;
}

/* =====================
   Блок «Готовые решения»
===================== */

#solutions-block {
	background: #36393e;
	padding: 48px 0;
}

#solutions-block .container {
	padding: 0 24px;
}

.solutions-description {
	margin-bottom: 32px;
}

.solutions__title {
	margin: 0 0 24px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7);
}

.solutions__info {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: end;
	gap: 24px;
}

@media (max-width: 767px) {
	.solutions__info {
		grid-template-columns: 1fr;
	}
}

.solutions__info__caption {
	margin: 0;
	font-size: clamp(28px, 4vw, 52px);
	font-weight: 500;
	line-height: 1.15;
	color: #fff;
}

.solutions__info__slogan {
	/* правая часть */
}

.slogan__text {
	margin: 0;
	font-size: 15px;
	color: rgba(255, 255, 255, 0.6);
	max-width: 280px;
	line-height: 1.5;
	text-align: right;
}

@media (max-width: 767px) {
	.slogan__text {
		text-align: left;
	}
}

/* Сетка картинок — вплотную, без зазоров и скруглений */
.solutions-variants {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	overflow: hidden;
}

@media (max-width: 767px) {
	.solutions-variants {
		grid-template-columns: repeat(2, 1fr);
	}
}

.solutions-variant {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 9 / 16;
	text-decoration: none;
	border-radius: 0;
}

.solutions-variant__img-container {
	width: 100%;
	height: 100%;
}

.solutions-variant__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.solutions-variant:hover .solutions-variant__img {
	transform: scale(1.04);
}

.solutions-variant__button {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	padding: 10px 24px;
	border-radius: 999px;
	border: 1.5px solid rgba(255, 255, 255, 0.7);
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(8px);
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	font-family: inherit;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.2s ease;
}

.solutions-variant:hover .solutions-variant__button {
	background: rgba(255, 255, 255, 0.3);
}

/* =====================
   Блок «Акции»
===================== */

#promotions-block {
	padding: 48px 0;
	background: #f7f7f7;
}

#promotions-block .container {
	padding: 0 24px;
}

.promotions-slider-container {
	position: relative;
}

/* Плитки акций — сетка 2 колонки */
.promotions-tiles {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

@media (max-width: 767px) {
	.promotions-tiles {
		grid-template-columns: 1fr;
	}
}

.promotions-tiles__wrapper {
	/* при Swiper переопределяется, при нашей сетке не нужен */
}

/* Карточка акции */
.promotions-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	border-radius: 20px;
	overflow: hidden;
	min-height: 260px;
	padding: 28px;
	text-decoration: none;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.promotions-tile:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

/* Цвета тем */
.promotions-tile.theme-light-blue-2 {
	background: #dce7f5;
}

.promotions-tile.theme-dark-blue-2 {
	background: #a8c4e8;
}

.promotions-tile.theme-dark-blue {
	background: #1d2d5a;
}

/* Картинка */
.promotions-tile__img-container {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 55%;
	height: 100%;
	pointer-events: none;
}

.promotions-tile__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: right bottom;
}

/* Контент */
.promotions-tile__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.promotions-tile__content__title {
	font-size: 22px;
	font-weight: 600;
	line-height: 1.2;
}

.promotions-tile__content__title_dark {
	color: #0d0d0d;
}

.promotions-tile__content__title_light {
	color: #fff;
}

.promotions-tile__content__text {
	font-size: 14px;
	line-height: 1.4;
	max-width: 220px;
}

.promotions-tile__content__text_dark {
	color: #4a4f59;
}

.promotions-tile__content__text_light {
	color: rgba(255, 255, 255, 0.8);
}

/* Кнопка «Подробнее» */
.promotions-tile__button {
	position: relative;
	z-index: 1;
	align-self: flex-start;
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	background: none;
	border: none;
	font-size: 14px;
	font-weight: 500;
	font-family: inherit;
	cursor: pointer;
	transition: gap 0.2s ease;
}

.promotions-tile__button:hover {
	gap: 10px;
}

.promotions-tile__button_dark {
	color: #0d0d0d;
}

.promotions-tile__button_light {
	color: #fff;
}

.promotions-tile__button .button-icon {
	display: flex;
	align-items: center;
}

/* =====================
   Блок «Пункт выдачи»
===================== */

#showroom-block {
	padding: 48px 0;
	background: #fff;
}

#showroom-block .container {
	padding: 0 24px;
}

.showroom-content {
	display: grid;
	grid-template-columns: 1fr 1.5fr;
	gap: 32px;
	align-items: center;
	padding: 32px 0;
}

@media (max-width: 767px) {
	.showroom-content {
		grid-template-columns: 1fr;
	}
}
.showroom-info {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.showroom-info__text {
	margin: 0;
	font-size: 15px;
	color: #4a4f59;
}

.address-sign {
	/* обёртка адреса */
}

.address-sign__address {
	display: flex;
	align-items: center;
	gap: 10px;
}

.address-sign__address__icon {
	display: flex;
	align-items: center;
	color: #36393e;
	flex-shrink: 0;
}

.address-sign__address__value {
	margin: 0;
	font-size: 15px;
	font-weight: 500;
	color: #36393e;
	background: #f7f7f7;
	padding: 12px 20px;
	border-radius: 16px;
}

/* Карта */
.image-map {
	border-radius: 16px;
	overflow: hidden;
	min-height: 400px;
}

.pickup-map-image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 16px;
}

/* =====================
   Блок «Сотрудничество»
===================== */

/* Второй #cooperation-block (сотрудничество) — отличается от первого */
#cooperation-block + #cooperation-block,
#cooperation-block:last-of-type {
	padding: 48px 0;
	background: #fff;
}

/* Переопределяем — оба блока #cooperation-block — используем класс-обёртку через порядок */
/* Первый cooperation-block (лидер продаж) */
.section-leader {
	padding: 48px 0 0;
}

/* Второй cooperation-block (сотрудничество) */
.section-cooperation {
	padding: 48px 0;
}

.section-cooperation .container {
	padding: 0 24px;
}