/**
 * Полноэкранная ширина слайдера uni_slideshow_v2 в блоке «Верх страницы».
 * Без правок шаблонов/CMS: файл подключается в настройках темы как my.css.
 *
 * При необходимости такой же эффект у других блоков — скопируйте блок свойств
 * на свой селектор (напр. модуль HTML в content_top с обёрткой .my-banner).
 */

#content > .content-top > .uni-slideshow_v2 {
	position: relative;
	z-index: 1;
	width: 100vw;
	max-width: none;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	box-sizing: border-box;
	border-radius: 0;
	border-left: none;
	border-right: none;
	margin-bottom: 24px;
}

#content > .content-top > .uni-slideshow_v2 .uni-slideshow_v2__item {
	border-radius: 0;
}

@media (max-width: 767px) {
	#content > .content-top > .uni-slideshow_v2 {
		margin-bottom: 18px;
	}
}

/* Мегаменю .menu1.new: выпадающий блок позиционируют фиксированным left (220/270/310/279 px),
 * а первая колонка — в процентах; на широком экране панели расходятся — текст обрезается.
 * Сдвигаем вторую панель на ту же базу, что и width первой колонки. */

@media (min-width: 992px) and (max-width: 1599px) {
	.menu1.new .menu__level-2 {
		left: calc(25% - 15px) !important;
	}
}

/* От 1600px в теме уже .container 1500px; ниже — два разных предела без перекрытия.
 * Нельзя ставить два только min-width одно выше другого: при ≥1765 подходят оба, победит нижний блок. */

@media (min-width: 1600px) {
	.menu1.new .menu__level-2 {
		left: calc(20% - 15px) !important;
	}
}

@media (min-width: 1600px) and (max-width: 1764px) {
	.container {
		width: 1600px;
	}
}

@media (min-width: 1765px) {
	.container {
		width: 1765px;
	}
}

/* uni_slideshow_v2: режим «текст поверх изображения» — блок слева, крупнее */

@media (min-width: 576px) {
	.uni-slideshow_v2__item.text-over-image .uni-slideshow_v2__description.text-over-image {
		left: 0;
		right: auto;
		top: 50%;
		bottom: auto;
		transform: translateY(-50%);
		width: auto;
		max-width: min(720px, 52vw);
		padding: clamp(16px, 3vw, 40px) clamp(16px, 3vw, 32px) clamp(16px, 3vw, 40px)
			clamp(12px, 4vw, 56px);
		text-align: left;
		box-sizing: border-box;
		background: none;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}

	.uni-slideshow_v2__item.text-over-image .uni-slideshow_v2__title {
		margin: 0 0 clamp(12px, 2vw, 20px);
		font-size: clamp(1.65rem, 3.2vw, 3rem);
		line-height: 1.12;
		font-weight: 700;
		text-transform: none;
		color: #fff;
		text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
	}

	.uni-slideshow_v2__item.text-over-image .uni-slideshow_v2__text {
		margin: 0 0 clamp(16px, 2.5vw, 28px);
		font-size: clamp(0.95rem, 1.35vw, 1.2rem);
		line-height: 1.45;
		color: rgba(255, 255, 255, 0.88);
		text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
	}

	.uni-slideshow_v2__item.text-over-image .uni-slideshow_v2__btn {
		align-self: flex-start;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		height: auto;
		min-height: 46px;
		padding: 12px 32px;
		font-size: 1.05rem;
		font-weight: 600;
		line-height: 1.2;
		border-radius: 999px;
		box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
	}
}

@media (min-width: 992px) {
	.uni-slideshow_v2__item.text-over-image .uni-slideshow_v2__description.text-over-image {
		max-width: min(780px, 48vw);
		padding-left: clamp(24px, 5vw, 80px);
	}
}

/* ─── HTML-модули (О компании / Преимущества / Шоурум) — классы с донора ─── */

#content .html-module section .container {
	width: auto;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
	padding-left: 0;
	padding-right: 0;
}

.html-module {
	margin-bottom: 8px;
}

/* --- text-sect: «О компании» (на всю ширину колонки контента, крупнее, без узкой «колонки по центру») --- */

.html-module section.text-sect {
	padding: 32px 0 44px;
}

