@font-face {
  font-family: "Gerbera";
  src: url("../fonts/gerbera/Gerbera-Regular.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gerbera";
  src: url("../fonts/gerbera/Gerbera-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gerbera";
  src: url("../fonts/gerbera/Gerbera-Regular.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gerbera";
  src: url("../fonts/gerbera/Gerbera-Bold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gerbera";
  src: url("../fonts/gerbera/Gerbera-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gerbera";
  src: url("../fonts/gerbera/Gerbera-Bold.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gerbera";
  src: url("../fonts/gerbera/Gerbera-Bold.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {

  --color-ink: #1a1a1a;
  --color-ink-soft: #333333;
  --color-text-muted: #666666;
  --color-text-dim: #939598;
  --color-text-light: #d9d9d9;
  --color-accent: #ffcb05;

  --color-focus: #a97900;
  --color-accent-ink: #1a1a1a;
  --color-line: #e5e5e5;
  --color-line-soft: #e0e0e0;
  --color-surface: #f9f9f9;
  --color-surface-strong: #e8e8e8;
  --color-dark: #111111;
  --color-white: #ffffff;

  --font-sans: "Gerbera", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-display: "Gerbera", system-ui, Arial, sans-serif;

  --page-max: 1440px;
  --gutter: max(clamp(20px, 5.5556vw, 80px), calc((100vw - var(--page-max)) / 2));
  --grid-gap: 24px;

  --transition: 180ms ease;
  --radius-sm: 2px;
  --radius-md: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-white);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
figure,
ul,
ol {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

address {
  font-style: normal;
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color var(--transition), color var(--transition),
              transform var(--transition);
}

.button-accent {
  background: var(--color-accent);
  color: var(--color-accent-ink);
}

.button-accent:hover {
  background: #f0bd00;
}

.button-light {
  background: var(--color-white);
  color: var(--color-ink);
}

.button-light:hover {
  background: #f2f2f2;
}

.link-underlined-display {
  font-family: var(--font-display);
  font-weight: 900;
}

:where(
    .site-nav-link,
    .lang-switch,
    .mobile-nav-list a,
    .link-underlined,
    .link-more,
    .events-all,
    .exh-all,
    .exh-card-more,
    .card-more,
    a.breadcrumbs-item,
    .footer-links a,
    .cookie-bar-text a,
    .contacts-value a,
    a.topbar-value,
    .site-footer-policy,
    .event-card-more,
    .search-suggest-link,
    .events-reset
  ) {
  position: relative;
}

:where(
    .site-nav-link,
    .lang-switch,
    .mobile-nav-list a,
    .link-underlined,
    .link-more,
    .events-all,
    .exh-all,
    .exh-card-more,
    .card-more,
    a.breadcrumbs-item,
    .footer-links a,
    .cookie-bar-text a,
    .contacts-value a,
    a.topbar-value,
    .site-footer-policy,
    .event-card-more,
    .search-suggest-link,
    .events-reset
  )::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--transition);
}

:where(
    .site-nav-link,
    .lang-switch,
    .mobile-nav-list a,
    .link-underlined,
    .link-more,
    .events-all,
    .exh-all,
    .exh-card-more,
    .card-more,
    a.breadcrumbs-item,
    .footer-links a,
    .cookie-bar-text a,
    .contacts-value a,
    a.topbar-value,
    .site-footer-policy,
    .event-card-more,
    .search-suggest-link,
    .events-reset
  ):is(:hover, :focus-visible)::after {
  transform: scaleX(1);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: var(--radius-md);
  background: var(--color-accent);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-square {
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 800;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 32px;
  height: 32px;
  color: var(--color-ink);
  border-radius: 50%;
  transition: box-shadow var(--transition), color var(--transition);
}

.icon-button:hover {
  box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.06);
}

.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-line);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 87px;
  padding-inline: var(--gutter);
}

@media (min-width: 1280px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    transition: box-shadow 180ms ease;
  }

  .site-header.is-stuck {
    box-shadow: 0 1px 0 var(--color-line), 0 6px 18px rgba(26, 26, 26, 0.07);
  }

  html {
    scroll-padding-top: 104px;
  }

  [id] {
    scroll-margin-top: 104px;
  }
}

.header-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.brand {
  position: relative;
  display: block;
  flex: none;
  width: 222px;
  height: 88px;
}

.brand-department {
  width: 222px;
  height: 88px;
}

.brand-museum {
  position: absolute;
  left: 161px;
  top: 17px;
  width: 61px;
  height: 50px;
}

.site-nav {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;

}

.site-nav-list {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav-link {
  position: relative;
  display: inline-block;
  padding-block: 12px;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: color var(--transition);
}

.site-nav-link::after {
  bottom: 10px;
}

.site-nav-item {
  position: relative;
}

.site-nav-submenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 260px;
  padding: 8px;
  border-radius: 10px;
  background: var(--color-white);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.site-nav-item-parent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 10px;
}

.site-nav-item-parent:hover > .site-nav-submenu,
.site-nav-item-parent:not(:has(> .site-nav-link-static)):focus-within > .site-nav-submenu,
.site-nav-item-parent.is-open > .site-nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-nav-item-parent.is-closed > .site-nav-submenu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
}

.site-nav-submenu .site-nav-link {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.875rem;
  line-height: 1.3;
  text-align: left;
  white-space: normal;
}

.site-nav-submenu .site-nav-link::after {
  content: none;
}

.site-nav-submenu .site-nav-link:hover {
  background: #f5f5f5;
}

.site-nav-submenu .site-nav-submenu {
  top: -8px;
  left: 100%;
}

.mobile-nav-item-parent {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.mobile-nav-item-parent > a,
.mobile-nav-item-parent > .mobile-nav-link {
  flex: 1 1 auto;
}

.mobile-nav-sublist {
  flex: 1 0 100%;
  overflow: hidden;

  transition: max-height 240ms cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0;
  padding: 0 0 0 16px;
  list-style: none;
}

.mobile-nav-sublist a,
.mobile-nav-sublist .mobile-nav-link {
  display: block;
  padding: 10px 0;
  font-size: 1rem;
}

.mobile-nav-toggle {
  position: relative;
  flex: none;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.06);
  color: inherit;
  cursor: pointer;
}

.mobile-nav-toggle::before,
.mobile-nav-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.mobile-nav-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform var(--transition);
}

.mobile-nav-toggle[aria-expanded="true"]::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.site-header-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
}

.lang-switch {
  position: relative;
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 700;
  white-space: nowrap;
  transition: color var(--transition);

  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
}

.translate-progress {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 32px);
  padding: 12px 18px 18px;
  overflow: hidden;
  background: var(--color-ink);
  color: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  transform: translateX(-50%);
}

.translate-progress[hidden] {
  display: none;
}

.translate-progress-text {
  font-size: 0.9375rem;
  white-space: nowrap;
}

.translate-progress-track {
  position: absolute;
  right: 18px;
  bottom: 8px;
  left: 18px;
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
}

.translate-progress-fill {
  display: block;
  width: 4%;
  height: 100%;
  border-radius: 3px;
  background: var(--color-accent);
  transition: width 240ms ease;
}

.translate-progress-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: translate-spin 800ms linear infinite;
}

@keyframes translate-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .translate-progress-spinner {
    animation: none;
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 24px;
  height: 24px;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-ink);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  overflow: hidden;
  max-height: 0;
  padding: 0 var(--gutter);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-line);

  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: max-height 320ms cubic-bezier(0.4, 0, 0.2, 1), opacity 200ms ease,
    transform 240ms ease, padding 320ms ease, visibility 0s linear 320ms;
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  padding: 24px var(--gutter) 32px;
  transition-delay: 0s;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}

.mobile-nav-list a,
.mobile-nav-list .mobile-nav-link {
  position: relative;
  display: block;
  padding-block: 10px;
  font-size: 1.125rem;
  font-weight: 700;
}

.mobile-nav-list a::after {
  bottom: 8px;
}

.mobile-nav-ticket {
  width: 100%;
}

.topbar {
  background: var(--color-dark);
  color: var(--color-white);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 72px;
  padding: 16px var(--gutter);
}

.topbar-list {
  display: flex;
  align-items: center;
  gap: 22px;
}

.topbar-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.topbar-item-hours {
  max-width: 354px;
}

.topbar-label {
  color: var(--color-accent);
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.topbar-item-hours .topbar-label {
  font-size: 0.6875rem;
  letter-spacing: 1.5px;
}

.topbar-value {
  color: var(--color-text-light);
  font-size: 0.8125rem;
  line-height: 1.3;
}

.topbar-value-light {
  color: var(--color-white);
  font-size: 0.875rem;
}

.topbar-divider {
  flex: none;
  width: 1px;
  height: 40px;
  background: var(--color-accent);
  opacity: 0.25;
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-dark);
}

.hero-slides {
  display: grid;
}

.hero-slide {
  grid-area: 1 / 1;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 449px;
  padding: 0 var(--gutter);
  opacity: 0;
  visibility: hidden;
  transition: opacity 320ms ease, visibility 0s linear 320ms;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  transition: opacity 320ms ease, visibility 0s linear 0s;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero-slide[data-slide="1"] { --hero-image: url("../img/hero-hall.jpg"); }
.hero-slide[data-slide="2"] { --hero-image: url("../img/museum-building.jpg"); }
.hero-slide[data-slide="3"] { --hero-image: url("../img/poster-mesta-dushi.jpg"); }

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  width: 100%;
  height: 100%;

  padding-bottom: 62px;
  color: var(--color-white);
}

.hero-title {
  max-width: 900px;
  font-size: 3.125rem;
  font-weight: 900;
  line-height: 1.1;
}

.hero-text {
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.6;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
}

.hero-nav {
  position: absolute;
  left: var(--gutter);

  bottom: 40px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-white);
}

.hero-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-line-soft);
  border-radius: 50%;
  transition: background-color var(--transition), border-color var(--transition);
}

.hero-nav-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--color-white);
}

.hero-count {

  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}

.hero-nav.is-on-light .hero-count {
  color: var(--color-ink);
}

.hero-nav.is-on-light .hero-nav-btn {
  border-color: rgba(26, 26, 26, 0.55);
}

.hero-nav.is-on-light .hero-nav-btn img {
  filter: invert(1);
}

.hero-nav.is-on-light .hero-nav-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: var(--color-ink);
}

.hero-dots {
  position: absolute;
  left: 50%;

  bottom: 55px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
}

.hero-dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 100px;
  background: var(--color-white);
  opacity: 0.3;
  transition: background-color var(--transition), opacity var(--transition);
}

.hero-dot.is-active {
  opacity: 1;
}

.hero-dot-ring {
  position: absolute;

  top: -7px;
  left: -7px;
  width: 24px;
  height: 24px;

  max-width: none;
  opacity: 0;
  transform: rotate(-90deg);
  transition: opacity var(--transition);
  pointer-events: none;
}

.hero-dot.is-active .hero-dot-ring {
  opacity: 1;
}

.hero-dot-ring-track,
.hero-dot-ring-bar {
  fill: none;
  stroke-width: 1.5;
}

.hero-dot-ring-track {
  stroke: rgba(255, 255, 255, 0.35);
}

.hero-dot-ring-bar {
  stroke: var(--color-accent);
  stroke-linecap: round;
  stroke-dasharray: 56.55;
  stroke-dashoffset: 56.55;
}

.hero-dot.is-active .hero-dot-ring-bar {
  animation: hero-dot-progress var(--slider-duration, 6000ms) linear forwards;
}

.hero.is-paused .hero-dot.is-active .hero-dot-ring-bar {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  /* кольцо-таймер оставляем: это индикатор, а не анимация;
     смену кадра делаем мгновенной, без плавного перехода */
  .hero-slide {
    transition-duration: 1ms;
  }
}

@keyframes hero-dot-progress {
  from {
    stroke-dashoffset: 56.55;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.hero-dot.is-active {
  background: var(--color-accent);
  opacity: 1;
}

.visit {
  padding: 60px var(--gutter);
  background: var(--color-surface);
}

.visit-grid {
  display: grid;
  grid-template-columns: 410.667fr 272fr 549fr;
  gap: var(--grid-gap);
  align-items: start;
}

.visit-grid > * {
  min-width: 0;
}

.visit-title {
  margin-bottom: 36px;
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.2;
}

.visit-intro {
  display: grid;
  grid-template-columns: 179px minmax(0, 1fr);
  column-gap: 26px;
  row-gap: 0;
}

.visit-intro > .visit-title {
  grid-column: 1 / -1;
}

.visit-photo {
  position: relative;
  width: 179px;
  height: 192px;
  overflow: hidden;
}

.visit-photo img {
  position: absolute;
  top: 0;
  left: -16.63%;
  width: 156.01%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.visit-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.visit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.visit-icon {
  flex: none;
  width: 20px;
  height: 20px;
}

.visit-item-body {
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  line-height: 1.333;
}

.visit-item-title {
  color: #000;
  font-weight: 600;
}

.visit-item-text {
  color: var(--color-text-muted);
  font-weight: 400;
}

.visit-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--transition);
}

.visit-link:hover,
.visit-link:focus-visible {
  text-decoration-color: currentColor;
}

.calendar-title {
  margin-bottom: 16px;
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.calendar-nav {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 10px;
}

.calendar-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  background: transparent;
  color: var(--color-ink);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), opacity var(--transition);
}

.calendar-nav-btn:hover:not(:disabled) {
  border-color: #d8d8d8;
  background: #f5f5f5;
}

.calendar-nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.calendar-nav-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.calendar-day-num {
  font-variant-numeric: tabular-nums;
}

.calendar-weekdays {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.calendar-weekday {
  flex: 1 1 0;
  padding: 8px 0;
  color: var(--color-text-dim);
  font-size: 0.6875rem;
  line-height: 1.2;
  text-align: center;
}

.calendar-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
}

.calendar-week {
  display: flex;
  gap: 4px;
}

.calendar-day {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 27px;
  padding: 0;
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-ink);
  font-size: 0.875rem;
  line-height: 1;
  transition: background-color var(--transition), color var(--transition);
}

.calendar-day:hover {
  background: #f1e6bc;
}

.calendar-day-empty {

  background: var(--color-white);
  pointer-events: none;
}

.calendar-day-event {
  font-weight: 800;
  background: var(--color-accent);
}

.calendar-day-event:hover {
  background: #f0bd00;
}

.calendar-day-other {
  color: var(--color-text-dim);
}

.calendar-day.is-today {
  background: var(--color-accent);
  color: var(--color-ink);
}

.calendar-day.is-selected {
  background: var(--color-ink);
  color: #fff;
}

.calendar-day.is-selected.is-today {
  background: var(--color-ink);
  color: #fff;
}

.events {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.events-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 31px;
}

.events-title {
  display: none;
}

.events-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-text-muted);
  font-family: var(--font-display);
  font-size: 0.75rem;
  transition: color var(--transition);
}

.events-list {
  display: flex;
  flex-direction: column;
}

.events-list > li + li .event-row {
  border-top: 0;
}

.event-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-line-soft);
  transition: background-color var(--transition);
}

.event-row:hover {
  background: #fdf3d3;
}

.event-row .badge {
  flex: none;
  margin-left: auto;
}

.event-row-time {
  flex: none;
  min-width: 44px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.event-row-more {
  justify-content: flex-start;
  padding: 8px 0;
  color: var(--color-text-dim);
  font-size: 0.8125rem;
  font-weight: 600;
}

.event-row-more:hover {
  color: var(--color-ink);
}

.event-row-title {
  flex: 1 1 auto;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
}

.event-row-title-empty {
  color: var(--color-text-muted);
}

.event-row-next {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 0;
  padding: 14px 0 16px;
  border-bottom: 0;
}

.event-row-when {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text-dim);
}

