:root{--bg:#100f0e;--panel:#171614;--panel2:#1d1b18;--text:#eee9df;--muted:#a39b8d;--gold:#c5a36a;--gold2:#8b7047;--line:rgba(197,163,106,.23);--serif:'Cormorant Garamond',Georgia,serif;--sans:'Manrope',Arial,sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:var(--sans);font-size:14px;min-height:100vh}.grain{position:fixed;inset:0;pointer-events:none;opacity:.045;z-index:20;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E")}.hidden{display:none!important}.app-shell{min-height:100vh}.welcome-screen{min-height:100vh;position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(300px,1fr) minmax(360px,520px);align-items:center;padding:38px clamp(24px,7vw,110px);background:radial-gradient(ellipse at 22% 47%,rgba(110,82,43,.17),transparent 40%),linear-gradient(115deg,#11100f 0%,#171512 52%,#100f0e 100%)}.welcome-top{position:absolute;top:34px;left:clamp(24px,7vw,110px);right:clamp(24px,7vw,110px);display:flex;justify-content:space-between;align-items:center;color:#918775;font-size:9px;letter-spacing:.2em}.edition{color:var(--gold)}.welcome-art{height:min(78vh,700px);min-height:430px;position:relative;display:flex;align-items:center;justify-content:center}.halo{position:absolute;width:min(47vw,540px);aspect-ratio:1;border:1px solid rgba(197,163,106,.22);border-radius:50%;box-shadow:0 0 110px rgba(161,118,54,.11),inset 0 0 70px rgba(197,163,106,.04)}.halo:before,.halo:after{content:"";position:absolute;inset:22px;border:1px solid rgba(197,163,106,.15);border-radius:50%}.halo:after{inset:48px;border-style:dashed;opacity:.5}.arch{position:absolute;bottom:14%;height:66%;width:40%;border:1px solid rgba(197,163,106,.44);border-bottom:0;border-radius:48% 48% 0 0;transform:perspective(600px) rotateY(-8deg);box-shadow:inset 0 20px 55px rgba(197,163,106,.04)}.arch-one{left:29%;width:34%}.arch-two{left:35%;width:23%;height:53%;border-color:rgba(197,163,106,.25)}.museum-mark{font-family:var(--serif);font-size:clamp(150px,25vw,330px);font-weight:400;color:rgba(197,163,106,.22);line-height:1;z-index:1;text-shadow:0 0 65px rgba(197,163,106,.13)}.floor-line{position:absolute;bottom:14%;left:13%;right:13%;height:1px;background:linear-gradient(90deg,transparent,var(--gold2),transparent)}.welcome-copy{position:relative;z-index:2;max-width:500px;padding:60px 0 24px}.eyebrow{display:block;font-size:9px;letter-spacing:.23em;color:var(--muted);font-weight:700}.gold{color:var(--gold)}h1{font:500 clamp(64px,8vw,106px)/.84 var(--serif);letter-spacing:-.035em;margin:22px 0 12px;color:#f0e9dc}h1 em{font-weight:400;color:var(--gold);padding-left:50px}.welcome-subtitle{font:italic 25px var(--serif);color:#cfc2ad;margin:22px 0 12px}.welcome-description{color:#a49b8e;line-height:1.8;max-width:370px;font-size:12px}.ticket{margin:34px 0 23px;padding:18px 20px 14px;background:linear-gradient(135deg,rgba(237,225,201,.08),rgba(197,163,106,.025));border:1px solid rgba(197,163,106,.42);position:relative;max-width:390px;clip-path:polygon(0 0,100% 0,100% 100%,0 100%,0 73%,7px 68%,0 63%)}.ticket:before{content:"";position:absolute;right:0;top:0;height:100%;border-left:1px dashed rgba(197,163,106,.35)}.ticket-top,.ticket-bottom{display:flex;justify-content:space-between;color:var(--gold);font-size:8px;letter-spacing:.18em}.ticket-stamp{border:1px solid rgba(197,163,106,.5);padding:5px 7px}.ticket-main{display:grid;grid-template-columns:1fr 1fr;gap:15px;padding:20px 0}.ticket-main small{display:block;font-size:7px;letter-spacing:.17em;color:#8f8577;margin-bottom:6px}.ticket-main strong{font:600 19px var(--serif);color:#e9dfce}.ticket-bottom{border-top:1px solid rgba(197,163,106,.19);padding-top:12px;color:#8f8069}.ticket-barcode{letter-spacing:3px;font-size:12px}.primary-button{border:1px solid var(--gold);background:var(--gold);color:#17130e;padding:14px 20px;font:700 10px var(--sans);letter-spacing:.13em;text-transform:uppercase;cursor:pointer;transition:.25s;display:inline-flex;align-items:center;gap:28px}.primary-button:hover{background:#e0c18a;transform:translateY(-2px);box-shadow:0 9px 25px rgba(197,163,106,.15)}.primary-button span{font-size:17px}.welcome-footnote{font-size:9px;color:#777064;margin-top:18px;letter-spacing:.04em}.welcome-side-note{position:absolute;right:26px;bottom:35px;writing-mode:vertical-rl;transform:rotate(180deg);font-size:8px;letter-spacing:.2em;color:#736b5d}.museum-screen{min-height:100vh;background:radial-gradient(ellipse at 72% 10%,rgba(110,82,43,.08),transparent 35%),var(--bg)}.site-header{height:78px;border-bottom:1px solid rgba(197,163,106,.13);display:flex;align-items:center;justify-content:space-between;padding:0 clamp(20px,4vw,62px);position:sticky;top:0;z-index:10;background:rgba(16,15,14,.9);backdrop-filter:blur(15px)}.brand{display:flex;align-items:center;gap:12px;color:var(--text);text-decoration:none}.brand-symbol{width:37px;height:37px;display:grid;place-items:center;border:1px solid var(--gold2);color:var(--gold);font:25px var(--serif)}.brand b{display:block;font-size:9px;letter-spacing:.2em}.brand small{display:block;font-size:7px;letter-spacing:.22em;color:#847967;margin-top:5px}.header-right{display:flex;gap:22px;align-items:center}.open-status{font-size:8px;letter-spacing:.17em;color:#9d927f}.open-status i{display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--gold);margin:0 8px 1px 0;box-shadow:0 0 8px var(--gold)}.icon-button{height:36px;width:36px;border:1px solid var(--line);background:transparent;color:var(--gold);font-size:18px;cursor:pointer}.icon-button.active{background:var(--gold);color:#19150f}.museum-layout{display:grid;grid-template-columns:250px minmax(0,1fr);max-width:1600px;margin:0 auto;min-height:calc(100vh - 78px)}.sidebar{border-right:1px solid rgba(197,163,106,.13);padding:39px 22px 25px 36px;display:flex;flex-direction:column;min-height:calc(100vh - 78px);position:sticky;top:78px;height:calc(100vh - 78px)}.sidebar-label{font-size:8px;letter-spacing:.22em;color:#796f60;margin-bottom:22px}.room-nav{display:flex;flex-direction:column;gap:5px}.room-link{display:grid;grid-template-columns:27px 1fr;gap:10px;align-items:center;border:0;background:transparent;color:#938a7d;padding:13px 10px;text-align:left;cursor:pointer;transition:.2s}.room-link:hover{background:rgba(197,163,106,.06);color:#e9dfce}.room-link.active{background:linear-gradient(90deg,rgba(197,163,106,.13),transparent);color:#e8ddca;border-left:1px solid var(--gold)}.room-number{font:italic 15px var(--serif);color:var(--gold2)}.room-name{font-size:10px;line-height:1.45}.sidebar-bottom{margin-top:auto;color:#6f685d;font-size:8px;letter-spacing:.16em}.tiny-line{display:block;width:35px;height:1px;background:var(--gold2);margin-bottom:17px}.sidebar-bottom p{margin:0 0 8px}.sidebar-bottom span:last-child{color:var(--gold2)}.content-area{padding:30px clamp(22px,5vw,75px) 22px;min-width:0}.content-topline{display:flex;justify-content:space-between;border-bottom:1px solid rgba(197,163,106,.13);padding:3px 0 15px;font-size:8px;letter-spacing:.17em;color:#837968}.topline-right{color:#5d574d}.room-view{max-width:1060px;margin:0 auto;animation:fadeUp .55s ease both}.room-hero{padding:59px 0 32px;position:relative;min-height:255px;border-bottom:1px solid rgba(197,163,106,.16)}.room-hero:after{content:attr(data-index);position:absolute;right:0;top:20px;font:italic 130px/.9 var(--serif);color:rgba(197,163,106,.075);pointer-events:none}.room-kicker{font-size:9px;color:var(--gold);letter-spacing:.23em}.room-title{font:500 clamp(42px,6vw,70px)/.98 var(--serif);margin:17px 0 13px;max-width:720px}.room-intro{font-size:12px;line-height:1.9;color:#a69d90;max-width:610px;margin:0}.room-meta{display:flex;gap:22px;margin-top:24px;color:#72695c;font-size:8px;letter-spacing:.16em}.room-meta span:before{content:"✦";color:var(--gold2);margin-right:7px}.section-heading{display:flex;justify-content:space-between;align-items:end;margin:31px 0 16px}.section-heading h3{font:italic 28px var(--serif);font-weight:500;margin:0;color:#e0d5c3}.section-heading small{color:#7d7363;font-size:8px;letter-spacing:.15em}.exhibit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.exhibit-card{border:1px solid rgba(197,163,106,.16);background:linear-gradient(135deg,rgba(255,255,255,.025),rgba(197,163,106,.025));padding:0;text-align:left;color:inherit;cursor:pointer;min-width:0;transition:.25s;overflow:hidden}.exhibit-card:hover{transform:translateY(-4px);border-color:rgba(197,163,106,.48);box-shadow:0 14px 30px rgba(0,0,0,.2)}.exhibit-cover{height:170px;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;background:radial-gradient(circle at 50% 40%,rgba(197,163,106,.18),transparent 42%),linear-gradient(145deg,#29231a,#151413 65%)}.exhibit-cover:before{content:"";position:absolute;width:125px;height:150px;border:1px solid rgba(197,163,106,.28);border-radius:70px 70px 0 0;bottom:-15px}.exhibit-cover:after{content:"";position:absolute;inset:12px;border:1px solid rgba(197,163,106,.1)}.exhibit-cover img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;z-index:1}.cover-symbol{position:relative;z-index:0;font:italic 56px var(--serif);color:rgba(197,163,106,.5)}.cover-tag{position:absolute;z-index:2;top:12px;left:13px;font-size:7px;letter-spacing:.15em;color:#e6d6b8;background:rgba(15,14,12,.66);padding:6px 8px}.cover-play{position:absolute;z-index:2;right:13px;bottom:12px;width:30px;height:30px;border:1px solid rgba(230,214,184,.65);border-radius:50%;display:grid;place-items:center;color:#f4e8d3;background:rgba(15,14,12,.55)}.exhibit-info{padding:17px 18px 19px}.exhibit-info h4{font:600 23px/1.05 var(--serif);margin:0 0 7px;color:#e9dfce}.exhibit-info p{font-size:10px;line-height:1.6;color:#9b9285;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.exhibit-foot{display:flex;justify-content:space-between;align-items:center;margin-top:14px;color:#766e61;font-size:7px;letter-spacing:.15em}.exhibit-foot b{color:var(--gold);font-size:14px;font-weight:400}.empty-state{border:1px dashed rgba(197,163,106,.28);padding:35px 26px;text-align:center;background:rgba(197,163,106,.025)}.empty-icon{font:38px var(--serif);color:var(--gold2)}.empty-state h4{font:italic 25px var(--serif);margin:8px 0;color:#ded2bd}.empty-state p{font-size:10px;color:#92897b;line-height:1.8;max-width:440px;margin:0 auto}.room-extra{margin-top:30px;border-top:1px solid rgba(197,163,106,.14);padding-top:23px}.extra-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.info-panel{padding:20px;border:1px solid rgba(197,163,106,.15);background:rgba(255,255,255,.018)}.info-panel h4{font:italic 24px var(--serif);margin:0 0 10px;color:#ded2bd}.info-panel p{font-size:10px;line-height:1.75;color:#958c7f;margin:0 0 12px}.text-button{background:transparent;border:0;border-bottom:1px solid var(--gold2);padding:5px 0;color:var(--gold);font:700 8px var(--sans);letter-spacing:.14em;text-transform:uppercase;cursor:pointer}.audio-guide{display:flex;gap:12px;align-items:center}.audio-disc{width:42px;height:42px;border:1px solid var(--gold2);border-radius:50%;display:grid;place-items:center;color:var(--gold);flex:none}.audio-text b{display:block;font:italic 20px var(--serif);font-weight:500}.audio-text small{color:#817766;font-size:8px;letter-spacing:.1em}.site-footer{display:flex;justify-content:space-between;padding:24px 0 8px;margin-top:45px;border-top:1px solid rgba(197,163,106,.13);color:#6e6659;font-size:7px;letter-spacing:.18em}.site-footer b{color:var(--gold)}.secret-box{margin-top:25px;padding:25px;border:1px solid rgba(197,163,106,.22);background:radial-gradient(ellipse at 80% 50%,rgba(197,163,106,.08),transparent 42%),#15130f}.secret-box h4{font:italic 26px var(--serif);margin:8px 0;color:#e1d4bd}.secret-box p{max-width:600px;color:#9b9183;font-size:10px;line-height:1.75}.secret-form{display:flex;gap:8px;max-width:420px;margin-top:16px}.secret-form input,.capsule-form input,.capsule-form textarea{min-width:0;flex:1;background:#0e0d0c;border:1px solid rgba(197,163,106,.24);color:var(--text);padding:12px;font:11px var(--sans);outline:none}.secret-form input:focus,.capsule-form input:focus,.capsule-form textarea:focus{border-color:var(--gold)}.small-gold-button{border:1px solid var(--gold2);background:rgba(197,163,106,.13);color:var(--gold);padding:0 15px;font:700 8px var(--sans);letter-spacing:.12em;cursor:pointer}.quiz-box{border:1px solid rgba(197,163,106,.18);padding:22px;background:rgba(197,163,106,.025)}.quiz-question{font:italic 22px var(--serif);margin:0 0 15px;color:#e5dac7}.quiz-option{display:block;width:100%;text-align:left;margin:7px 0;padding:12px;border:1px solid rgba(197,163,106,.15);background:transparent;color:#bdb2a0;font:10px var(--sans);cursor:pointer}.quiz-option:hover,.quiz-option.selected{border-color:var(--gold2);background:rgba(197,163,106,.09);color:#f0e5d2}.quiz-result{margin-top:12px;color:var(--gold);font-size:10px}.capsule-form{display:grid;gap:9px;margin-top:14px}.capsule-form textarea{width:100%;min-height:100px;resize:vertical}.capsule-note{font-size:8px;color:#827969;line-height:1.6}.modal{position:fixed;inset:0;z-index:30;display:grid;place-items:center;padding:22px}.modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.82);backdrop-filter:blur(8px)}.modal-panel{position:relative;width:min(780px,100%);max-height:90vh;overflow:auto;background:#171512;border:1px solid rgba(197,163,106,.35);box-shadow:0 25px 90px rgba(0,0,0,.6);animation:fadeUp .25s ease}.modal-close{position:absolute;z-index:4;right:12px;top:12px;width:35px;height:35px;border:1px solid rgba(197,163,106,.35);background:rgba(10,9,8,.6);color:#e7d8be;font-size:24px;cursor:pointer}.modal-media{background:#0d0c0b;min-height:120px;max-height:50vh;display:grid;place-items:center}.modal-media img,.modal-media video{max-width:100%;max-height:50vh;object-fit:contain}.modal-media audio{width:85%;margin:28px}.modal-copy{padding:27px clamp(20px,5vw,48px) 34px}.modal-copy h2{font:500 42px/1 var(--serif);margin:10px 0;color:#f0e7d8}.modal-caption{color:#c4b59e;font:italic 18px var(--serif);margin:0 0 15px}.modal-story{color:#a69d90;font-size:11px;line-height:1.9;white-space:pre-wrap}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;z-index:50;padding:12px 18px;background:#d3b37c;color:#17130e;font-size:10px;font-weight:700;box-shadow:0 10px 30px #0006;transition:.25s}.toast.show{opacity:1;transform:translate(-50%,0)}.modal-media .media-placeholder{padding:60px;color:#9d8358;text-align:center;font:italic 24px var(--serif)}@keyframes fadeUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:950px){.welcome-screen{grid-template-columns:.75fr 1fr;padding-left:35px;padding-right:35px}.welcome-art{height:64vh}.museum-layout{grid-template-columns:205px minmax(0,1fr)}.sidebar{padding-left:20px;padding-right:14px}.content-area{padding-left:28px;padding-right:28px}}
@media(max-width:680px){.welcome-screen{display:flex;flex-direction:column;align-items:stretch;justify-content:center;padding:82px 23px 35px;min-height:100svh}.welcome-top{left:22px;right:22px;top:22px;font-size:7px}.edition{font-size:7px}.welcome-art{position:absolute;top:15%;right:-16%;height:38vh;width:70%;min-height:0;opacity:.55;pointer-events:none}.halo{width:100%}.arch-one{left:33%;width:38%}.arch-two{left:39%;width:25%}.museum-mark{font-size:190px}.floor-line{bottom:12%}.welcome-copy{padding:0;max-width:460px}.welcome-copy h1{font-size:73px;margin-top:17px}.welcome-subtitle{font-size:22px}.welcome-description{font-size:11px;max-width:300px}.ticket{margin-top:27px;padding:14px 15px 12px}.ticket-main{padding:16px 0}.ticket-main strong{font-size:17px}.welcome-side-note{display:none}.welcome-footnote{font-size:8px}.site-header{height:66px;padding:0 17px}.brand-symbol{width:32px;height:32px}.brand b{font-size:8px}.brand small{font-size:6px}.header-right{gap:10px}.open-status{font-size:6px;letter-spacing:.11em}.icon-button{width:32px;height:32px}.museum-layout{display:flex;flex-direction:column;min-height:calc(100vh - 66px)}.sidebar{position:sticky;top:66px;z-index:8;height:auto;min-height:0;padding:10px 0 9px;border-right:0;border-bottom:1px solid rgba(197,163,106,.17);background:rgba(16,15,14,.96);display:block}.sidebar-label,.sidebar-bottom{display:none}.room-nav{flex-direction:row;overflow-x:auto;gap:5px;padding:0 13px;scrollbar-width:none}.room-nav::-webkit-scrollbar{display:none}.room-link{display:flex;flex:0 0 auto;gap:7px;padding:9px 10px;border-left:0;border-bottom:1px solid transparent;white-space:nowrap}.room-link.active{border-left:0;border-bottom-color:var(--gold);background:rgba(197,163,106,.09)}.room-number{font-size:13px}.room-name{font-size:9px}.content-area{padding:18px 17px 20px}.content-topline{font-size:7px;padding-bottom:12px}.topline-right{font-size:6px}.room-hero{padding:42px 0 25px;min-height:225px}.room-hero:after{font-size:95px;top:28px}.room-title{font-size:48px;max-width:88%}.room-intro{font-size:10px}.room-meta{font-size:7px;gap:12px;flex-wrap:wrap}.section-heading{margin-top:23px}.section-heading h3{font-size:24px}.section-heading small{font-size:7px}.exhibit-grid{grid-template-columns:1fr;gap:12px}.exhibit-card{display:grid;grid-template-columns:38% 1fr;min-height:125px}.exhibit-cover{height:100%;min-height:125px}.exhibit-cover:before{width:70px;height:94px}.cover-symbol{font-size:42px}.exhibit-info{padding:14px 13px;display:flex;flex-direction:column;justify-content:center}.exhibit-info h4{font-size:21px}.exhibit-info p{font-size:9px}.exhibit-foot{margin-top:10px}.extra-grid{grid-template-columns:1fr}.site-footer{font-size:6px;letter-spacing:.12em;margin-top:28px}.secret-box{padding:20px 16px}.secret-form{flex-direction:column}.secret-form input,.small-gold-button{min-height:42px}.modal{padding:10px}.modal-panel{max-height:94vh}.modal-copy h2{font-size:35px}.modal-copy{padding:24px 20px 28px}.modal-media{max-height:42vh}.modal-media img,.modal-media video{max-height:42vh}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* Главная фотография экспоната */
.modal-media .exhibit-main-photo {
  display: block;
  width: 100%;
  max-height: 520px;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

/* Карусель после истории */
.exhibit-carousel {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(197, 163, 106, 0.25);
  text-align: center;
}

.exhibit-carousel h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  color: #c5a36a;
  margin: 0 0 18px;
}

.carousel-photo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  background: #100f0e;
  border: 1px solid rgba(197, 163, 106, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.carousel-photo {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  cursor: zoom-in;
}

.carousel-photo:fullscreen {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  background: #100f0e;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 16px;
}

.carousel-controls button {
  width: 42px;
  height: 42px;
  border: 1px solid #8b7047;
  border-radius: 50%;
  background: transparent;
  color: #c5a36a;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s;
}

.carousel-controls button:hover {
  background: rgba(197, 163, 106, 0.15);
}

.carousel-counter {
  color: #c5a36a;
  font-size: 12px;
  letter-spacing: 0.15em;
}

@media (max-width: 680px) {
  .exhibit-carousel {
    margin-top: 24px;
  }

  .carousel-photo-wrap {
    min-height: 160px;
  }

  .carousel-photo {
    max-height: 350px;
  }
}

/* ИСПРАВЛЕНИЕ ГЛАВНОГО ФОТО И ТЕКСТА */

/* Контейнер главной фотографии */
#modalMedia {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;

  padding: 18px;
  overflow: visible;
  background: #100f0e;
}

/* Главное фото */
#modalMedia .exhibit-main-photo {
  display: block;
  position: relative;

  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(50vh, 520px);

  object-fit: contain;
  margin: 0 auto;
  border-radius: 6px;
}

/* Отдельный блок для названия и истории */
.modal-copy {
  position: relative;
  z-index: 1;
  display: block;
  clear: both;

  width: 100%;
  padding: 32px 40px 38px;
  background: #171512;
}

/* Название экспоната */
.modal-copy h2 {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.15;
  margin: 12px 0 14px;
  color: #f0e7d8;
}

/* Подпись */
.modal-caption {
  margin-bottom: 22px;
  line-height: 1.5;
  color: #c5a36a;
}

/* История */
.modal-story {
  font-size: 13px;
  line-height: 2;
  color: #c9beb0;
  overflow-wrap: anywhere;
}

/* Окно экспоната */
.modal-panel {
  overflow-x: hidden;
  overflow-y: auto;
}

/* Для телефона */
@media (max-width: 680px) {
  #modalMedia {
    padding: 10px;
  }

  #modalMedia .exhibit-main-photo {
    max-height: 42vh;
  }

  .modal-copy {
    padding: 24px 20px 30px;
  }

  .modal-story {
    font-size: 12px;
    line-height: 1.85;
  }
}

