/* ============================================================
   VISART — Галерея антикварного искусства
   Палитра и шрифты вынесены в переменные (настройка по стиль-библии)
   ============================================================ */

:root {
  /* Палитра — стиль-библия ВИЗАРТЪ */
  --ink:        #2B060F;   /* лаково-бордовый чёрный: стены зала */
  --velvet:     #2B060F;   /* фон-бархат */
  --bordeaux:   #4A0E1C;   /* глубокий бордо: панели */
  --bordeaux-hi:#6E1B2E;   /* бордо-подсветка hover */
  --emerald:    #062E22;   /* тёмный изумруд: зал нумизматики */
  --malachite:  #14523F;   /* малахит: активные панели */
  --bronze:     #8A6420;   /* тёмная бронза */
  --gold:       #C9A227;   /* старое золото — главный акцент */
  --gold-hi:    #E8C55F;   /* золотой блик */
  --patina:     #3E5B4C;   /* патина-вердигри */
  --parchment:  #F3E7C9;   /* слоновая кость */
  --parch-ink:  #2b2115;   /* текст по светлому */
  --smoke:      #A88F6A;   /* приглушённое золото: подписи */

  /* Шрифты */
  --font-display: 'Oranienbaum', 'Cormorant', serif;
  --font-serif:   'Cormorant', serif;
  --font-text:    'EB Garamond', serif;
  --font-num:     'Prata', serif;

  --ease-lux: cubic-bezier(.23, 1, .32, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--velvet);
  color: var(--parchment);
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Фон-бархат */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('../assets/textures/velvet-dark.png') center / cover no-repeat;
  opacity: .55;
  z-index: -2;
  pointer-events: none;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,162,39,.07), transparent 55%);
  z-index: -1;
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden;
}

/* ---------- Кракелюр и виньетка поверх всего ---------- */
.craquelure-overlay {
  position: fixed; inset: 0;
  background: url('../assets/textures/craquelure.png') center / 900px repeat;
  mix-blend-mode: soft-light;
  opacity: .22;
  pointer-events: none;
  z-index: 60;
}
.vignette {
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(6,4,2,.55) 100%);
  pointer-events: none;
  z-index: 59;
}

/* ---------- Прелоадер ---------- */
.preloader {
  position: fixed; inset: 0;
  background: var(--ink);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 28px;
  z-index: 100;
  transition: opacity 1s var(--ease-lux), visibility 1s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__medallion { position: relative; width: 140px; height: 140px; }
.preloader__medallion img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  animation: medallion-breathe 3s ease-in-out infinite;
}
.preloader__ring {
  position: absolute; inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(201,163,92,.35);
  border-top-color: var(--gold-hi);
  animation: ring-spin 1.6s linear infinite;
}
.preloader__text {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
  letter-spacing: .12em;
}
@keyframes ring-spin { to { transform: rotate(360deg); } }
@keyframes medallion-breathe {
  0%, 100% { filter: brightness(.9); }
  50% { filter: brightness(1.1) drop-shadow(0 0 18px rgba(201,163,92,.35)); }
}

