/* ===================================================================
   Музей Реєстру — зала з експонатами
   Візуальна мова та ж, що в мапі й меморіалі: пергамент, золото, темінь.
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=IM+Fell+English+SC&family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  --ink: #120d09;
  --parchment: #e8dcc0;
  --parchment-dark: #c9b896;
  --gold: #b8893a;
  --gold-bright: #d4a854;
  --blood: #6b1f1f;
  --panel-bg: rgba(22, 16, 11, 0.94);
  --panel-border: rgba(184, 137, 58, 0.28);

  --font-display: 'IM Fell English SC', 'Cormorant Garamond', serif;
  --font-body: 'EB Garamond', 'Cormorant Garamond', Georgia, serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--parchment);
  background: #0a0705;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

/* Оголошення svg-символів не повинно займати місце. */
.icon-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ===================================================================
   Фон-зала
   Фіксований, трохи більший за екран — щоб був простір для паралаксу.
   =================================================================== */
.hall-bg {
  position: fixed;
  inset: -3%;
  background-image: url('../assets/museum-bg.jpg');
  background-size: cover;
  background-position: center center;
  transform: translate3d(0, 0, 0) scale(1.06);
  will-change: transform;
  z-index: -3;
}

/* Кольорокорекція — тепліше й темніше, щоб текст читався. */
.hall-grade {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(10, 7, 5, 0.82) 0%, rgba(10, 7, 5, 0.62) 30%, rgba(10, 7, 5, 0.78) 100%);
}

.hall-vignette {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  box-shadow: inset 0 0 220px 70px rgba(8, 5, 3, 0.95);
}

/* Тепле мерехтіння від свічок у кадрі. */
.glow {
  position: fixed;
  z-index: -1;
  width: 320px;
  height: 320px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 170, 70, 0.22) 0%, rgba(232, 130, 40, 0.08) 45%, transparent 72%);
  mix-blend-mode: screen;
  filter: blur(10px);
  animation: candle-flicker 4.5s ease-in-out infinite;
}

.glow-left {
  left: 8%;
  top: 28%;
}

.glow-right {
  right: 6%;
  top: 24%;
  animation-delay: 1.3s;
}

@keyframes candle-flicker {

  0%,
  100% {
    opacity: 0.8;
    transform: scale(1);
  }

  30% {
    opacity: 1;
    transform: scale(1.06);
  }

  60% {
    opacity: 0.7;
    transform: scale(0.97);
  }
}

.dust-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ===================================================================
   Навігація по кутах
   =================================================================== */
.corner-nav {
  position: fixed;
  top: 1.2rem;
  left: 1.2rem;
  z-index: 40;
  display: flex;
  gap: 0.5rem;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--parchment-dark);
  text-decoration: none;
  padding: 0.5rem 1rem;
  background: rgba(18, 13, 9, 0.75);
  border: 1px solid var(--panel-border);
  border-radius: 2px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--gold-bright);
  border-color: rgba(184, 137, 58, 0.55);
  background: rgba(18, 13, 9, 0.9);
}

/* ===================================================================
   Зала (контент)
   =================================================================== */
.hall {
  position: relative;
  z-index: 5;
  max-width: 1280px;
  margin: 0 auto;
  padding: 6.5rem 1.5rem 7rem;
}

.museum-header {
  text-align: center;
  user-select: none;
  margin-bottom: 2.5rem;
}

.museum-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--parchment);
  text-shadow:
    0 2px 22px rgba(0, 0, 0, 0.95),
    0 0 44px rgba(184, 137, 58, 0.28);
}

