/* Generated by tools/port_tilda.py for /partner/ — do not edit by hand. */

/* tel/mailto/map links inside text atoms keep the inherited look */
.t396 .tn-atom a.lb-link {
	color: inherit !important;
	text-decoration: underline !important;
	text-decoration-thickness: 1px !important;
	text-underline-offset: 3px !important;
	text-decoration-color: rgba(172, 172, 172, 0.5) !important;
	transition: text-decoration-color 0.2s ease-in-out;
}

.t396 .tn-atom a.lb-link:hover,
.t396 .tn-atom a.lb-link:focus-visible { text-decoration-color: #da3036 !important; }

/* smooth scrolling for the in-page anchors (ПОДРОБНЕЕ, О спектакле, ...) */
html { scroll-behavior: smooth; }
@media screen and (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

/* back-to-hub pill: same look as the «Смотреть фото» button, left of «О спектакле» */
.lb-home {
	position: absolute;
	top: 11px;
	left: calc(50% - 600px + 197px);
	width: 154px;
	height: 52px;
	z-index: 900;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border: 0;
	border-radius: 30px;
	background: #da3036;
	color: #fff !important;
	font-family: 'TildaSans', Arial, sans-serif;
	font-size: 17px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
	transition: background-color 0.2s ease-in-out;
}

.lb-home:hover,
.lb-home:focus-visible { background: #c92b31; }

.lb-home__arrow { font-size: 17px; line-height: 1; }

@media screen and (max-width: 1199px) {
	.lb-home { left: calc(50% - 480px + 187px); }
}

/* the back pill belongs to the desktop nav row; phones get the same link
   at the top of the Tilda mobile menu instead of a button over the content */
@media screen and (max-width: 959px) {
	.lb-home { display: none; }
}

.lb-home-mobile {
	display: block;
	padding: 16px 20px;
	background: #1a1a1a;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	color: #fff !important;
	font-family: 'TildaSans', Arial, sans-serif;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.lb-home-mobile:hover,
.lb-home-mobile:focus-visible { color: #da3036 !important; background: #222; }

/* Tilda's mobile header ends at 980px, but the Zero Block nav row with the
   back pill takes over at 960px; hide the duplicate bar between the two */
@media screen and (min-width: 960px) and (max-width: 980px) {
	.t-screenmax-980px { display: none !important; }
}

/* phones: the Tilda menu becomes a full-screen sheet and locks the page
   behind it instead of a short dropdown that scrolls away with the header */
@media screen and (max-width: 980px) {
	.tmenu-mobile__menucontent_hidden {
		position: fixed !important;
		top: 64px !important;
		right: 0 !important;
		bottom: 0 !important;
		left: 0 !important;
		height: auto !important;
		overflow-y: auto;
		z-index: 989;
	}
	body:has(.tmenu-mobile_opened) { overflow: hidden; }
}

/* make room for the pill in the desktop nav row */
@media screen and (min-width: 960px) {
	#rec841045059 .tn-elem[data-elem-id="1730352913707"] { margin-left: 170px; }
	#rec841045059 .tn-elem[data-elem-id="1730352981570"] { margin-left: 170px; }
}

/* «Смотреть фото» joins the nav row right after «Актеры» */
@media screen and (min-width: 960px) {
	#rec841045059 .tn-elem[data-elem-id="1730353109947"] { margin-left: -174px; }
}
@media screen and (min-width: 1200px) {
	#rec841045059 .tn-elem[data-elem-id="1730353109947"] { margin-left: -394px; }
}

/* spectacle-to-spectacle buttons, the footer plaque and the kazan ticket block are deleted from the markup by tools/port_tilda.py */

/* body-level copy of the back pill (injected by tilda-mobile-menu.js), same
   control the spectacle pages show on phones */
.lb-home-floating { display: none; }

@media screen and (max-width: 959px) {
	.t396__artboard > .lb-home { display: none !important; }

	.lb-home-floating {
		display: inline-flex !important;
		position: fixed !important;
		top: auto !important;
		bottom: 16px !important;
		left: 16px !important;
		width: auto;
		height: 44px;
		padding: 0 18px;
		font-size: 15px;
		z-index: 99999 !important;
		background: rgba(20, 20, 20, 0.94) !important;
		-webkit-backdrop-filter: blur(12px);
		backdrop-filter: blur(12px);
		box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
	}

	.lb-home-floating:hover,
	.lb-home-floating:focus-visible {
		background: #da3036 !important;
	}
}

/* the floating back pill appears after the first screen, so it never covers
   the partner title on phones */
@media screen and (max-width: 959px) {
	.lb-partner .lb-home-floating {
		opacity: 0;
		transform: translateY(10px);
		pointer-events: none;
		transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease-in-out;
	}

	.lb-partner .lb-home-floating.is-ready {
		opacity: 1;
		transform: none;
		pointer-events: auto;
	}
}