/* ---------- Верхняя навигация ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 28px;
  z-index: 70;
  background: linear-gradient(rgba(10,7,5,.92), rgba(10,7,5,.75));
  border-bottom: 1px solid rgba(201,163,92,.25);
  backdrop-filter: blur(8px);
  transform: translateY(-110%);
  transition: transform .6s var(--ease-lux);
}
.topbar.is-visible { transform: translateY(0); }
.topbar__brand { display: flex; align-items: center; gap: 12px; }
.topbar__logo {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(201,163,92,.5), 0 2px 8px rgba(0,0,0,.6);
}
.topbar__name {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: .18em;
  color: var(--gold-hi);
}
.topbar__nav { display: flex; gap: 26px; }
.topbar__nav a {
  font-family: var(--font-serif);
  font-size: 16px;
  letter-spacing: .08em;
  color: var(--smoke);
  position: relative;
  padding: 4px 0;
  transition: color .3s;
}
.topbar__nav a::after {
  content: '';
  position: absolute; left: 50%; bottom: 0;
  width: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-hi), transparent);
  transition: width .4s var(--ease-lux), left .4s var(--ease-lux);
}
.topbar__nav a:hover { color: var(--gold-hi); }
.topbar__nav a:hover::after { width: 100%; left: 0; }
.topbar__burger { display: none; }

/* ---------- Герой ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: -6%;
  background: url('../assets/textures/hero-hall.png') center / cover no-repeat;
  animation: hero-drift 40s ease-in-out infinite alternate;
  filter: brightness(.7) saturate(1.05);
}
@keyframes hero-drift {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.08) translateY(-1.5%); }
}
.hero__haze {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(13,10,8,.92) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 40%, transparent 30%, rgba(13,10,8,.72) 100%),
    linear-gradient(rgba(13,10,8,.35), rgba(13,10,8,.15) 40%, rgba(13,10,8,.9));
}
.hero__content {
  position: relative;
  text-align: center;
  padding: 90px 20px 40px;
  animation: hero-rise 1.6s var(--ease-lux) both;
  animation-delay: .3s;
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(34px); }
  to   { opacity: 1; transform: none; }
}
.hero__medallion {
  width: 190px; height: 190px;
  margin: 0 auto 30px;
  position: relative;
  border-radius: 50%;
}
.hero__medallion img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 1px rgba(201,163,92,.55),
    0 0 0 7px rgba(201,163,92,.12),
    0 0 0 8px rgba(201,163,92,.35),
    0 18px 50px rgba(0,0,0,.75);
}
.hero__medallion-glow {
  position: absolute; inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,211,139,.22), transparent 65%);
  animation: medallion-breathe 4s ease-in-out infinite;
  pointer-events: none;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(52px, 9vw, 110px);
  font-weight: 400;
  letter-spacing: .22em;
  text-indent: .22em;
  color: var(--gold-hi);
  text-shadow: 0 2px 24px rgba(201,163,92,.35), 0 4px 6px rgba(0,0,0,.8);
}
.hero__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(20px, 3vw, 30px);
  color: var(--parchment);
  margin-top: 14px;
  letter-spacing: .06em;
}
.hero__invite {
  margin-top: 18px;
  font-size: 17px;
  color: var(--smoke);
  letter-spacing: .04em;
}
.hero__scroll {
  position: absolute; bottom: 34px; left: 50%;
  transform: translateX(-50%);
  width: 34px; height: 54px;
  border: 1px solid rgba(201,163,92,.5);
  border-radius: 20px;
  display: flex; justify-content: center;
}
.hero__scroll-arrow {
  width: 4px; height: 10px;
  margin-top: 10px;
  border-radius: 2px;
  background: var(--gold-hi);
  animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Золотой разделитель ---------- */
.gold-rule {
  width: min(420px, 70%);
  margin: 18px auto;
  opacity: .9;
}
.gold-rule img { width: 100%; filter: drop-shadow(0 1px 6px rgba(201,163,92,.3)); }
.gold-rule--hero { width: min(360px, 60%); }
.gold-rule--small { width: 180px; margin: 12px 0; }

