.logo {
	opacity: 0;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
}

.logo-wrap {
	background: #fff url('/local/img/nureyev-logo.png?v5') center no-repeat;
	-webkit-background-size: auto 88%;
	background-size: auto 88%;
	width: 21rem;
	height: 12rem;
	margin-left: -10.5rem;
	text-align: center;
	position: absolute;
}

.logo .logo-wrap img {
	display: none;
}

.bvi-open-btn svg {
	width: 2.6rem;
	height: 2.6rem;
}


@media screen and (min-width: 721px) {
	.header.scrolled .header-navbar {
		background: #fff;
		display: flow-root;
		min-height: 7rem;
	}
}

.page_inner .header .logo-wrap, .header.scrolled .logo-wrap {
	width: 10.4rem;
	height: 6.2rem;
	-webkit-background-size: auto 95%;
	background-size: auto 95%;
	background-position: left center;
	margin-left: 0;
	transform: translateX(-2.14rem);
}

.page_inner .header .logo-wrap {
	
}

.page_inner .header.scrolled .logo-wrap {
	
}

.logo-wrap::after {
	content: 'Международный фестиваль\00a0классического балета\00a0им.Р.Нуриева';
	font-size: 1.2rem;
	font-weight: 700;
	position: absolute;
	top: 100%;
	background-color: #fff;
	left: 0;
	right: 0;
	padding: 1.6rem 1.5rem 1.6rem 1.5rem;
	letter-spacing: 0.3px;
	line-height: 1.6rem;
	font-family: Georgia;
	cursor: pointer;
}

@media screen and (max-width: 720px) {
	.header_m-navbar {
		position: relative;
	}

	.header:not(.scrolled) .header_m-navbar {
		min-height: 15.7rem;
	}

	.header_m-lang-toggle {
		margin-left: auto;
	}

	.header_m-logo-wrap img {
		opacity: 0;
	}

	.header_m-bvi-btn svg {
		width: 4.8rem !important;
		height: 4.8rem !important;
	}

	.header_m-logo-wrap {
		background: #fff url('/local/img/nureyev-logo.png?v5') center center no-repeat;
		-webkit-background-size: auto 95%;
		background-size: auto 95%;
		position: absolute;
		left: 50%;
		top: 50%;
		width: 10rem;
		height: 9rem;
		margin-left: 0;
		transform: translate(-50%, -50%);
	}

	.header_m-bottom {
		margin-top: 9.5rem;
	}

	.header_m-logo-wrap::after {
		content: 'Международный фестиваль классического балета\00a0им.Р.Нуриева';
		font-size: 1.8rem;
		font-weight: 700;
		position: absolute;
		top: 100%;
		background-color: #fff;
		left: 50%;
		transform: translateX(-50%);
		width: 28rem;
		max-width: 90vw;
		padding: 1.2rem 0 0 0;
		letter-spacing: 0.3px;
		line-height: 2.4rem;
		font-family: Georgia;
		text-align: center;
		cursor: pointer;
	}

	.header.scrolled .header_m-logo-wrap {
		left: 20rem;
		top: 50%;
		transform: translate(0, -50%);
		width: 10rem;
		height: 9rem;
		background-position: left center;
	}

	.header.scrolled .header_m-logo-wrap::after {
		content: 'Нуриевский\A фестиваль';
		white-space: pre-line;
		position: absolute;
		top: 50%;
		left: 100%;
		right: auto;
		bottom: auto;
		transform: translateY(-50%);
		width: auto;
		max-width: none;
		font-size: 2rem;
		line-height: 2.2rem;
		text-align: center;
		padding: 0 0 0 1rem;
		background: transparent;
	}
}

.page_inner .logo-wrap::after,
.header.scrolled .logo-wrap::after {
	top: 0;
	left: 50%;
	padding-top: .4rem;
	background: transparent;
	content: 'Нуриевский фестиваль';
	padding-top: 1.7rem;
}

.history-text-box h3 {
	font-size: 1.6rem;
	font-weight: 700;
	margin-bottom: 2.4rem;
}

.history-text-box p {
	margin-bottom: 1em;
}

.history-text-box img {
	border: 0;
	margin-top: 0;
}