/* ФОТОАРХИВ В КОНЦЕ ГЛАВЫ */

.room-photo-archive {
  margin: 45px 0 16px;
  padding: 30px clamp(16px, 4vw, 40px);
  border: 1px solid rgba(197, 163, 106, 0.25);
  background: #171512;
  text-align: center;
}

.room-photo-archive h3 {
  font-family: var(--serif);
  font-size: 42px;
  font-style: italic;
  font-weight: 500;
  color: #eee0c9;
  margin: 14px 0 10px;
}

.archive-description {
  max-width: 440px;
  margin: 0 auto 25px;
  color: #a99e8c;
  font-size: 11px;
  line-height: 1.8;
}

.archive-frame {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 220px;
  max-height: 65vh;
  padding: 10px;
  background: #100f0e;
  border: 1px solid rgba(197, 163, 106, 0.2);
}

.archive-image {
  display: block;
  max-width: 100%;
  max-height: min(60vh, 600px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.archive-caption {
  min-height: 20px;
  margin: 15px 0 0;
  color: #cbb796;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
}

.archive-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin-top: 15px;
}

.archive-controls[hidden] {
  display: none;
}

.archive-controls button {
  width: 42px;
  height: 42px;
  border: 1px solid #8b7047;
  border-radius: 50%;
  background: transparent;
  color: #c5a36a;
  cursor: pointer;
  font-size: 19px;
}

.archive-controls button:hover {
  background: rgba(197, 163, 106, 0.13);
}

.archive-counter {
  color: #c5a36a;
  font-size: 10px;
  letter-spacing: 0.2em;
}

/* Оформление для телефона */

@media (max-width: 680px) {
  .room-photo-archive {
    margin-top: 32px;
    padding: 23px 13px;
  }

  .room-photo-archive h3 {
    font-size: 34px;
  }

  .archive-frame {
    min-height: 160px;
  }

  .archive-image {
    max-height: 52vh;
  }
}

/* СЕКРЕТНЫЕ АРХИВНЫЕ ЗАПИСИ */

.secret-clue {
  margin-top: 35px;
  padding: 25px 30px;
  background: #15130f;
  border: 1px solid rgba(197, 163, 106, 0.24);
  position: relative;
}

.secret-clue::after {
  content: "✦";
  position: absolute;
  top: 20px;
  right: 25px;
  color: #8b7047;
  font-size: 17px;
}

.secret-clue h3 {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  color: #e8d8bf;
  margin: 15px 0 8px;
}

.secret-clue p {
  color: #ac9e88;
  font-size: 12px;
  line-height: 1.8;
}

.secret-clue small {
  display: block;
  border-top: 1px solid rgba(197, 163, 106, 0.15);
  margin-top: 20px;
  padding-top: 13px;
  font-size: 8px;
  letter-spacing: 0.15em;
  color: #7e715e;
}

@media (max-width: 680px) {
  .secret-clue {
    padding: 22px 18px;
  }

  .secret-clue h3 {
    font-size: 30px;
  }
}

/* АРХИВ ПОЖЕЛАНИЙ О БУДУЩЕМ */

.future-wishes {
  margin-top: 35px;
  padding: 32px clamp(18px, 4vw, 40px);
  border: 1px solid rgba(197, 163, 106, 0.3);
  background: #15130f;
}

.future-wishes h3 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 500;
  line-height: 1.15;
  color: #eee0c9;
  margin: 18px 0;
}