/* ---------- Навигация медальонами ---------- */
.medallion-nav { padding: 90px 20px 60px; }
.medallion-nav__row {
  display: flex; flex-wrap: wrap;
  justify-content: center;
  gap: 46px 52px;
  max-width: 1200px;
  margin: 0 auto;
}
.medallion-link {
  display: flex; flex-direction: column; align-items: center;
  gap: 16px;
  opacity: 0; transform: translateY(30px);
  transition: opacity .8s var(--ease-lux), transform .8s var(--ease-lux);
}
.medallion-link.is-in { opacity: 1; transform: none; }
.medallion-link__disc {
  position: relative;
  width: 150px; height: 150px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(201,163,92,.5),
    0 0 0 6px rgba(201,163,92,.1),
    0 0 0 7px rgba(201,163,92,.3),
    0 14px 36px rgba(0,0,0,.7);
  transition: box-shadow .5s var(--ease-lux);
}
.medallion-link__disc img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-lux), filter .6s;
}
.medallion-link:hover .medallion-link__disc {
  box-shadow:
    0 0 0 1px rgba(240,211,139,.9),
    0 0 0 6px rgba(201,163,92,.18),
    0 0 0 7px rgba(240,211,139,.55),
    0 18px 48px rgba(0,0,0,.8),
    0 0 46px rgba(201,163,92,.35);
}
.medallion-link:hover .medallion-link__disc img {
  transform: scale(1.07);
  filter: brightness(1.12);
}
.medallion-link__shine {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: linear-gradient(120deg, transparent 30%, rgba(255,240,200,.35) 48%, transparent 60%);
  transform: translateX(-120%) rotate(8deg);
  pointer-events: none;
}
.medallion-link:hover .medallion-link__shine {
  animation: shine-sweep 1.1s var(--ease-lux);
}
@keyframes shine-sweep {
  from { transform: translateX(-120%) rotate(8deg); }
  to   { transform: translateX(120%) rotate(8deg); }
}
.medallion-link__label {
  font-family: var(--font-serif);
  font-size: 19px;
  letter-spacing: .14em;
  color: var(--gold);
  transition: color .3s, text-shadow .3s;
}
.medallion-link:hover .medallion-link__label {
  color: var(--gold-hi);
  text-shadow: 0 0 16px rgba(240,211,139,.5);
}

/* ---------- Секции каталога ---------- */
.category { padding: 70px 24px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 400;
  text-align: center;
  color: var(--gold-hi);
  letter-spacing: .12em;
  text-shadow: 0 2px 14px rgba(201,163,92,.25);
}
.section-title--dark { color: #6b4f22; text-shadow: none; }
.category__subtitle {
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--smoke);
  margin-top: 6px;
}
.category__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 46px;
  max-width: 1280px;
  margin: 48px auto 0;
  perspective: 1400px;
}
/* Монеты — круглые медальоны, сетка плотнее */
.category__grid--coins {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* ---------- Карточка предмета (3D по верхнему слою) ---------- */
.card {
  position: relative;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform .45s var(--ease-lux);
  opacity: 0; transform: translateY(40px);
}
.card.is-in { opacity: 1; transform: none; transition: opacity .9s var(--ease-lux), transform .9s var(--ease-lux); }
.card.is-in.is-tilting { transition: transform .1s linear; }

.card__frame {
  position: relative;
  border: 1px solid rgba(201,163,92,.45);
  outline: 1px solid rgba(201,163,92,.2);
  outline-offset: 5px;
  background: linear-gradient(160deg, #4A0E1C, #2B060F);
  padding: 14px;
  box-shadow: 0 18px 44px rgba(0,0,0,.65);
  transform-style: preserve-3d;
  transition: box-shadow .5s var(--ease-lux);
}
.card:hover .card__frame {
  box-shadow:
    0 26px 60px rgba(0,0,0,.8),
    0 0 40px rgba(201,163,92,.18);
}
.card__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  transform: translateZ(34px);
  box-shadow: 0 10px 26px rgba(0,0,0,.55);
}
.card__image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-lux);
}
.card:hover .card__image-wrap img { transform: scale(1.06); }
.card__craquelure {
  position: absolute; inset: 0;
  background: url('../assets/textures/craquelure.png') center / 420px repeat;
  mix-blend-mode: soft-light;
  opacity: .3;
  pointer-events: none;
}
.card__shine {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,240,200,.22) 50%, transparent 62%);
  transform: translateX(-130%);
  pointer-events: none;
}
.card:hover .card__shine { animation: shine-sweep 1.2s var(--ease-lux); }

.card__corner {
  position: absolute;
  width: 54px; height: 54px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.6));
  transform: translateZ(48px);
  opacity: .95;
}
.card__corner--tl { top: -12px; left: -12px; }
.card__corner--tr { top: -12px; right: -12px; transform: translateZ(48px) rotate(90deg); }
.card__corner--br { bottom: -12px; right: -12px; transform: translateZ(48px) rotate(180deg); }
.card__corner--bl { bottom: -12px; left: -12px; transform: translateZ(48px) rotate(270deg); }