.history-images-box.duo {
	display: -webkit-flex;
	display: -moz-flex;
	display: -ms-flex;
	display: -o-flex;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

@media screen and (max-width: 720px) {
	.history-text-box h3 {
		font-size: 2.6rem;
	}

	.history-images-box.duo .history-images-item {
		width: 47%;
	}

	.history-images-box.duo .history-images-item img {
		max-height: 420px;
		object-fit: cover;
	}

	.history-text-box div {
		font-size: 2.2rem;
	}
}

.history-images-item div {
	font-style: italic;
	letter-spacing: 0.07rem;
}

.history-text-box div.history-text-second {
	color: inherit;
	font-size: inherit;
}

.filter-nav__label.active {
	color: #fff;
    background-color: #c33;
}

.modal-wrapper {
	background: rgba(18, 18, 18, .9);
	position: fixed;
	left: 0;
	right: 0;
	z-index: 9;
	height: 100%;
	display: -webkit-flex;
	display: -moz-flex;
	display: -ms-flex;
	display: -o-flex;
	display: flex;
	align-items: center;
	justify-content: center;
	top: -100%;
	opacity: 0;
	transition: all .3s;
}

.modal-wrapper.active {
	top: 0;
	opacity: 1;
}

.modal-photo-gallery {
	max-width: 88rem;
	color: #fff;
	position: relative;
}

.modal-photo-gallery-close {
	position: absolute;
	right: -4.4rem;
	top: 0;
	width: 2.2rem;
	height: 2.2rem;
	overflow: hidden;
	cursor: pointer;
}

.modal-gallery-slide {
	display: -webkit-flex;
	display: -moz-flex;
	display: -ms-flex;
	display: -o-flex;
	display: flex;
	flex-direction: column;
}

.modal-photo-title {
	padding: 2.3rem 0 1.4rem 0;
	font-size: 2rem;
	letter-spacing: 0.1rem;
	position: relative;
	margin-bottom: 1.5rem;
}

.modal-photo-title::after {
	position: absolute;
	content: '';
	bottom: 0;
	left: 0;
	height: 4px;
	width: 34rem;
	background-color: currentColor;
}

.modal-photo-text {
	font-size: 1.4rem;
}

.modal-photo-gallery-close {

}

@media screen and (max-width: 720px) {
	.modal-photo-gallery {
		max-width: 64rem;
	}

	.modal-photo-title {
		font-size: 5rem;
		line-height: 2;
	}

	.modal-photo-text {
		font-size: 4rem;
		line-height: 1.2;
	}

	.banner-slide__arrow {
		width: 10rem;
		height: 2rem;
	}

	.nav-buttons-wrap {
		width: 40rem;
	}

	.banner-slide__pag {
		font-size: 3.6rem;
	}

	.banner-slide__pag span:first-child {
		font-size: 3.6rem;
	}

	.banner-slide__pag span:last-child {
		font-size: 2.6rem;
	}

	.modal-photo-gallery-close {
		width: 4rem;
		height: 4rem;
		right: 0;
		top: -7rem;
	}

	.modal-photo-gallery-close svg {
		width: 100%;
		height: 100%;
	}
}

@media screen and (min-width: 721px) {
	.history-box {
		flex-direction: column;
	}

	.history-title {
		padding-left: 0;
		margin-bottom: 1em;
	}

	.history-title:before {
		display: none;
	}

	.history-text-box {
		width: 100%;
	}
}

.header.scrolled .logo-wrap::after,
.page_inner .logo-wrap::after {
	left: 70%;
	padding-left: 1rem;
}

/* Fix: lang button clipped to ~30px by flex, "RUS" text truncated.
 * Ensure min-width matches the lang-item (5rem) so text fits. */
.right-nav__button.lang {
	min-width: 5rem;
}

/* BVI hero/news containment: the shared theatre template uses fixed rem widths
 * for the hero/calendar area and negative news margins. Once BVI raises the
 * root font size, those blocks spill horizontally on desktop. */
html[class*="bvi-font-size"] body .banner-box,
html[class*="bvi-font-size"] body .banner.hidden {
	overflow-x: clip;
}

html[class*="bvi-font-size"] body .banner-box {
	left: 50% !important;
	right: auto !important;
	width: 100vw !important;
	margin-left: -50vw !important;
}

html[class*="bvi-font-size"] body .banner,
html[class*="bvi-font-size"] body .banner-slider-nav_blur {
	width: 100% !important;
	max-width: 100% !important;
	left: 0 !important;
	right: auto !important;
}

html[class*="bvi-font-size"] body .banner-slider-nav_blur {
	overflow: hidden !important;
}

html[class*="bvi-font-size"] body .calendar-slider-wrap,
html[class*="bvi-font-size"] body .calendar-slider,
html[class*="bvi-font-size"] body .calendar-slide {
	width: min(117rem, calc(100vw - 4.4rem)) !important;
	max-width: calc(100vw - 4.4rem) !important;
}

html[class*="bvi-font-size"] body .calendar-info,
html[class*="bvi-font-size"] body .calendar-bottom-info,
html[class*="bvi-font-size"] body .calendar-bottom-info_content {
	max-width: 100% !important;
}

html[class*="bvi-font-size"] body .calendar-info__photo,
html[class*="bvi-font-size"] body .calendar-info__content {
	min-width: 0 !important;
}

html[class*="bvi-font-size"] body .news-container {
	margin-left: 0 !important;
	margin-right: 0 !important;
	max-width: 100% !important;
}

/* Nureyev BVI: zoom-based scaling (×1.1 / ×1.2 / ×1.3).
 * All child typography is rem-based and scales automatically.
 * Override bvi.css aggressive root values. */
html.bvi-font-size-1[class*="bvi-font-size"],
html.bvi-font-size-2[class*="bvi-font-size"],
html.bvi-font-size-3[class*="bvi-font-size"] {
	font-size: 0.78125vw !important;
}

html.bvi-font-size-1[class*="bvi-font-size"] body {
	zoom: 1.1 !important;
}

html.bvi-font-size-2[class*="bvi-font-size"] body {
	zoom: 1.2 !important;
}

html.bvi-font-size-3[class*="bvi-font-size"] body {
	zoom: 1.3 !important;
}

/* Structural layout for header-navbar in BVI mode (desktop only).
 * Without these the navbar collapses to height:0 and loses its white background.
 * Mobile uses a different header structure (.header_m-*). */
@media screen and (min-width: 721px) {
	html[class*="bvi-font-size"] body .header .header-navbar {
		padding-bottom: 0 !important;
		overflow: visible !important;
		background: #fff !important;
		display: flow-root !important;
		min-height: 10rem !important;
	}

	html[class*="bvi-font-size"] body .header .header-navbar .nav {
		align-items: center !important;
		display: flex !important;
		flex-wrap: wrap !important;
		justify-content: center !important;
		gap: 0.2rem 1rem !important;
		margin-bottom: 0 !important;
		margin-top: 1rem !important;
		min-height: 9.4rem !important;
		max-width: calc(50% - 13rem) !important;
		width: calc(50% - 13rem) !important;
	}

	html[class*="bvi-font-size"] body .header .header-navbar .right-nav {
		align-items: center !important;
		display: flex !important;
		justify-content: flex-end !important;
		margin-top: 1rem !important;
		margin-bottom: 0 !important;
		min-height: 7.4rem !important;
		max-width: calc(50% - 13rem) !important;
		width: calc(50% - 13rem) !important;
	}
}

/* Reset bvi.css pixel font-size overrides on header/footer elements.
 * Restore original rem values so they scale naturally with BVI root.
 * Layout overrides from bvi.css are preserved (logo, spacing). */
html[class*="bvi-font-size"] body .header .header-navbar .nav-link,
html[class*="bvi-font-size"] body .header .header-navbar .buy-ticket {
	font-size: 1.4rem !important;
}

html[class*="bvi-font-size"] body .header .right-nav .lang-item a,
html[class*="bvi-font-size"] body .header .right-nav .lang-item span {
	font-size: 1.6rem !important;
	line-height: 2.2rem !important;
}

html[class*="bvi-font-size"] body .header .right-nav .search-toggle .icon-search,
html[class*="bvi-font-size"] body .header .header-navbar .right-nav__buttons {
	font-size: 2.2rem !important;
}

html[class*="bvi-font-size"] body .header .right-nav .calendar-toggle {
	font-size: 2.8rem !important;
}

html[class*="bvi-font-size"] body .header .header-top__link-wrap a {
	font-size: 1.3rem !important;
}

html[class*="bvi-font-size"] body .header .bvi-open-btn svg {
	width: 2.8rem !important;
	height: 2.8rem !important;
}

/* Reset bvi.css logo layout overrides — keep original rem-based logo.
 * bvi.css replaces the background-image logo with a fixed-px <img>;
 * restore the original so it scales naturally with BVI root. */
html[class*="bvi-font-size"] body .header .header-navbar .logo-wrap {
	width: 21rem !important;
	height: 9rem !important;
	margin-left: -10.5rem !important;
	padding: 0 !important;
	transform: none !important;
	left: 50% !important;
}

html[class*="bvi-font-size"] body .header .header-navbar .logo {
	opacity: 0 !important;
}

html[class*="bvi-font-size"] body .header .header-navbar .logo-img {
	width: auto !important;
	height: auto !important;
}

html[class*="bvi-font-size"] body .header.scrolled .logo-wrap,
html[class*="bvi-font-size"] body .page_inner .header .logo-wrap {
	width: 10.4rem !important;
	margin-left: 0 !important;
	background-size: auto 95% !important;
	background-position: left center !important;
}

html[class*="bvi-font-size"] body .header.scrolled .logo-scrolled {
	max-height: 6.2rem !important;
}

@media screen and (max-width: 720px) {
	html.bvi-font-size-1[class*="bvi-font-size"] {
		font-size: 11px !important;
	}

	html.bvi-font-size-2[class*="bvi-font-size"] {
		font-size: 12px !important;
	}

	html.bvi-font-size-3[class*="bvi-font-size"] {
		font-size: 13px !important;
	}

	body.bvi-active {
		padding-top: 7rem !important;
	}

	body.bvi-active .header {
		top: 7rem !important;
	}
}

/* kazan-opera-cookie-notice:start */
#modalCookies {
  position: fixed !important;
  inset: auto 18px 18px auto !important;
  width: min(360px, calc(100vw - 28px)) !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  pointer-events: none !important;
  z-index: 10000 !important;
}