.future-wishes-intro {
  font-size: 12px;
  line-height: 1.9;
  color: #ad9e88;
  max-width: 650px;
  margin-bottom: 32px;
}

.future-wishes-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.future-wish {
  padding: 26px;
  background: #211d17;
  border: 1px solid rgba(197, 163, 106, 0.2);
  position: relative;
}

.future-wish-number {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: #c5a36a;
}

.future-wish p {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.4;
  color: #e8dcca;
  margin: 19px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.future-wish-author {
  display: block;
  text-align: right;
  color: #ab9470;
  font-size: 11px;
}

@media (max-width: 680px) {
  .future-wishes {
    padding: 22px 15px;
  }

  .future-wish {
    padding: 20px 17px;
  }

  .future-wish p {
    font-size: 21px;
  }
}

/* АНИМАЦИЯ ОТКРЫТИЯ СЕКРЕТНОГО АРХИВА */

.secret-unlocking {
  position: relative;
}

.secret-unlock-message {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(12, 10, 8, 0.97);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

  padding: 25px;
  animation: secretFadeIn 0.5s ease forwards;
}

.unlock-symbol {
  font-size: 64px;
  color: #8b7047;
  opacity: 0.5;
  animation: symbolGlow 1.8s ease-in-out infinite;
}

.unlock-icon {
  font-size: 55px;
  color: #c5a36a;
  margin: 20px 0 30px;
  animation: unlockAppear 1.2s ease forwards;
}

.secret-unlock-message span {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.35em;
  color: #c5a36a;
}

.secret-unlock-message p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  color: #e8d8bf;
  margin-top: 20px;
}

