:root {
  --font-heading: 'Oranienbaum', serif;
  --font-body: 'Inter', sans-serif;
  --font-ui: 'Montserrat', 'Inter', sans-serif;

  --color-page-bg: #F7F1E8;
  --color-page-bg-light: #FBF7EF;
  --color-header-bg: rgba(251, 247, 239, 0.96);

  --color-text: #2A1608;
  --color-text-soft: #3A1D08;
  --color-accent: #D95D2B;
  --color-accent-dark: #B94A24;
  --color-water: #005460;
  --color-earth: #656E55;
  --color-ornament: #741F1E;
  --color-border: rgba(42, 22, 8, 0.12);

  --header-height: 96px;
  --header-height-mobile: 72px;
}

.navbar {
    --bs-navbar-padding-x: 0;
    --bs-navbar-padding-y: 0.1rem;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-page-bg);
  padding-top: var(--header-height);
  line-height: 1.55;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.04;
}

p {
  line-height: 1.6;
}

.site-header {
  z-index: 1040;
}

body.admin-bar .site-header.fixed-top {
  top: 32px;
}

.festival-navbar {
  min-height: var(--header-height);
  background: var(--color-header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 8px 24px rgba(42, 22, 8, 0.04);
}

.festival-navbar__container {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.festival-navbar__brand img {
  width: clamp(190px, 17vw, 300px);
  height: auto;
  display: block;
}

.festival-navbar__toggler {
  border-color: var(--color-border);
  padding: 8px 10px;
}

.festival-navbar__toggler:focus {
  box-shadow: 0 0 0 3px rgba(217, 93, 43, 0.18);
}

.festival-navbar .nav-link {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-soft);
  padding-left: 12px;
  padding-right: 12px;
}

.festival-navbar .nav-link:hover,
.festival-navbar .nav-link:focus {
  color: var(--color-accent);
}

.festival-navbar__actions {
  gap: 10px;
}

.festival-social-link {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, opacity .2s ease;
}

.festival-social-link img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.festival-social-link:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.festival-navbar__divider {
  width: 1px;
  height: 32px;
  background: var(--color-border);
  margin: 0 8px;
}

.festival-btn--primary {
  background: var(--color-accent);
  color: #fff;
  border-radius: 12px;
  padding: 12px 22px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  border: 0;
  text-decoration: none;
}

.festival-btn--primary:hover,
.festival-btn--primary:focus {
  background: var(--color-accent-dark);
  color: #fff;
}

@media (max-width: 1199.98px) {
  body {
    padding-top: var(--header-height-mobile);
  }

  .festival-navbar {
    min-height: var(--header-height-mobile);
  }

  .festival-navbar__container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .festival-navbar__brand img {
    width: 205px;
  }

  .festival-navbar__collapse {
    background: var(--color-header-bg);
    border-top: 1px solid var(--color-border);
    margin-top: 12px;
    padding: 16px 0;
  }

  .festival-navbar .nav-link {
    padding: 10px 0;
  }

  .festival-navbar__actions {
    margin-top: 12px;
    margin-left: 0 !important;
    flex-wrap: wrap;
  }

  .festival-navbar__divider {
    display: none;
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header.fixed-top {
    top: 46px;
  }
}

/* Footer */
.festival-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
}

.festival-btn--outline {
  border: 1px solid rgba(42, 22, 8, 0.3);
  border-radius: 12px;
  padding: 12px 22px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: var(--color-text);
  background: rgba(251, 247, 239, 0.55);
  text-decoration: none;
}

.festival-btn--outline:hover,
.festival-btn--outline:focus {
  border-color: rgba(217, 93, 43, 0.5);
  color: var(--color-accent);
  background: rgba(251, 247, 239, 0.88);
}

.site-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(217, 93, 43, 0.08), transparent 34%),
    radial-gradient(circle at 86% 10%, rgba(0, 84, 96, 0.08), transparent 32%),
    linear-gradient(180deg, #FBF7EF 0%, #F7F1E8 100%);
  border-top: 1px solid rgba(42, 22, 8, 0.1);
  color: var(--color-text);
}

.site-footer__container {
  position: relative;
  z-index: 2;
  padding-top: 56px;
  padding-bottom: 34px;
}

.site-footer__cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-bottom: 46px;
  padding: 28px 32px;
  border: 1px solid rgba(42, 22, 8, 0.12);
  border-radius: 28px;
  background: rgba(251, 247, 239, 0.82);
  box-shadow: 0 18px 48px rgba(42, 22, 8, 0.07);
}

.site-footer__kicker {
  margin: 0 0 8px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.site-footer__cta-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(34px, 3.2vw, 54px);
  line-height: 1.04;
}