.event-row-next .event-row-title {
  transition: color var(--transition);
}

.event-row-next:hover .event-row-title {
  color: #997300;
}

.exhibitions {
  padding: 44px var(--gutter) 72px;
  background: var(--color-white);
}

.exhibitions-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 64px;
}

.exhibitions-title {
  font-size: 1.875rem;
  font-weight: 900;
  line-height: 1.1;
}

.exhibitions-head .link-underlined {
  font-size: 0.875rem;
  white-space: nowrap;
}

.exhibitions-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}

.card-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card-media {
  display: block;
  width: 100%;
  margin-bottom: 16px;
  aspect-ratio: 300 / 374;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition), filter var(--transition);
}

.card:hover .card-media img {
  transform: scale(1.04);
}

.card-link:hover .card-title,
.card-link:hover .card-more {
  color: #000;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.card-date {
  color: var(--color-text-dim);
  font-size: 0.6875rem;
  line-height: 1.3;
}

.card-title {
  margin-bottom: 20px;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.2;
  transition: color var(--transition);
}

.card-more {
  display: inline-block;
  font-size: 0.8125rem;
}

.exhibitions[data-images="muted"] .card-media img {
  filter: grayscale(1);
}

.exhibitions[data-images="muted"] .card:hover .card-media img {
  filter: grayscale(0);
}

.support {
  background: var(--color-accent);
}

.support-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 24px var(--gutter);
}

.support-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 1045px;
  color: var(--color-ink);
}

.support-title {
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.1;
}

.support-lead {
  font-size: 1rem;
  line-height: 1.6;
}

.site-footer {
  padding: 100px var(--gutter) 25px;
  background: var(--color-surface);
}

.site-footer-top {
  display: grid;

  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
  min-height: 311px;
  margin-bottom: 22px;
}

.site-footer-brand {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  padding-left: 17px;
  margin-top: -31px;
}

.site-footer-logo-department {
  width: 251px;
  height: 131px;
}

.site-footer-logo-mobile {
  display: none;
}

.site-footer-logo-museum {
  width: 190px;
  height: 155px;
  margin-top: 18px;
}

.contacts {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 3px;

  padding-left: 6px;
  font-size: 0.875rem;
  color: #000;
}

.contacts-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 225px;
}

.contacts-label {
  font-size: 0.875rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
  opacity: 0.6;
}

.contacts-value {
  line-height: 1.5;
}

.contacts-phone {
  display: block;
}

.contacts-phone + .contacts-phone {
  margin-top: 10px;
}

.contacts-phone-note {
  display: block;
  margin-top: 2px;
  font-size: 0.8125rem;
  line-height: 1.3;
  opacity: 0.6;
}

.site-footer-aside {
  grid-column: 3 / -1;
  display: flex;
  flex-direction: column;
  gap: 37px;
  min-width: 0;

}

.subscribe {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.subscribe-label {
  font-size: 0.875rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
  opacity: 0.5;
}

.subscribe-field {
  display: flex;
  height: 48px;
}

.subscribe-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 16px;
  border: 0;
  background: var(--color-line-soft);
  color: var(--color-ink);
  font-family: inherit;
  font-size: 0.8125rem;
}

.subscribe-input::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.subscribe-input:focus-visible {
  outline-offset: -2px;
}

.subscribe-submit {
  flex: none;
  padding: 0 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--color-accent);
  color: var(--color-ink);
  font-size: 0.8125rem;
  font-weight: 800;
  transition: background-color var(--transition);
}

.subscribe-submit:hover {
  background: #f0bd00;
}

.site-footer-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 275px;
  font-size: 0.9375rem;
  line-height: 1.2;
}

.socials {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 16px;
  flex: none;

  margin-left: auto;
  margin-top: 47px;
}

.socials-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--color-ink);
  transition: transform var(--transition), opacity var(--transition);
}

.socials-link:hover {
  transform: translateY(-2px);
}

.socials-link-gradient {
  border-radius: 28px;
  background: linear-gradient(to bottom, #7b5cf0, #4fc3f7);
}

.socials-link img {
  display: block;
  width: 26px;
  height: 26px;
}

.site-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;

  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #000;
  font-size: 0.75rem;
  line-height: 1.4;
}

.site-footer-copyright,
.site-footer-policy {
  opacity: 0.4;
}

.site-footer-policy {
  transition: color var(--transition);
}

.cookie-bar[hidden] {
  display: none;
}

.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  max-width: 100vw;
  padding: 20px 40px;
  background: var(--color-surface-strong);
}

.cookie-bar-text {
  min-width: 0;
  flex: 1 1 auto;
  color: var(--color-ink-soft);
  font-size: 0.875rem;
  font-weight: 900;
  line-height: 1.5;
}

.cookie-bar-accept,
.cookie-bar-decline {
  flex: none;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 700;
  transition: background-color var(--transition), color var(--transition);
}

.cookie-bar-accept {
  background: var(--color-accent);
  color: var(--color-ink);
}

.cookie-bar-accept:hover {
  background: #f0bd00;
}

.cookie-bar-decline {
  border: 1px solid #212121;
  color: var(--color-ink);
}

.cookie-bar-decline:hover {
  background: rgba(0, 0, 0, 0.06);
}

.info-popup {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
}

.info-popup[hidden],
html[data-a11y="on"] .info-popup {
  display: none;
}

.info-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.62);
  opacity: 0;
  transition: opacity 220ms ease;
}

.info-popup-card {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 36px 40px 32px;
  border-radius: var(--radius-md);
  background: var(--color-white);
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 260ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.info-popup.is-closing .info-popup-overlay,
.info-popup.is-closing .info-popup-card {
  opacity: 0;
  transition: opacity 200ms ease-in;
}

.info-popup.is-closing .info-popup-card {
  transition: opacity 200ms ease-in, transform 200ms ease-in;
  transform: translateY(10px) scale(0.99);
}

.info-popup.is-open .info-popup-overlay,
.info-popup.is-open .info-popup-card {
  opacity: 1;
}

.info-popup.is-open .info-popup-card {
  transform: none;
}

.info-popup-title {
  margin: 0 32px 12px 0;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.2;
}

.info-popup-text {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.info-popup-action {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: var(--color-ink);
  font-size: 0.875rem;
  font-weight: 700;
  transition: background-color var(--transition);
}

.info-popup-action:hover {
  background: #f0bd00;
}

.info-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background-color var(--transition);
}

.info-popup-close::before,
.info-popup-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--color-ink);
}

.info-popup-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.info-popup-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.info-popup-close:hover {
  background: rgba(0, 0, 0, 0.06);
}

@media (max-width: 640px) {
  .info-popup {
    padding: 16px;
  }

  .info-popup-card {
    padding: 28px 20px 24px;
  }

  .info-popup-title {
    font-size: 1.25rem;
  }

  .info-popup-action {
    display: block;
    text-align: center;
  }
}

.site-nav-link-static {
  cursor: default;
}

button.site-nav-link-static {
  padding: 0;
  padding-block: 12px;
  border: 0;
  background: none;
  color: inherit;

  font-family: inherit;
  text-align: left;
}

.site-nav-item-parent.is-open > .site-nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.slovar {
  margin: 0 0 8px;
}

.slovar-form {
  display: flex;
  gap: 12px;
  margin: 0 0 24px;
}

.slovar-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(26, 26, 26, 0.18);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  font: inherit;
  font-size: 1rem;
  transition: border-color var(--transition);
}

.slovar-input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.slovar-submit {
  flex: 0 0 auto;
  padding: 14px 28px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: var(--color-ink);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--transition);
}

.slovar-submit:hover {
  background: #f0bd00;
}

.slovar-submit:focus-visible,
.slovar-letter:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 0;
  box-shadow: 0 0 0 3px var(--color-focus);
}

.slovar-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}

.slovar-letter {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: rgba(26, 26, 26, 0.05);
  color: var(--color-ink);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition);
}

.slovar-letter:hover {
  background: rgba(26, 26, 26, 0.1);
}

.slovar-letter.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.slovar-letter-count {
  font-size: 0.6875rem;
  font-weight: 400;
  opacity: 0.6;
}

.slovar .slovar-status {
  margin: 0 0 8px;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.slovar-results {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
}

.slovar-item {
  display: block;
  width: 100%;
  padding: 22px 0;
  border: 0;
  border-bottom: 1px solid rgba(26, 26, 26, 0.1);
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--transition);
}

.slovar-item:hover {
  background: rgba(255, 210, 0, 0.12);
}

.slovar-item-fam {
  display: block;
  margin: 0 0 10px;
  color: var(--color-ink);
  font-size: 1rem;
  font-weight: 700;
}

.slovar-item-fam mark {
  background: rgba(255, 210, 0, 0.45);
  color: inherit;
}

.slovar-item-text {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.slovar .slovar-empty,
.slovar .slovar-error {
  margin: 24px 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.slovar-retry {
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-ink);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.slovar-more-wrap {
  margin: 24px 0 0;
  text-align: center;
}

.slovar-more {
  padding: 12px 32px;
  border: 1px solid rgba(26, 26, 26, 0.18);
  border-radius: var(--radius-sm);
  background: none;
  color: var(--color-ink);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color var(--transition), background-color var(--transition);
}

.slovar-more:hover {
  border-color: var(--color-ink);
  background: rgba(26, 26, 26, 0.04);
}

.slovar-skeleton {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 0;
}

.slovar-skeleton span {
  display: block;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, rgba(26, 26, 26, 0.06) 25%, rgba(26, 26, 26, 0.12) 37%, rgba(26, 26, 26, 0.06) 63%);
  background-size: 400% 100%;
  animation: slovar-shimmer 1.4s ease infinite;
}

@keyframes slovar-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

.slovar-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 24px;
}

.slovar-modal[hidden],
html[data-a11y="on"] .slovar-modal {
  display: none;
}

.slovar-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.62);
  opacity: 0;
  transition: opacity 220ms ease;
}

.slovar-modal-card {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 40px 44px 36px;
  border-radius: var(--radius-md);
  background: var(--color-white);
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 260ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.slovar-modal.is-closing .slovar-modal-overlay,
.slovar-modal.is-closing .slovar-modal-card {
  opacity: 0;
  transition: opacity 200ms ease-in;
}

.slovar-modal.is-closing .slovar-modal-card {
  transition: opacity 200ms ease-in, transform 200ms ease-in;
  transform: translateY(10px) scale(0.99);
}

.slovar-modal.is-open .slovar-modal-overlay,
.slovar-modal.is-open .slovar-modal-card {
  opacity: 1;
}

.slovar-modal.is-open .slovar-modal-card {
  transform: none;
}

.slovar-modal-title {
  margin: 0 36px 16px 0;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: none;
}

.slovar-modal-text {
  color: var(--color-ink);
  font-size: 1rem;
  line-height: 1.6;
  white-space: pre-line;
}

.slovar-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transition: background-color var(--transition);
}

.slovar-modal-close::before,
.slovar-modal-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--color-ink);
}

.slovar-modal-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.slovar-modal-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.slovar-modal-close:hover { background: rgba(0, 0, 0, 0.06); }

@media (max-width: 640px) {
  .slovar-form {
    flex-wrap: wrap;
  }

  .slovar-input {
    flex-basis: 100%;
  }

  .slovar-submit {
    flex-basis: 100%;
  }

  .slovar-letter {
    padding: 5px 8px;
    font-size: 0.8125rem;
  }

  .slovar-modal {
    padding: 12px;
  }

  .slovar-modal-card {
    padding: 28px 20px 24px;
    max-height: calc(100vh - 24px);
  }

  .slovar-modal-title {
    font-size: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .info-popup-overlay,
  .info-popup-card,
  .slovar-modal-overlay,
  .slovar-modal-card {
    transition-duration: 1ms !important;
    transform: none !important;
  }
}

.slovar-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.slovar-side {
  position: sticky;
  top: 96px;
}

.slovar-side .slovar-form {
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.slovar-side .slovar-input {
  flex-basis: 100%;
}

.slovar-side .slovar-submit {
  flex-basis: 100%;
}

.slovar-side .slovar-letters {
  margin-bottom: 0;
}

.slovar-side .slovar-letter {
  padding: 5px 8px;
  font-size: 0.8125rem;
}

@media (max-width: 1200px) {
  .slovar-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 900px) {
  .slovar-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .slovar-side {
    position: static;
  }
}

.exh-archive-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid rgba(26, 26, 26, 0.18);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-ink);
  transition: border-color var(--transition), background-color var(--transition);
}

.exh-archive-link::after {
  content: '→';
}

.exh-archive-link:hover {
  border-color: var(--color-ink);
}

.exh-archive {
  display: flex;
  flex-direction: column;
}

.exh-archive-years {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.exh-archive-year {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid rgba(26, 26, 26, 0.18);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-ink);
  transition: border-color var(--transition), background-color var(--transition);
}

.exh-archive-year:hover {
  border-color: var(--color-ink);
}

.exh-archive-year.is-active {
  border-color: var(--color-accent);
  background: var(--color-accent);
}

.exh-archive-year-count {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.6;
}

.exh-archive-total {
  margin: 0 0 32px;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.exh-archive-group {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}

.exh-archive-group:last-child {
  margin-bottom: 0;
}

.exh-archive-title {
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1.2;
  color: #1a241a;
}

.exh-archive-empty {
  margin: 0;
  color: var(--color-text-muted);
}

.exh-archive-bottom,
.exh-archive-back {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.exh-archive-back .button {
  padding: 12px 24px;
}

@media (max-width: 760px) {
  .exh-archive-title {
    font-size: 1.375rem;
  }

  .exh-archive-group {
    gap: 16px;
    margin-bottom: 32px;
  }
}

.events-page {
  padding: 40px var(--gutter) 64px;
}

.events-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.events-side {
  position: sticky;
  top: 96px;
}

.events-calendar-card {
  padding: 16px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-white);
}

.events-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.events-period {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  text-align: center;
}

.events-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 30px;
  height: 30px;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-ink);
  cursor: pointer;
  transition: border-color var(--transition), background-color var(--transition);
}

.events-nav-btn:hover {
  border-color: var(--color-ink);
}

.events-modes {
  display: flex;
  gap: 2px;
  margin: 12px 0;
  padding: 3px;
  border-radius: 999px;
  background: var(--color-surface);
}

.events-mode {
  flex: 1 1 0;
  min-height: 28px;
  padding: 0 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition);
}

.events-mode.is-active {
  background: var(--color-accent);
}

.events-today {
  width: 100%;
  min-height: 34px;
  margin-top: 12px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  cursor: pointer;
}

.events-today:hover {
  border-color: var(--color-ink);
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}

.cal-weekday {
  color: var(--color-text-dim);
  font-family: var(--font-sans);
  font-size: 0.625rem;
  text-transform: uppercase;
  text-align: center;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-break {
  display: none;
}

.cal-day {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition);
}

.cal-day:hover {
  background: var(--color-surface);
}

.cal-day.is-outside {
  color: var(--color-text-light);
}

.cal-day.is-past {
  color: var(--color-text-dim);
}

.cal-day.has-events {
  font-weight: 700;
  background: var(--color-accent);
  color: var(--color-ink);
}

.cal-day-num {
  font-variant-numeric: tabular-nums;
}

.cal-day.is-today {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: #fff;
  font-weight: 700;
}

.cal-day.is-selected {
  box-shadow: inset 0 0 0 2px var(--color-ink);
}

.cal-day.is-selected.is-today {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: #fff;
  box-shadow: none;
}

.cal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.cal-week-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 7px 0 5px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-ink);
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition);
}

.cal-week-day:hover {
  border-color: var(--color-ink);
}

