/*
 * Текстовое оформление страницы акции (single-promotion.php).
 * Контент приходит из редактора голыми h3 / p / hr / table без классов,
 * поэтому всё держится на структурных селекторах внутри .promotion-item__content.
 * Акция «Наборы ухода» (promotion-offer_care-sets) рисуется своим блоком и сюда не попадает.
 */

.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content {
	--pc-gold: #e9bb72;
	--pc-green: #30431e;
	--pc-line: rgba(255, 255, 255, .16);
	--pc-card: rgba(255, 255, 255, .06);
	max-width: 880px;
}

/* Заголовок акции: одна строка-мысль, даты вынесены в капсулу */
.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content > h3:first-child {
	max-width: 720px;
	margin: 0 auto 28px;
	font-size: clamp(24px, 3.4vw, 36px);
	line-height: 1.3;
	letter-spacing: .02em;
	text-wrap: balance;
}

.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content > h3:first-child strong {
	display: inline-block;
	margin-top: 10px;
	padding: 4px 18px 6px;
	border-radius: 999px;
	background: var(--pc-gold);
	color: var(--pc-green);
	font-weight: 400;
	white-space: nowrap;
}

/* Заголовки секций */
.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content h3 {
	text-wrap: balance;
}

.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content hr + h3 {
	max-width: none;
	margin: 0 auto 6px;
	font-size: clamp(22px, 2.6vw, 30px);
	line-height: 1.25;
	letter-spacing: .02em;
}

/* Подзаголовок сразу под заголовком секции - мелкая подпись над таблицей */
.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content h3 + h3 {
	max-width: none;
	margin: 0 auto 22px;
	font-family: Jost, sans-serif;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: .16em;
	color: var(--pc-gold);
}

/* Разделители */
.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content hr {
	height: 0;
	margin: 52px 0 40px;
	border: 0;
	border-top: 1px solid var(--pc-line);
}

/* Абзацы */
.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content p {
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
	font-size: 16px;
	line-height: 1.6;
	text-wrap: pretty;
}

.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content p strong {
	font-weight: 500;
}

/* Первая плашка «Важно» - карточка-примечание */
.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content > h3:first-child + p {
	max-width: 640px;
	padding: 16px 24px;
	border: 1px solid var(--pc-line);
	border-radius: 20px;
	background: var(--pc-card);
	text-align: center;
	font-size: 15px;
}

/* Таблица скидок: карточка со скруглением, шапка в акцентном тоне */
.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content table {
	width: 100%;
	max-width: none;
	margin: 0 0 6px;
	padding: 0;
	border: 1px solid var(--pc-line);
	border-radius: 20px;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	background: var(--pc-card);
	font-size: 16px;
	align-self: auto;
}

.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content th {
	padding: 16px 14px;
	border: 0;
	border-bottom: 1px solid var(--pc-line);
	background: rgba(233, 187, 114, .14);
	color: var(--pc-gold);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: .06em;
	text-align: center;
	text-transform: uppercase;
	vertical-align: middle;
}

.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content td {
	padding: 15px 14px;
	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
	text-align: center;
	font-size: 20px;
	line-height: 1.3;
	font-variant-numeric: tabular-nums;
	white-space: normal;
	transition: background-color .2s ease;
}

.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content tbody tr:last-child td {
	border-bottom: 0;
}

.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content tbody tr:hover td {
	background: rgba(255, 255, 255, .05);
}

/* Первая колонка - названия услуг */
.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content th:first-child,
.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content td:first-child {
	width: 34%;
	padding-left: 24px;
	text-align: left;
}

.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content td:first-child {
	font-size: 16px;
	font-weight: 500;
}

.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content th:last-child,
.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content td:last-child {
	text-align: center;
	font-weight: inherit;
}

.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content td:first-child {
	font-weight: 500;
}

/* Вводный абзац (<div class="promotion-item__lead">): обычный текст, а не карточка-примечание */
.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content .promotion-item__lead p {
	max-width: 720px;
	font-size: 17px;
	line-height: 1.6;
	text-align: center;
}

/* Плашка с днями и часами под вводным абзацем (<p class="promotion-item__schedule"><span>…</span><span>…</span></p>) */
.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content .promotion-item__schedule {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	width: fit-content;
	max-width: 100%;
	margin: 24px auto 0;
	padding: 10px 6px;
	border: 1px solid var(--pc-gold);
	border-radius: 999px;
	color: var(--pc-gold);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: .12em;
	text-transform: uppercase;
	font-variant-numeric: tabular-nums;
}

.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content .promotion-item__schedule span {
	padding: 0 18px;
	white-space: nowrap;
}

.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content .promotion-item__schedule span + span {
	border-left: 1px solid rgba(233, 187, 114, .45);
}

/* Маркированный список: состав набора, преимущества */
.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content ul {
	max-width: 720px;
	margin: 0 auto 24px;
	padding: 0;
	list-style: none;
}

.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content li {
	position: relative;
	padding: 14px 0 14px 30px;
	border-bottom: 1px solid rgba(255, 255, 255, .1);
	font-size: 16px;
	line-height: 1.55;
	text-wrap: pretty;
}

.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content li:last-child {
	border-bottom: 0;
}

.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content li::before {
	content: "";
	position: absolute;
	top: 1.3em;
	left: 6px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--pc-gold);
}

.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content li strong {
	color: var(--pc-gold);
	font-weight: 500;
}

/* Старая цена в таблице */
.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content td del {
	font-size: .8em;
	opacity: .6;
}

/* Кнопка-капсула под таблицей (в редакторе: <p class="promotion-item__cta"><a class="promotion-item__btn">) */
.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content .promotion-item__cta {
	max-width: none;
	margin: 28px auto 0;
	text-align: center;
}

.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content .promotion-item__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 14px 36px;
	border: 1px solid var(--pc-gold);
	border-radius: 999px;
	background: var(--pc-gold);
	color: var(--pc-green);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}

.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content .promotion-item__btn:hover,
.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content .promotion-item__btn:focus-visible {
	background: transparent;
	color: var(--pc-gold);
}

/* Ссылка «Все акции» */
.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__link {
	margin-top: 56px;
}

@media (max-width: 767px) {
	.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content > h3:first-child {
		margin-bottom: 22px;
	}

	.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content > h3:first-child + p {
		padding: 14px 18px;
		border-radius: 16px;
		font-size: 14px;
	}

	.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content hr {
		margin: 40px 0 32px;
	}

	.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content h3 + h3 {
		margin-bottom: 18px;
		font-size: 12px;
	}

	.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content table {
		border-radius: 16px;
	}

	.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content th {
		padding: 12px 6px;
		font-size: 10px;
		letter-spacing: .03em;
	}

	.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content td {
		padding: 13px 6px;
		font-size: 17px;
	}

	.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content th:first-child,
	.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content td:first-child {
		width: 36%;
		padding-left: 14px;
	}

	.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content td:first-child {
		font-size: 14px;
	}

	.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content p {
		font-size: 15px;
	}

	.promotion-offer:not(.promotion-offer_care-sets) .promotion-item__content .promotion-item__btn {
		width: 100%;
		padding: 14px 20px;
		font-size: 13px;
	}
}