.site-footer__cta-text {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--color-text-soft);
  font-size: 16px;
  line-height: 1.6;
}

.site-footer__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) repeat(3, minmax(160px, .75fr)) minmax(240px, 1fr);
  gap: 34px;
  align-items: start;
}

.site-footer__logo {
  width: min(100%, 280px);
  height: auto;
  display: block;
  margin-bottom: 18px;
}

.site-footer__text {
  max-width: 390px;
  margin: 0;
  color: rgba(42, 22, 8, .78);
  font-size: 15px;
  line-height: 1.4;
}

.site-footer__socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.site-footer__social-link {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(251, 247, 239, .9);
  border: 1px solid rgba(42, 22, 8, 0.12);
  transition: transform .2s ease, opacity .2s ease, border-color .2s ease;
}

.site-footer__social-link:hover,
.site-footer__social-link:focus {
  transform: translateY(-1px);
  border-color: rgba(217, 93, 43, .35);
}

.site-footer__social-link img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.site-footer__title {
  margin: 0 0 14px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--color-earth);
}

.site-footer__nav {
  display: grid;
  row-gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__nav li {
  margin: 0;
  line-height: 1.22;
}

.site-footer__link {
  display: inline-block;
  color: rgba(42, 22, 8, .78);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.22;
}

.site-footer__contact-item a {
  color: rgba(42, 22, 8, .78);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.35;
}

.site-footer__link:hover,
.site-footer__link:focus,
.site-footer__contact-item a:hover,
.site-footer__contact-item a:focus {
  color: var(--color-accent);
}

.site-footer__contact-card {
  padding: 22px;
  border-radius: 14px;
  border: 1px solid rgba(42, 22, 8, 0.12);
  background: rgba(251, 247, 239, 0.75);
}

.site-footer__contact-item {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.site-footer__contact-item:last-child {
  margin-bottom: 0;
}

.site-footer__contact-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(101, 110, 85, .9);
}

.site-footer__contact-item span:not(.site-footer__contact-label) {
  color: rgba(42, 22, 8, .78);
  font-size: 15px;
  line-height: 1.4;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid rgba(42, 22, 8, 0.1);
  color: rgba(42, 22, 8, .68);
  font-size: 13px;
  line-height: 1.55;
}

.site-footer__copyright {
  margin: 0;
}

.site-footer__legal {
  max-width: 760px;
  text-align: right;
}

.site-footer__legal-line {
  margin: 0;
}

@media (max-width: 1199.98px) {
  .site-footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .site-footer__contact-card {
    grid-column: span 3;
  }
}

@media (max-width: 991.98px) {
  .site-footer__cta {
    grid-template-columns: 1fr;
  }

  .site-footer__cta-actions {
    justify-content: flex-start;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__brand,
  .site-footer__contact-card {
    grid-column: span 2;
  }

  .site-footer__bottom {
    flex-direction: column;
  }

  .site-footer__legal {
    text-align: left;
  }
}

@media (max-width: 575.98px) {
  .site-footer__container {
    padding-top: 48px;
    padding-bottom: 28px;
  }

  .site-footer__cta {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .site-footer__cta-actions {
    flex-direction: column;
  }

  .site-footer__cta-actions .festival-btn,
  .site-footer__cta-actions .festival-btn--outline {
    width: 100%;
    justify-content: center;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .site-footer__brand,
  .site-footer__contact-card {
    grid-column: auto;
  }

  .site-footer__logo {
    width: 240px;
  }
}

.site-link-notice {
  position: fixed;
  z-index: 1200;
  max-width: min(90vw, 420px);
  padding: 10px 14px;
  border: 1px solid rgba(42, 22, 8, 0.16);
  border-radius: 12px;
  background: rgba(251, 247, 239, 0.97);
  box-shadow: 0 12px 30px rgba(42, 22, 8, 0.16);
  color: var(--color-text);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -100%) scale(0.98);
  transition: opacity .18s ease, transform .18s ease;
}

.site-link-notice.is-below {
  transform: translate(-50%, 0) scale(0.98);
}

.site-link-notice.is-visible {
  opacity: 1;
  transform: translate(-50%, -100%) scale(1);
}

.site-link-notice.is-visible.is-below {
  transform: translate(-50%, 0) scale(1);
}


/* 404 page */

.error-page {
	position: relative;
	min-height: 100vh;
	background:
		radial-gradient(circle at 18% 18%, rgba(217, 93, 43, 0.055) 0, rgba(217, 93, 43, 0) 34%),
		radial-gradient(circle at 84% 20%, rgba(158, 194, 202, 0.18) 0, rgba(158, 194, 202, 0) 32%),
		linear-gradient(180deg, #fbf7ef 0%, #f7f1e8 100%);
	overflow: hidden;
}

.error-page::before,
.error-page::after {
	content: "";
	position: absolute;
	pointer-events: none;
	z-index: 0;
}

.error-page::before {
	inset: 0;
	background-image:
		linear-gradient(rgba(150, 115, 89, 0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(150, 115, 89, 0.035) 1px, transparent 1px);
	background-size: 72px 72px;
	mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.02));
}

.error-page::after {
	left: -6vw;
	right: -6vw;
	bottom: 8vh;
	height: 160px;
	border-top: 2px dashed rgba(217, 93, 43, 0.28);
	border-radius: 50%;
	transform: rotate(-4deg);
}

.error-hero {
	position: relative;
	z-index: 1;
	padding: 40px;
	background: url(../img/blocks/error/404-bg.webp) center bottom / 100% auto no-repeat;
}

.error-hero__card {
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(150, 115, 89, 0.16);
	border-radius: 28px;
	background:
		linear-gradient(90deg, rgba(255, 252, 246, 0.96) 0%, rgba(255, 252, 246, 0.9) 42%, rgba(255, 252, 246, 0.72) 100%);
	box-shadow: 0 28px 90px rgba(58, 29, 8, 0.08);
	padding: 3px 3px 3px 30px;
}

.error-hero__card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background:
		radial-gradient(circle at 16% 22%, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0) 34%),
		linear-gradient(90deg, rgba(255, 252, 246, 0.86) 0%, rgba(255, 252, 246, 0.34) 100%);
	pointer-events: none;
}

.error-hero__card > .row {
	position: relative;
	z-index: 1;
}

.error-hero__content {
	position: relative;
	z-index: 2;
	max-width: 520px;
}

.error-hero__kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
	color: #d95d2b;
	letter-spacing: 0.22em;
	margin-top: 8px;
	padding-left: 10px;
}