.cal-week-name {
  font-size: 0.5625rem;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

.cal-week-num {
  font-size: 0.8125rem;
  font-weight: 700;
}

.cal-week-count {
  font-size: 0.5625rem;
  color: var(--color-text-muted);
}

.cal-week-day.is-selected .cal-week-count,
.cal-week-day.is-today .cal-week-count {
  color: currentColor;
  opacity: 0.7;
}

.cal-week-day.has-events {
  background: var(--color-surface);
}

.cal-week-day.is-past {
  color: var(--color-text-dim);
}

.cal-week-day.is-today {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-ink);
}

.cal-week-day.is-selected {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: #fff;
}

.cal-week-day.is-selected.is-today {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: #fff;
}

.cal-jump {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 9px 12px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: transparent;
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.cal-jump:hover {
  border-color: var(--color-ink);
}

.cal-hint {
  margin-top: 10px;
  color: var(--color-text-dim);
  font-size: 0.75rem;
  line-height: 1.4;
}

.cal-day-view {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cal-day-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.cal-dayview-num {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
}

.cal-day-month,
.cal-day-week {
  color: var(--color-text-muted);
  font-size: 0.8125rem;
}

.cal-day-week {
  margin-left: auto;
  font-size: 0.75rem;
}

.cal-day-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.cal-day-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--color-surface);
  font-size: 0.8125rem;
  line-height: 1.35;
}

.cal-day-item:hover {
  background: var(--color-surface-strong);
}

.cal-day-time {
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 0.6875rem;
}

.cal-day-empty {
  color: var(--color-text-muted);
  font-size: 0.8125rem;
}

.events-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.events-filters .filter-pill {
  min-height: 32px;
  padding: 0 14px;
  font-size: 0.8125rem;
  cursor: pointer;
}

.events-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 12px;
  margin-bottom: 20px;
}

.events-bar .events-filters {
  display: flex;
  flex: 1 1 0;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.events-bar .events-reset {
  flex: none;
  margin-top: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  cursor: pointer;
}

.events-bar .events-reset:hover {
  color: var(--color-ink);
}

.events-views {
  display: flex;
  flex: none;
  gap: 6px;
}

.events-views .events-view {
  min-height: 32px;
  padding: 0 14px;
  font-size: 0.8125rem;
  cursor: pointer;
}

.events-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.events-group + .events-group {
  margin-top: 26px;
}

.events-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.events-group-date {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
}

.events-group-date::after {
  content: "";
  order: 1;
  flex: 1 1 auto;
  height: 1px;
  background: var(--color-line);
}

.events-group-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

[data-events][data-view="compact"] .events-group-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

[data-events][data-view="compact"] .event-card {
  flex-direction: column;
  gap: 0;
  padding: 0;
  border-radius: 6px;
}

[data-events][data-view="compact"] .event-card-media {
  flex: none;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  border-radius: 0;
}

[data-events][data-view="compact"] .event-card-body {
  gap: 6px;
  padding: 10px 12px 12px;
}

[data-events][data-view="compact"] .event-card-top {
  gap: 6px;
}

[data-events][data-view="compact"] .event-card-category {
  padding: 3px 6px;
  font-size: 0.5625rem;
}

[data-events][data-view="compact"] .event-card-time {
  font-size: 0.75rem;
}

[data-events][data-view="compact"] .event-card-title {
  font-size: 0.875rem;
  line-height: 1.3;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

[data-events][data-view="compact"] .event-card-desc {
  display: none;
}

[data-events][data-view="compact"] .event-card-foot {
  font-size: 0.75rem;
}

[data-events][data-view="compact"] .event-card-more {
  font-size: 0.75rem;
}

.event-card-item {
  display: flex;
}

@keyframes event-card-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.event-card-item.is-appearing {
  animation: event-card-in 360ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .event-card-item.is-appearing {
    animation: none;
  }
}

.event-card {
  display: flex;
  flex: 1 1 auto;
  gap: 0;
  align-items: stretch;
  padding: 0;
  border-radius: 8px;
  background: var(--color-white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  color: inherit;
  text-decoration: none;
  transition: box-shadow var(--transition), transform var(--transition);
  overflow: hidden;
}

.event-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.event-card-media {
  position: relative;
  display: block;
  flex: 0 0 200px;
  width: 200px;
  min-height: 150px;
  align-self: stretch;
  overflow: hidden;
  border-radius: 0;
  background: var(--color-surface);
}

.event-card-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.event-card:hover .event-card-media img {
  transform: scale(1.03);
}

.event-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 8px 24px 8px 20px;
}

.event-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.event-card-category {
  display: inline-block;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.event-card-time {
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.event-card-title {
  display: block;
  color: #1a241a;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.event-card-desc {
  display: -webkit-box;
  overflow: hidden;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.event-card-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
}

.event-card-place {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.event-card-place img {
  flex: none;
  width: 14px;
  height: 14px;
}

.event-card-place span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-card-more {
  margin-left: auto;
  color: #2b3a2b;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  transition: color var(--transition);
}

.event-card:hover .event-card-more {
  color: var(--color-ink);
}

.event-card-more:hover {
  color: var(--color-ink);
}

.events-more {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.events-more[hidden],
.events-empty[hidden],
.events-group[hidden] {
  display: none;
}

.events-more-btn {
  min-width: 200px;
  border: 0;
  cursor: pointer;
}

.events-empty {
  margin-top: 16px;
  color: var(--color-text-muted);
}

@media (max-width: 1200px) {
  .events-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
  }

  .events-group-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1100px) {
  .event-card-media {
    flex-basis: 200px;
    width: 200px;
    height: 150px;
  }

  .event-card-body {
    gap: 12px;
    padding: 20px;
  }
}

@media (max-width: 900px) {
  .events-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .events-side {
    position: static;
  }

  .events-calendar-card {
    max-width: 360px;
  }
}

@media (max-width: 640px) {
  .events-page {
    padding: 28px 16px 48px;
  }

  .events-views {
    width: 100%;
  }

  .events-view {
    flex: 1 1 0;
    justify-content: center;
  }

  .events-calendar-card {
    max-width: none;
    padding: 14px;
  }

  .cal-day {
    font-size: 0.75rem;
  }

  .event-card {
    flex-direction: column;
    gap: 12px;
    padding: 0;
    border-radius: 6px;
  }

  .event-card-media {
    flex: none;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
    border-radius: 0;
  }

  .event-card-body {
    gap: 10px;
    padding: 0 16px 16px;
  }

  .event-card-title {
    font-size: 1.125rem;
  }

  [data-events][data-view="compact"] .events-group-list {
    grid-template-columns: minmax(0, 1fr);
  }

  [data-events][data-view="compact"] .event-card {
    flex-direction: row;
    gap: 0;
    padding: 0;
  }

  [data-events][data-view="compact"] .event-card-media {
    flex: 0 0 120px;
    width: 120px;
    height: auto;
    aspect-ratio: auto;
    min-height: 90px;
  }

  [data-events][data-view="compact"] .event-card-body {
    gap: 6px;
    padding: 10px 12px;
  }

  [data-events][data-view="compact"] .event-card-title {
    font-size: 0.9375rem;
  }

  .events-group-date {
    font-size: 0.875rem;
  }
}

.exc-main {
  padding: 80px var(--gutter);
  border-radius: 0 0 20px 20px;
  background: var(--color-white);
}

.exc-main-inner {
  display: grid;
  grid-template-columns: 600px minmax(0, 1fr);
  gap: 64px;
  align-items: start;

  max-width: none;
  margin: 0 auto;
}

.exc-main-gallery,
.exc-main-info {
  min-width: 0;
}

.exc-main-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.exc-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.3;
  color: #2b3a2b;
}

.exc-text {
  color: #4a554a;
  font-size: 1rem;
  line-height: 1.6;
}

.exc-text p {
  margin: 0 0 1.2em;
}

.exc-text p:last-child {
  margin-bottom: 0;
}

.exc-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
  padding: 16px;
  border-radius: 6px;
  background: #f5f5f5;
  color: #4a554a;
  font-size: 0.875rem;
  line-height: 1.5;
}

.exc-note-icon {
  flex: none;
  width: 20px;
  height: 20px;
}

.exc-note-text {
  min-width: 0;
}

.exc-note p {
  margin: 0;
}

.exc-note p + p {
  margin-top: 0.6em;
}

.exc-note a,
.exc-note strong {
  color: #1a1a1a;
  font-weight: 700;
}

.exc-cta {
  align-self: flex-start;
}

.exc-gallery {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.exc-gallery-main {
  cursor: zoom-in;
}

.exc-gallery-main {
  display: block;
  width: 100%;
  height: 300px;
  border-radius: 4px;
  object-fit: cover;
  transition: opacity 180ms ease;
}

.exc-gallery-main.is-fading {
  opacity: 0;
}

.exc-gallery-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.exc-gallery-nav {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--color-line);
  border-radius: 20px;
  background: var(--color-white);
  color: var(--color-ink);
  cursor: pointer;
  transition: border-color var(--transition), background-color var(--transition);
}

.exc-gallery-nav:hover {
  border-color: var(--color-ink);
}

.exc-gallery-nav:disabled {
  opacity: 0.4;
  cursor: default;
}

.exc-gallery-thumbs {
  display: flex;
  flex: 1 1 auto;
  gap: 12px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.exc-gallery-thumbs::-webkit-scrollbar {
  display: none;
}

.exc-thumb {
  flex: none;
  width: 130px;
  height: 98px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.exc-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exc-thumb.is-active {
  border: 2px solid #2b3a2b;
}

.exc-gallery-caption {
  color: var(--color-text-muted);
  font-size: 0.8125rem;
}

.exc-thematic {
  padding: 38px var(--gutter) 80px;
}

.exc-thematic-inner {
  width: 100%;
}

.exc-section-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.2;
  color: #2b3a2b;
}

.exc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 40px;
}

.exc-card[hidden] {
  display: none;
}

@media (max-width: 1100px) {
  .exc-main {
    padding: 48px var(--gutter);
  }

  .exc-main-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .exc-gallery-main {
    height: 260px;
  }
}

@media (max-width: 640px) {
  .exc-main {
    padding: 28px 16px 36px;
  }

  .exc-title,
  .exc-section-title {
    font-size: 1.625rem;
  }

  .exc-gallery-main {
    height: auto;
    aspect-ratio: 2 / 1;
  }

  .exc-thumb {
    width: 88px;
    height: 66px;
  }

  .exc-gallery-nav {
    width: 32px;
    height: 32px;
  }

  .exc-thematic {
    padding: 28px 16px 48px;
  }

  .exc-filters {
    margin: 16px 0 24px;
  }
}

.donation-page {
  padding: 60px var(--gutter) 80px;
}

.donation-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 64px;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
}

.donation-heading {
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.25;
  color: #2b3a2b;
}

.donation-text {
  color: #2b3a2b;
  font-size: 1rem;
  line-height: 1.6;
}

.donation-text p {
  margin: 0 0 1.1em;
}

.donation-text a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition);
}

.donation-text a:hover {
  text-decoration-color: currentColor;
}

.donation-form {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border-radius: 8px;
  background: var(--color-white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.donation-form-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
}

.donation-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.donation-preset {
  padding: 8px 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color var(--transition), background-color var(--transition);
}

.donation-preset:hover,
.donation-preset.is-active {
  border-color: var(--color-ink);
}

.donation-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.donation-label {
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
}

.donation-input {
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-ink);
  font-family: inherit;
  font-size: 1rem;
}

.donation-input::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