.html-module .text-sect .hcenter {
	margin: 0 0 28px;
	text-align: center;
	font-size: clamp(1.25rem, 2.8vw, 1.95rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
	color: var(--heading-c, #222);
}

.html-module .text-sect .text-sect-wrapper {
	max-width: none;
	margin: 0;
	text-align: left;
}

.html-module .text-sect .h2 {
	margin: 32px 0 16px;
	font-size: clamp(1.35rem, 2vw, 1.75rem);
	font-weight: 700;
	line-height: 1.3;
	color: var(--heading-c, #222);
}

.html-module .text-sect .h3 {
	margin: 26px 0 12px;
	font-size: clamp(1.15rem, 1.5vw, 1.35rem);
	font-weight: 600;
	color: var(--heading-c, #333);
}

.html-module .text-sect h4 {
	margin: 22px 0 12px;
	font-size: 1.12em;
	font-weight: 600;
	color: var(--heading-c, #333);
}

.html-module .text-sect .text {
	margin: 0 0 16px;
	line-height: 1.75;
	font-size: clamp(1.02rem, 1.2vw, 1.12rem);
	color: var(--body-c, #151515);
}

.html-module .text-sect .text a {
	color: var(--a-c, #fe7200);
	text-decoration: underline;
}

.html-module .text-sect .text a:hover {
	color: var(--a-c-hover, #444);
}

.html-module ul.tick {
	margin: 16px 0 24px;
	padding: 0;
	list-style: none;
}

.html-module ul.tick > li {
	margin: 0 0 14px;
	padding: 0;
}

.html-module ul.tick > li:last-child {
	margin-bottom: 0;
}

.html-module .tick-wrap {
	padding: 16px 18px;
	background: #fafafa;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: var(--border-radius-1, 12px);
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.html-module .tick-title {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--a-c, #fe7200);
}

.html-module .tick-text {
	font-size: 1rem;
	line-height: 1.65;
	color: var(--body-c, #151515);
}

/* --- advantages: «Наши преимущества» (на широком экране — 4 в ряд) --- */

.html-module section.advantages {
	padding: 36px 0 44px;
	margin: 0 0 12px;
}

.html-module .advantages-wrapper {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	align-items: stretch;
}

@media (min-width: 992px) {
	.html-module .advantages-wrapper {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 18px;
	}
}

.html-module .advantage {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 26px 20px;
	text-align: center;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.07);
	border-radius: var(--border-radius-1, 12px);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.html-module .advantage-ico {
	min-height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
}

.html-module .advantage-ico img {
	max-height: 56px;
	width: auto;
	height: auto;
	display: block;
}

.html-module .advantage-title {
	font-weight: 700;
	font-size: 0.98rem;
	line-height: 1.3;
	margin: 0 0 10px;
	color: var(--heading-c, #222);
}

.html-module .advantage-text {
	font-size: 0.92rem;
	line-height: 1.5;
	margin: 0;
	color: var(--body-c, #555);
}

/* --- aboutshowroom: «Наш шоурум» --- */

.html-module section.aboutshowroom {
	padding: 32px 0 48px;
	margin: 0 0 12px;
}

.html-module .aboutshowroom-wrapper {
	display: grid;
	gap: 18px;
}

.html-module .aboutshowroom-wrapper-text .h2 {
	margin: 0 0 18px;
	font-size: clamp(1.45rem, 2vw, 2rem);
	font-weight: 700;
	line-height: 1.2;
	color: var(--heading-c, #222);
}

.html-module .aboutshowroom-wrapper-text .text {
	margin: 0;
	line-height: 1.7;
	font-size: clamp(1rem, 1.15vw, 1.08rem);
	color: var(--body-c, #151515);
}

.html-module .aboutshowroom-wrapper-image img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: var(--border-radius-1, 12px);
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
	object-fit: cover;
}

/*
 * Шоурум: слева заголовок + текст, под ними два фото в ряд; справа одно высокое фото на всю секцию.
 * Разметка: .text, img, img, img — сетка 4 колонки.
 */
@media (min-width: 992px) {
	.html-module .aboutshowroom-wrapper {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		grid-template-rows: auto 1fr;
		column-gap: 20px;
		row-gap: 16px;
		align-items: stretch;
	}

	.html-module .aboutshowroom-wrapper-text {
		grid-column: 1 / 3;
		grid-row: 1;
		align-self: start;
		padding-right: 8px;
	}

	.html-module .aboutshowroom-wrapper-image:nth-child(2) {
		grid-column: 1;
		grid-row: 2;
		align-self: stretch;
	}

	.html-module .aboutshowroom-wrapper-image:nth-child(3) {
		grid-column: 2;
		grid-row: 2;
		align-self: stretch;
	}

	.html-module .aboutshowroom-wrapper-image:nth-child(4) {
		grid-column: 3 / 5;
		grid-row: 1 / 3;
		align-self: stretch;
		min-height: 0;
		display: flex;
	}

	.html-module .aboutshowroom-wrapper-image:nth-child(4) img {
		flex: 1;
		width: 100%;
		min-height: 280px;
		height: 100%;
		object-fit: cover;
	}
}

@media (max-width: 991px) {
	.html-module .advantage {
		padding: 20px 14px;
	}
}

/* Мобильная подстройка HTML-блоков (узкий экран — одна колонка, меньше воздуха) */

@media (max-width: 767px) {
	.html-module section.text-sect {
		padding: 18px 0 28px;
	}

	.html-module .text-sect .h2 {
		font-size: 1.25em;
	}

	.html-module .text-sect .hcenter {
		margin-bottom: 18px;
		font-size: clamp(1rem, 4.5vw, 1.35rem);
	}

	.html-module .tick-wrap {
		padding: 14px 14px;
	}

	.html-module section.advantages {
		padding: 24px 0 32px;
	}

	.html-module .advantages-wrapper {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.html-module section.aboutshowroom {
		padding: 22px 0 32px;
	}

	.html-module .aboutshowroom-wrapper-text .h2 {
		font-size: 1.35em;
	}

	.html-module .aboutshowroom-wrapper {
		gap: 14px;
	}
}

@media (hover: hover) {
	.html-module .advantage:hover {
		box-shadow: 0 10px 28px rgba(0, 0, 0, 0.09);
		transform: translateY(-2px);
	}
}

@media (hover: none) {
	.html-module .advantage:hover {
		box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
		transform: none;
	}
}