.error-hero__kicker::before,
.error-hero__kicker::after {
	content: "";
	display: block;
	width: 8px;
	height: 8px;
	border: 2px solid currentColor;
	border-radius: 50%;
	opacity: 0.75;
}

.error-hero__title {
	margin: 0 0 24px;
	font-family: var(--font-heading);
	font-size: 70px;
	font-weight: 400;
	line-height: 0.98;
	letter-spacing: 1px;
	color: #2a1608;
}

.error-hero__text {
	max-width: 440px;
	margin: 0;
	font-size: clamp(16px, 1.4vw, 19px);
	line-height: 1.65;
	color: rgba(42, 22, 8, 0.76);
}

.error-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 16px;
}

.error-hero__btn {
	min-height: 50px;
	padding-left: 28px;
	padding-right: 28px;
	gap: 10px;
}

.error-hero__btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	line-height: 1;
	transform: translateY(-1px);
}

.error-hero__quick-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 34px;
	padding-top: 28px;
	padding-bottom: 24px;
	border-top: 1px solid rgba(150, 115, 89, 0.22);
}

.error-hero__quick-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 16px;
	border: 1px solid rgba(150, 115, 89, 0.28);
	border-radius: 7px;
	background: rgba(255, 255, 255, 0.62);
	color: #2a1608;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.error-hero__quick-links a:hover,
.error-hero__quick-links a:focus {
	border-color: rgba(217, 93, 43, 0.58);
	background: rgba(255, 255, 255, 0.86);
	color: #2a1608;
	transform: translateY(-2px);
}

.error-visual {
	position: relative;
	min-height: clamp(360px, 40vw, 560px);
	border-radius: 24px;
	overflow: hidden;
	isolation: isolate;
}

.error-visual::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	background:
		linear-gradient(90deg, rgba(255, 252, 246, 0.42) 0%, rgba(255, 252, 246, 0.1) 45%, rgba(255, 252, 246, 0) 100%),
		linear-gradient(180deg, rgba(255, 252, 246, 0.32) 0%, rgba(255, 252, 246, 0) 44%, rgba(255, 252, 246, 0.2) 100%);
	pointer-events: none;
}

.error-visual__landscape {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transform: scale(1.02);
}

.error-visual__number {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-bottom: 80px;
	font-family: var(--festival-font-serif, Georgia, "Times New Roman", serif);
	font-size: clamp(150px, 19vw, 292px);
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.045em;
	color: rgba(150, 115, 89, 0.28);
	text-shadow: 0 14px 44px rgba(255, 252, 246, 0.28);
}

.error-visual__route {
	position: absolute;
	z-index: 4;
	left: 12%;
	right: 15%;
	top: 54%;
	height: 100px;
	border-top: 3px dashed rgba(217, 93, 43, 0.56);
	border-radius: 50%;
	transform: rotate(-8deg);
	opacity: 0.85;
}