.donation-input:focus-visible {
  border-color: transparent;
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.donation-submit {
  width: 100%;
  margin-top: 4px;
}

.donation-error {
  padding: 12px 14px;
  border-radius: 6px;
  background: #fdecec;
  color: #a1241b;
  font-size: 0.875rem;
  line-height: 1.5;
}

.donation-note {
  color: var(--color-text-muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.donation-note a {
  color: inherit;
}

.donation-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 1000px) {
  .donation-inner {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .donation-page {
    padding: 32px 16px 48px;
  }

  .donation-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .donation-form {
    position: static;
    padding: 20px;
  }

  .donation-heading {
    font-size: 1.625rem;
  }
}

.search-panel {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 150;
  padding: 0 var(--gutter);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.search-panel-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 28px 0 20px;
}

.search-panel-form {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-panel-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 52px;
  padding: 0 18px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1.0625rem;
  color: var(--color-ink);
  background: var(--color-white);
}

.search-panel-input:focus {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.search-panel-submit {
  min-height: 52px;
  padding: 0 32px;
  border: 0;
  cursor: pointer;
}

.search-panel-close {
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--color-ink);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.search-panel-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.search-panel-filters .filter-pill {
  cursor: pointer;
}

.search-panel-status {
  margin: 14px 0 4px;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.search-suggest {
  display: flex;
  flex-direction: column;
  max-height: 52vh;
  overflow-y: auto;
  margin: 0;
  padding: 0;
}

.search-suggest-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-line);
}

.search-suggest-item.is-active,
.search-suggest-item:hover {
  background: var(--color-surface);
}

.search-suggest-section {
  flex: none;
  min-width: 120px;
  color: var(--color-text-dim);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.search-suggest-link {
  font-size: 1rem;
}

@media (max-width: 640px) {
  .search-panel-inner {
    padding: 16px 0 12px;
  }

  .search-panel-form {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .search-panel-input {
    height: 46px;
    font-size: 1rem;
    padding: 0 12px;
  }

  .search-panel-submit {
    min-height: 46px;
    padding: 0 14px;
    font-size: 0.75rem;
  }

  .search-panel-close {
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
  }

  .search-suggest-section {
    min-width: 0;
    width: 100%;
  }

  .search-suggest-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

.search-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.search-form {
  display: flex;
  gap: 12px;
}

.search-form .search-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
}

.search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-count,
.search-empty {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.search-results,
.page-text .search-results {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.search-result-section {
  display: block;
  color: var(--color-text-dim);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.search-result-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 1.0625rem;
  font-weight: 700;
}

.search-result-excerpt {
  margin: 6px 0 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

body.theme-grey {
  background: #f5f5f5;
}

html[data-a11y="on"] {
  --a11y-bg: #ffffff;
  --a11y-fg: #000000;
  --a11y-link: #0b3a8f;
  font-size: 18px;
}

html[data-a11y="on"][data-a11y-font="2"] {
  font-size: 22.5px;
}

html[data-a11y="on"][data-a11y-font="3"] {
  font-size: 27px;
}

html[data-a11y="on"][data-a11y-scheme="black"] {
  --a11y-bg: #000000;
  --a11y-fg: #ffffff;
  --a11y-link: #9cc4ff;
}

html[data-a11y="on"][data-a11y-scheme="blue"] {
  --a11y-bg: #9dd1ff;
  --a11y-fg: #063462;
  --a11y-link: #063462;
}

html[data-a11y="on"] body {
  background: var(--a11y-bg) !important;
  color: var(--a11y-fg) !important;
  font-family: Arial, Helvetica, sans-serif !important;
  line-height: 1.6 !important;
}

html[data-a11y="on"] body * {
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  border-color: currentColor !important;
  color: inherit !important;
  border-radius: 0 !important;
}

html[data-a11y="on"] a,
html[data-a11y="on"] a * {
  color: var(--a11y-link) !important;
  text-decoration: underline !important;
}

html[data-a11y="on"] .button,
html[data-a11y="on"] button {
  border: 1px solid currentColor !important;
  padding: 0.45em 0.9em !important;
}

html[data-a11y="on"] .topbar,
html[data-a11y="on"] .site-header,
html[data-a11y="on"] .site-footer {
  border-bottom: 1px solid currentColor !important;
}

html[data-a11y="on"] body *::before,
html[data-a11y="on"] body *::after {
  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
  content: none !important;
}

html[data-a11y="on"]:not([data-a11y-scheme="black"]) .hero-nav-btn img {
  filter: invert(1) !important;
}

html[data-a11y="on"] .hero-dot {
  border: 2px solid currentColor !important;
  border-radius: 50% !important;
  opacity: 1 !important;
}

html[data-a11y="on"] .hero-dot.is-active {
  background-color: currentColor !important;
}

html[data-a11y="on"] .hero-dot-ring {
  display: none !important;
}

html[data-a11y="on"][data-a11y-spacing="on"] body * {
  letter-spacing: 0.04em !important;
  word-spacing: 0.12em !important;
  line-height: 1.9 !important;
}

.a11y-img-alt {
  display: none;
}

html[data-a11y="on"][data-a11y-images="off"] img,
html[data-a11y="on"][data-a11y-images="off"] svg,
html[data-a11y="on"][data-a11y-images="off"] picture {
  display: none !important;
}

html[data-a11y="on"][data-a11y-images="off"] .icon-button img,
html[data-a11y="on"][data-a11y-images="off"] .hero-nav-btn img,
html[data-a11y="on"][data-a11y-images="off"] .exh-thumbs img {
  display: block !important;
}

html[data-a11y="on"][data-a11y-scheme="black"] .icon-button img {
  filter: invert(1) !important;
}

html[data-a11y="on"][data-a11y-images="off"] .a11y-img-alt {
  display: block;
  margin: 0.25em 0;
  font-size: 0.8em;
  font-style: italic;
  text-decoration: none !important;
  color: inherit !important;
}

html[data-a11y="on"] a .a11y-img-alt {
  text-decoration: none !important;
}

html[data-a11y="on"] .site-header,
html[data-a11y="on"] .site-header-inner,
html[data-a11y="on"] .site-header-brand,
html[data-a11y="on"] .site-header-tools {
  height: auto !important;
  min-height: 0 !important;
}

html[data-a11y="on"] .site-header-inner {
  display: block !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

html[data-a11y="on"] .brand,
html[data-a11y="on"] .site-nav,
html[data-a11y="on"] .site-header-tools {
  position: static !important;
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 0 10px !important;
  transform: none !important;
}

html[data-a11y="on"] .site-header-tools {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 12px !important;
}

html[data-a11y="on"] .site-nav-list {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px 18px !important;
}

html[data-a11y="on"] .brand {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 16px !important;
}

html[data-a11y="on"] .brand img {
  height: 48px !important;
  width: auto !important;
  object-fit: contain;
}

html[data-a11y="on"] .brand .a11y-img-alt {
  display: inline !important;
  margin: 0 12px 0 0 !important;
}

html[data-a11y="on"] .ticket-float {
  border: 1px solid currentColor !important;
  background: var(--a11y-bg) !important;
  color: var(--a11y-fg) !important;
}

html[data-a11y="on"] .a11y-panel,
html[data-a11y="on"] .a11y-panel * {
  background-image: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

html[data-a11y="on"] .a11y-panel {
  background: var(--a11y-bg, #ffffff) !important;
  color: var(--a11y-fg, #1a1a1a) !important;
  border: 1px solid var(--a11y-fg, #1a1a1a) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18) !important;
}

html[data-a11y="on"] .a11y-panel .a11y-option,
html[data-a11y="on"] .a11y-panel .a11y-close,
html[data-a11y="on"] .a11y-panel .a11y-reset {
  border: 1px solid var(--a11y-fg, #1a1a1a) !important;
  color: var(--a11y-fg, #1a1a1a) !important;
  background: transparent !important;
}

html[data-a11y="on"] .a11y-panel .a11y-option.is-active,
html[data-a11y="on"] .a11y-panel .a11y-option:hover,
html[data-a11y="on"] .a11y-panel .a11y-close:hover {
  background: var(--a11y-fg, #1a1a1a) !important;
  color: var(--a11y-bg, #ffffff) !important;
}

html[data-a11y="on"] .a11y-panel .a11y-reset {
  border-color: transparent !important;
  text-decoration: underline !important;
}

.a11y-panel {
  position: fixed;
  top: 96px;
  right: 16px;
  z-index: 200;
  width: 360px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 128px);
  overflow-y: auto;
  padding: 20px;
  border: 1px solid var(--a11y-fg, #1a1a1a);
  background: var(--a11y-bg, #ffffff);
  color: var(--a11y-fg, #1a1a1a);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

.a11y-title {
  margin: 0 0 16px;
  font-size: 1.1em;
  line-height: 1.3;
}

.a11y-group {
  margin-bottom: 14px;
}

.a11y-group-title {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.a11y-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.a11y-option,
.a11y-close,
.a11y-reset {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--a11y-fg, #1a1a1a);
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition);
}

.a11y-option:hover,
.a11y-close:hover {
  background: var(--a11y-fg, #1a1a1a);
  color: var(--a11y-bg, #ffffff);
}

.a11y-option.is-active {
  background: var(--a11y-fg, #1a1a1a);
  color: var(--a11y-bg, #ffffff);
}

.a11y-option:focus-visible,
.a11y-close:focus-visible,
.a11y-reset:focus-visible {
  outline: 3px solid var(--a11y-link, #0b3a8f);
  outline-offset: 2px;
}

.a11y-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.a11y-reset {
  padding-left: 0;
  border-color: transparent;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .a11y-panel {
    top: auto;
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: auto;
    max-height: 78vh;
  }
}

.page-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 64px var(--gutter);
  border-radius: 0 0 20px 20px;

  background-image: var(--page-hero-image, url("../img/page-hero.jpg"));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--color-white);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--page-hero-overlay, rgba(25, 25, 25, 0.7));
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  line-height: 1.3;
}

.breadcrumbs-item {
  color: #eaeaea;
  opacity: 0.6;
  transition: opacity var(--transition);
}

.breadcrumbs-item-current {
  color: #f2c94c;
  opacity: 1;
}

.page-hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: normal;
}

.promo-card {
  display: flex;
  width: 100%;
  background: var(--color-ink);
  border-radius: 8px;
  overflow: hidden;
}

.promo-card-media {
  flex: none;
  width: 400px;
  height: 300px;
}

.promo-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-card-body {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 40px 48px;
}

.promo-card-lead {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-white);
}

.promo-card-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.promo-card-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}

a.promo-card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 4px;
  background: var(--color-accent);
  color: var(--color-ink);
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--transition);
}

a.promo-card-button:hover {
  background: #f0bd00;
  color: var(--color-ink);
}

@media (max-width: 900px) {
  .promo-card {
    flex-direction: column;
  }

  .promo-card-media {
    width: 100%;
    height: 220px;
  }

  .promo-card-body {
    padding: 28px 24px;
    gap: 20px;
  }

  a.promo-card-button {
    white-space: normal;
    text-align: left;
  }
}

.rules {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
  padding: 80px var(--gutter);
  background: var(--color-white);
}

.exh-days:empty {
  display: none;
}

.page-text {
  width: 100%;

  max-width: none;
  color: var(--color-ink);
  font-size: 1rem;
  line-height: 1.6;
}

.page-text:has(.exh-gallery) {
  display: grid;

  grid-template-columns: minmax(300px, 600px) minmax(0, 1fr);
  gap: 48px 64px;
  align-items: start;
}

.page-text:has(.exh-gallery) > .exh-gallery {
  max-width: none;
  margin-bottom: 0;
}

.page-text-body {
  min-width: 0;
}

@media (min-width: 1181px) {
  .page-text:has(.exh-gallery) > .exh-gallery {
    position: sticky;

    top: 112px;
  }
}

@media (max-width: 900px) {
  .page-text:has(.exh-gallery) {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

:where(
  .page-text,
  .exh-lead,
  .perm-text-block,
  .exc-text,
  .vex-intro,
  .vex-text,
  .faq-answer-inner,
  .tickets-cards,
  .tickets-info
) :where([style*="font-family"], [style*="FONT-FAMILY"], font[face]) {
  font-family: inherit !important;
}

.page-text .exh-gallery {
  max-width: 480px;
  margin-bottom: 32px;
}

.page-text .exh-thumbs-nav {
  border: 1px solid var(--color-line);
  background: var(--color-white);
  color: var(--color-ink);
}

.page-text .exh-thumbs-nav:hover {
  border-color: #d8d8d8;
  background: #f5f5f5;
}

.ticket-float {
  position: fixed;
  right: var(--gutter);
  bottom: 88px;
  z-index: 55;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 32px;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), background-color var(--transition);
}

.ticket-float.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.ticket-float:hover {
  background: #f0bd00;
}

.edit-bar {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  transform: translateX(-50%);
}

.edit-bar-id {
  padding: 0 12px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.45);
}

.edit-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  transition: background-color var(--transition), color var(--transition);
}

.edit-bar-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
}

.edit-bar-link-main {
  background: var(--color-accent);
  color: var(--color-ink);
  font-weight: 600;
}

.edit-bar-link-main:hover {
  background: var(--color-accent);
  color: var(--color-ink);
}

.edit-bar-icon {
  flex: none;
  opacity: 0.9;
}

.pdf-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin: 32px 0 8px;
}

.pdf-frame {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-white);
}

.pdf-open {
  align-self: flex-start;
  font-size: 0.875rem;
  color: var(--color-text-dim);
}

.pdf-section {
  padding-top: 56px;
  padding-bottom: 56px;
}

.page-text h2 {
  margin: 0 0 12px;
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.25;
}

.page-text h2:not(:first-child) {
  margin-top: 32px;
}

.page-text p {
  margin: 0 0 14px;
}

.page-text ul {
  margin: 0 0 16px;
  padding-left: 22px;
  list-style: disc;
}

.page-text ol {
  margin: 0 0 16px;
  padding-left: 22px;
  list-style: decimal;
}

.page-text li {
  margin-bottom: 8px;
}

.page-text li:last-child {
  margin-bottom: 0;
}

.page-text a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(26, 26, 26, 0.3);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.18s ease;
}

.page-text a:hover {
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
}

.page-text .button {
  margin-top: 8px;
}

/* Word-вставки: висячий отступ первой строки (text-indent: -18pt) выносит
   маркер и начало строки за левый край — на телефоне текст уезжает за экран.
   Гасим отступ в текстовых блоках, оформление задаёт тема. */
:where(
  .page-text,
  .page-text-body,
  .exh-lead,
  .exh-text,
  .exc-text,
  .vex-intro,
  .vex-text,
  .perm-text-block,
  .faq-answer-inner,
  .tickets-text
) :is(p, li, div, h2, h3, h4, h5, h6) {
  text-indent: 0 !important;
}

:where(
  .page-text,
  .page-text-body,
  .exh-lead,
  .exh-text,
  .exc-text,
  .vex-intro,
  .vex-text,
  .perm-text-block,
  .faq-answer-inner,
  .tickets-text
) h1 {
  margin: 40px 0 16px;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
}

:where(
  .page-text, .page-text-body, .exh-lead, .exh-text, .exc-text,
  .vex-intro, .vex-text, .perm-text-block, .faq-answer-inner, .tickets-text
) h3 {
  margin: 28px 0 10px;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
}

:where(
  .page-text, .page-text-body, .exh-lead, .exh-text, .exc-text,
  .vex-intro, .vex-text, .perm-text-block, .faq-answer-inner, .tickets-text
) h4 {
  margin: 24px 0 8px;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
}

:where(
  .page-text, .page-text-body, .exh-lead, .exh-text, .exc-text,
  .vex-intro, .vex-text, .perm-text-block, .faq-answer-inner, .tickets-text
) h5 {
  margin: 20px 0 8px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

:where(
  .page-text, .page-text-body, .exh-lead, .exh-text, .exc-text,
  .vex-intro, .vex-text, .perm-text-block, .faq-answer-inner, .tickets-text
) h6 {
  margin: 16px 0 6px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.72;
}

:where(
  .page-text, .page-text-body, .exh-lead, .exh-text, .exc-text,
  .vex-intro, .vex-text, .perm-text-block, .faq-answer-inner, .tickets-text
) > :is(h1, h2, h3, h4, h5, h6):first-child {
  margin-top: 0;
}

:where(
  .page-text, .page-text-body, .exh-lead, .exh-text, .exc-text,
  .vex-intro, .vex-text, .perm-text-block, .faq-answer-inner, .tickets-text
) blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--color-accent);
  font-size: 1.0625rem;
  font-style: italic;
  line-height: 1.6;
}

:where(
  .page-text, .page-text-body, .exh-lead, .exh-text, .exc-text,
  .vex-intro, .vex-text, .perm-text-block, .faq-answer-inner, .tickets-text
) blockquote p:last-child {
  margin-bottom: 0;
}

:where(
  .page-text, .page-text-body, .exh-lead, .exh-text, .exc-text,
  .vex-intro, .vex-text, .perm-text-block, .faq-answer-inner, .tickets-text
) table {
  width: 100%;
  margin: 0 0 20px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

:where(
  .page-text, .page-text-body, .exh-lead, .exh-text, .exc-text,
  .vex-intro, .vex-text, .perm-text-block, .faq-answer-inner, .tickets-text
) :is(th, td) {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-line);
}

:where(
  .page-text, .page-text-body, .exh-lead, .exh-text, .exc-text,
  .vex-intro, .vex-text, .perm-text-block, .faq-answer-inner, .tickets-text
) th {
  background: var(--color-surface);
  font-weight: 700;
}

:where(
  .page-text, .page-text-body, .exh-lead, .exh-text, .exc-text,
  .vex-intro, .vex-text, .perm-text-block, .faq-answer-inner, .tickets-text
) caption {
  padding: 0 0 10px;
  text-align: left;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.sched-table table,
.tickets-table table {
  margin: 0;
  border: 0;
  border-radius: 0;
  font-size: inherit;
}

:where(
  .page-text, .page-text-body, .exh-lead, .exh-text, .exc-text,
  .vex-intro, .vex-text, .perm-text-block, .faq-answer-inner, .tickets-text
) img {

  display: inline-block;
  vertical-align: middle;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

:where(
  .page-text, .page-text-body, .exh-lead, .exh-text, .exc-text,
  .vex-intro, .vex-text, .perm-text-block, .faq-answer-inner, .tickets-text
) img.alignleft,
:where(
  .page-text, .page-text-body, .exh-lead, .exh-text, .exc-text,
  .vex-intro, .vex-text, .perm-text-block, .faq-answer-inner, .tickets-text
) img[style*="float"] {
  float: left;
  margin: 4px 20px 14px 0;
}

:where(
  .page-text, .page-text-body, .exh-lead, .exh-text, .exc-text,
  .vex-intro, .vex-text, .perm-text-block, .faq-answer-inner, .tickets-text
) img[style*="float:right"],
:where(
  .page-text, .page-text-body, .exh-lead, .exh-text, .exc-text,
  .vex-intro, .vex-text, .perm-text-block, .faq-answer-inner, .tickets-text
) img[style*="float: right"],
:where(
  .page-text, .page-text-body, .exh-lead, .exh-text, .exc-text,
  .vex-intro, .vex-text, .perm-text-block, .faq-answer-inner, .tickets-text
) img.alignright {
  float: right;
  margin: 4px 0 14px 20px;
}

:where(
  .page-text, .page-text-body, .exh-lead, .exh-text, .exc-text,
  .vex-intro, .vex-text, .perm-text-block, .faq-answer-inner, .tickets-text
) img.aligncenter {
  display: block;
  margin: 0 auto 14px;
}

:where(
  .page-text, .page-text-body, .exh-lead, .exh-text, .exc-text,
  .vex-intro, .vex-text, .perm-text-block, .faq-answer-inner, .tickets-text
)::after {
  content: "";
  display: block;
  clear: both;
}

:where(
  .page-text, .page-text-body, .exh-lead, .exh-text, .exc-text,
  .vex-intro, .vex-text, .perm-text-block, .faq-answer-inner, .tickets-text
) pre {
  margin: 0 0 20px;
  padding: 16px 18px;
  overflow-x: auto;
  background: var(--color-surface);
  border-radius: 8px;
  font-size: 0.875rem;
  line-height: 1.55;
}

:where(
  .page-text, .page-text-body, .exh-lead, .exh-text, .exc-text,
  .vex-intro, .vex-text, .perm-text-block, .faq-answer-inner, .tickets-text
) code {
  padding: 1px 5px;
  background: var(--color-surface);
  border-radius: 4px;
  font-size: 0.9em;
}

:where(
  .page-text, .page-text-body, .exh-lead, .exh-text, .exc-text,
  .vex-intro, .vex-text, .perm-text-block, .faq-answer-inner, .tickets-text
) pre code {
  padding: 0;
  background: none;
  font-size: inherit;
}

:where(
  .page-text, .page-text-body, .exh-lead, .exh-text, .exc-text,
  .vex-intro, .vex-text, .perm-text-block, .faq-answer-inner, .tickets-text
) hr {
  margin: 32px 0;
  border: 0;
  border-top: 1px solid var(--color-line);
}

:where(
  .page-text, .page-text-body, .exh-lead, .exh-text, .exc-text,
  .vex-intro, .vex-text, .perm-text-block, .faq-answer-inner, .tickets-text
) :is(iframe, video, embed) {
  display: block;
  max-width: 100%;
  margin: 8px 0 20px;
  border: 0;
  border-radius: 8px;
}

:where(
  .page-text, .page-text-body, .exh-lead, .exh-text, .exc-text,
  .vex-intro, .vex-text, .perm-text-block, .faq-answer-inner, .tickets-text
) .alignleft {
  text-align: left;
}

:where(
  .page-text, .page-text-body, .exh-lead, .exh-text, .exc-text,
  .vex-intro, .vex-text, .perm-text-block, .faq-answer-inner, .tickets-text
) .aligncenter {
  text-align: center;
}

:where(
  .page-text, .page-text-body, .exh-lead, .exh-text, .exc-text,
  .vex-intro, .vex-text, .perm-text-block, .faq-answer-inner, .tickets-text
) .alignright {
  text-align: right;
}

:where(
  .page-text, .page-text-body, .exh-lead, .exh-text, .exc-text,
  .vex-intro, .vex-text, .perm-text-block, .faq-answer-inner, .tickets-text
) .alignjustify {
  text-align: justify;
}

.events-period a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease;
}

.events-period a:hover,
.events-period a:focus-visible {
  border-bottom-color: currentColor;
}

.page-text:has(.events-list) {
  max-width: none;
}

.page-text .events-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.rules-center {
  align-items: center;
}

.page-text-center {
  margin-inline: auto;

  max-width: none;
  font-size: 1.125rem;
  line-height: 1.7;
}

.page-text-center p {
  margin-bottom: 18px;
}

.page-text-center h2 {
  font-size: 1.5rem;
}

.page-text-center figcaption {
  font-size: 0.875rem;
}

html.bvi-active .site-header {
  position: static;
}

.page-text figure {
  margin: 28px 0 32px;
}

.page-text figure img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 4px;
}

.page-text figcaption {
  margin-top: 10px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #4a554a;
  text-align: center;
}

.page-text .page-figure-narrow {
  max-width: 420px;
  margin-inline: auto;
}

.page-text .page-figure-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.page-text .page-figure-pair img {
  width: 100%;
}

.page-text .page-figure-pair figcaption {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .page-text figure {
    margin: 20px 0 24px;
  }

  .page-text .page-figure-pair {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .page-text .page-figure-narrow {
    max-width: none;
  }

  .page-text figcaption {
    text-align: left;
  }
}

.page-text:has(.sched) {
  max-width: none;
}

.sched {
  display: grid;
  grid-template-columns: 740px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.sched-table {
  border: 1px solid var(--color-line);
  border-radius: 8px;
  overflow: hidden;
}

.sched-table table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.sched-table th,
.sched-table td {
  padding: 13.5px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-line);
}

.sched-table th:first-child,
.sched-table td:first-child {
  width: 50%;
}

.sched-table th:last-child,
.sched-table td:last-child {
  padding-right: 32px;
  text-align: right;
}

.sched-table thead th {
  background: #f9f9f9;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.4;
  color: #4a554a;
  text-transform: uppercase;
  white-space: nowrap;
}

.sched-table tbody td {
  font-size: 0.875rem;
  line-height: 1.4;
  color: #1a1a1a;
}

.sched-table tbody tr:last-child td {
  border-bottom: 0;
}

.sched-table tbody tr:nth-child(even):not(.sched-weekend) {
  background: #fcfcfc;
}

.sched-day {
  font-weight: 500;
}

.sched-off {
  font-weight: 600;
  color: #4a554a;
}

.sched-weekend {
  background: #fffdf0;
}

.sched-weekend .sched-day {
  font-weight: 700;
}

.sched-note {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #f0f7ff;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.45;
  color: #2f80ed;
}

.sched-note img {
  flex: none;
}

.sched-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sched-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sched-label {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4a554a;
}

.sched-label-lg {
  font-size: 0.875rem;
}

.sched-address {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: #1a1a1a;
}

.sched-map {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 240px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: #ebebeb;
  color: inherit;
  text-decoration: none;
  transition: border-color var(--transition);
}

.sched-map:hover {
  border-color: var(--color-accent);
}

.sched-map-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
}

.sched-map-link {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: underline;
}

.sched-route {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sched-route li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #1a1a1a;
}

.sched-route img {
  flex: none;
}

.sched-contacts {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--color-line);
}

.sched-contacts-row {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.sched-contacts-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sched-value {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
  color: #1a1a1a;
}

.sched-value a {
  color: inherit;
  text-decoration: none;
}

.sched-value a:hover {
  text-decoration: underline;
}

.sched-value-role {
  font-weight: 400;
  color: #666;
}

.sched-value-underline {
  text-decoration: underline;
}

.sched-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}

.sched-social {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid var(--color-line);
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 800;
  color: #000;
  text-decoration: none;
  transition: border-color var(--transition);
}

.sched-social:hover {
  border-color: var(--color-accent);
}

@media (max-width: 1180px) {
  .sched {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .sched-aside {
    max-width: 492px;
  }
}

@media (max-width: 640px) {

  .sched-table {
    overflow: hidden;
  }

  .sched-table table {
    min-width: 0;
  }

  .sched-table th,
  .sched-table td {
    padding: 12px;
  }

  .sched-table th:last-child,
  .sched-table td:last-child {
    padding-right: 12px;
  }

  .sched-table thead th {
    white-space: normal;
  }

  .sched-table tbody td {
    font-size: 0.8125rem;
  }

  .sched-contacts-row {
    gap: 24px;
  }

  .sched-aside {
    max-width: none;
  }
}

.page-text:has(.tickets) {
  max-width: none;
}

.tickets {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.tickets-table {
  border: 1px solid var(--color-line);
  border-radius: 8px;
  overflow: auto;
}

/* Таблица приходит из визуального редактора: пустые <th> и ячейки без классов.
   Поэтому всё поведение завязано на номер колонки, а не на класс. */
.tickets-table table {
  width: 100%;
  border-collapse: collapse;
}

.tickets-table thead:not(:has(th:not(:empty))) {
  display: none;
}

.tickets-table th,
.tickets-table td {
  padding: 13.5px 16px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--color-line);
}

.tickets-table th {
  background: var(--color-surface);
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  text-transform: uppercase;
  color: #4a554a;
}

.tickets-table:has(thead th:not(:empty)) th:nth-child(1) {
  width: 24%;
}

.tickets-table:has(thead th:not(:empty)) th:nth-child(2) {
  width: 26%;
}

.tickets-table:has(thead th:not(:empty)) th:nth-child(3) {
  width: 12%;
  white-space: nowrap;
}

.tickets-table:has(thead th:not(:empty)) th:nth-child(4) {
  width: auto;
}

.tickets-table td {
  background: var(--color-white);
  font-size: 14px;
  line-height: 19px;
  color: var(--color-ink);
}

.tickets-table td:nth-child(1) {
  font-weight: 600;
}

.tickets-table td:nth-child(3) {
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  white-space: nowrap;
}

.tickets-table td:nth-child(4) {
  min-width: 260px;
  font-size: 13px;
  line-height: 18px;
  color: #4a554a;
}

/* Совместимость: если в разметке всё-таки есть классы, они работают так же. */
.tickets-type {
  font-weight: 600;
}

.tickets-price {
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  white-space: nowrap;
}

.tickets-note {
  font-size: 13px;
  line-height: 18px;
  color: #4a554a;
}

.tickets-doc-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 19px;
}

.tickets-doc-line img {
  width: 16px;
  height: 16px;
  flex: none;
}

.tickets-doc-line a {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-position: from-font;
}

.tickets-doc-hint {
  font-size: 13px;
  color: #4a554a;
}

.tickets-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.tickets-cards:not(:has(a.tickets-card)) {
  display: block;
  max-width: 820px;
}

.tickets-cards:not(:has(a.tickets-card)) p {
  margin: 0 0 14px;
}

.tickets-text {
  max-width: 820px;
  font-size: 1rem;
  line-height: 1.6;
}

.tickets-text p {
  margin: 0 0 14px;
}

.tickets-text p:last-child {
  margin-bottom: 0;
}

a.tickets-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-white);
  text-decoration: none;
  color: var(--color-ink);
  transition: border-color var(--transition);
}

a.tickets-card:hover {
  border-color: var(--color-ink);
}

.tickets-card-icon {
  display: flex;
  flex: none;
  padding: 12px;
  border-radius: 6px;
  background: var(--color-surface);
}

.tickets-card-icon img {
  width: 24px;
  height: 24px;
}

.tickets-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tickets-card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.tickets-card-link {
  font-size: 13px;
  font-weight: 700;
  color: #997300;
  text-decoration: underline;
  text-underline-position: from-font;
}

.tickets-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-white);
}

.tickets-info-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.tickets-info p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #4a554a;
}

.tickets-info ul {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #4a554a;
}

.tickets-info li {
  margin: 0 0 6px;
}

.tickets-info li:last-child {
  margin-bottom: 0;
}

.tickets-info a {
  color: var(--color-ink);
}

.tickets-info a.tickets-inline-link {
  color: #ffcb05;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  text-underline-position: from-font;
}

@media (max-width: 1100px) {
  .tickets-table th,
  .tickets-table td {
    padding: 12px 14px;
  }
}

@media (max-width: 900px) {
  .tickets-cards {
    grid-template-columns: 1fr;
  }

  .tickets {
    gap: 32px;
  }

  /* Карточки: строка таблицы разбирается в блок — тип мелким капсом, категория
     под ним, цена справа, пояснение на всю ширину. Правила завязаны на номер
     колонки, поэтому работают и на таблице из визуального редактора,
     где у ячеек нет классов. */
  .tickets-table {
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  .tickets-table table {
    min-width: 0;
    table-layout: auto;
  }

  .tickets-table thead {
    display: none;
  }

  .tickets-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-line);
  }

  .tickets-table tbody tr:last-child {
    border-bottom: 0;
  }

  .tickets-table tbody th,
  .tickets-table tbody td {
    padding: 0;
    border: 0;
    background: transparent;
    min-width: 0;
  }

  .tickets-table td:nth-child(1),
  .tickets-table .tickets-type {
    grid-column: 1;
    grid-row: 1;
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #4a554a;
  }

  .tickets-table td:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
    font-size: 0.9375rem;
    line-height: 1.35;
  }

  .tickets-table td:nth-child(3),
  .tickets-table .tickets-price {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: right;
    white-space: nowrap;
  }

  .tickets-table td:nth-child(4),
  .tickets-table .tickets-note {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 6px;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #4a554a;
  }

  /* строки не из четырёх ячеек — обычный столбик */
  .tickets-table tbody tr:not(:has(td:nth-child(4))) td {
    grid-column: 1 / -1;
    grid-row: auto;
    text-align: left;
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .tickets-doc-line {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .tickets-info {
    padding: 18px;
  }
}

.page-text:has(.rules-page) {
  max-width: none;
}

.rules-page {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.rules-list-dmmc {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rules-list-dmmc li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px;
  border-radius: 20px;
  color: var(--color-ink);
  transition: background-color var(--transition);
}

.rules-list-dmmc li::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--color-line);
}

.rules-list-dmmc li:last-child::after {
  display: none;
}

.rules-list-dmmc li:hover {
  background: var(--color-surface);
}

.rules-num {
  flex: none;
  min-width: 20px;
  font-size: 14px;
  font-weight: 800;
  line-height: 20px;
}

.rules-text {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
}

a.rules-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 43px;
  padding: 0 24px;
  border-radius: 4px;
  background: var(--color-accent);
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--transition);
}

a.rules-download:hover {
  background: #f0bd00;
  color: var(--color-ink);
}

a.rules-download img {
  width: 16px;
  height: 16px;
  flex: none;
}

@media (max-width: 640px) {
  .rules-page {
    gap: 32px;
  }

  .rules-list-dmmc li {
    align-items: flex-start;
    gap: 14px;
    padding: 14px 12px;
    border-radius: 8px;
  }

  .rules-num,
  .rules-text {
    line-height: 22px;
  }

  .rules-text {
    font-size: 14px;
  }

  a.rules-download {
    height: auto;
    min-height: 44px;
    padding: 12px 20px;
    white-space: normal;
    text-align: left;
  }
}

.rules-list {
  width: 100%;
  margin: 0;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  list-style: none;
}

.rule {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px;
  border-radius: 20px;
  color: var(--color-ink);
}

.rule + .rule {
  border-top: 1px solid var(--color-line);
}

.rule-num {
  flex: none;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.rules-list {
  counter-reset: rule;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rules-list > li {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px;
  border-radius: 20px;
  color: var(--color-ink);
}

.rules-list > li + li {
  border-top: 1px solid var(--color-line);
}

.rules-list > li::before {
  counter-increment: rule;
  content: counter(rule, decimal-leading-zero);
  flex: none;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.rules-list > li p {
  margin: 0;
}

.rule-text {
  flex: 1 1 auto;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
}

.rules-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  background: var(--color-accent);
  color: var(--color-ink);
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: background-color var(--transition);
}

.rules-download:hover {
  background: #f0bd00;
}

.page-hero-exhibition {
  padding-bottom: 24px;
}

.page-hero-exhibition::before {
  background: rgba(18, 18, 18, 0.78);
  -webkit-backdrop-filter: blur(10px) saturate(0.85);
  backdrop-filter: blur(10px) saturate(0.85);
}

.exh-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.exh-meta-group {
  display: flex;
  align-items: center;
  gap: 35px;
  flex-wrap: wrap;
}

.exh-meta-date {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-white);
  white-space: nowrap;
}

.exh-meta-place {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-white);
  white-space: nowrap;
}

.exh-meta-place img,
.exh-card-row img {
  flex: none;
  width: 14px;
  height: 14px;
}

.exh-days {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.exh-age {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 62px;
  height: 39px;
  border: 1px solid var(--color-white);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
}

.page-hero-exhibition .exh-hero-grid {
  display: grid;

  grid-template-columns: 600px minmax(0, 1fr);
  gap: 64px;
  padding-block: 60px;
  width: 100%;
}

@media (min-width: 1181px) {
  .page-hero-exhibition .exh-hero-grid > .exh-gallery {
    position: sticky;
    top: 112px;
    align-self: start;
  }
}

.exh-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.exh-gallery-main {
  position: relative;

  aspect-ratio: 3 / 4;
  max-height: calc(100vh - 262px);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.exh-gallery-main img,
.exh-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exh-gallery-main img {
  transition: opacity 260ms ease;
}

.exh-gallery-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.45);
  color: var(--color-white);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.exh-thumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 53px;
  min-width: 0;
}

.exh-thumbs-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 20px;
  color: var(--color-white);
  transition: opacity var(--transition), background-color var(--transition);
}

.exh-thumbs-icon {
  display: block;
  width: 16px;
  height: 16px;
}

.exh-thumbs-nav:hover {
  opacity: 0.7;
}

.exh-thumbs-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;

  overflow-x: auto;
  scrollbar-width: none;
}

