/**
 * ЛиВС: блоки главной страницы.
 */

.livs-hero-wrap,
.livs-home-cats,
.livs-promos {
	--livs-accent: #8a1cc4;
	--livs-accent-dark: #7212a5;
	--livs-accent-soft: #f3ebfa;
	--livs-text: #262033;
	--livs-text-2: #4d3f59;
	--livs-muted: #8b7d95;
	--livs-line: #ece4f2;

	box-sizing: border-box;
	flex: 1 1 100%;
	width: 100%;
	min-width: 0;
	max-width: 1180px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}

.livs-hero-wrap *,
.livs-home-cats *,
.livs-promos * {
	box-sizing: border-box;
}

.livs-home-icon {
	display: inline-block;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
}

/* ---------- Баннер ---------- */

.livs-hero-wrap {
	margin-top: 30px;
}

.livs-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	min-height: 540px;
	border-radius: 24px;
	background: var(--livs-accent-soft);
	overflow: hidden;
}

.livs-hero__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding: 56px 48px;
}

.livs-hero__eyebrow {
	margin: 0 0 22px;
	color: #7a5a8e;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.livs-hero__title {
	max-width: 440px;
	margin: 0 0 22px !important;
	padding: 0;
	color: var(--livs-text);
	font-size: 46px !important;
	font-size: clamp(34px, 3.3vw, 48px) !important;
	font-weight: 600 !important;
	line-height: 1.12 !important;
	letter-spacing: -.02em;
	text-transform: none !important;
}

.livs-home-accent {
	color: var(--livs-accent);
}

.livs-hero__text {
	max-width: 360px;
	margin: 0 0 28px;
	color: var(--livs-text-2);
	font-size: 17px;
	line-height: 1.6;
}

.livs-hero__minimum {
	margin: 0 0 30px;
	color: var(--livs-text);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
}

.livs-hero__minimum span,
.livs-hero__minimum .amount {
	color: var(--livs-accent);
	font-size: 26px;
	font-weight: 600;
	white-space: nowrap;
}

.livs-hero__button {
	display: inline-flex;
	align-items: center;
	gap: 26px;
	height: 60px;
	padding: 0 26px;
	border-radius: 12px;
	background: var(--livs-accent);
	box-shadow: 0 10px 24px rgba(138, 28, 196, .28);
	color: #fff !important;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background .15s, transform .15s;
}

.livs-hero__button:hover {
	background: var(--livs-accent-dark);
	transform: translateY(-1px);
}

.livs-hero__button .livs-home-icon {
	transition: transform .15s;
}

.livs-hero__button:hover .livs-home-icon {
	transform: translateX(3px);
}

.livs-hero__media {
	position: relative;
	min-height: 100%;
	background: #e9e3ec;
}

.livs-hero__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	object-position: center 40%;
}

.livs-hero__caption {
	position: absolute;
	left: 22px;
	bottom: 22px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	max-width: calc(100% - 44px);
	padding: 12px 18px;
	border-radius: 10px;
	background: rgba(38, 32, 51, .78);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
}

/* ---------- Преимущества ---------- */

.livs-hero-benefits {
	display: flex;
	justify-content: space-around;
	flex-wrap: wrap;
	gap: 12px 32px;
	margin: 0 !important;
	padding: 24px 0 !important;
	border-bottom: 1px solid var(--livs-line);
	list-style: none;
}

.livs-hero-benefits li {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	color: var(--livs-text-2);
	font-size: 15px;
	line-height: 1.4;
}

.livs-hero-benefits li::before {
	display: none;
}

.livs-hero-benefits .livs-home-icon {
	color: var(--livs-accent);
}

/* ---------- Категории ---------- */

.livs-home-cats {
	margin-top: 44px;
	margin-bottom: 48px;
}

.livs-home-cats__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin-bottom: 24px;
}

.livs-home-cats__title {
	margin: 0 !important;
	padding: 0;
	color: var(--livs-text);
	font-size: 32px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	letter-spacing: -.01em;
	text-transform: none !important;
}

.livs-home-cats__subtitle {
	margin: 0;
	color: var(--livs-muted);
	font-size: 15px;
}

.livs-home-cats__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}

.livs-home-cats__list li {
	margin: 0;
	padding: 0;
}

.livs-home-cats__list li::before {
	display: none;
}