.error-visual__marker {
	position: absolute;
	z-index: 5;
	right: 22%;
	top: 52%;
	width: 30px;
	height: 30px;
	border-radius: 50% 50% 50% 0;
	background: #d95d2b;
	transform: rotate(-45deg);
	box-shadow: 0 12px 26px rgba(217, 93, 43, 0.28);
}

.error-visual__marker::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #fffaf3;
	transform: translate(-50%, -50%);
}

.error-visual__elements {
	position: absolute;
	z-index: 6;
	left: 50%;
	bottom: 20px;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: clamp(10px, 1.4vw, 18px);
	width: 100%;
	transform: translateX(-50%);
}

.error-visual__element {
	display: grid;
	justify-items: center;
	gap: 8px;
	min-width: 66px;
	color: #2a1608;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
}

.error-visual__element img {
	display: block;
	width: 52px;
	height: 52px;
	object-fit: contain;
	filter: drop-shadow(0 10px 18px rgba(42, 22, 8, 0.14));
}

.error-next {
	position: relative;
	z-index: 1;
	margin-top: 24px;
}

.error-next__card {
	display: block;
	height: 100%;
	padding: 22px 24px;
	border: 1px solid rgba(150, 115, 89, 0.16);
	border-radius: 22px;
	background: rgba(255, 252, 246, 0.82);
	box-shadow: 0 16px 48px rgba(58, 29, 8, 0.055);
	color: #2a1608;
	text-decoration: none;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.error-next__card span {
	display: block;
	margin-bottom: 4px;
	font-family: var(--festival-font-serif, Georgia, "Times New Roman", serif);
	font-size: 24px;
	line-height: 1.15;
	color: #2a1608;
}

.error-next__card small {
	display: block;
	font-size: 14px;
	line-height: 1.45;
	color: rgba(42, 22, 8, 0.68);
}

.error-next__card:hover,
.error-next__card:focus {
	border-color: rgba(217, 93, 43, 0.42);
	box-shadow: 0 22px 60px rgba(58, 29, 8, 0.08);
	color: #2a1608;
	transform: translateY(-3px);
}

@media (max-width: 1199.98px) {
	.error-hero__card {
		padding: 36px;
	}

	.error-visual__number {
		padding-bottom: 70px;
	}

	.error-visual__element {
		font-size: 13px;
	}
}

@media (max-width: 991.98px) {
	.error-hero {
		padding-top: 108px;
	}

	.error-hero__card {
		border-radius: 30px;
		padding: 28px;
	}

	.error-hero__content {
		max-width: none;
	}

	.error-visual {
		min-height: 340px;
		margin-bottom: 8px;
	}

	.error-visual__number {
		padding-bottom: 54px;
		font-size: clamp(118px, 28vw, 180px);
	}

	.error-visual__elements {
		bottom: 16px;
		gap: 8px;
	}

	.error-visual__element {
		min-width: 52px;
		font-size: 12px;
	}

	.error-visual__element img {
		width: 44px;
		height: 44px;
	}

	.error-hero__quick-links {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.error-hero__quick-links a {
		width: 100%;
	}
}

@media (max-width: 575.98px) {
	.error-hero {
		padding-top: 32px;
		padding-right: 8px;
		padding-left: 8px;
		padding-bottom: 44px;
	}

	.error-hero__card {
		padding: 14px 14px 4px;
		border-radius: 26px;
	}

	.error-hero__title {
		font-size: clamp(44px, 12vw, 64px);
	}

	.error-hero__text {
		font-size: 15px;
		line-height: 1.6;
	}

	.error-hero__actions {
		display: grid;
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.error-hero__btn {
		width: 100%;
		justify-content: center;
	}

	.error-visual {
		min-height: 280px;
		border-radius: 24px;
	}

	.error-visual__number {
		padding-bottom: 96px;
		font-size: 152px;
	}

	.error-visual__route {
		left: 8%;
		right: 8%;
		top: 52%;
	}

	.error-visual__marker {
		right: 16%;
		top: 51%;
		width: 24px;
		height: 24px;
	}

	.error-visual__elements {
		bottom: 12px;
	}

	.error-visual__element span {
		display: none;
	}

	.error-visual__element img {
		width: 38px;
		height: 38px;
	}

	.error-hero__quick-links {
		grid-template-columns: 1fr;
		gap: 10px;
		margin-top: 26px;
		padding-top: 22px;
	}

	.error-next__card {
		padding: 18px 20px;
	}

	.error-next__card span {
		font-size: 22px;
	}
}