.exh-thumbs-row::-webkit-scrollbar {
  display: none;
}

.exh-thumb {
  flex: none;
  width: 98px;
  height: 130px;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.exh-thumb.is-active {
  border: 2px solid #2b3a2b;
}

.exh-thumb:hover {
  border-color: rgba(255, 255, 255, 0.7);
}

.exh-gallery-ghost {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.exh-gallery-main[data-gallery-main-box].is-morphing {
  transition: height 320ms ease;
}

:is(.exh-gallery-main, .kids-gallery-main) {
  cursor: zoom-in;
}

@media (hover: hover) {
  :is(.exh-gallery-main, .kids-gallery-main)::after {
    content: "";
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.55);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='8.6' cy='8.6' r='5.4' stroke='%23fff' stroke-width='1.6'/%3E%3Cpath d='M12.8 12.8l3.6 3.6' stroke='%23fff' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M8.6 6.2v4.8M6.2 8.6h4.8' stroke='%23fff' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  :is(.exh-gallery-main, .kids-gallery-main):hover::after,
  :is(.exh-gallery-main, .kids-gallery-main):focus-within::after,
  .exc-gallery:hover::after,
  .exc-gallery:focus-within::after {
    opacity: 1;
  }

  .exc-gallery::after {
    content: "";
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.55);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='8.6' cy='8.6' r='5.4' stroke='%23fff' stroke-width='1.6'/%3E%3Cpath d='M12.8 12.8l3.6 3.6' stroke='%23fff' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M8.6 6.2v4.8M6.2 8.6h4.8' stroke='%23fff' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }
}

.exh-text,
.perm-text-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  min-width: 0;
}

.exh-lead {
  display: flex;
  flex-direction: column;
  gap: 1.6em;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-white);
}