.museum-subtitle {
  font-style: italic;
  font-size: clamp(0.85rem, 1.6vw, 1.1rem);
  color: var(--parchment-dark);
  letter-spacing: 0.08em;
  margin-top: 0.5rem;
  opacity: 0.85;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

/* ---------- Фільтри ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  color: var(--parchment-dark);
  background: rgba(18, 13, 9, 0.7);
  border: 1px solid var(--panel-border);
  border-radius: 2px;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.2s ease;
}

.filter-chip svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}

.filter-chip:hover {
  color: var(--parchment);
  border-color: rgba(184, 137, 58, 0.5);
}

.filter-chip.active {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold-bright);
  box-shadow: 0 0 18px rgba(184, 137, 58, 0.35);
}

.filter-chip .chip-count {
  opacity: 0.6;
  font-size: 0.72rem;
}

/* ===================================================================
   Полиця з експонатами
   =================================================================== */
.shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2.2rem 1.6rem;
}

.exhibit {
  position: relative;
  cursor: pointer;
  padding-bottom: 0.2rem;
  animation: exhibit-in 0.5s ease backwards;
}

@keyframes exhibit-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

/* ---------- Сцена експоната: 3D-простір ---------- */
.exhibit-stage {
  position: relative;
  height: 210px;
  /* Перспектива — саме тут народжується відчуття обʼєму. */
  perspective: 900px;
  perspective-origin: 50% 45%;
  margin-bottom: 0.9rem;
}

/* Пляма світла на "постаменті" під експонатом. */
.exhibit-stage::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 78%;
  height: 46px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(212, 168, 84, 0.16) 0%, transparent 70%);
  pointer-events: none;
}

/* Шар, який нахиляється за курсором. Кути приходять з JS у --rx/--ry. */
.exhibit-art {
  position: absolute;
  inset: 0;
  --rx: 0deg;
  --ry: 0deg;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.exhibit-art img {
  max-width: 88%;
  max-height: 100%;
  object-fit: contain;
  /* drop-shadow йде по альфа-каналу png — тінь повторює силует предмета. */
  filter:
    drop-shadow(0 14px 18px rgba(0, 0, 0, 0.75)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 22px rgba(212, 168, 84, 0.12));
  /* Легке "дихання" — предмет наче висить у вітрині. */
  animation: exhibit-float 6s ease-in-out infinite;
  transition: filter 0.3s ease;
  /* Відсуваємо предмет уперед у 3D — тінь під ним лишається на "підлозі". */
  transform: translateZ(30px);
  user-select: none;
  -webkit-user-drag: none;
}

@keyframes exhibit-float {

  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -7px;
  }
}

/* Заглушка для експонатів без фото — руна категорії. */
.exhibit-art.empty {
  color: rgba(184, 137, 58, 0.32);
}

.exhibit-art.empty svg {
  width: 42%;
  height: 42%;
  fill: none;
  stroke: currentColor;
  stroke-width: 0.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateZ(24px);
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.7));
  animation: exhibit-float 7s ease-in-out infinite;
}

/* Тінь на "підлозі" вітрини — окремо від предмета, щоб був зазор. */
.exhibit-shadow {
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 55%;
  height: 16px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.75) 0%, transparent 72%);
  filter: blur(3px);
  transition: all 0.35s ease;
  pointer-events: none;
}

.exhibit:hover .exhibit-art img {
  filter:
    drop-shadow(0 22px 26px rgba(0, 0, 0, 0.8)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 34px rgba(212, 168, 84, 0.3));
}

.exhibit:hover .exhibit-shadow {
  width: 46%;
  opacity: 0.75;
  filter: blur(5px);
}

/* ---------- Табличка під експонатом ---------- */
.plaque {
  position: relative;
  text-align: center;
  padding: 0.8rem 0.9rem 0.9rem;
  background:
    linear-gradient(to bottom, rgba(28, 21, 15, 0.92), rgba(16, 12, 8, 0.92));
  border: 1px solid var(--panel-border);
  border-radius: 2px;
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(212, 168, 84, 0.12);
  transition: all 0.25s ease;
}

.exhibit:hover .plaque {
  border-color: rgba(184, 137, 58, 0.55);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(212, 168, 84, 0.25);
}

.plaque-category {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
}

.plaque-category svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plaque-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.35;
  color: var(--parchment);
  margin: 0.35rem 0 0.25rem;
  /* Ефект гравіювання на латуні. */
  text-shadow:
    0 -1px 1px rgba(0, 0, 0, 0.8),
    0 1px 1px rgba(220, 200, 160, 0.15);
}