.secret-unlock-message.disappear {
  animation: secretFadeOut 0.6s ease forwards;
}

.future-wishes {
  animation: archiveReveal 1.2s ease both;
  animation-delay: 0.2s;
}

@keyframes secretFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes secretFadeOut {
  from { opacity: 1; }
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes symbolGlow {
  0%, 100% {
    opacity: 0.3;
    text-shadow: 0 0 0 transparent;
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 35px rgba(197, 163, 106, 0.7);
  }
}

@keyframes unlockAppear {
  from {
    opacity: 0;
    transform: scale(0.5) rotate(-20deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes archiveReveal {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Учитываем настройки уменьшения анимации */
@media (prefers-reduced-motion: reduce) {
  .secret-unlock-message,
  .unlock-symbol,
  .unlock-icon,
  .future-wishes {
    animation: none !important;
  }
}

/* Финал музея */

.museum-ending {
  margin: 65px 0 45px;
  padding: 45px 15px;
  border-top: 1px solid rgba(197,163,106,.25);
  text-align: center;
}

.museum-ending p {
  font: italic 30px/1.3 var(--serif);
  color: #eee0c9;
}

.museum-ending span {
  display: block;
  font-size: 9px;
  letter-spacing: .18em;
  color: #a99e8c;
}

.ending-arrow {
  display: block;
  margin: 22px auto;
  border: 1px solid #8b7047;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  background: transparent;
  color: #c5a36a;
  font-size: 30px;
  cursor: pointer;
  animation: endingBounce 2s ease-in-out infinite;
}

@keyframes endingBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.ending-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10,9,8,.94);
  opacity: 0;
  transition: opacity .7s ease;
}

.ending-overlay.visible {
  opacity: 1;
}

.ending-panel {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 65px 35px;
  text-align: center;
  background: #171512;
  border: 1px solid rgba(197,163,106,.4);
  transform: translateY(30px);
  opacity: 0;
  transition: transform .9s ease, opacity .9s ease;
}

.ending-overlay.visible .ending-panel {
  transform: translateY(0);
  opacity: 1;
}

.ending-label {
  font-size: 10px;
  letter-spacing: .2em;
  color: #c5a36a;
}

.ending-panel h2 {
  font: 500 clamp(42px,7vw,65px) var(--serif);
  color: #eee0c9;
  margin: 25px 0;
}

.ending-panel p {
  color: #c9beb0;
  line-height: 1.9;
  font-size: 13px;
}

.ending-last {
  margin-top: 35px;
  font: italic 30px var(--serif);
  color: #c5a36a;
}

.ending-close {
  position: absolute;
  top: 15px;
  right: 20px;
  border: 0;
  background: transparent;
  color: #c5a36a;
  font-size: 30px;
  cursor: pointer;
}

@media (max-width: 680px) {
  .ending-panel {
    padding: 55px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ending-arrow { animation: none; }
  .ending-overlay,
  .ending-panel { transition: none; }
}

/* Кнопка входа в музей */

.enter-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  min-height: 66px;
  padding: 18px 24px;
  background: #92764f;
  color: #f7eddd;
  border: 1px solid #b69a6b;
  border-radius: 0;
  box-shadow: none;
  font-weight: 700;
  letter-spacing: .12em;
  transition: background .3s ease, border-color .3s ease;
}

.enter-button:hover {
  background: #a58a61;
  border-color: #d0b585;
}

.enter-button .enter-arrow {
  display: block;
  flex-shrink: 0;
  color: #f7eddd;
}

@media (max-width: 680px) {
  .enter-button {
    width: auto;
    max-width: 100%;
    min-height: 62px;
    padding: 16px 21px;
    gap: 24px;
  }
}

/* Элегантная кнопка входа */

.enter-button,
.enter-button:hover,
.enter-button:focus-visible {
  background: #201c17;
  color: #e8d9c2;
  border: 1px solid #9c8058;
  box-shadow: none;
  border-radius: 0;
}

.enter-button {
  min-height: 60px;
  padding: 16px 22px;
  font-weight: 500;
  letter-spacing: .14em;
  transition: background .3s ease, border-color .3s ease;
}

.enter-button:hover {
  background: #2c261e;
  border-color: #c0a47a;
}

.enter-button .enter-arrow {
  color: #bda17a;
  width: 18px;
  height: 18px;
}

/* Шрифт и мягкая подсветка кнопки входа */

.enter-button {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: .035em;
  text-transform: none;
  transition:
    background .35s ease,
    border-color .35s ease,
    box-shadow .35s ease,
    transform .35s ease;
}

.enter-button:hover,
.enter-button:focus-visible {
  border-color: #c5a36a;
  box-shadow: 0 0 22px rgba(197, 163, 106, .18);
}

.enter-button:active {
  transform: scale(.98);
  box-shadow: 0 0 30px rgba(197, 163, 106, .3);
}

@media (max-width: 680px) {
  .enter-button {
    font-size: 24px;
  }
}

/* Золотое свечение при входе в музей */

.enter-button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.enter-button::after {
  content: "";
  position: absolute;
  inset: -2px;
  border: 1px solid #d5b67c;
  opacity: 0;
  pointer-events: none;
}

.enter-button:active {
  animation: museumDoorGlow .7s ease-out;
}

.enter-button:active::after {
  animation: museumFrameGlow .7s ease-out;
}

@keyframes museumDoorGlow {
  0% {
    box-shadow: 0 0 0 rgba(213,182,124,0);
  }
  45% {
    box-shadow:
      0 0 18px rgba(213,182,124,.35),
      0 0 38px rgba(213,182,124,.15);
  }
  100% {
    box-shadow: 0 0 0 rgba(213,182,124,0);
  }
}

@keyframes museumFrameGlow {
  0%, 100% { opacity: 0; }
  45% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .enter-button:active,
  .enter-button:active::after {
    animation: none;
  }
}

/* Свечение кнопки перед открытием музея */

.enter-button.museum-opening {
  animation: museumDoorGlow .8s ease-in-out both;
}

.enter-button.museum-opening::after {
  animation: museumFrameGlow .8s ease-in-out both;
}

.enter-button.museum-opening,
.enter-button.museum-opening:hover {
  border-color: #d5b67c;
  cursor: default;
}

@media (prefers-reduced-motion: reduce) {
  .enter-button.museum-opening,
  .enter-button.museum-opening::after {
    animation: none;
  }
}
