/* Анонс ярмарки (inc/fair-promo.php): полоса над шапкой + поп-ап-открытка. Префикс .fp-, логические свойства для RTL. */
.fp { --fp-red: #c8202a; --fp-red-2: #a8161f; --fp-fir: #123b2c; --fp-ink: #1b2621; --fp-muted: #5b6b63; }
.fp[hidden], .fp [hidden], .fp-bar[hidden], .fp-modal[hidden] { display: none !important; }

/* ── Полоса ── */
.fp-bar {
	position: relative; z-index: 1000; display: flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 44px; padding: 6px 48px; background: var(--fp-red, #c8202a); color: #fff;
	font-size: 15px; line-height: 1.3; text-align: center;
}
.fp-bar__tree { flex: none; width: 22px; height: 26px; }
.fp-bar__link { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px; color: #fff !important; text-decoration: none !important; font-weight: 600; }
.fp-bar__cta { padding: 3px 12px; border-radius: 999px; background: #fff; color: #c8202a; font-weight: 700; font-size: 14px; white-space: nowrap; }
.fp-bar__link:hover .fp-bar__cta { background: #123b2c; color: #fff; }
.fp-bar__close {
	position: absolute; inset-inline-end: 8px; top: 50%; translate: 0 -50%;
	width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent;
	color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
}
.fp-bar__close:hover { background: rgba(255,255,255,.18); }
.fp a:focus-visible, .fp button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ── Поп-ап ── */
html.fp-lock { overflow: hidden; }
.fp-modal {
	position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 20px;
	background: rgba(10,30,22,.6); animation: fp-fade .25s ease-out;
}
.fp-card {
	position: relative; width: min(100%, 440px); padding: 40px 32px 30px; text-align: center; color: #1b2621;
	background: #fff; border: 4px solid #c8202a; border-radius: 22px; box-shadow: 0 30px 70px rgba(0,0,0,.4);
	animation: fp-pop .35s cubic-bezier(.2,.9,.3,1.2);
}
/* наклейки сидят на рамке углами */
.fp-sticker { position: absolute; filter: drop-shadow(0 6px 8px rgba(0,0,0,.25)); overflow: visible; }
.fp-sticker--santa { width: 84px; height: 101px; top: -54px; inset-inline-end: 18px; rotate: 8deg; }
.fp-sticker--tree { width: 62px; height: 74px; bottom: -30px; inset-inline-start: -22px; rotate: -10deg; }
.fp-close {
	position: absolute; top: 8px; inset-inline-start: 8px; width: 36px; height: 36px; padding: 0;
	border: 0; border-radius: 50%; background: transparent; color: #5b6b63; font-size: 28px; line-height: 1; cursor: pointer;
}
.fp-close:hover { background: #eef3ef; color: #123b2c; }
.fp-card .fp-name { margin: 6px 40px 6px; font-size: 16px; font-weight: 700; color: #1f6b45; }
.fp-card .fp-h { margin: 0 0 12px; font-size: 32px; font-weight: 800; line-height: 1.1; color: #c8202a; text-transform: none; letter-spacing: -.01em; text-align: center; }
.fp-card .fp-p { margin: 0 0 12px; font-size: 16px; line-height: 1.55; }
.fp-card .fp-cities { margin: 0 0 22px; font-size: 15px; font-weight: 600; color: #123b2c; }
.fp-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.fp-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 24px;
	border-radius: 999px; border: 2px solid transparent; font: inherit; font-size: 16px; font-weight: 600;
	text-decoration: none !important; cursor: pointer;
}
.fp-btn--red { background: #c8202a; color: #fff !important; }
.fp-btn--red:hover { background: #a8161f; }
.fp-btn--line { background: transparent; border-color: #123b2c; color: #123b2c; }
.fp-btn--line:hover { background: #123b2c; color: #fff; }
.fp-card a:focus-visible, .fp-card button:focus-visible { outline-color: #c8202a; }
@keyframes fp-fade { from { opacity: 0; } }
@keyframes fp-pop { from { opacity: 0; transform: translateY(16px) scale(.96); } }

@media (max-width: 640px) {
	.fp-bar { font-size: 14px; padding-inline: 12px 44px; justify-content: flex-start; text-align: start; }
	.fp-card { padding: 52px 20px 24px; }
	.fp-sticker--santa { width: 68px; height: 82px; top: -44px; }
	.fp-sticker--tree { width: 50px; height: 60px; bottom: -24px; inset-inline-start: -8px; }
	.fp-bar__tree { display: none; }
	.fp-bar__link { gap: 4px 8px; justify-content: flex-start; }
	.fp-bar__cta { font-size: 13px; padding: 2px 10px; }
	.fp-card .fp-h { font-size: 27px; }
	.fp-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.fp-modal, .fp-card { animation: none; }
}