.plaque-donor {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--parchment-dark);
  opacity: 0.7;
}

.badge-unverified {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d8b06a;
  border: 1px dashed rgba(184, 137, 58, 0.45);
  border-radius: 2px;
  padding: 0.12rem 0.45rem;
}

.empty-note {
  text-align: center;
  font-style: italic;
  color: var(--parchment-dark);
  opacity: 0.6;
  padding: 3rem 0;
}

.hall-footer {
  margin-top: 3.5rem;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--parchment-dark);
  opacity: 0.5;
}

/* ===================================================================
   Картка експоната
   =================================================================== */
.exhibit-card-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(8, 5, 3, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.exhibit-card-overlay.open {
  display: flex;
}

.exhibit-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 2px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 40px 100px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(212, 168, 84, 0.15);
  animation: card-appear 0.4s ease;
}

@keyframes card-appear {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
}

/* Сцена в картці — той самий 3D-нахил, тільки більший. */
.card-stage {
  position: relative;
  height: 300px;
  perspective: 1100px;
  perspective-origin: 50% 45%;
  background:
    radial-gradient(ellipse 60% 55% at 50% 55%, rgba(212, 168, 84, 0.14) 0%, transparent 70%),
    linear-gradient(to bottom, rgba(10, 7, 5, 0.6), rgba(22, 16, 11, 0.2));
  border-bottom: 1px solid rgba(184, 137, 58, 0.15);
}

.card-art {
  position: absolute;
  inset: 0;
  --rx: 0deg;
  --ry: 0deg;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.card-art img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform: translateZ(45px);
  filter:
    drop-shadow(0 20px 26px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 34px rgba(212, 168, 84, 0.16));
  animation: exhibit-float 6s ease-in-out infinite;
  user-select: none;
  -webkit-user-drag: none;
}

.card-art.empty {
  color: rgba(184, 137, 58, 0.3);
}

.card-art.empty svg {
  width: 40%;
  height: 40%;
  fill: none;
  stroke: currentColor;
  stroke-width: 0.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateZ(30px);
  animation: exhibit-float 7s ease-in-out infinite;
}

.card-shadow {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 45%;
  height: 20px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.8) 0%, transparent 72%);
  filter: blur(5px);
  pointer-events: none;
}

.card-body {
  padding: 1.4rem 1.8rem 2rem;
  text-align: center;
}

.card-category {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.card-category svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  margin: 0.4rem 0 0.9rem;
}

/* Метадані: хто приніс, походження, коли внесено. */
.card-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 0.8rem;
  text-align: left;
  max-width: 340px;
  margin: 0 auto 1.1rem;
  font-size: 0.9rem;
}

.card-meta:empty {
  display: none;
}

.card-meta dt {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
  padding-top: 0.18rem;
}

.card-meta dd {
  color: var(--parchment);
}

.card-description {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--parchment);
  padding-top: 1rem;
  border-top: 1px solid var(--panel-border);
}

.card-close {
  position: absolute;
  top: 0.4rem;
  right: 0.5rem;
  width: 38px;
  height: 38px;
  background: transparent;
  border: none;
  color: var(--parchment-dark);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  transition: color 0.2s ease;
}

.card-close:hover {
  color: var(--gold-bright);
}

/* ===================================================================
   Кнопка "Додати експонат"
   =================================================================== */
.add-exhibit-btn {
  position: fixed;
  left: 1.2rem;
  bottom: 1.2rem;
  z-index: 40;
  padding: 0.7rem 1.2rem;
  background: rgba(18, 13, 9, 0.85);
  border: 1px solid var(--gold);
  border-radius: 2px;
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  transition: all 0.2s ease;
}

.add-exhibit-btn:hover {
  background: rgba(184, 137, 58, 0.22);
  color: var(--parchment);
}

