/* Beevision Kalendarz — side tab on the home page (Figma section 6524:2392). Navy #011738 (solid), red #e4312b, business-card star. */
@font-face { font-family: "Master of Custom"; font-weight: 400; font-display: swap; src: url("/wp-content/uploads/2026/10/MasterOfCustom.woff2") format("woff2"); }

.bv-kal-tab {
	--kt-navy: #011738;
	--kt-red: #e4312b;
	--kt-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 87 87'%3E%3Cpath d='M43.5 0L49.87 28.15 74.25 12.75 58.85 37.13 87 43.5 58.85 49.87 74.25 74.25 49.87 58.85 43.5 87 37.13 58.85 12.75 74.25 28.15 49.87 0 43.5 28.15 37.13 12.75 12.75 37.13 28.15Z'/%3E%3C/svg%3E");
	position: fixed; right: 0; top: 50%; z-index: 99980;
	font-family: "DM Sans", sans-serif; color: #fff;
	transform: translate(110%, -50%);
	animation: bv-kt-in .9s cubic-bezier(.2,.8,.2,1) 1.4s forwards;
}
.bv-kal-tab[hidden] { display: none; }
.bv-kal-tab.is-leaving { animation: bv-kt-out .45s ease forwards; }

.bv-kal-tab__star { display: block; flex: none; width: 26px; aspect-ratio: 1; background: var(--kt-red); -webkit-mask: var(--kt-star) center / contain no-repeat; mask: var(--kt-star) center / contain no-repeat; }

/* collapsed handle */
.bv-kal-tab__handle {
	display: flex; flex-direction: column; align-items: center; gap: 14px;
	width: 56px; padding: 18px 0 18px;
	background: var(--kt-navy);
	border: 1px solid rgba(255,255,255,.28); border-right: 0; border-radius: 22px 0 0 22px;
	box-shadow: -6px 10px 30px rgba(0,0,0,.22);
	color: #fff; text-decoration: none; transition: background-color .3s, width .3s;
}
.bv-kal-tab__handle:hover, .bv-kal-tab__handle:focus-visible { color: #fff; }
.bv-kal-tab__handle:focus-visible { outline: 2px solid var(--kt-red); outline-offset: 2px; }
.bv-kal-tab__handle .bv-kal-tab__star { animation: bv-kt-spin 10s linear infinite; }
.bv-kal-tab__label { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 12px; line-height: 1; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.bv-kal-tab__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--kt-red); animation: bv-kt-pulse 2s ease-out infinite; }

/* expanded card (hover / keyboard focus on devices with a mouse) */
.bv-kal-tab__panel {
	position: absolute; right: calc(100% + 10px); top: 50%; width: 300px; box-sizing: border-box;
	padding: 26px 28px 28px;
	background: var(--kt-navy);
	border: 1px solid rgba(255,255,255,.14); border-radius: 28px 0 28px 28px;
	box-shadow: -6px 14px 40px rgba(0,0,0,.25);
	opacity: 0; visibility: hidden; transform: translate(14px, -50%);
	transition: opacity .35s ease, transform .35s cubic-bezier(.2,.8,.2,1), visibility 0s linear .35s;
}
.bv-kal-tab__panel p { margin: 0; }
.bv-kal-tab__logo { position: relative; padding: 6px 0 0 16px; font-family: "Master of Custom", cursive; font-size: 40px; line-height: 1.1; white-space: nowrap; }
.bv-kal-tab__logo .bv-kal-tab__star { position: absolute; left: 0; top: 0; width: 24px; }
.bv-kal-tab__sub { margin-top: 6px !important; font-size: 12px; line-height: 16px; font-weight: 300; letter-spacing: .14em; text-transform: uppercase; }
.bv-kal-tab__text { margin-top: 14px !important; font-size: 15px; line-height: 22px; color: rgba(255,255,255,.85); }
.bv-kal-tab__btn {
	display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 18px;
	padding: 13px 20px; background: var(--kt-red); color: #fff; border-radius: 0 0 18px 0;
	font-size: 16px; line-height: 22px; font-weight: 500; text-decoration: none; transition: background-color .3s;
}
.bv-kal-tab__btn span { transition: transform .3s; }
.bv-kal-tab__btn:hover { background: #c9241f; color: #fff; }
.bv-kal-tab__btn:hover span { transform: translateX(5px); }
.bv-kal-tab__close {
	position: absolute; top: 10px; right: 12px; width: 28px; height: 28px; padding: 0;
	border: 0; background: transparent; color: rgba(255,255,255,.6); font-size: 14px; line-height: 28px; cursor: pointer; border-radius: 50%;
}
.bv-kal-tab__close:hover, .bv-kal-tab__close:focus-visible { color: #fff; background: rgba(255,255,255,.12); }

@media (hover: hover) and (min-width: 768px) {
	.bv-kal-tab:hover .bv-kal-tab__panel, .bv-kal-tab:focus-within .bv-kal-tab__panel, .bv-kal-tab.is-open .bv-kal-tab__panel {
		opacity: 1; visibility: visible; transform: translate(0, -50%); transition-delay: 0s;
	}
	/* bridge the 10px gap so the card does not close while moving the mouse onto it */
	.bv-kal-tab__panel::after { content: ""; position: absolute; top: 0; bottom: 0; left: 100%; width: 12px; }
}
/* phones / touch: only the slim handle, a tap opens the landing page */
@media (max-width: 767px), (hover: none) {
	.bv-kal-tab__panel { display: none; }
	.bv-kal-tab__handle { width: 44px; padding: 14px 0; gap: 12px; border-radius: 18px 0 0 18px; }
	.bv-kal-tab__handle .bv-kal-tab__star { width: 20px; }
	.bv-kal-tab__label { font-size: 10px; }
	.bv-kal-tab { top: 58%; }
}

@keyframes bv-kt-in { to { transform: translate(0, -50%); } }
@keyframes bv-kt-out { to { transform: translate(110%, -50%); } }
@keyframes bv-kt-spin { to { transform: rotate(360deg); } }
@keyframes bv-kt-pulse { 0% { box-shadow: 0 0 0 0 rgba(228,49,43,.7); } 80%, 100% { box-shadow: 0 0 0 9px rgba(228,49,43,0); } }
@media (prefers-reduced-motion: reduce) {
	.bv-kal-tab { animation: none; transform: translate(0, -50%); }
	.bv-kal-tab *, .bv-kal-tab *::before { animation: none !important; transition: none !important; }
}
@media print { .bv-kal-tab { display: none !important; } }