.livs-home-cat {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 100%;
	min-height: 80px;
	padding: 18px 20px;
	border: 1px solid var(--livs-line);
	border-radius: 14px;
	background: #faf7fc;
	color: var(--livs-text) !important;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.35;
	text-decoration: none !important;
	transition: background .15s, border-color .15s, transform .15s;
}

.livs-home-cat:hover {
	border-color: #e2cdf0;
	background: var(--livs-accent-soft);
	transform: translateY(-1px);
}

.livs-home-cat__name {
	flex: 1 1 auto;
	min-width: 0;
}

.livs-home-cat__count {
	color: var(--livs-muted);
	font-size: 13px;
	font-weight: 400;
}

.livs-home-cat .livs-home-icon {
	color: var(--livs-accent);
	transition: transform .15s;
}

.livs-home-cat:hover .livs-home-icon {
	transform: translate(2px, -2px);
}

.livs-home-cat--all {
	border-color: transparent;
	background: var(--livs-accent);
	color: #fff !important;
}

.livs-home-cat--all .livs-home-icon {
	color: #fff;
}

.livs-home-cat--all:hover {
	border-color: transparent;
	background: var(--livs-accent-dark);
}

.livs-home-cat--all:hover .livs-home-icon {
	transform: translateX(3px);
}

/* ---------- Планшет ---------- */

@media (max-width: 1024px) {

	.livs-hero {
		min-height: 460px;
	}

	.livs-hero__content {
		padding: 40px 32px;
	}

	.livs-home-cats__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* ---------- Телефон ---------- */

@media (max-width: 767px) {

	.livs-hero-wrap,
	.livs-home-cats {
		padding-left: 16px;
		padding-right: 16px;
	}

	.livs-hero-wrap {
		margin-top: 16px;
	}

	.livs-hero {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
		border-radius: 18px;
	}

	.livs-hero__content {
		padding: 28px 22px 26px;
	}

	.livs-hero__eyebrow {
		margin-bottom: 14px;
		font-size: 11px;
	}

	.livs-hero__title {
		margin-bottom: 14px !important;
		font-size: 30px !important;
	}

	.livs-hero__text {
		margin-bottom: 18px;
		font-size: 15px;
	}

	.livs-hero__minimum {
		margin-bottom: 20px;
		font-size: 16px;
	}

	.livs-hero__minimum span,
	.livs-hero__minimum .amount {
		font-size: 22px;
	}

	.livs-hero__button {
		justify-content: space-between;
		width: 100%;
		height: 54px;
	}

	.livs-hero__media {
		height: 300px;
		min-height: 0;
	}

	.livs-hero__caption {
		left: 14px;
		bottom: 14px;
		max-width: calc(100% - 28px);
		padding: 9px 13px;
		font-size: 13px;
	}

	.livs-hero-benefits {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		padding: 20px 4px !important;
	}

	.livs-hero-benefits li {
		font-size: 14px;
	}

	.livs-home-cats {
		margin-top: 32px;
		margin-bottom: 36px;
	}

	.livs-home-cats__head {
		margin-bottom: 16px;
	}

	.livs-home-cats__title {
		font-size: 26px !important;
	}

	.livs-home-cats__subtitle {
		font-size: 14px;
	}

	.livs-home-cats__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.livs-home-cat {
		min-height: 64px;
		padding: 14px;
		border-radius: 12px;
		font-size: 15px;
	}
}

/* ---------- Три баннера: о компании, партнёрам, принтеры ---------- */

.livs-promos {
	margin-top: 44px;
	margin-bottom: 48px;
}

.livs-promos__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}

.livs-promo {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-height: 300px;
	margin: 0;
	padding: 30px 28px 28px;
	border: 1px solid var(--livs-line);
	border-radius: 20px;
	background: #faf7fc;
	color: var(--livs-text);
	overflow: hidden;
}

.livs-promo::before {
	display: none;
}

/* Декоративный круг в углу */
.livs-promo::after {
	content: '';
	position: absolute;
	right: -60px;
	top: -60px;
	width: 180px;
	height: 180px;
	border-radius: 50%;
	background: rgba(138, 28, 196, .06);
	pointer-events: none;
}

.livs-promo__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-bottom: 22px;
	border-radius: 14px;
	background: #fff;
	color: var(--livs-accent);
	box-shadow: 0 4px 14px rgba(68, 26, 96, .08);
}

