/* ================================================
   MY PRICE LIST — public.css v6
   Дизайн: белый фон, Oswald + Manrope, акцент #d4321a
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600&family=Manrope:wght@400;500;600;700&display=swap');

/* ── Страница ─────────────────────────────────── */
.mpl-price-page {
	padding: 0;
	background: #fff;
	font-family: 'Manrope', sans-serif;
	letter-spacing: 0.03em;
}

/* ── Раздел — отдельный блок ──────────────────── */
.mpl-pub-section {
	margin-bottom: 20px;
	background: #fff;
	border: 1px solid #ede8e4;
	border-radius: 16px;
	padding: 32px 48px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* ── Заголовок раздела ────────────────────────── */
.mpl-pub-sec-head {
	text-align: center;
	margin-bottom: 28px;
	padding: 20px 24px 18px;
	margin: -32px -24px 28px;
	background: #f5f0e8;
	border-bottom: 1px solid #e8e2dc;
	border-radius: 14px 14px 0 0;
}

.mpl-pub-sec-titles {
	display: inline-block;
}

.mpl-pub-sec-title {
	font-family: 'Oswald', sans-serif;
	font-size: clamp(1.4rem, 2.5vw, 1.8rem);
	font-weight: 500;
	color: #1e0704;
	margin: 0 0 6px;
	letter-spacing: 0.02em;
}

.mpl-pub-sec-sub-row {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
}

.mpl-pub-sec-subtitle {
	font-size: 15px;
	color: #2c2420;
	margin: 0;
}

/* ── Кнопка «Подробнее» ──────────────────────── */
.mpl-pub-more-btn {
	font-family: 'Manrope', sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: #9f5a4f;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color 0.15s;
	white-space: nowrap;
	line-height: 1.6;
}
.mpl-pub-more-btn:hover {
	color: #d4321a;
}
.mpl-pub-more-btn--card {
	font-size: 11px;
}
.mpl-pub-more-inline { margin: 0; }

/* ── Сетка карточек ───────────────────────────── */
.mpl-pub-grid {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
	align-items: stretch;
}

/* ── Карточка продукта ───────────────────────── */
.mpl-pub-card {
	background: #fff;
	border: 1px solid #ede8e4;
	border-radius: 12px;
	padding: 20px;
	padding-top: 30px;
	display: flex;
	flex-direction: column;
	text-align: center;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
	transition: box-shadow 0.22s, transform 0.22s;
	min-width: 150px;
	flex: 1;
	max-width: 220px;
}
.mpl-pub-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.11);
	transform: translateY(-2px);
}

/* Шапка карточки */
.mpl-pub-card-head {
	text-align: center;
	margin-bottom: 7px;
}
.mpl-pub-card-name {
	font-family: 'Oswald', sans-serif;
	font-size: 18px;
	font-weight: 500;
	color: #1e0704;
	margin: 0 0 4px;
	letter-spacing: 0.01em;
}
.mpl-pub-card-sub-stack {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	margin-bottom: 14px;
}
.mpl-pub-card-sub {
	font-size: 12px;
	color: #2c2420;
	margin: 0;
}

/* ── Переключатель периодов / форматов ────────── */
.mpl-pub-periods {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	min-height: 34px;
}

.mpl-pub-period-tabs,
.mpl-pub-fmt-tabs {
	display: flex;
	background: #f5f5f5;
	border-radius: 20px;
	padding: 3px;
	width: fit-content;
	margin: 0 auto;
}

.mpl-period-tab,
.mpl-fmt-tab {
	font-family: 'Manrope', sans-serif;
	font-size: 11px;
	font-weight: 500;
	color: #5a504a;
	background: transparent;
	border: none;
	border-radius: 16px;
	padding: 3px 6px;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s, color 0.15s;
}
.mpl-period-tab.is-active,
.mpl-fmt-tab.is-active {
	background: #dbcab4;
	color: #3b2a1a;
}
.mpl-period-tab:hover:not(.is-active),
.mpl-fmt-tab:hover:not(.is-active) {
	color: #d4321a;
}

/* Цена */
.mpl-pub-price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px;
	justify-content: center;
	padding: 4px 0;
}