/* Латунная табличка */
.card__plate {
  margin: 16px auto 0;
  width: 88%;
  text-align: center;
  padding: 10px 14px 12px;
  background: linear-gradient(170deg, #9c7a45, #6d5128 55%, #86643a);
  border: 1px solid rgba(240,211,139,.5);
  box-shadow:
    inset 0 1px 0 rgba(255,240,200,.4),
    inset 0 -2px 6px rgba(0,0,0,.35),
    0 6px 16px rgba(0,0,0,.5);
  transform: translateZ(26px);
  border-radius: 3px;
}
.card__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.25;
  color: #f5e6bd;
  text-shadow: 0 1px 1px rgba(0,0,0,.55);
}
.card__meta {
  font-size: 14px;
  font-style: italic;
  color: #e4d0a1;
  margin-top: 3px;
  text-shadow: 0 1px 1px rgba(0,0,0,.45);
}
.card__price {
  font-family: var(--font-num);
  font-size: 16px;
  letter-spacing: .06em;
  color: var(--gold-hi);
  text-align: center;
  margin-top: 12px;
  transform: translateZ(20px);
}

/* Круглая карточка для монет */
.card--coin .card__frame {
  border-radius: 50%;
  outline: none;
  border: none;
  background: none;
  padding: 0;
  box-shadow: none;
}
.card--coin .card__image-wrap {
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(201,163,92,.5),
    0 0 0 7px rgba(201,163,92,.12),
    0 0 0 8px rgba(201,163,92,.32),
    0 16px 40px rgba(0,0,0,.7);
}
.card--coin:hover .card__image-wrap {
  box-shadow:
    0 0 0 1px rgba(240,211,139,.85),
    0 0 0 7px rgba(201,163,92,.2),
    0 0 0 8px rgba(240,211,139,.5),
    0 20px 50px rgba(0,0,0,.8),
    0 0 44px rgba(201,163,92,.3);
}
.card--coin .card__craquelure,
.card--coin .card__shine { border-radius: 50%; }
.card--coin .card__corner { display: none; }
.card--coin .card__plate { width: 78%; }

/* ---------- Пергаментные панели ---------- */
.parchment-panel {
  position: relative;
  background:
    url('../assets/textures/parchment.png') center / cover,
    var(--parchment);
  color: var(--parch-ink);
  box-shadow:
    inset 0 0 60px rgba(107,79,34,.25),
    0 24px 60px rgba(0,0,0,.7);
  border: 1px solid rgba(107,79,34,.4);
}
.corner {
  position: absolute;
  width: 72px; height: 72px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.4));
}
.corner--tl { top: -8px; left: -8px; }
.corner--tr { top: -8px; right: -8px; transform: rotate(90deg); }
.corner--br { bottom: -8px; right: -8px; transform: rotate(180deg); }
.corner--bl { bottom: -8px; left: -8px; transform: rotate(270deg); }

/* ---------- О галерее ---------- */
.about { padding: 90px 24px; }
.about__panel {
  max-width: 900px;
  margin: 0 auto;
  padding: 70px clamp(28px, 6vw, 80px) 60px;
}
.about__medallion {
  width: 110px; height: 110px;
  margin: -125px auto 26px;
}
.about__medallion img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 1px rgba(201,163,92,.6),
    0 0 0 6px rgba(232,220,192,1),
    0 0 0 7px rgba(107,79,34,.5),
    0 12px 30px rgba(0,0,0,.6);
}
.about__text { font-size: 19px; line-height: 1.75; }
.about__text p + p { margin-top: 1em; }
.about__text p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.4em;
  float: left;
  line-height: .85;
  margin: 6px 10px 0 0;
  color: #7a5a26;
}

