/* Campaign page (landing v2) for CMX.bg - self-contained, no site CSS.
   CMX look: white header with the logo over a dark-blue bar, blue (#0081cb / #005691) panels,
   yellow (#fcc116) accents, red prices, white product cards with a blue "Виж продукта" button. */
:root {
	--cmx-blue: #0081cb;
	--cmx-navy: #005691;
	--cmx-navy-dark: #00426f;
	--cmx-sky: #eef7fd;
	--cmx-yellow: #fcc116;
	--cmx-red: #e10202;
	--cmx-line: #dde5ec;
}
*, *::before, *::after { box-sizing: border-box; }
body.lp-page {
	margin: 0;
	background: #f2f5f8;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.4;
	color: #212529;
}
.lp-page img { max-width: 100%; }
.lp-page a { color: inherit; }

.lp-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 16px;
}

/* Header: white with the logo, a dark-blue bar under it (as on the site) */
.lp-header { background: var(--lp-header-bg, #fff); }
.lp-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 72px;
}
.lp-logo img {
	display: block;
	width: 190px;
	height: auto;
}
.lp-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border: 1px solid var(--lp-header-line, var(--cmx-navy));
	border-radius: 4px;
	color: var(--lp-header-fg, var(--cmx-navy)) !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background .15s, color .15s;
}
.lp-back:hover { background: var(--cmx-navy); color: #fff !important; }
.lp-header-bar {
	height: 8px;
	background: linear-gradient(90deg, var(--cmx-navy) 0, var(--cmx-blue) 100%);
	border-bottom: 3px solid var(--cmx-yellow);
}

/* Banner / title */
.lp-banner {
	margin: 16px 0 0;
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
}
.lp-banner img { display: block; width: 100%; height: auto; }
.lp-title {
	margin: 28px 0 0;
	text-align: center;
}
.lp-title h1 {
	margin: 0;
	font-size: 38px;
	font-weight: 800;
	line-height: 1.15;
	color: var(--lp-text, var(--cmx-navy));
	text-transform: uppercase;
}
.lp-title p {
	margin: 8px 0 0;
	font-size: 18px;
	color: var(--lp-text, #5a6570);
}
/* Photo background: a fixed layer behind the page, the texts on blue plates */
body.lp-page.lp-has-bg { background: transparent; }
body.lp-page.lp-has-bg::before {
	content: '';
	position: fixed;
	inset: 0;
	z-index: -1;
	background: var(--cmx-navy) no-repeat center top / cover;
}
.lp-has-bg .lp-title {
	display: table;
	margin-left: auto;
	margin-right: auto;
	padding: 14px 28px 16px;
	background: rgba(0, 86, 145, .92);
	border-bottom: 4px solid var(--cmx-yellow);
	border-radius: 6px;
}
.lp-has-bg .lp-title h1 { color: var(--lp-text, #fff); }
.lp-has-bg .lp-title p { color: var(--lp-text, rgba(255, 255, 255, .85)); }

/* Countdown: blue panel, white tiles with blue digits */
.lp-countdown {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	margin: 14px 0 0;
	padding: 18px 20px 20px;
	background: linear-gradient(90deg, var(--cmx-navy) 0, var(--cmx-blue) 100%);
	border-bottom: 4px solid var(--cmx-yellow);
	border-radius: 6px;
	color: #fff;
}
.lp-countdown[hidden] { display: none; }
.lp-countdown-title {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	text-align: center;
}
.lp-countdown-time {
	display: flex;
	align-items: center;
	gap: 26px;
}
.lp-cd-unit {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 96px;
	height: 84px;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 3px 0 var(--cmx-navy-dark);
}
.lp-cd-unit[hidden] { display: none; }
.lp-cd-unit:not([hidden]) ~ .lp-cd-unit::before {
	content: ':';
	position: absolute;
	left: -18px;
	top: 50%;
	transform: translateY(-58%);
	font-size: 30px;
	font-weight: 800;
	color: var(--cmx-yellow);
}
.lp-countdown-time b {
	display: inline-block;
	font-size: 42px;
	font-weight: 800;
	line-height: 1;
	color: var(--cmx-navy);
	font-variant-numeric: tabular-nums;
}
.lp-countdown-time b.is-tick { animation: lp-tick .3s ease-out; }
@keyframes lp-tick {
	from { transform: translateY(-5px); opacity: .4; }
	to { transform: none; opacity: 1; }
}
.lp-countdown-time small {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #5a6570;
}
/* Last 24 hours: red digits */
.lp-countdown.is-urgent .lp-countdown-time b { color: var(--cmx-red); }

/* Advantages: the site's blue strip */
.lp-advantages {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	margin: 14px 0 0;
	padding: 14px 20px;
	background: var(--cmx-blue);
	border-radius: 6px;
	list-style: none;
}
.lp-adv-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	line-height: 1.3;
	color: rgba(255, 255, 255, .8);
}
.lp-adv-item svg { flex: 0 0 auto; color: var(--cmx-yellow); }
.lp-adv-item b { font-size: 14px; color: #fff; text-transform: uppercase; }

/* Chip rows: campaign tabs and (mobile) sections */
.lp-chips {
	position: relative;
	z-index: 50;
	margin: 14px -16px 0;
	padding: 8px 0;
	background: #fff;
	border-bottom: 1px solid var(--cmx-line);
	box-shadow: 0 2px 8px rgba(0, 40, 80, .08);
}
.lp-chips.is-sticky { position: sticky; top: 0; }
.lp-chips.is-sticky.is-multiline { position: relative; }
.lp-chips + .lp-chips { margin-top: 0; }
.lp-chips-track {
	--lp-fade-l: 0px;
	--lp-fade-r: 56px;
	display: flex;
	gap: 8px;
	padding: 0 16px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scroll-padding: 0 16px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--lp-fade-l), #000 calc(100% - var(--lp-fade-r)), transparent 100%);
	mask-image: linear-gradient(to right, transparent 0, #000 var(--lp-fade-l), #000 calc(100% - var(--lp-fade-r)), transparent 100%);
}
.lp-chips-track::-webkit-scrollbar { display: none; }
.lp-chips.is-scrolled .lp-chips-track { --lp-fade-l: 56px; }
.lp-chips.is-end .lp-chips-track { --lp-fade-r: 0px; }
.lp-chip {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	max-width: 280px;
	padding: 8px 16px;
	border: 1px solid #cfe3f2;
	border-radius: 4px;
	background: var(--cmx-sky);
	color: var(--cmx-navy) !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	text-decoration: none;
	scroll-snap-align: start;
	transition: background .15s, border-color .15s;
}
.lp-chip span { overflow: hidden; text-overflow: ellipsis; }
.lp-chip:hover, .lp-chip:focus { background: #dcefff; border-color: var(--cmx-blue); }
.lp-chip.is-active, .lp-chip.is-active:hover { background: var(--cmx-navy); border-color: var(--cmx-navy); color: #fff !important; box-shadow: inset 0 -3px 0 var(--cmx-yellow); }
/* Sections under the tab row: outlined, so the two active chips do not compete */
.lp-chips-tabs + .lp-chips-sections .lp-chip.is-active { background: #fff; border-color: var(--cmx-blue); color: var(--cmx-blue) !important; box-shadow: inset 0 0 0 1px var(--cmx-blue); }
.lp-chip.has-icon { flex-direction: column; justify-content: center; gap: 4px; min-width: 84px; padding: 8px 12px; text-align: center; }
.lp-chip.has-icon span { max-width: 100%; }
.lp-chip-icon { flex: 0 0 auto; width: 40px; height: 40px; object-fit: contain; }
.lp-chips-arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	margin-top: -15px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--cmx-blue);
	color: #fff;
	box-shadow: 0 2px 8px rgba(0, 40, 80, .3);
	cursor: pointer;
	transition: opacity .15s;
}
.lp-chips-arrow.is-prev { left: 6px; }
.lp-chips-arrow.is-next { right: 6px; }
.lp-chips-arrow svg { width: 16px; height: 16px; }
.lp-chips:not(.is-scrolled) .lp-chips-arrow.is-prev,
.lp-chips.is-end .lp-chips-arrow.is-next { opacity: 0; pointer-events: none; }

/* Sections: heading between two lines, as the site's "— Промо Пакети —" */
.lp-section {
	margin: 26px 0 0;
	scroll-margin-top: calc(var(--lp-sticky-h, 0px) + 12px);
}
.lp-section-title {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 16px;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	color: var(--lp-section-text, var(--lp-text, #212529));
}
.lp-section-title::before,
.lp-section-title::after {
	content: '';
	flex: 1 1 40px;
	height: 2px;
	background: currentColor;
	opacity: .25;
}
.lp-section-title span { flex: 0 1 auto; }
/* Section background chosen in the CRM: the section becomes a panel */
body[style*="--lp-section-bg"] .lp-section {
	padding: 18px 16px 16px;
	background: var(--lp-section-bg);
	border-radius: 6px;
}
/* On a photo background the heading sits on a blue plate */
body.lp-has-bg:not([style*="--lp-section-bg"]) .lp-section-title {
	padding: 10px 20px;
	background: rgba(0, 86, 145, .92);
	border-radius: 6px;
	color: var(--lp-section-text, var(--lp-text, #fff));
}
body.lp-has-bg:not([style*="--lp-section-bg"]) .lp-section-title::before,
body.lp-has-bg:not([style*="--lp-section-bg"]) .lp-section-title::after { background: var(--cmx-yellow); opacity: 1; }

/* Product cards */
.lp-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
}
.lp-item {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--cmx-line);
	border-radius: 6px;
	overflow: hidden;
	transition: box-shadow .2s, border-color .2s;
}
.lp-item:hover { border-color: #b9d6ec; box-shadow: 0 6px 18px rgba(0, 60, 110, .12); }
.lp-item-img {
	display: block;
	aspect-ratio: 1;
	padding: 12px;
	background: #fff;
}
.lp-item-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.lp-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 4px 8px;
	border-radius: 4px;
	background: var(--cmx-red);
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
}
.lp-stock {
	position: absolute;
	top: 10px;
	right: 10px;
	max-width: 60%;
	padding: 3px 7px;
	border-radius: 4px;
	background: var(--cmx-yellow);
	color: #212529;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
}
.lp-item-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 4px 12px 12px;
	text-align: center;
}
.lp-item-name {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.lp-item-name a { color: #212529; text-decoration: none; }
.lp-item-name a:hover { color: var(--cmx-blue); }
.lp-item-sub {
	margin: 4px 0 0;
	font-size: 12px;
	color: #6c757d;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.lp-item-foot { margin-top: auto; padding-top: 10px; }
.lp-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: center;
	gap: 2px 8px;
}
.lp-price-old {
	font-size: 15px;
	color: #66b3e0;
	text-decoration: line-through;
}
.lp-price-new {
	font-size: 22px;
	font-weight: 800;
	color: var(--cmx-red);
	white-space: nowrap;
}
.lp-price-ask { font-size: 16px; font-weight: 700; color: var(--cmx-red); }
.lp-last {
	display: inline-block;
	margin-top: 6px;
	padding: 2px 8px;
	border-radius: 4px;
	background: var(--cmx-yellow);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}
.lp-price-soon {
	padding: 8px 6px;
	border: 1px dashed #b9d6ec;
	border-radius: 4px;
	background: var(--cmx-sky);
	font-size: 13px;
	font-weight: 700;
	color: var(--cmx-navy);
}
.lp-btn {
	display: block;
	margin-top: 10px;
	padding: 9px 10px;
	border-radius: 4px;
	background: var(--cmx-blue);
	color: #fff !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background .15s;
}
.lp-btn:hover { background: var(--cmx-navy); }

/* "Виж всички": the site's dark-blue button */
.lp-see-all {
	display: table;
	margin: 18px auto 0;
	padding: 10px 28px;
	border-radius: 4px;
	background: var(--cmx-navy);
	color: #fff !important;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: background .15s;
}
.lp-see-all:hover, .lp-see-all:focus { background: var(--cmx-blue); }

/* Campaign terms: a button that opens a modal */
.lp-terms { margin: 32px 0; text-align: center; }
.lp-terms-open {
	padding: 10px 20px;
	border: 1px solid var(--cmx-navy);
	border-radius: 4px;
	background: #fff;
	color: var(--cmx-navy);
	font: 600 14px inherit;
	font-family: inherit;
	cursor: pointer;
}
.lp-terms-open:hover { background: var(--cmx-navy); color: #fff; }
.lp-terms-dialog {
	width: min(760px, calc(100vw - 32px));
	max-height: calc(100vh - 64px);
	padding: 0;
	border: 0;
	border-top: 5px solid var(--cmx-blue);
	border-radius: 6px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
	color: #212529;
	font-family: inherit;
}
.lp-terms-dialog::backdrop { background: rgba(0, 30, 60, .55); }
.lp-terms-dialog[open] { display: flex; flex-direction: column; }
.lp-terms-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 20px;
	border-bottom: 1px solid var(--cmx-line);
}
.lp-terms-head h2 { flex: 1; margin: 0; font-size: 19px; font-weight: 700; color: var(--cmx-navy); }
.lp-terms-close {
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: var(--cmx-sky);
	color: var(--cmx-navy);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}
.lp-terms-body {
	padding: 16px 20px 20px;
	overflow-y: auto;
	font-size: 14px;
	line-height: 1.6;
	color: #444;
}

/* Desktop: sections in a sticky left column, like the site's category menu */
.lp-layout.has-side {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}
.lp-side {
	position: sticky;
	top: calc(var(--lp-sticky-h, 0px) + 16px);
	margin: 26px 0 0;
	background: #fff;
	border: 1px solid var(--cmx-line);
	border-radius: 6px;
	max-height: calc(100vh - var(--lp-sticky-h, 0px) - 32px);
	overflow-y: auto;
}
.lp-side-head {
	padding: 12px 14px;
	background: var(--cmx-navy);
	border-bottom: 3px solid var(--cmx-yellow);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
}
.lp-side nav { display: flex; flex-direction: column; padding: 6px; }
.lp-side-link {
	display: block;
	padding: 9px 12px;
	border-radius: 4px;
	color: #212529 !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}
.lp-side-link + .lp-side-link { margin-top: 2px; }
.lp-side-link:hover { background: var(--cmx-sky); color: var(--cmx-navy) !important; }
.lp-side-link.is-active { background: var(--cmx-blue); color: #fff !important; }
.lp-layout.has-side .lp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.lp-footer {
	margin-top: 40px;
	padding: 18px 0;
	background: var(--cmx-navy);
	color: rgba(255, 255, 255, .8);
	font-size: 13px;
	text-align: center;
}
.lp-footer a { color: #fff; font-weight: 700; text-decoration: none; }

@media (min-width: 768px) {
	/* Desktop: the chips wrap instead of scrolling, so every tab is in sight */
	.lp-chips { margin-left: 0; margin-right: 0; padding: 10px 0; border: 1px solid var(--cmx-line); border-radius: 6px; }
	.lp-chips-track { flex-wrap: wrap; overflow: visible; padding: 0 10px; -webkit-mask-image: none; mask-image: none; }
	.lp-chips-arrow { display: none; }
}
@media (max-width: 1439px) {
	.lp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.lp-layout.has-side .lp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
	.lp-grid, .lp-layout.has-side .lp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.lp-layout.has-side { grid-template-columns: 200px minmax(0, 1fr); gap: 16px; }
	.lp-advantages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.lp-header-inner { height: 58px; }
	.lp-logo img { width: 140px; }
	.lp-back { padding: 6px 10px; font-size: 13px; }
	.lp-banner { margin-top: 12px; }
	.lp-title { margin-top: 14px; }
	.lp-title h1 { font-size: 26px; }
	.lp-title p { margin-top: 4px; font-size: 15px; }
	.lp-countdown { margin-top: 10px; padding: 14px 10px 16px; gap: 10px; }
	.lp-countdown-title { font-size: 14px; letter-spacing: .08em; }
	.lp-countdown-time { gap: 14px; }
	.lp-cd-unit { width: 62px; height: 60px; gap: 2px; }
	.lp-cd-unit:not([hidden]) ~ .lp-cd-unit::before { left: -11px; font-size: 20px; }
	.lp-countdown-time b { font-size: 28px; }
	.lp-countdown-time small { font-size: 9px; letter-spacing: .08em; }
	.lp-advantages { gap: 8px 12px; margin-top: 10px; padding: 10px 12px; }
	.lp-adv-item { gap: 6px; }
	.lp-adv-item b { font-size: 12px; }
	.lp-adv-item small { display: none; }
	.lp-adv-item svg { width: 18px; height: 18px; }
	.lp-chips { margin-top: 10px; }
	.lp-grid, .lp-layout.has-side .lp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.lp-item-img { padding: 8px; }
	.lp-item-body { padding: 2px 8px 10px; }
	.lp-item-name { font-size: 13px; }
	.lp-item-sub { display: none; }
	/* Narrow desktop window: no room for the side column (phones get the section chips instead) */
	.lp-layout.has-side { display: block; }
	.lp-side { display: none; }
	.lp-price-old { font-size: 13px; }
	.lp-price-new { font-size: 18px; white-space: normal; overflow-wrap: anywhere; }
	.lp-btn { padding: 8px 6px; font-size: 13px; }
	.lp-badge { top: 6px; left: 6px; font-size: 12px; }
	body[style*="--lp-section-bg"] .lp-section { padding: 14px 10px 10px; }
	.lp-section { margin-top: 18px; }
	.lp-section-title { gap: 10px; margin-bottom: 12px; font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
	.lp-chip, .lp-chips-arrow, .lp-item, .lp-btn { transition: none; }
	.lp-countdown-time b.is-tick { animation: none; }
}