.mpl-pub-price-block {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 8px 0;
}
.mpl-pub-price-old {
	font-size: 12px;
	color: #b0a8a4;
	text-decoration: line-through;
	font-weight: 400;
}
.mpl-pub-price-val {
	font-family: 'Oswald', sans-serif;
	font-size: 22px;
	font-weight: 400;
	color: #1e0704;
	line-height: 1;
	transition: opacity 0.12s;
}
.mpl-pub-price-val.is-changing { opacity: 0; }
.mpl-pub-price-cur {
	font-family: 'Manrope', sans-serif;
	font-size: 13px;
	color: #2c2420;
	font-weight: 400;
}
.mpl-pub-price-save {
	font-size: 10px;
	font-weight: 600;
	color: #fff;
	background: #5fd41a;
	border-radius: 100px;
	padding: 1px 10px;
	white-space: nowrap;
	display: inline-block;
}

/* ── Кнопка «Купить» ─────────────────────────── */
.mpl-pub-card-footer {
	text-align: center;
	padding-top: 10px;
	margin-top: auto;
}
.mpl-pub-buy-btn {
	display: inline-block;
	font-family: 'Manrope', sans-serif;
	font-size: 12px;
	font-weight: 600;
	color: #2c2420;
	background: #f5f0e8;
	border: 1px solid #e0dbd8;
	border-radius: 20px;
	padding: 8px 24px;
	cursor: pointer;
	text-decoration: none;
	width: 100%;
	letter-spacing: 0.02em;
	transition: color 0.15s, border-color 0.15s;
}
.mpl-pub-buy-btn:hover {
	color: #d4321a;
	border-color: #d4321a;
}
.mpl-pub-buy-btn--soon {
	opacity: 0.35;
	cursor: default;
}
.mpl-pub-buy-btn--soon:hover {
	color: #2c2420;
	border-color: #e0dbd8;
}

/* ── Пустое состояние ────────────────────────── */
.mpl-pub-empty {
	text-align: center;
	padding: 60px 20px;
	color: #b0a8a4;
	font-size: 15px;
}