/* ---------- Контакты ---------- */
.contacts { padding: 40px 24px 100px; text-align: center; }
.contacts__grid {
  display: flex; flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}
.contact-card {
  min-width: 260px;
  padding: 30px 34px;
  border: 1px solid rgba(201,163,92,.35);
  outline: 1px solid rgba(201,163,92,.15);
  outline-offset: 4px;
  background: linear-gradient(160deg, rgba(74,14,28,.85), rgba(43,6,15,.92));
  transition: transform .5s var(--ease-lux), box-shadow .5s;
}
.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,.6), 0 0 30px rgba(201,163,92,.15);
}
.contact-card__label {
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 10px;
}
.contact-card__value {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--parchment);
}
.contact-card__value a { color: var(--gold-hi); }

/* ---------- Футер ---------- */
.footer {
  text-align: center;
  padding: 50px 20px 60px;
  border-top: 1px solid rgba(201,163,92,.2);
  background: linear-gradient(rgba(10,7,5,.6), rgba(8,5,3,.95));
}
.footer__medallion {
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  object-fit: cover;
  opacity: .85;
  box-shadow: 0 0 0 1px rgba(201,163,92,.4);
}
.footer__name {
  font-family: var(--font-display);
  letter-spacing: .2em;
  font-size: 20px;
  color: var(--gold);
}
.footer__note { font-size: 14px; color: #7a6a50; margin-top: 8px; }

/* ---------- Модальное окно ---------- */
.item-modal {
  position: fixed; inset: 0;
  z-index: 80;
  display: flex; align-items: center; justify-content: center;
  padding: 30px;
}
.item-modal[hidden] { display: none; }
.item-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(8,5,3,.9);
  backdrop-filter: blur(6px);
  animation: fade-in .5s both;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.item-modal__body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 0;
  width: min(1200px, 100%);
  max-height: 90vh;
  animation: modal-rise .6s var(--ease-lux) both;
}
@keyframes modal-rise {
  from { opacity: 0; transform: translateY(40px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.item-modal__close {
  position: absolute; top: -16px; right: -16px;
  z-index: 5;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: radial-gradient(circle at 35% 30%, #8c6a3f, #4a3418);
  color: var(--gold-hi);
  font-size: 17px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.6);
  transition: transform .3s, box-shadow .3s;
}
.item-modal__close:hover {
  transform: rotate(90deg) scale(1.08);
  box-shadow: 0 8px 24px rgba(0,0,0,.7), 0 0 24px rgba(201,163,92,.4);
}
.item-modal__stage {
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  perspective: 1200px;
  background: radial-gradient(ellipse at center, rgba(74,20,32,.35), rgba(10,7,5,.6) 75%);
  border: 1px solid rgba(201,163,92,.3);
  border-right: none;
}
.item-modal__frame {
  position: relative;
  max-width: 100%;
  transform-style: preserve-3d;
  transition: transform .1s linear;
}
.item-modal__frame img {
  max-height: 68vh;
  max-width: 100%;
  object-fit: contain;
  box-shadow:
    0 0 0 1px rgba(201,163,92,.5),
    0 0 0 10px rgba(30,20,12,.9),
    0 0 0 11px rgba(201,163,92,.4),
    0 30px 70px rgba(0,0,0,.85);
}
.item-modal__craquelure {
  position: absolute; inset: 0;
  background: url('../assets/textures/craquelure.png') center / 480px repeat;
  mix-blend-mode: soft-light;
  opacity: .28;
  pointer-events: none;
}
.item-modal__info {
  padding: 44px clamp(26px, 4vw, 52px);
  overflow-y: auto;
  max-height: 90vh;
  scrollbar-width: thin;
  scrollbar-color: var(--bronze) transparent;
}
.item-modal__epoch {
  font-size: 14px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #8a6a30;
}
.item-modal__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 400;
  color: #3a2a12;
  line-height: 1.15;
  margin-top: 8px;
}
.item-modal__origin {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  color: #6b512a;
  margin-top: 6px;
}
.item-modal__specs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 18px;
  margin: 18px 0;
  font-size: 16px;
}
.item-modal__specs dt {
  font-weight: 600;
  color: #7a5a26;
  letter-spacing: .04em;
}
.item-modal__specs dd { color: var(--parch-ink); }
.item-modal__desc { font-size: 17px; line-height: 1.7; }
.item-modal__desc p + p { margin-top: .8em; }
.item-modal__provenance {
  margin-top: 22px;
  padding: 16px 20px;
  border-left: 3px solid rgba(140,106,63,.6);
  background: rgba(140,106,63,.08);
  font-size: 16px;
}
.item-modal__provenance h4 {
  font-family: var(--font-serif);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 14px;
  color: #7a5a26;
  margin-bottom: 6px;
}
.item-modal__footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(107,79,34,.35);
}
.item-modal__price {
  font-family: var(--font-num);
  font-size: 28px;
  color: #4a3010;
}
.btn-gold {
  display: inline-block;
  padding: 13px 32px;
  font-family: var(--font-serif);
  font-size: 17px;
  letter-spacing: .1em;
  color: #241705;
  background: linear-gradient(170deg, var(--gold-hi), var(--gold) 55%, #a37f42);
  border: 1px solid rgba(255,240,200,.6);
  box-shadow:
    inset 0 1px 0 rgba(255,246,214,.8),
    0 8px 22px rgba(0,0,0,.45);
  border-radius: 3px;
  transition: transform .3s var(--ease-lux), box-shadow .3s;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,246,214,.9),
    0 12px 30px rgba(0,0,0,.55),
    0 0 26px rgba(201,163,92,.45);
}