/* ===================================================================
   Модалка (та сама мова, що й на мапі)
   =================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 5, 3, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}

.modal.open {
  display: flex;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 2px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
  padding: 1.8rem 1.6rem;
}

.modal-content h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--gold-bright);
  text-align: center;
  margin-bottom: 1.2rem;
}

.modal-close {
  position: absolute;
  top: 0.3rem;
  right: 0.5rem;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  color: var(--parchment-dark);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--gold-bright);
}

.modal-content form label {
  display: block;
  margin-bottom: 0.9rem;
}

.modal-content form label>span {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.modal-content input,
.modal-content select,
.modal-content textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  background: rgba(10, 7, 5, 0.8);
  border: 1px solid rgba(184, 137, 58, 0.25);
  border-radius: 2px;
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus {
  border-color: var(--gold);
}

.modal-content textarea {
  resize: vertical;
  line-height: 1.45;
}

.modal-content select option {
  background: #16100b;
  color: var(--parchment);
}

/* Чекбокс — кастомна золота галочка. */
.modal-content form label.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.modal-content form label.checkbox-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  position: relative;
  cursor: pointer;
  background: rgba(10, 7, 5, 0.8);
  border: 1px solid rgba(184, 137, 58, 0.35);
  border-radius: 2px;
}

.modal-content form label.checkbox-row input[type="checkbox"]:checked {
  background: rgba(184, 137, 58, 0.25);
  border-color: var(--gold);
}

.modal-content form label.checkbox-row input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-bright);
  font-size: 0.9rem;
}

.modal-content form label.checkbox-row>span {
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--parchment);
  margin: 0;
}

.modal-error {
  background: rgba(107, 31, 31, 0.25);
  border: 1px solid rgba(107, 31, 31, 0.6);
  border-radius: 2px;
  padding: 0.6rem 0.8rem;
  color: #e0a0a0;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

.modal-success {
  background: rgba(60, 90, 50, 0.25);
  border: 1px solid rgba(120, 160, 90, 0.5);
  border-radius: 2px;
  padding: 0.6rem 0.8rem;
  color: #c8dfae;
  font-size: 0.9rem;
  margin-top: 0.9rem;
  line-height: 1.4;
}

.modal-actions {
  display: flex;
  gap: 0.7rem;
  justify-content: flex-end;
  margin-top: 1.2rem;
}

.modal-actions button {
  padding: 0.55rem 1.2rem;
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 2px;
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-actions button[type="submit"] {
  background: var(--gold);
  color: var(--ink);
}

.modal-actions button:hover {
  background: rgba(184, 137, 58, 0.2);
  color: var(--parchment);
}

.modal-actions button[type="submit"]:hover {
  background: var(--gold-bright);
  color: var(--ink);
}

.modal-actions button:disabled {
  opacity: 0.5;
  cursor: wait;
}

/* ===================================================================
   Адаптив
   =================================================================== */
@media (max-width: 768px) {
  .hall {
    padding: 5.5rem 1rem 6rem;
  }

  .shelf {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.6rem 1rem;
  }

  .exhibit-stage {
    height: 150px;
  }

  .plaque {
    padding: 0.6rem 0.5rem 0.7rem;
  }

  .plaque-name {
    font-size: 0.85rem;
  }

  .plaque-donor {
    font-size: 0.75rem;
  }

  .card-stage {
    height: 220px;
  }

  .card-body {
    padding: 1.2rem 1.2rem 1.6rem;
  }

  .corner-nav {
    top: 0.8rem;
    left: 0.8rem;
  }

  .nav-link {
    font-size: 0.74rem;
    padding: 0.4rem 0.75rem;
  }

  .add-exhibit-btn {
    left: 0.8rem;
    bottom: 0.8rem;
    font-size: 0.78rem;
    padding: 0.6rem 1rem;
  }
}

/* Повага до системної опції "менше руху". */
@media (prefers-reduced-motion: reduce) {

  .exhibit-art img,
  .exhibit-art.empty svg,
  .card-art img,
  .card-art.empty svg,
  .glow {
    animation: none;
  }

  .exhibit {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}
