/* Карточки информера: общая основа и виджеты «Акция», «Событие», «Объявление с числом» */

.info-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-width: 0;
	padding: var(--info-card-pad);
	overflow: hidden;
	background: var(--color-night);
	color: var(--color-text);
}

.info-card__bg,
.info-card__veil {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.info-card__bg {
	object-fit: cover;
}

/* Вуаль: текст читается на любом фото */
.info-card__veil {
	background: linear-gradient(to bottom, var(--veil-start) 0%, var(--veil-start) 50%, var(--veil-end) 100%);
}

/* Весь текст выше фона и вуали */
.info-card > :not(.info-card__bg, .info-card__veil) {
	position: relative;
}

.info-card__label {
	font-family: var(--font-text);
	font-size: var(--fs-label);
	font-weight: 600;
	line-height: 1rem;
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
}

.info-card__description {
	font-size: 1.125rem; /* 18 */
	line-height: var(--lh-text);
}

/* Акция */
.info-card--promo {
	flex-direction: row;
	align-items: center;
	gap: 1.5rem;
}

.info-card--promo .info-card__veil {
	background: linear-gradient(to right, var(--veil-x-start) 0%, var(--veil-x-mid) 55%, var(--veil-x-end) 100%);
}

.info-card__text {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	justify-content: space-between;
	align-self: stretch;
	min-width: 0;
}

.info-card__value {
	font-family: var(--font-display);
	font-size: 4.5rem; /* 72 */
	line-height: var(--lh-display);
	white-space: nowrap;
}

.info-card__condition {
	color: var(--ivory-90);
	font-family: var(--font-text);
	font-size: 0.9375rem; /* 15 */
	line-height: 1.375rem; /* 22 */
}

.countdown {
	display: flex;
	flex: none;
	flex-direction: column;
	gap: 0.625rem;
	width: 12.25rem; /* 196 */
	padding: 1rem;
	border: 1px solid var(--ivory-20);
	background: var(--color-panel);
}

.countdown__caption,
.countdown__period {
	color: var(--color-text-muted);
	font-family: var(--font-text);
	font-size: var(--fs-label);
	line-height: 1rem;
}

.countdown__number {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	white-space: nowrap;
}

.countdown__days {
	font-family: var(--font-display);
	font-size: 2.5625rem; /* 41 */
	line-height: var(--lh-display);
}

.countdown__unit {
	color: var(--ivory-80);
	font-family: var(--font-text);
	font-size: var(--fs-search);
	line-height: 1.125rem;
}

.countdown__bar {
	display: block;
	width: 100%;
	height: 3px;
	border: 0;
	background: var(--ivory-20);
	color: var(--color-accent);
	-webkit-appearance: none;
	appearance: none;
}

.countdown__bar::-webkit-progress-bar {
	background: var(--ivory-20);
}

.countdown__bar::-webkit-progress-value {
	background: var(--color-accent);
}

.countdown__bar::-moz-progress-bar {
	background: var(--color-accent);
}

/* Событие с датой */
.event-when {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.calendar-leaf {
	display: flex;
	flex: none;
	flex-direction: column;
	width: 4rem; /* 64 */
	text-align: center;
}

.calendar-leaf__month {
	padding-block: 3px;
	background: var(--color-accent);
	color: var(--color-ink);
	font-family: var(--font-text);
	font-size: 0.6875rem; /* 11 */
	font-weight: 600;
	line-height: 0.875rem;
	letter-spacing: 0.08em; /* 0.88px */
	text-transform: uppercase;
}

.calendar-leaf__day {
	padding-block: 4px 6px;
	background: var(--color-paper);
	color: var(--color-ink);
	font-family: var(--font-display);
	font-size: 1.875rem; /* 30 */
	line-height: var(--lh-display);
}

.event-when__time {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: 0.125rem;
	min-width: 0;
	white-space: nowrap;
}

.event-when__hours {
	font-family: var(--font-display);
	font-size: 1.4375rem; /* 23 */
	line-height: var(--lh-heading);
	letter-spacing: var(--ls-display);
	text-transform: uppercase;
}

.event-when__note {
	color: var(--ivory-85);
	font-family: var(--font-text);
	font-size: var(--fs-search);
	line-height: 1.125rem;
}

/* Объявление с числом */
.notice-number {
	display: flex;
	align-items: baseline;
	gap: 0.625rem;
	white-space: nowrap;
}

.notice-number__value {
	font-family: var(--font-display);
	font-size: 3.6875rem; /* 59 */
	line-height: var(--lh-display);
}

.notice-number__unit {
	color: var(--ivory-90);
	font-family: var(--font-text);
	font-size: 0.9375rem;
	line-height: 1.25rem;
}

/* Мобильный: карточки для сетки в две колонки */
@media (max-width: 47.9375rem) {
	.info-card {
		gap: 0.75rem;
		min-height: 0;
		padding: 1rem; /* 16 */
	}

	.info-card__label {
		letter-spacing: 0.08em;
	}

	.info-card__description {
		font-size: 0.875rem; /* 14 */
		line-height: 1.25rem;
	}

	/* Акция на всю ширину: текст слева, отсчёт справа */
	.info-card--promo {
		flex-direction: row;
		align-items: stretch;
		gap: 0.75rem;
	}

	.info-card__text {
		gap: 0.375rem;
	}

	.info-card__value {
		font-size: 2.5rem; /* 40 */
	}

	.info-card__condition {
		font-size: 0.8125rem; /* 13 */
		line-height: 1.125rem;
		white-space: normal;
	}

	.countdown {
		flex: 0 0 8.5rem; /* 136 */
		align-self: center;
		gap: 0.375rem;
		width: auto;
		padding: 0.625rem 0.75rem;
	}

	.countdown__days {
		font-size: 1.75rem; /* 28 */
	}

	/* Событие и объявление с числом: плитки в половину ширины */
	.event-when {
		flex-wrap: wrap;
		gap: 0.5rem 0.75rem;
	}

	.calendar-leaf {
		width: 3rem; /* 48 */
	}

	.calendar-leaf__month {
		font-size: 0.625rem; /* 10 */
	}

	.calendar-leaf__day {
		padding-block: 2px 4px;
		font-size: 1.375rem; /* 22 */
	}

	.event-when__time {
		flex-basis: 7rem;
		white-space: normal;
	}

	.event-when__hours {
		font-size: 1rem; /* 16 */
	}

	.event-when__note {
		font-size: var(--fs-label);
		line-height: 1rem;
	}

	.notice-number {
		flex-wrap: wrap;
		gap: 0.25rem 0.5rem;
		white-space: normal;
	}

	.notice-number__value {
		font-size: 2.5rem; /* 40 */
	}

	.notice-number__unit {
		font-size: 0.8125rem; /* 13 */
		line-height: 1.125rem;
	}
}

/* Узкий телефон (до 359): в акции не помещаются две колонки, отсчёт уходит вниз */
@media (max-width: 22.4375rem) {
	.info-card--promo {
		flex-direction: column;
	}

	.countdown {
		flex-basis: auto;
		align-self: stretch;
	}
}