/* ---------- Появление при скролле ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-lux), transform 1s var(--ease-lux); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1000px) {
  .item-modal { padding: 16px; }
  .item-modal__body { grid-template-columns: 1fr; overflow-y: auto; }
  .item-modal__stage { padding: 26px; border-right: 1px solid rgba(201,163,92,.3); border-bottom: none; }
  .item-modal__frame img { max-height: 44vh; }
  .item-modal__info { max-height: none; }
  .item-modal__close { top: 8px; right: 8px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .topbar__nav {
    position: fixed; top: 64px; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10,7,5,.97);
    border: 1px solid rgba(201,163,92,.25);
    border-right: none;
    padding: 10px 0;
    transform: translateX(105%);
    transition: transform .5s var(--ease-lux);
    min-width: 220px;
  }
  .topbar__nav.is-open { transform: none; }
  .topbar__nav a { padding: 12px 28px; }
  .topbar__burger {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
  }
  .topbar__burger span {
    width: 26px; height: 2px;
    background: var(--gold);
    transition: transform .3s, opacity .3s;
  }
  .topbar__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .topbar__burger.is-open span:nth-child(2) { opacity: 0; }
  .topbar__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .medallion-nav__row { gap: 30px 26px; }
  .medallion-link__disc { width: 112px; height: 112px; }
  .medallion-link__label { font-size: 16px; }
  .hero__medallion { width: 150px; height: 150px; }
  .category__grid { gap: 34px; }
  .about__medallion { margin-top: -105px; }
}

/* Пониженная анимация */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; transition-duration: .01s !important; }
  html { scroll-behavior: auto; }
}


/* ---------- Изумрудный зал нумизматики ---------- */
.category--coins {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(20,82,63,.28), transparent 60%),
    linear-gradient(rgba(6,46,34,.55), rgba(6,46,34,.75));
  border-top: 1px solid rgba(201,162,39,.25);
  border-bottom: 1px solid rgba(201,162,39,.25);
}
.category--coins .category__subtitle { color: #9fb3a4; }

/* ---------- Тёплое пятно света за курсором ---------- */
.candle-light {
  position: fixed;
  width: 520px; height: 520px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 58;
  background: radial-gradient(circle, rgba(232,197,95,.07), rgba(232,197,95,.03) 40%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity .6s;
  opacity: 0;
}
@media (hover: none), (prefers-reduced-motion: reduce) {
  .candle-light { display: none; }
}