.livs-promo__icon .livs-home-icon {
	width: 24px;
	height: 24px;
}

.livs-promo__eyebrow {
	margin: 0 0 8px;
	color: #7a5a8e;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.livs-promo__title {
	margin: 0 0 12px !important;
	padding: 0;
	color: inherit !important;
	font-size: 26px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	letter-spacing: -.01em;
	text-transform: none !important;
}

.livs-promo__text {
	margin: 0 0 24px;
	color: var(--livs-text-2);
	font-size: 15px;
	line-height: 1.6;
}

.livs-promo__button {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	height: 48px;
	margin-top: auto;
	padding: 0 20px;
	border-radius: 11px;
	background: var(--livs-accent);
	color: #fff !important;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background .15s, transform .15s;
}

.livs-promo__button:hover {
	background: var(--livs-accent-dark);
	transform: translateY(-1px);
}

.livs-promo__button .livs-home-icon {
	width: 18px;
	height: 18px;
	transition: transform .15s;
}

.livs-promo__button:hover .livs-home-icon {
	transform: translateX(3px);
}

/* Партнёрам — яркая карточка в цвет меню */
.livs-promo--2 {
	border-color: transparent;
	background: linear-gradient(135deg, #e23fce 0%, #b221e6 55%, #8613f2 100%);
	color: #fff;
}

.livs-promo--2::after {
	background: rgba(255, 255, 255, .12);
}

.livs-promo--2 .livs-promo__icon {
	background: rgba(255, 255, 255, .18);
	color: #fff;
	box-shadow: none;
}

.livs-promo--2 .livs-promo__eyebrow {
	color: rgba(255, 255, 255, .8);
}

.livs-promo--2 .livs-promo__text {
	color: rgba(255, 255, 255, .9);
}

.livs-promo--2 .livs-promo__button {
	background: #fff;
	color: var(--livs-accent) !important;
	box-shadow: 0 8px 20px rgba(60, 0, 100, .2);
}

.livs-promo--2 .livs-promo__button:hover {
	background: #f6effb;
}

/* Принтеры — тёмная карточка */
.livs-promo--3 {
	border-color: transparent;
	background: #241d31;
	color: #fff;
}

.livs-promo--3::after {
	background: rgba(178, 33, 230, .25);
}

.livs-promo--3 .livs-promo__icon {
	background: rgba(255, 255, 255, .08);
	color: #d9a8f5;
	box-shadow: none;
}

.livs-promo--3 .livs-promo__eyebrow {
	color: #c9a6e0;
}

.livs-promo--3 .livs-promo__text {
	color: rgba(255, 255, 255, .75);
}

@media (max-width: 1024px) {

	.livs-promo {
		padding: 26px 22px 24px;
	}

	.livs-promo__title {
		font-size: 22px !important;
	}
}

/* Телефон: карточки листаются пальцем */
@media (max-width: 767px) {

	.livs-promos {
		margin-top: 32px;
		margin-bottom: 36px;
		padding-left: 0;
		padding-right: 0;
	}

	.livs-promos__list {
		display: flex;
		gap: 12px;
		padding: 0 16px 6px !important;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-left: 16px;
		scrollbar-width: none;
	}

	.livs-promos__list::-webkit-scrollbar {
		display: none;
	}

	.livs-promo {
		flex: 0 0 84%;
		min-height: 280px;
		padding: 24px 20px 20px;
		border-radius: 18px;
		scroll-snap-align: start;
	}

	.livs-promo__icon {
		width: 42px;
		height: 42px;
		margin-bottom: 16px;
	}

	.livs-promo__text {
		font-size: 14px;
	}

	.livs-promo__button {
		height: 44px;
	}
}

/* ---------- Elementor ----------
 * Если виджет «Шорткод» с нашими блоками стоит в строке рядом
 * с другими элементами, растягиваем его на всю ширину.
 */
.elementor-widget:has(> .elementor-widget-container > .livs-hero-wrap),
.elementor-widget:has(> .elementor-widget-container > .livs-home-cats),
.elementor-widget:has(> .elementor-widget-container > .livs-promos),
.elementor-widget:has(> .livs-hero-wrap),
.elementor-widget:has(> .livs-home-cats),
.elementor-widget:has(> .livs-promos) {
	flex: 1 1 100% !important;
	width: 100% !important;
	max-width: 100% !important;
}