.exh-cta {
  padding: 12px 32px;
  line-height: 1.3;
}

.exh-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 38px var(--gutter) 80px;
  background: #f5f5f5;
}

.exh-list-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.exh-list-title {
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.2;
  color: #1a241a;
}

.filters {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;

  min-width: 0;
  max-width: 100%;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border: 1px solid var(--color-line);
  border-radius: 5px;
  background: var(--color-white);
  color: #1a241a;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color var(--transition), border-color var(--transition),
    color var(--transition);
}

.filter-pill:hover {
  border-color: #1a241a;
}

a.filter-pill,
a.filter-pill:hover {
  text-decoration: none;
}

.filter-pill.is-active {
  border-color: transparent;
  background: var(--color-accent);
  font-weight: 700;
}

.exh-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.exh-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  background: var(--color-white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: box-shadow var(--transition), transform var(--transition);
}

.exh-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.exh-card-img {
  display: block;
  height: 225px;
  overflow: hidden;
}

.exh-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.exh-card:hover .exh-card-img img {
  transform: scale(1.03);
}

.exh-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
}

.exh-card-title {

  display: block;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1a241a;
}

.exh-card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.exh-card-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.exh-card-row span {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: #4a554a;
}

.exh-card-more {

  margin-top: auto;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  color: #2b3a2b;
}

.exh-card:hover .exh-card-more {
  color: var(--color-ink);
}

.filter-pill,
.exh-card-body,
.exh-card-meta,
.exh-card-more,
.exh-meta,
.exh-meta-date,
.exh-meta-place,
.exh-days,
.exh-age {
  line-height: normal;
}

.news-list {

  padding-bottom: 150px;
}

.exh-card-desc {

  padding-right: 22px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #4a554a;
  overflow: hidden;
}

.perm .exh-thumbs-nav {
  color: var(--color-ink);
}

.perm .exh-gallery-main {
  aspect-ratio: 660 / 370;
  max-height: none;
}

.perm {
  padding: 64px var(--gutter);
  background: var(--color-white);
  border-radius: 0 0 20px 20px;
}

.perm-grid {
  display: grid;
  grid-template-columns: 600px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.perm-title {
  font-size: 2.1875rem;
  font-weight: 900;
  line-height: 1.4;
  color: #2b3a2b;
}

.perm-lead {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: #4a554a;
}

@media (min-width: 641px) {
  /* стрелки и точки на одной оси: центр кнопки 40 px совпадает
     с центром точки (bottom 40 px + высота 10 px / 2) */
  .hero-v2 .hero-nav {
    bottom: 25px;
  }

  .hero-v2 .hero-dots {
    bottom: 40px;
  }

  .hero-v2 .hero-inner {
    padding-bottom: 86px;
  }
}

.link-more-large {
  font-size: 1.25rem;
}

.visit-plain {
  background: var(--color-white);
}

.exh-list-home {
  padding-bottom: 41px;
}

.exh-all {

  display: block;
  width: fit-content;
  margin-inline: auto;
  font-size: 0.875rem;
  text-align: center;
}

.button-large {
  min-height: 48px;
  padding: 14px 24px;
  font-size: 0.875rem;
}

.button-small {
  min-height: 36px;
  padding: 9px 16px;
  font-size: 0.8125rem;
}

.button-outline {
  border: 1px solid var(--color-ink);
  background: transparent;
  color: var(--color-ink);
}

.button-outline:hover {
  background: rgba(26, 26, 26, 0.06);
}

.icon-24 {
  flex: none;
  width: 24px;
  height: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.field-input,
.field-select,
.field-textarea {
  width: 100%;
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: normal;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field-input,
.field-select {
  height: 48px;
  padding: 0 16px;
}

.field-select {
  appearance: none;
  padding-right: 44px;
  background-image: url("../icons/chevron-down.svg");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px 16px;
}

.field-textarea {
  min-height: 100px;
  padding: 16px;
  line-height: 1.4;
  resize: vertical;
}

.field-input::placeholder,
.field-textarea::placeholder {
  color: var(--color-text-dim);
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: inset 0 0 0 0.5px var(--color-accent);
}

.field-input-error,
.field-textarea-error {
  border-color: #d65a4a;
}

.field-input-error:focus,
.field-textarea-error:focus {
  border-color: #d65a4a;
  box-shadow: inset 0 0 0 0.5px #d65a4a;
}

.field-error-text {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: #d65a4a;
}

.field-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--color-ink);
  cursor: pointer;
}

.field-check:has(input:checked) {
  font-weight: 600;
}

.field-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.field-check-box {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-line-soft);
  border-radius: var(--radius-md);
  background: var(--color-white);
  transition: background-color var(--transition), border-color var(--transition);
}

.field-check input:focus-visible + .field-check-box {
  box-shadow: 0 0 0 3px rgba(255, 203, 5, 0.45);
}

.field-check input:checked + .field-check-box {
  border-color: var(--color-accent);
  background: var(--color-accent);
}

.field-check input:checked + .field-check-box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid var(--color-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.field-check-radio {
  border-radius: 50%;
}

.field-check input:checked + .field-check-radio::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: var(--color-ink);
  transform: none;
}

.field-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--color-line-soft);
  border-radius: 5px;
  background: var(--color-white);
}

.field-search-icon {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
}

.field-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--color-ink);
  outline: none;
}

.field-search input::placeholder {
  color: var(--color-text-dim);
}

.field-combo {
  display: flex;
  height: 48px;
}

.field-combo input {
  flex: 1;
  min-width: 0;
  padding: 0 16px;
  border: 1px solid var(--color-line-soft);
  border-right: 0;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  background: #f5f5f5;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--color-ink);
}

.field-combo input::placeholder {
  color: var(--color-text-dim);
}

.field-combo button {
  flex: none;
  padding: 0 20px;
  border: 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--color-accent);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color var(--transition);
}

.field-combo button:hover {
  background: #f0bd00;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
}

.pagination-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 16px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-ink);
  transition: background-color var(--transition);
}

.pagination-item:hover {
  background: rgba(26, 26, 26, 0.06);
}

.pagination-item-outline {
  border: 1px solid var(--color-line);
}

.pagination-item-current {
  background: var(--color-accent);
  font-weight: 700;
}

.pagination-item-current:hover {
  background: var(--color-accent);
}

.exh-list .pagination,
.news-list .pagination {
  justify-content: center;
  margin-top: 32px;
}

.pagination-gap {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--color-text-dim);
}

.pagination-item svg {
  display: block;
  width: 14px;
  height: 14px;
}

@media (max-width: 1365px) {
  .site-nav-list {
    gap: 14px;
  }

  .site-nav-link,
  .lang-switch {
    font-size: 0.875rem;
  }
}

@media (max-width: 1279px) {
  .site-nav {
    display: none;
  }

  .calendar-title {
    white-space: normal;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header-tools {
    gap: 20px;
  }
}

@media (max-width: 1180px) {
  .visit-grid {
    grid-template-columns: minmax(0, 1fr) 272px;
  }

  .events {
    grid-column: 1 / -1;
  }

  .exhibitions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer-top {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 56px;
  }

  .site-footer-brand {
    grid-column: auto;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
    margin-top: 0;
    padding-left: 0;
  }

  .site-footer-logo-museum {
    margin-top: 0;
  }

  .contacts {
    grid-column: auto;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 40px;
    padding-left: 0;
  }

  .contacts-block {
    max-width: 260px;
  }

  .site-footer-aside {
    grid-column: auto;
    gap: 32px;
    padding-left: 0;
    margin-right: 0;
  }

  .socials {
    width: auto;
    margin-top: 0;
    justify-content: flex-start;
  }

  .page-hero-exhibition .exh-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-block: 40px;
  }

  .exh-thumbs {
    gap: 20px;
  }

  .exh-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .perm {
    padding: 40px var(--gutter);
  }

  .perm-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 900px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .topbar-item-address,
  .topbar-item-phone,
  .topbar-divider-address {
    display: none;
  }

  .topbar-inner {
    justify-content: space-between;
    gap: 16px;
  }

  .topbar-list {
    flex-wrap: wrap;
    gap: 12px;
  }

  .topbar-item-hours {
    max-width: none;
  }

  .page-hero {
    padding: 40px var(--gutter);
  }

  .page-hero-title {
    font-size: 2.5rem;
  }

  .rules {
    gap: 32px;
    padding: 48px var(--gutter);
  }

  .rule {
    gap: 16px;
    padding: 14px;
  }
}

@media (max-width: 820px) {
  .visit-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .visit-intro {
    grid-template-columns: 179px minmax(0, 1fr);
  }

  .calendar {
    max-width: 320px;
  }

  .visit-title,
  .calendar-title,
  .exhibitions-title,
  .exh-list-title,
  .support-title {
    font-size: 1.5rem;
  }

  .exhibitions-head {
    margin-bottom: 32px;
  }

  .support-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .site-footer {
    padding-top: 64px;
  }

  .site-footer-brand {
    flex-wrap: wrap;
    gap: 24px;
  }

  .site-footer-logo-department {
    width: 200px;
    height: 105px;
  }

  .site-footer-logo-museum {
    width: 150px;
    height: 122px;
  }

  .site-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .cookie-bar {
    flex-wrap: wrap;
    padding: 16px var(--gutter);
  }
}