/* ── Модальное окно ──────────────────────────── */
.mpl-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9000;
	align-items: center;
	justify-content: center;
}
.mpl-modal.is-open { display: flex; }
.mpl-modal-bg {
	position: absolute;
	inset: 0;
	background: rgba(15, 10, 4, 0.5);
	cursor: pointer;
	backdrop-filter: blur(3px);
}
.mpl-modal-box {
	position: relative;
	background: #fff;
	border-radius: 16px;
	padding: 40px 44px;
	max-width: 520px;
	width: calc(100% - 32px);
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
	z-index: 1;
	animation: mplScaleIn 0.2s ease forwards;
	max-height: 82vh;
	overflow-y: auto;
	border: 1px solid #ede8e4;
}
@keyframes mplScaleIn {
	from { opacity: 0; transform: scale(0.95) translateY(10px); }
	to   { opacity: 1; transform: scale(1) translateY(0); }
}
.mpl-modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f5f5f5;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	color: #5a504a;
	font-size: 14px;
	transition: background 0.15s;
}
.mpl-modal-close:hover { background: #ede8e4; }
.mpl-modal-title {
	font-family: 'Oswald', sans-serif;
	font-size: 1.4rem;
	font-weight: 500;
	color: #d4321a;
	margin: 0;
	letter-spacing: 0.02em;
}
.mpl-modal-divider {
	height: 1px;
	background: #ede8e4;
	margin: 14px 0 18px;
}
.mpl-modal-desc {
	font-family: 'Manrope', sans-serif;
	font-size: 14px;
	line-height: 1.6;
	color: #1e0704;
	margin: 0;
}
.mpl-modal-desc p { margin: 0 0 0.6em; }
.mpl-modal-desc p:last-child { margin-bottom: 0; }
.mpl-modal-desc strong { color: #1e0704; }
.mpl-modal-desc ul, .mpl-modal-desc ol { padding-left: 22px; margin: 0 0 0.9em; }
.mpl-modal-desc li { margin-bottom: 2px; }
.mpl-modal-desc a { color: #d4321a; }

/* ── Мобилка: горизонтальный скролл ──────────── */
@media (max-width: 768px) {
	.mpl-pub-section {
		padding: 36px 12px 20px;
	}
	.mpl-pub-grid {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 10px;
		padding-bottom: 8px;
	}
	.mpl-pub-card {
		flex: 0 0 48%;
		width: 48%;
		max-width: 48%;
		min-width: 0;
		padding: 14px 10px;
		box-sizing: border-box;
	}
}

/* Точки под карточками на мобилке */


@media (max-width: 400px) {
	.mpl-modal-box { padding: 28px 20px; }
}

/* ── Выделенная карточка (featured) ──────────────────────────────────────── */
.mpl-pub-card--featured {
	border: 2px solid #d4321a;
	position: relative;
}

.mpl-pub-card-badge {
	position: absolute;
	top: -14px;
	left: 50%;
	transform: translateX(-50%);
	background: #d4321a;
	color: #fff;
	font-family: 'Manrope', sans-serif;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 4px 14px;
	border-radius: 20px;
	white-space: nowrap;
}

.mpl-pub-buy-btn--featured {
	background: #f5f0e8;
	color: #2c2420;
	border-color: #e0dbd8;
}
.mpl-pub-buy-btn--featured:hover {
	color: #d4321a;
	border-color: #d4321a;
}


/* ── Одиночный layout (двухколоночный) ──────────────────────────────────── */
.mpl-pub-single-layout {
	display: flex;
	gap: 4px;
	align-items: center;
	padding: 0 40px 0 80px;
}
.mpl-pub-single-left {
	flex: 1;
	min-width: 0;
}
.mpl-pub-single-right {
	flex: 1;
	min-width: 0;
}
.mpl-pub-single-category {
	font-family: 'Manrope', sans-serif;
	font-size: 11px;
	font-weight: 700;
	color: #d4321a;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin: 0 0 12px;
}
.mpl-pub-single-title {
	font-family: 'Oswald', sans-serif;
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	font-weight: 600;
	color: #1e0704;
	margin: 0 0 16px;
	line-height: 1.2;
	letter-spacing: 0.01em;
}
.mpl-pub-single-desc {
	font-family: 'Manrope', sans-serif;
	font-size: 15px;
	color: #5a504a;
	line-height: 1.7;
	margin: 0 0 20px;
}
.mpl-pub-single-content {
	font-family: 'Manrope', sans-serif;
	font-size: 14px;
	color: #2c2420;
	line-height: 1.8;
}
.mpl-pub-single-content ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
.mpl-pub-single-content ul li {
	padding-left: 20px;
	position: relative;
	margin-bottom: 8px;
}
.mpl-pub-single-content ul li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: #d4321a;
	font-weight: 700;
}

/* Карточка в single layout — красная рамка и кнопка */
.mpl-pub-single-right {
	flex: 0 0 auto;
	width: 320px;
	min-width: 0;
}
.mpl-pub-single-right .mpl-pub-card {
	max-width: 100%;
	width: 100%;
	border: 2px solid #d4321a;
}
.mpl-pub-single-right .mpl-pub-buy-btn {
	background: #f5f0e8 !important;
	color: #2c2420 !important;
	border: 1px solid #e0dbd8 !important;
	width: auto !important;
	min-width: 160px;
	display: block;
	margin: 0 auto;
}
.mpl-pub-single-right .mpl-pub-buy-btn:hover {
	color: #d4321a !important;
	border-color: #d4321a !important;
	background: #f5f0e8 !important;
}

@media (max-width: 768px) {
	.mpl-pub-single-layout {
		flex-direction: column;
		gap: 24px;
	}
	.mpl-pub-single-left,
	.mpl-pub-single-right {
		width: 100% !important;
		flex: none !important;
		max-width: 100% !important;
	}
}
@media (max-width: 768px) {
	.mpl-pub-card-footer {
		padding-top: 15px;
	}
}

@media (max-width: 480px) {
	.mpl-period-tab,
	.mpl-fmt-tab {
		font-size: 9px;
		padding: 3px 4px;
	}
	.mpl-pub-period-tabs,
	.mpl-pub-fmt-tabs {
		padding: 2px;
		gap: 0px;
		margin: 0 auto;
		display: inline-flex;
	}
	.mpl-pub-periods {
		align-items: center;
	}
	.mpl-pub-card-name {
		font-size: 14px;
	}
	.mpl-pub-price-val {
		font-size: 20px;
	}
}
/* ── Вкладки-навигация по разделам ─────────────────────────────────────── */
.mpl-pub-tabs-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 12px;
	background: #fff;
	padding: 15px 24px;
	padding-bottom: 8px;
	margin-bottom: 1px;
}
.mpl-pub-tab-btn {
	font-family: 'Manrope', sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #d4321a;
	background: none;
	border: none;
	border-radius: 4px;
	padding: 6px 14px 6px;
	margin-bottom: 8px;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
	white-space: nowrap;
}
.mpl-pub-tab-btn:hover {
	color: #d4321a;
	opacity: 0.75;
}
.mpl-pub-tab-btn.is-active {
	background: #d4321a;
	color: #fff;
}
@media (max-width: 768px) {
	.mpl-pub-tabs-nav {
		gap: 0 16px;
		padding: 14px 16px 0;
	}
	.mpl-pub-tab-btn {
		font-size: 11px;
		padding-bottom: 12px;
	}
}