#modalCookies .modal-wrap {
  position: static !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  pointer-events: none !important;
}

#modalCookies .modal {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  max-width: none !important;
  max-height: min(300px, calc(100vh - 36px)) !important;
  padding: 14px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  color: #111 !important;
  background: rgba(255, 255, 255, 0.78) !important;
  border: 1px solid rgba(0, 0, 0, 0.14) !important;
  border-radius: 8px !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.08) !important;
  backdrop-filter: blur(22px) saturate(1.08) !important;
  pointer-events: auto !important;
}

#modalCookies .modal::before,
#modalCookies .modal::after {
  display: none !important;
}

#modalCookies .modal-title {
  margin: 0 0 6px !important;
  padding: 0 !important;
  color: #111 !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
}

#modalCookies .modal-close {
  display: none !important;
}

#modalCookies .modal-cookies-text p {
  margin: 0 0 8px !important;
  color: #111 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

#modalCookies .modal-cookies-text p:last-child {
  margin-bottom: 0 !important;
}

#modalCookies .cookies-link {
  display: inline !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #b3262f !important;
  background: transparent !important;
  border: 0 !important;
  font: inherit !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  font-weight: 400 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
}

#modalCookies .kazan-cookie-notice-accept {
  display: flex !important;
  align-items: center;
  justify-content: center !important;
  min-height: 36px !important;
  width: 100% !important;
  margin: 12px 0 0 !important;
  padding: 8px 12px !important;
  box-sizing: border-box !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #b3262f !important;
  color: #fff !important;
  font: inherit !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  cursor: pointer !important;
}

#modalCookies .kazan-cookie-notice-accept:hover,
#modalCookies .kazan-cookie-notice-accept:focus {
  background: #94202a !important;
  outline: 2px solid rgba(179, 38, 47, 0.28) !important;
  outline-offset: 2px !important;
}

@media screen and (max-width: 720px) {
  #modalCookies {
    inset: auto 12px 12px 12px !important;
    width: auto !important;
  }

  #modalCookies .modal {
    max-height: calc(100vh - 24px) !important;
  }
}
/* kazan-opera-cookie-notice:end */