@media (max-width: 640px) {

  :root {
    --gutter: 16px;
  }

  .site-header {
    position: relative;
    z-index: 10;
  }

  .site-header-inner {
    height: 71px;
    padding-inline: 16px;
  }

  .brand {
    width: 179px;

    height: 71px;
  }

  .brand-department {
    width: 179px;
    height: 71px;
  }

  .brand-museum {
    display: none;
    ;
  }

  .site-header-tools {
    gap: 16px;
    margin-left: 12px;
  }

  .lang-switch-more {
    display: none;
    ;
  }

  .nav-toggle {
    width: 24px;
    height: 24px;
  }

  .topbar {
    display: none;
  }

  .card-media {
    height: 220px;
    margin-bottom: 16px;
    border-radius: var(--radius-md);
    aspect-ratio: auto;
  }

  .card-meta {
    margin-bottom: 10px;
  }

  .card-title {
    margin-bottom: 10px;
    font-size: 1.25rem;

    font-weight: 700;
    line-height: 1.3;
  }

  .card-more {
    padding-top: 4px;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 700;
  }

  .hero {
    display: flex;
    flex-direction: column;
  }

  .hero-slide {
    min-height: 266px;
    padding: 48px 16px;
  }

  .hero-slide::before {
    background: rgba(0, 0, 0, 0.45);
  }

  .hero-inner {
    height: auto;
    align-items: center;
    gap: 24px;
    padding-bottom: 0;
    text-align: center;
  }

  .hero-title {
    font-size: 1.625rem;
    ;
  }

  .hero-text {
    display: none;
    ;
  }

  .link-more {
    padding: 12px 32px;
    border-radius: var(--radius-sm);
    background: var(--color-accent);
    color: var(--color-ink);
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
  }

  .link-more:hover {
    background: #f0bd00;
  }

  .link-more::before,
  .link-more::after {
    display: none;
  }

  .link-more img {
    display: none;
  }

  .hero-nav {
    display: none;
  }

  .hero-dots {
    position: absolute;
    left: 50%;
    bottom: 26px;
    justify-content: center;
    margin: 0;
    padding-bottom: 0;
    transform: translateX(-50%);
  }

  .hero-dot-ring {
    top: -8px;
    left: -8px;
  }

  .hero-dot {
    width: 8px;
    height: 8px;
  }

  .visit {
    padding: 40px 16px;
  }

  .visit-grid {
    display: block;
  }

  .visit-intro {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .visit-title {
    margin-bottom: 0;
    font-size: 1.5625rem;

    font-weight: 900;
    line-height: 1.2;
  }

  .visit-photo {
    width: 100%;
    height: 180px;
    border-radius: var(--radius-md);
  }

  .visit-photo img {
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .visit-list {
    gap: 16px;
  }

  .visit-item {
    align-items: center;
    gap: 12px;
  }

  .visit-item-body {
    gap: 2px;
    font-family: var(--font-sans);
    font-size: 0.8125rem;

    line-height: 1.23;
  }

  .visit-item-title {
    font-size: 0.875rem;

    color: var(--color-ink);
  }

  .calendar {
    display: none;
  }

  .events {
    margin-top: 40px;
    gap: 16px;
  }

  .events-head {
    justify-content: space-between;
    min-height: 30px;
  }

  .events-title {
    display: block;
    font-size: 1.5625rem;

    font-weight: 700;
    line-height: 1.2;
  }

  .events-all {
    gap: 4px;
    color: var(--color-text-muted);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
  }

  .event-row {
    flex-wrap: wrap;
    row-gap: 6px;
    min-height: 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-line);
  }

  .event-row-time {
    order: 1;
    min-width: 0;
  }

  .event-row .badge {
    order: 2;
  }

  .event-row-title {
    order: 3;
    flex: 1 1 100%;
  }

  .event-row:hover {
    background: none;
  }

  .event-row-time {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 700;
  }

  .event-row .badge {
    padding: 2px 6px;
    font-family: var(--font-sans);
    font-size: 0.5625rem;

    font-weight: 700;
    border-radius: var(--radius-sm);
  }

  .event-row-title {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.4;
  }

  .exhibitions {
    padding: 40px 16px;
  }

  .exhibitions-head {
    margin-bottom: 32px;
  }

  .exhibitions-title {
    font-size: 1.625rem;

    font-weight: 700;
  }

  .exhibitions-head .link-underlined {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
  }

  .exhibitions-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .support {
    padding: 32px 16px;
  }

  .support-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .support-title {
    font-size: 1.375rem;

    font-weight: 700;
  }

  .support-lead {
    font-size: 0.8125rem;
    line-height: 1.5;
  }

  .support .button-light {
    width: 100%;
  }

  .site-footer {
    padding: 48px 16px 32px;
  }

  .site-footer-top {
    display: flex;
    flex-direction: column;
    gap: 32px;
    min-height: 0;
    margin-bottom: 32px;
  }

  .site-footer-brand {
    justify-content: center;
    padding-left: 0;
    margin-top: 0;
  }

  .site-footer-logo-department,
  .site-footer-logo-museum {
    display: none;
  }

  .site-footer-logo-mobile {
    display: block;
    width: 215px;
    height: 88px;
  }

  .contacts {
    gap: 24px;
    margin-top: 0;
    padding-left: 0;
    font-size: 0.8125rem;
  }

  .contacts-block {
    gap: 6px;
    max-width: none;
  }

  .contacts-label {
    font-size: 0.6875rem;
    ;
  }

  .contacts-value {
    font-size: 0.8125rem;
    line-height: 1.4;
  }

  .contacts-phone + .contacts-phone {
    margin-top: 8px;
  }

  .contacts-phone-note {
    font-size: 0.6875rem;
    ;
  }

  .site-footer-aside {
    gap: 32px;
    padding: 32px 0 0;
    margin-right: 0;
    border-top: 1px solid var(--color-line);
  }

  .subscribe {
    gap: 12px;
  }

  .subscribe-label {
    font-size: 0.6875rem;
  }

  .subscribe-field {
    flex-direction: row;
    height: 44px;
  }

  .subscribe-input {
    height: auto;
    padding: 0 12px;
    font-size: 0.8125rem;
  }

  .subscribe-submit {
    height: auto;
    padding: 0 16px;
    font-size: 0.8125rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    width: 100%;
    margin: 0 0 28px;
    font-size: 0.875rem;
    text-align: center;
  }

  .site-footer-aside {
    width: 100%;
  }

  .site-footer-row {
    display: block;
  }

  .socials {
    width: 100%;
    margin: 0 auto;
    justify-content: center;
    flex: none;
  }

  .site-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 32px;
    border-top-color: var(--color-line);

    font-size: 0.6875rem;
    ;
  }

  .site-footer-copyright,
  .site-footer-policy {
    opacity: 0.5;
  }

  .cookie-bar {
    flex-wrap: wrap;
    gap: 16px 12px;
    padding: 16px;
    border-top: 1px solid var(--color-line);
  }

  .cookie-bar-text {
    flex: 1 1 100%;
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .cookie-bar-accept,
  .cookie-bar-decline {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 0;
    font-size: 0.75rem;
  }

  .page-hero {
    padding: 24px 16px 28px;
    gap: 10px;
    border-radius: 0 0 16px 16px;
  }

  .breadcrumbs {
    font-size: 0.75rem;
  }

  .page-hero-title {
    font-size: 1.75rem;
  }

  .page-hero-exhibition {
    padding-bottom: 16px;
  }

  .page-hero-exhibition .exh-hero-grid {
    gap: 24px;
    padding-block: 24px;
  }

  .rules {
    gap: 32px;
    padding: 40px 16px;
  }

  .rule {
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
  }

  .rule-text {
    font-size: 0.875rem;
    line-height: 1.4;
  }

  .rules-download {
    width: 100%;
    justify-content: center;
    font-size: 0.75rem;
    text-align: center;
    white-space: normal;
  }

  .exh-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .exh-meta-group {
    gap: 16px;
    row-gap: 8px;
  }

  .exh-gallery-main {
    aspect-ratio: 4 / 5;
    max-height: none;
  }

  .exh-thumbs {
    gap: 12px;
  }

  .exh-thumbs-nav {
    display: none;
  }

  .exh-thumbs-row {
    flex: 1 1 auto;
    gap: 8px;
  }

  .exh-thumb {
    flex: 1 1 0;
    width: auto;
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .exh-lead {
    font-size: 0.875rem;
  }

  .pdf-frame {
    height: 70vh !important;
  }

  .ticket-float {
    bottom: 80px;
    min-height: 40px;
    padding: 10px 20px;
    font-size: 0.75rem;
  }

  .edit-bar {
    bottom: 12px;
    padding: 4px;
  }

  .edit-bar-id {
    display: none;
  }

  .edit-bar-link {
    padding: 9px 12px;
  }

  .edit-bar-text {
    display: none;
  }

  .edit-bar-link-main .edit-bar-text {
    display: inline;
  }

  .exh-cta {
    width: 100%;
  }

  .exh-meta-date {
    font-size: 0.875rem;
  }

  .exh-meta-place {
    font-size: 0.8125rem;
  }

  .exh-days {
    padding: 3px 8px;
    font-size: 0.625rem;
  }

  .exh-age {
    width: 54px;
    height: 34px;
    font-size: 0.875rem;
  }

  .exh-gallery {
    gap: 12px;
  }

  .exh-text,
  .perm-text-block {
    gap: 16px;
  }

  .badge-square {
    padding: 4px 8px;
    font-size: 0.5625rem;
    ;
  }

  .exh-list {
    gap: 24px;
    padding: 32px 16px 48px;
  }

  .exh-list-title {
    font-size: 1.5625rem;
  }

  .calendar-title {
    font-size: 1.5625rem;
  }

  .filters {

    flex-wrap: wrap;
    gap: 8px;
    overflow: visible;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .exh-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .exh-card-desc {
    padding-right: 0;
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .exh-card-img {
    height: 220px;
  }

  .exh-list-head {
    gap: 16px;
  }

  .filter-pill {
    padding: 8px 16px;
    font-size: 0.8125rem;
  }

  .exh-card-body {
    gap: 8px;
  }

  .exh-card-title {
    font-size: 1.25rem;
    line-height: 1.3;
  }

  .exh-card-row img {
    width: 12px;
    height: 12px;
  }

  .exh-card-row span {
    font-size: 0.6875rem;
  }

  .exh-card-more {
    font-size: 0.8125rem;
  }

  .exh-all {
    font-size: 0.8125rem;
  }

  .news-list {
    padding-bottom: 32px;
  }

  .perm {
    padding: 32px 16px;
  }

  .perm-grid {
    gap: 24px;
  }

  .perm-title {
    font-size: 1.5rem;
    line-height: 1.25;
  }

  .perm-lead {
    font-size: 0.875rem;
  }

  .field-combo {
    flex-direction: column;
    height: auto;
    gap: 8px;
  }

  .field-combo input,
  .field-combo button {
    height: 48px;
    border-radius: var(--radius-md);
  }

  .field-combo input {
    border-right: 1px solid var(--color-line-soft);
  }
}

@media (max-width: 360px) {
  .brand,
  .brand-department {
    width: 150px;
    height: 59px;
  }

  .site-header-tools {
    gap: 12px;
    margin-left: 8px;
  }
}

.vex,
.vex-page {

  padding: 38px var(--gutter) 80px;
  background: #f5f5f5;
}

.vex-intro,
.vex-text {
  max-width: 820px;
  margin-bottom: 40px;
  font-size: 1rem;
  line-height: 1.6;
  color: #4a554a;
}

.vex-intro p:last-child,
.vex-text p:last-child {
  margin-bottom: 0;
}

.vex-page-inner {
  width: 100%;
}

@media (max-width: 640px) {
  .vex,
  .vex-page {
    padding: 32px 16px 48px;
  }

  .vex-intro,
  .vex-text {
    margin-bottom: 24px;
  }
}

.faq-section {
  padding: 57px var(--gutter) 80px;
  border-radius: 0 0 20px 20px;
  background: var(--color-white);
  color: var(--color-ink);
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.faq-search {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 16px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-white);
}

.faq-search-icon {
  width: 20px;
  height: 20px;
  flex: none;
}

.faq-search-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.875rem;
  color: var(--color-ink);
  outline: none;
}

.faq-search-input::placeholder {
  color: #4a554a;
  opacity: 0.6;
}

.faq-search:focus-within {
  border-color: var(--color-ink);
}

.faq-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.faq-item {
  border-bottom: 1px solid var(--color-line);
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: #191919;
  font: inherit;
  cursor: pointer;
}

.faq-num {
  flex: none;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
}

.faq-question {
  flex: 1;
  min-width: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  transition: color var(--transition);
}

.faq-row:hover .faq-question {
  color: #000000;
}

.faq-icon {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
}

.faq-icon img {
  position: absolute;
  inset: 0;
  width: 20px;
  height: 20px;
  transition: opacity var(--transition);
}

.faq-icon-minus {
  opacity: 0;
}

.faq-item.is-open .faq-icon-plus {
  opacity: 0;
}

.faq-item.is-open .faq-icon-minus {
  opacity: 1;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--transition);
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
  padding-left: 48px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #4a554a;
}

.faq-answer-inner p {
  margin: 0 0 12px;
  opacity: 0.8;
}

.faq-answer-inner p:last-child {
  margin-bottom: 0;
}

.faq-answer-inner a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-item.is-open .faq-answer-inner {
  padding-bottom: 16px;
}

.faq-empty {
  margin: 0;
  font-size: 0.875rem;
  color: #4a554a;
}

.faq-empty a {
  color: var(--color-ink);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .faq-section {
    padding: 32px 20px 48px;
  }

  .faq {
    gap: 24px;
  }

  .faq-search {
    height: 48px;
  }

  .faq-row {
    gap: 12px;
    padding: 14px 0;
  }

  .faq-question {
    font-size: 0.9375rem;
  }

  .faq-answer-inner {
    padding-left: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 1440px) {
  .exh-list-home .exh-card-img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .exh-list-home .exh-cards > .exh-card:nth-child(n + 5) {
    display: none;
  }
}

@media (min-width: 1181px) and (max-width: 1440px) {
  .exh-list-home .exh-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26.6667px;
  }
}

.event-hero .exh-gallery {
  max-width: none;
}

.event-hero .exh-gallery-main {
  aspect-ratio: 3 / 2;
  max-height: none;
}

.exh-gallery-main[data-gallery-main-box] {
  aspect-ratio: var(--gallery-ratio, 3 / 4);

  max-height: max(320px, calc(100vh - 258px));
  background: #101010;
}

.exh-gallery-main[data-gallery-main-box] img {
  object-fit: contain;
  cursor: zoom-in;
}

.exh-thumb img {
  object-fit: contain;
}

.page-hero .exh-thumb {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: #1c1c1c;
}

.page-hero .exh-thumb img {
  background: #1c1c1c;
}

.page-hero .exh-thumb.is-active {
  border-color: var(--color-accent);
  box-shadow: inset 0 0 0 1px var(--color-accent);
}

.page-hero .exh-thumb:hover {
  border-color: rgba(255, 255, 255, 0.65);
}

.page-hero .exh-thumb.is-active:hover {
  border-color: var(--color-accent);
}

.zoom {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: #0b0b0b;
  color: var(--color-white);
}

.zoom[hidden] {
  display: none;
}

body.is-zoom-open {
  overflow: hidden;
}

.zoom-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
  cursor: zoom-in;
}

.zoom-stage.is-zoomed {
  cursor: grab;
}

.zoom-stage.is-dragging {
  cursor: grabbing;
}

.zoom-img {
  max-width: 92vw;
  max-height: 84vh;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
  transition: transform 120ms ease, opacity 180ms ease;
}

.zoom-stage.is-zoomed .zoom-img,
.zoom-stage.is-dragging .zoom-img {

  transition: opacity 180ms ease;
}

.zoom-img.is-out {
  opacity: 0;
}

.zoom-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: transparent;
  color: var(--color-white);
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition);
}

.zoom-close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
}

.zoom-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: transparent;
  color: var(--color-white);
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition);
}

.zoom-nav[hidden] {
  display: none;
}

.zoom-nav:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
}

.zoom-nav-prev {
  left: 24px;
}

.zoom-nav-next {
  right: 24px;
}

@media (max-width: 640px) {
  .zoom-nav {
    display: none;
  }

  .zoom-img {
    max-width: 100vw;
    max-height: 78vh;
  }

}

.exh-lead h2,
.exh-lead h3,
.exh-lead h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.3;
  color: var(--color-white);
}

.exh-lead h3 {
  font-size: 1.25rem;
}

.exh-lead ul,
.exh-lead ol {
  margin: 0;
  padding-left: 22px;
  color: var(--color-white);
}

.exh-lead ul {
  list-style: disc;
}

.exh-lead li {
  margin-bottom: 6px;
}

.exh-lead li:last-child {
  margin-bottom: 0;
}

.exh-lead li::marker {
  color: var(--color-accent);
}

.exh-lead blockquote {
  margin: 2px 0;
  padding: 4px 0 4px 26px;
  border-left: 3px solid var(--color-accent);
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--color-white);
}

.exh-lead blockquote p {
  margin: 0 0 0.9em;
}

.exh-lead blockquote p:last-child {
  margin-bottom: 0;
}

.exh-lead p {
  margin: 0;
}

.exh-lead strong {
  font-weight: 800;
}

@media (max-width: 640px) {
  .exh-lead h3 {
    font-size: 1.0625rem;
  }

  .exh-lead blockquote {
    padding-left: 16px;
  }
}

.exh-lead {
  font-size: 1.0625rem;
  line-height: 1.72;
  letter-spacing: 0.004em;
  color: rgba(255, 255, 255, 0.9);
}

.exh-lead > p:first-child {
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--color-white);
}

.exh-lead > p:has(br) {
  margin-block: 2px;
  padding-left: 20px;
  border-left: 3px solid var(--color-accent);
  color: var(--color-white);
  font-size: 1.125rem;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .exh-lead {
    font-size: 1rem;
    line-height: 1.65;
  }

  .exh-lead > p:first-child {
    font-size: 1.0625rem;
  }

  .exh-lead > p:has(br) {
    padding-left: 14px;
  }
}

.exh-lead em,
.exh-lead i {
  font-style: normal;
}

.exh-lead strong {
  font-weight: 800;
  color: var(--color-white);
}

.page-text:has(.audioguide) {
  max-width: none;
}

.audioguide {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 20px;
  background: #f7f6f3;
}

.ag-player {
  display: flex;
  flex: 0 0 500px;
  flex-direction: column;
  gap: 20px;
  width: 500px;
  max-width: 100%;
  padding: 24px;
  border-radius: 12px;
  background: #111;
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.16);
  color: var(--color-white);
}

.ag-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ag-badge {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--color-accent);
  color: #1a1a1a;
}

.ag-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ag-title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.ag-sub {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  opacity: 0.6;
}

.ag-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.ag-track {
  position: relative;
  height: 4px;
  margin: 6px 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.18);
}

.ag-buffer {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.34);
  transition: width 420ms linear;
}

.ag-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: inherit;
  background: var(--color-accent);
  transition: width 260ms linear;
}

.ag-track.is-seeking .ag-fill {
  transition: width 90ms linear;
}

.ag-track.is-seeked .ag-fill {
  transition: width 320ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ag-range {
  position: absolute;
  left: 0;
  right: 0;
  top: -7px;
  bottom: -7px;
  width: 100%;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.ag-range::-webkit-slider-runnable-track {
  height: 18px;
  background: transparent;
}

.ag-range::-moz-range-track {
  height: 18px;
  background: transparent;
}

.ag-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: 3px;
  border: 0;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(255, 203, 5, 0.14);
  cursor: pointer;
  transition: box-shadow 160ms ease;
}

.ag-range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: var(--color-accent);
  cursor: pointer;
}

.ag-range:hover::-webkit-slider-thumb {
  box-shadow: 0 0 0 6px rgba(255, 203, 5, 0.2);
}

.ag-range:active::-webkit-slider-thumb {
  box-shadow: 0 0 0 7px rgba(255, 203, 5, 0.26);
}

.ag-range:focus-visible {
  outline: none;
}

.ag-track:focus-within {
  box-shadow: 0 0 0 2px rgba(255, 203, 5, 0.5);
}

.ag-times {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
}

.ag-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.ag-controls > :first-child {
  justify-self: start;
}

.ag-btn-play {
  justify-self: center;
}

.ag-right {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.ag-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-white);
  cursor: pointer;
  opacity: 0.8;
  transition: opacity var(--transition), transform 120ms ease;
}

.ag-btn:hover {
  opacity: 1;
}

.ag-btn:active {
  transform: scale(0.94);
}

.ag-btn.is-off {
  opacity: 0.4;
}

.ag-btn-skip {
  width: auto;
  gap: 4px;
  padding: 0 2px;
}

.ag-skip-num {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ag-btn .ag-mute-off {
  display: none;
}

.ag-btn.is-off .ag-mute-on {
  display: none;
}

.ag-btn.is-off .ag-mute-off {
  display: block;
}

.ag-btn-play {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 100px;
  background: var(--color-accent);
  color: #1a1a1a;
  opacity: 1;
  transition: background var(--transition), transform 120ms ease;
}

.ag-btn-play:hover {
  background: #f0bd00;
}

.ag-btn-play:active {
  transform: scale(0.95);
}

.ag-btn-play svg {
  display: block;
}

.ag-btn-play .ag-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 200ms ease, transform 260ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

.ag-btn-play .ag-icon.is-on {
  opacity: 1;
  transform: scale(1);
}

.ag-btn-play .ag-spinner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.ag-btn-play .ag-spinner::before {
  content: "";
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(26, 26, 26, 0.22);
  border-top-color: #1a1a1a;
  border-radius: 50%;
  animation: ag-spin 780ms linear infinite;
}

.ag-btn-play.is-busy .ag-icon {
  opacity: 0;
  transform: scale(0.6);
}

.ag-btn-play.is-busy .ag-spinner {
  opacity: 1;
}

@keyframes ag-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .ag-player {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .ag-player {
    padding: 20px;
  }
}

.news-list {
  padding: 40px var(--gutter) 80px;
  background: var(--color-white);
}

.news-list:has(.news-empty) {
  display: flex;
  align-items: center;
  min-height: 56vh;
  padding-top: 0;
  padding-bottom: 0;
}

.news-list:has(.news-empty) .news-empty {
  width: 100%;
  min-height: 0;
}

.news-rows {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 1160px;
}

.news-row {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding-bottom: 32px;
  border-bottom: 1px solid #e6e6e6;
}

.news-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.news-row-photo {
  display: block;
  flex: none;
  width: 400px;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  background: #d9d9d9;
}

.news-row-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.news-row-photo:hover img {
  transform: scale(1.03);
}

.news-row-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.news-row-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  color: #1a1a1a;
}

.news-row-title a {
  color: inherit;
  text-decoration: none;
}

.news-row-title a:hover {
  color: #6b6b6b;
}

.news-row-date {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: normal;
  color: #666;
}

.news-row-text {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.55;
  color: #1a1a1a;
}

.news-row-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 4px;
  background: #fc0;
  color: #1a1a1a;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--transition);
}

.news-row-link:hover {
  background: #f0bd00;
}

@media (max-width: 1100px) {
  .news-row-photo {
    width: 300px;
    height: 225px;
  }
}

@media (max-width: 760px) {
  .news-list {
    padding: 24px 16px 48px;
  }

  .news-rows {
    gap: 24px;
  }

  .news-row {
    flex-direction: column;
    gap: 16px;
    padding-bottom: 24px;
  }

  .news-row-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .news-row-title {
    font-size: 1.25rem;
  }
}

.news-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1160px;
  min-height: 46vh;
  margin: 0 auto;
  text-align: center;
}

.news-empty-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  color: #1a1a1a;
}

@media (max-width: 760px) {
  .news-empty {
    min-height: 42vh;
  }

  .news-empty-title {
    font-size: 1.25rem;
  }
}

.kids-page {
  padding: 40px var(--gutter) 72px;
  background: var(--color-white);
}

.kids-info {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--color-line);
}

.kids-inner {
  max-width: none;
}

.kids-blocks {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.kids-block {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding-bottom: 32px;
  border-bottom: 1px solid #e6e6e6;
}

.kids-block:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.kids-block-media {
  flex: none;
  width: 400px;
}

.kids-photo-empty {
  width: 400px;
  height: 300px;
  border-radius: 12px;
  background: #d9d9d9;
}

.kids-gallery-main {
  width: 400px;
  height: 300px;
  overflow: hidden;
  border-radius: 12px;
  background: #d9d9d9;
}

.kids-gallery-main img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.kids-thumbs {
  width: 400px;
  margin-top: 8px;
}

.kids-thumbs .exh-thumbs-nav {
  display: none;
}

.kids-thumbs .exh-thumbs-row {
  display: grid;
  grid-template-columns: repeat(2, 200px);
  gap: 0;
  overflow: visible;
}

.kids-thumb {
  width: 200px;
  height: 150px;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #d9d9d9;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px #fff;
}

.kids-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity var(--transition);
}

.kids-thumb:hover img,
.kids-thumb.is-active img {
  opacity: 1;
}

.kids-thumb.is-active {
  box-shadow: inset 0 0 0 2px var(--color-accent);
}

.kids-block-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.kids-block-num {
  display: none;
}

.kids-block-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.3;
  color: #1a1a1a;
}

.kids-block-age {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: normal;
  color: #666;
}

.kids-block-text {
  max-width: 760px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.55;
  color: #1a1a1a;
}

.kids-block-text p {
  margin: 0 0 8px;
}

.kids-block-text p:last-child {
  margin-bottom: 0;
}

.kids-block-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 4px;
  background: #fc0;
  color: #1a1a1a;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--transition);
}

.kids-block-btn:hover {
  background: #f0bd00;
}

.kids-block-extra {
  max-width: 760px;
  margin: 0;
  padding-top: 4px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.5;
  color: #666;
}

@media (max-width: 1100px) {
  .kids-block-media,
  .kids-photo-empty,
  .kids-gallery-main,
  .kids-thumbs {
    width: 300px;
  }

  .kids-photo-empty,
  .kids-gallery-main {
    height: 225px;
  }

  .kids-thumbs .exh-thumbs-row {
    grid-template-columns: repeat(2, 150px);
  }

  .kids-thumb {
    width: 150px;
    height: 112px;
  }
}

@media (max-width: 760px) {
  .kids-page {
    padding: 24px 16px 48px;
  }

  .kids-blocks {
    gap: 24px;
  }

  .kids-block {
    flex-direction: column;
    gap: 16px;
    padding-bottom: 24px;
  }

  .kids-block-media,
  .kids-photo-empty,
  .kids-gallery-main,
  .kids-thumbs {
    width: 100%;
  }

  .kids-photo-empty,
  .kids-gallery-main {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .kids-thumbs .exh-thumbs-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kids-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .kids-block-title {
    font-size: 1.25rem;
  }
}

.kids-blocks--showcase {
  gap: 0;
}

.kids-blocks--showcase .kids-block {
  gap: 56px;
  align-items: flex-start;
  padding: 56px 0;
  border-bottom: 0;
}

.kids-blocks--showcase .kids-block:first-child {
  padding-top: 8px;
}

.kids-blocks--showcase .kids-block:nth-child(even) {
  flex-direction: row-reverse;
}

.kids-blocks--showcase .kids-block + .kids-block::before {
  content: "";
}

.kids-blocks--showcase .kids-block-media {
  width: 480px;
}

.kids-blocks--showcase .kids-photo-empty,
.kids-blocks--showcase .kids-gallery-main {
  width: 480px;
  height: 360px;
  border-radius: 16px;
}

.kids-blocks--showcase .kids-thumbs {
  width: 480px;
  margin-top: 10px;
}

.kids-blocks--showcase .kids-thumb {
  border-radius: 6px;
}

.kids-blocks--showcase .kids-block-num {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #b8b8b8;
}

.kids-blocks--showcase .kids-block-body {
  gap: 18px;
  padding-top: 14px;
}

.kids-blocks--showcase .kids-block-title {
  font-size: 2rem;
  line-height: 1.2;
}

.kids-blocks--showcase .kids-block-age {
  padding: 6px 10px;
  border-radius: 2px;
  background: var(--color-accent);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.kids-blocks--showcase .kids-block-text {
  max-width: 640px;
  font-size: 1rem;
  line-height: 1.6;
}

.kids-blocks--showcase .kids-block-btn {
  padding: 14px 28px;
  font-size: 0.9375rem;
}

.kids-blocks--showcase .kids-block-extra {
  max-width: 640px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #f5f5f5;
}

@media (max-width: 1240px) {
  .kids-blocks--showcase .kids-block {
    gap: 32px;
  }

  .kids-blocks--showcase .kids-block-media,
  .kids-blocks--showcase .kids-photo-empty,
  .kids-blocks--showcase .kids-gallery-main,
  .kids-blocks--showcase .kids-thumbs {
    width: 380px;
  }

  .kids-blocks--showcase .kids-photo-empty,
  .kids-blocks--showcase .kids-gallery-main {
    height: 285px;
  }

  .kids-blocks--showcase .kids-block-title {
    font-size: 1.625rem;
  }
}

@media (max-width: 900px) {
  .kids-blocks--showcase .kids-block,
  .kids-blocks--showcase .kids-block:nth-child(even) {
    flex-direction: column;
    gap: 20px;
    padding: 36px 0;
  }

  .kids-blocks--showcase .kids-block-media,
  .kids-blocks--showcase .kids-photo-empty,
  .kids-blocks--showcase .kids-gallery-main,
  .kids-blocks--showcase .kids-thumbs {
    width: 100%;
  }

  .kids-blocks--showcase .kids-photo-empty,
  .kids-blocks--showcase .kids-gallery-main {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .kids-blocks--showcase .kids-block-title {
    font-size: 1.375rem;
  }

  .kids-blocks--showcase .kids-block-body {
    padding-top: 0;
  }
}

.team-page {
  padding: 64px var(--gutter) 80px;
  background: var(--color-white);
}

.team-inner {

  max-width: none;
}

.team-blocks {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.team-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.team-block-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  color: #1a1a1a;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.team-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-white);
  transition: box-shadow var(--transition), transform var(--transition);
}

.team-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.team-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f2f2f2;
}

.team-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transition: transform 320ms ease;
}

.team-card:hover .team-photo img {
  transform: scale(1.03);
}

.team-photo-empty {

  background: #f5f5f5;
}

.team-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 20px;
}

.team-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: #1a1a1a;
}

.team-role {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #666;
}

.team-contact {
  margin: 2px 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.team-contact a {
  color: #1a1a1a;
  text-decoration: none;
}

.team-contact a:hover {
  color: #997300;
}

.team-note {
  margin: 4px 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #8a8a8a;
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .team-page {
    padding: 32px 16px 48px;
  }

  .team-blocks {
    gap: 40px;
  }

  .team-block-title {
    font-size: 1.25rem;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .team-body {
    padding: 12px 12px 16px;
    gap: 4px;
  }

  .team-name {
    font-size: 0.875rem;
  }

  .team-role {
    font-size: 0.75rem;
  }

  .team-contact {
    font-size: 0.75rem;
  }
}

.no-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.no-page > section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.no-page p {
  margin: 0;
}

.no-page p,
.no-page li,
.no-page a {
  overflow-wrap: anywhere;
}

.no-h2 {
  margin: 12px 0 0;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
  color: #1a1a1a;
}

.no-page > section:first-child .no-h2 {
  margin-top: 0;
}

.no-hero {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 32px;
  padding: 28px;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: #f8f8f8;
}

.no-hero-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.no-hero-qr {
  flex: none;
  padding: 10px;
  border-radius: 8px;
  background: var(--color-white);
}

.no-hero-qr img {
  display: block;
  width: 200px;
  height: 200px;
}

.no-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.no-list li {
  line-height: 1.55;
}

.no-list-fields {
  padding-left: 0;
  list-style: none;
  gap: 8px;
}

.no-docs {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.no-docs li {
  position: relative;
  padding-left: 22px;
  line-height: 1.5;
}

.no-docs li::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 14px;
  height: 14px;
  background: url("/assets/icons/file-line.svg") no-repeat center / contain;
  opacity: 0.55;
}

.no-page a {
  color: #1a1a1a;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.no-page a:hover {
  color: #997300;
}

@media (max-width: 760px) {
  .no-hero {
    flex-direction: column !important;
    gap: 20px;
    padding: 20px;
  }

  .no-hero-qr img {
    width: 160px;
    height: 160px;
  }

  .no-h2 {
    font-size: 1.125rem;
  }
}

.page-text:has(.part-grid) {
  max-width: none;
}

.part-title {
  margin: 0 0 24px;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  color: #1a1a1a;
}

.part-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.part-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 168px;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.part-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.part-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 110px;
}

.part-link img {
  max-width: 100%;
  max-height: 110px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.part-link-static {
  cursor: default;
}

.part-caption {
  font-size: 0.8125rem;
  line-height: 1.35;
  text-align: center;
  color: #666;
}

@media (max-width: 640px) {
  .part-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .part-card {
    min-height: 140px;
    padding: 14px;
    gap: 8px;
  }

  .part-link {
    height: 84px;
  }

  .part-link img {
    max-height: 84px;
  }

  .part-title {
    font-size: 1.25rem;
  }
}

.page-text:has(.docs-page) {
  max-width: none;
}

.docs-page {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.docs-h {
  margin: 32px 0 4px;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
  color: #1a1a1a;
}

.docs-page > .docs-h:first-child {
  margin-top: 0;
}

.docs-list {
  margin: 0;
  padding: 0;
  list-style: none;
  column-count: 2;
  column-gap: 48px;
}

.docs-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  break-inside: avoid;
  line-height: 1.45;
}

.docs-list li::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  width: 14px;
  height: 14px;
  background: url("/assets/icons/file-line.svg") no-repeat center / contain;
  opacity: 0.5;
}

.docs-list a {
  color: #1a1a1a;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(26, 26, 26, 0.25);
  transition: color var(--transition), text-decoration-color var(--transition);
}

.docs-list a:hover {
  color: #997300;
  text-decoration-color: currentColor;
}

@media (max-width: 1000px) {
  .docs-list {
    column-count: 1;
  }

  .docs-h {
    margin-top: 24px;
    font-size: 1.125rem;
  }
}

.exc-gallery-caption,
.event-hero .exh-gallery-caption,
.page-hero-exhibition.event-hero .exh-gallery-caption {
  display: none !important;
}

.ag-mini {
  position: fixed;
  left: 50%;

  bottom: calc(20px + var(--ag-mini-lift, 0px));
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(560px, calc(100% - 32px));
  padding: 10px 16px 10px 10px;
  border-radius: 12px;
  background: #111;
  color: var(--color-white);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 14px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
}

.ag-mini.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.ag-mini-play {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-accent);
  color: #1a1a1a;
  cursor: pointer;
}

.ag-mini-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
  cursor: pointer;
}

.ag-mini-title {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ag-mini-time {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
}

.ag-mini-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.16);
}

.ag-mini-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--color-accent);
}

@media (max-width: 760px) {
  .audioguide {
    padding: 24px 16px;
    border-radius: 16px;
  }

  .ag-player {
    flex: 1 1 auto;
    padding: 20px;
    gap: 16px;
  }

  .ag-mini {
    bottom: calc(12px + var(--ag-mini-lift, 0px));
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-nav-sublist,
  .mobile-nav,
  .site-nav-submenu {
    transition: none !important;
  }
}
