/* Չկա — общий стиль сайта («светлый музей»).
   Принцип: рисованным остаётся только контент (скетчи, фото, 3D), всё
   вокруг — чистая «музейная рамка»: светлый фон без фактур, один шрифт
   без засечек, скругления, мягкие тени, стеклянное меню.
   Акцент — акварельная терракота из палитры рисунков (кнопки, ссылки,
   активный язык, счётчики, галерея); второй цвет — графит.
   Здесь: токены, меню, кнопки, главная. Страница здания и галерея —
   в story.css, страница истории — в history.css. */

:root {
  /* фон — чистый светлый, без бумаги и желтизны */
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f4f2ee;
  /* текст — почти чёрный графит; контраст с фоном: основной 16.9:1,
     второстепенный 10.2:1, мелкие подписи 7.2:1 (сайт читают люди
     со слабым зрением — светло-серого текста здесь нет) */
  --ink: #17191c;
  --muted: #3b3f45;
  --faint: #50555c;
  --line: rgba(21, 23, 26, 0.14);
  /* множитель кнопки «А+»: весь текст задан в rem и растёт вместе
     с корнем, а размеры «от ширины экрана» домножаются на --fs */
  --fs: 1;
  /* акцент: акварельная терракота из рисунков (контраст с белым 6:1) */
  --accent: #a3472a;
  --accent-strong: #8a3b22;
  --accent-ink: #ffffff;
  --accent-soft: #f7ece7;
  /* второй цвет: графит, как карандашная линия */
  --graphite: #3f434a;
  --ok: #3f7d4e;
  --bad: #b3261e;
  --nav-bg: rgba(251, 250, 247, 0.74);
  --nav-line: rgba(21, 23, 26, 0.07);
  --shadow-sm: 0 1px 2px rgba(21, 23, 26, 0.05);
  --shadow: 0 1px 2px rgba(21, 23, 26, 0.04), 0 18px 40px -22px rgba(21, 23, 26, 0.2);
  --shadow-lg: 0 2px 6px rgba(21, 23, 26, 0.05), 0 30px 60px -24px rgba(21, 23, 26, 0.28);
  --btn-shadow: 0 10px 24px -12px rgba(163, 71, 42, 0.6);
  --btn-shadow-active: 0 3px 10px -6px rgba(163, 71, 42, 0.6);
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 24px;
  --photo-mat: #ffffff;
  --ghost-bg: #efede8;
  --ghost-fill: rgba(63, 67, 74, 0.26);
  --font: "Manrope", "Noto Sans Armenian", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --hy: "Noto Sans Armenian", var(--font);
  --hand: "Caveat", "Segoe Print", cursive;
  --h-weight: 700;
  --h-track: -0.035em;
  --ease: cubic-bezier(0.22, 0.85, 0.32, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --nav-h: 64px;
  --gutter: max(16px, env(safe-area-inset-left));

  /* галерея: светлый «зал», терракотовые акценты */
  --gx-bg: rgba(251, 250, 247, 0.95);
  --gx-fg: #15171a;
  --gx-btn-bg: rgba(255, 255, 255, 0.8);
  --gx-btn-fg: #15171a;
  --gx-btn-line: rgba(21, 23, 26, 0.08);
  --gx-btn-shadow: 0 8px 24px -10px rgba(21, 23, 26, 0.28);
  --gx-bar-bg: rgba(255, 255, 255, 0.82);
  --gx-bar-fg: #15171a;
  --gx-bar-muted: #646971;
  --gx-photo-shadow: 0 24px 60px -24px rgba(21, 23, 26, 0.4);
  --gx-radius: 12px;
}

* { box-sizing: border-box; }

/* ---------- три языка, показан один (как в основном сайте) ---------- */
html:not([data-lang="hy"]) .i18n-inline[lang="hy"],
html:not([data-lang="ru"]) .i18n-inline[lang="ru"],
html:not([data-lang="en"]) .i18n-inline[lang="en"],
html:not([data-lang="hy"]) .i18n-block[lang="hy"],
html:not([data-lang="ru"]) .i18n-block[lang="ru"],
html:not([data-lang="en"]) .i18n-block[lang="en"] { display: none; }
.i18n-inline[lang] { display: inline; }
.i18n-block[lang] { display: block; }

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  background: var(--bg);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

html.fs-big { font-size: 115%; --fs: 1.15; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font: 500 1.1875rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[lang="hy"]:not(html), .hy { font-family: var(--hy); }
p { max-width: 65ch; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- стеклянное меню сверху ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--nav-line);
}
.nav-in {
  max-width: 1120px;
  height: var(--nav-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 4px;
  text-decoration: none;
  font: 700 1.5rem/1 var(--hy);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.logo svg { width: 22px; height: 22px; }
.logo .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 8px; }

.nav-ctrls { display: flex; align-items: center; gap: 10px; }

/* круглые кнопки меню: «А+» и язык (все от 48px — удобно пальцу) */
.ctl {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: 700 15px/1 var(--font);
  letter-spacing: 0.02em;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  box-shadow: var(--shadow-sm);
  transition: transform 200ms var(--spring), background 220ms var(--ease), color 220ms var(--ease), box-shadow 220ms var(--ease);
}
.ctl:active { transform: scale(0.88); }
.ctl [lang="hy"], .ctl.hy { font-family: var(--hy); }
.fs-btn { font-size: 17px; letter-spacing: -0.01em; }
.fs-btn[aria-pressed="true"] { background: var(--graphite); color: #fff; border-color: var(--graphite); }

.lang-switch { position: relative; width: 48px; height: 48px; }
.lang-cur {
  position: relative;
  z-index: 2;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--btn-shadow);
}
.lang-cur::after {
  /* тонкое кольцо — подсказка, что кнопка раскрывается */
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 260ms var(--ease), transform 360ms var(--spring);
}
.lang-switch.open .lang-cur::after { opacity: 0.45; transform: scale(1); }
.lang-opt {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0) scale(0.4);
  box-shadow: var(--shadow);
  transition: transform 420ms var(--spring), opacity 220ms var(--ease);
  transition-delay: calc((var(--i) - 1) * 60ms);
}
.lang-switch.open .lang-opt {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(calc(var(--i) * 58px)) scale(1);
}
@media (hover: hover) and (pointer: fine) {
  .ctl:hover { box-shadow: var(--shadow); }
  .lang-opt:hover { color: var(--accent); border-color: var(--accent); }
}
@media (prefers-reduced-motion: reduce) {
  .ctl, .lang-opt, .lang-cur::after { transition: none; }
}

/* ---------- страница ---------- */

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + var(--nav-h) + 14px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 40px);
}

h1, h2, h3 {
  font-family: var(--font);
  font-weight: var(--h-weight);
  letter-spacing: var(--h-track);
  line-height: 1.05;
  margin: 0;
}
h2 { font-size: clamp(1.875rem, calc(8vw * var(--fs)), 2.75rem); margin-bottom: 20px; }
h2 [lang="hy"], h3 [lang="hy"], h1 [lang="hy"] { letter-spacing: -0.01em; }
.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 700 1.1875rem/1 var(--font);
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: var(--btn-shadow);
  transition: transform 200ms var(--spring), box-shadow 200ms var(--ease), background 200ms var(--ease);
}
.btn [lang="hy"] { font-family: var(--hy); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active, .btn.lift { transform: scale(0.95); box-shadow: var(--btn-shadow-active); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: scale(0.96); }
}
.btn-ghost {
  background: var(--surface);
  color: var(--graphite);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

/* ---------- первый экран ---------- */

.hero {
  position: relative;
  display: grid;
  gap: 18px;
  align-content: start;
  /* первый экран — на всю высоту, внизу место под подсказку прокрутки */
  grid-template-rows: auto auto 1fr;
  min-height: calc(100svh - var(--nav-h) - env(safe-area-inset-top, 0px) - 14px);
}
@supports not (height: 1svh) {
  .hero { min-height: calc(100vh - var(--nav-h) - 14px); }
}
.stack {
  position: relative;
  height: min(38svh, 380px);
  width: min(100%, calc(min(38svh, 380px) * 0.92));
  margin: 0 auto;
}
@supports not (height: 1svh) {
  .stack { height: min(38vh, 380px); width: min(100%, calc(min(38vh, 380px) * 0.92)); }
}
.stack-card {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 70%;
  aspect-ratio: 1 / 1;
  height: auto;
  padding: 7px;
  border-radius: 18px;
  background: var(--photo-mat);
  box-shadow: var(--shadow);
  transition: transform 800ms var(--spring), opacity 550ms var(--ease);
}
@media (prefers-reduced-motion: no-preference) {
  .stack:not(.fanned) .stack-card { transform: translateY(12%) rotate(0deg) scale(0.84); opacity: 0; }
}
.sc-pic {
  width: 100%; height: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: var(--ghost-bg, #efece6);
  display: grid; place-items: center;
}
.sc-pic img { width: 100%; height: 100%; object-fit: cover; }
.sc-pic .ghost { width: 60%; height: 60%; fill: var(--ghost-fill, rgba(40, 44, 52, 0.28)); filter: blur(2px); }
.sc-a { transform: translate3d(calc(var(--px, 0) * 0.4px), calc(var(--py, 0) * 0.4px), 0) rotate(-12deg) translate(-17%, 4%); z-index: 1; transition-delay: 0ms; }
.sc-b { transform: translate3d(calc(var(--px, 0) * 0.6px), calc(var(--py, 0) * 0.6px), 0) rotate(10deg) translate(16%, 8%); z-index: 2; transition-delay: 80ms; }
.sc-c { transform: translate3d(calc(var(--px, 0) * 0.8px), calc(var(--py, 0) * 0.8px), 0) rotate(-5deg) translate(-5%, -9%); z-index: 3; transition-delay: 160ms; }
.sc-d { transform: translate3d(calc(var(--px, 0) * 1px), calc(var(--py, 0) * 1px), 0) rotate(4deg) translate(3%, -1%); z-index: 4; transition-delay: 240ms; }
.stack.parallax .stack-card { transition: transform 120ms linear, opacity 550ms var(--ease); }

.title { text-align: left; }
.title h1 {
  font-family: var(--hy);
  font-weight: 700;
  font-size: clamp(3.5rem, calc(17vw * var(--fs)), 7.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.sub {
  margin: 2px 0 0;
  font-size: 1.3125rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: -0.01em;
}
.sub .accent-hand:not([lang="hy"]) { font-family: var(--hand); font-weight: 600; font-size: 1.45em; line-height: 1; color: var(--accent); letter-spacing: 0; }
.greet {
  margin: 12px 0 0;
  max-width: 30ch;
  font-size: clamp(1.3125rem, calc(5.6vw * var(--fs)), 1.625rem);
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.btn .arrow { transition: transform 200ms var(--ease); }

/* тихая подсказка «листайте вниз» — уходит, как только начали листать */
.scroll-hint {
  align-self: end;
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 160px;
  padding: 8px 16px 6px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 400ms var(--ease), transform 400ms var(--ease);
}
.scroll-hint svg { width: 30px; height: 30px; color: var(--accent); }
html.scrolled .scroll-hint { opacity: 0; transform: translateY(10px); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .scroll-hint svg { animation: nudge 2.2s ease-in-out infinite; }
}
@keyframes nudge { 0%, 100% { transform: translateY(0); opacity: 0.55; } 50% { transform: translateY(6px); opacity: 1; } }

.about {
  margin-top: 26px;
  padding: 20px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.about p { margin: 0; color: var(--muted); }
.about p + p { margin-top: 10px; }

/* ---------- появление при открытии главной ----------
   Первый заход в сессии (html.intro, ставит скрипт в <head>): фото по
   одному мягко ложатся на стол, затем проявляются заголовок и
   приветствие, затем альбом и подсказка — всё укладывается в ~1.9 с.
   Повторный заход (html.intro-short) — короткая версия. Листать можно
   сразу: анимируются только прозрачность и сдвиг. При «уменьшить
   движение» ничего не анимируется. */
@media (prefers-reduced-motion: no-preference) {
  .stack:not(.fanned) .stack-card { transform: translateY(-14%) rotate(var(--r0, 0deg)) scale(1.1); opacity: 0; }
  .sc-a { --r0: -20deg; } .sc-b { --r0: 18deg; } .sc-c { --r0: -12deg; } .sc-d { --r0: 10deg; }
  html.intro .stack-card { transition: transform 700ms cubic-bezier(0.2, 0.75, 0.25, 1), opacity 450ms var(--ease); }
  html.intro .sc-a { transition-delay: 0ms; }
  html.intro .sc-b { transition-delay: 170ms; }
  html.intro .sc-c { transition-delay: 340ms; }
  html.intro .sc-d { transition-delay: 510ms; }
  html.intro .title > * { animation: fadeUp 700ms var(--ease) both; }
  html.intro .title > :nth-child(1) { animation-delay: 650ms; }
  html.intro .title > :nth-child(2) { animation-delay: 800ms; }
  html.intro .title > :nth-child(3) { animation-delay: 950ms; }
  html.intro .scroll-hint, html.intro .shelf { animation: fadeIn 600ms var(--ease) 1300ms both; }

  html.intro-short .stack-card { transition: transform 420ms var(--ease), opacity 300ms var(--ease); }
  html.intro-short .sc-b { transition-delay: 50ms; }
  html.intro-short .sc-c { transition-delay: 100ms; }
  html.intro-short .sc-d { transition-delay: 150ms; }
  html.intro-short .title > * { animation: fadeUp 400ms var(--ease) 150ms both; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- полка карточек ---------- */

.shelf { margin-top: 56px; scroll-margin-top: calc(var(--nav-h) + 16px); }
.cards {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.card { position: relative; transform: var(--reveal-t, none); transition: transform 380ms var(--spring), opacity 700ms var(--ease); }
.card:not(.soon) { grid-column: 1 / -1; }
.card-in {
  display: block;
  height: 100%;
  padding: 10px;
  border-radius: var(--r-lg);
  background: var(--card-bg, var(--surface));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: box-shadow 300ms var(--ease), transform 300ms var(--spring);
}
.card.lift .card-in { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  a.card-in:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
}
.pic {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: calc(var(--r-lg) - 8px);
  background: var(--ghost-bg, #efece6);
  display: grid;
  place-items: center;
}
.pic > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transition: transform 600ms var(--ease); }
@media (hover: hover) and (pointer: fine) { a.card-in:hover .pic > img { transform: scale(1.04); } }
.ghost { width: 64%; height: 64%; fill: var(--ghost-fill, rgba(40, 44, 52, 0.26)); filter: blur(3px); transform: translateY(14%); }
.txt { padding: 14px 8px 6px; }
.card h3 { font-size: 1.75rem; }
.card h3 [lang="hy"] { font-size: 0.85em; }
.meta { margin: 6px 0 0; color: var(--muted); font-size: 1rem; font-weight: 500; }
.go {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 1.125rem;
}
.soon .txt { padding: 10px 4px 2px; }
.soon h3 { font-size: 1.1875rem; letter-spacing: -0.01em; }
.soon .meta { font-size: 0.875rem; }
.chip {
  position: absolute;
  top: 10px; left: 10px;
  padding: 6px 11px;
  border-radius: 14px;
  background: var(--chip-bg, rgba(255, 255, 255, 0.85));
  color: var(--chip-fg, var(--ink));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font: 700 0.875rem/1 var(--font);
  letter-spacing: 0.02em;
  line-height: 1.25;
  max-width: calc(100% - 20px);
}
.chip.live { background: var(--accent); color: var(--accent-ink); }
.chip.live::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px;
  border-radius: 50%; background: currentColor; vertical-align: 1px;
}
@media (prefers-reduced-motion: no-preference) {
  .chip.live::before { animation: pulse 1.6s ease-in-out infinite; }
}
@keyframes pulse { 50% { opacity: 0.3; } }

/* ---------- подвал ---------- */

.foot {
  margin-top: 64px;
  padding: 28px 20px;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
}
.foot p { margin: 0; }
.foot .brand { font-weight: 700; color: var(--ink); font-size: 1.0625rem; }
.foot .brand .hy { font-weight: 700; }
.foot .photo-rights { max-width: 52ch; margin: 12px auto 0; line-height: 1.55; font-size: 0.875rem; }
.foot .tiktok { margin-top: 18px; }
.foot .tiktok a { min-height: 48px; }

/* ---------- проявление при прокрутке ---------- */

.reveal { --reveal-t: translateY(24px); opacity: 0; }
.reveal:not(.card) { transform: var(--reveal-t); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { --reveal-t: translateY(0); opacity: 1; }
.cards > .reveal { transition-delay: calc(var(--stagger, 0) * 70ms); }
@media (prefers-reduced-motion: reduce) {
  .reveal { --reveal-t: none; opacity: 1; transition: none !important; }
}


/* ================= планшет и компьютер ================= */

@media (min-width: 560px) {
  .hero-cta .btn { width: auto; }
  .btn-3d { width: auto; }
  .gallery { flex-wrap: nowrap; }
  .g-item { width: 180px; }
}
@media (min-width: 760px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .card:not(.soon) .card-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; padding: 14px; }
  .card:not(.soon) h3 { font-size: 2.75rem; }
  .soon h3 { font-size: 1.375rem; }
}
@media (min-width: 900px) {
  :root { --gutter: 32px; }
  .page { padding-top: calc(var(--nav-h) + 48px); }
  .hero { grid-template-columns: 1fr 1fr; align-items: center; gap: 24px 56px; grid-template-rows: 1fr auto; min-height: calc(100vh - var(--nav-h) - 120px); }
  .title { grid-column: 1; grid-row: 1; }
  .stack { grid-column: 2; grid-row: 1; }
  .scroll-hint { grid-column: 1 / -1; grid-row: 2; }
  .stack { order: 2; height: min(62vh, 520px); width: min(100%, 480px); }
  .greet { font-size: 1.625rem; }
  .shelf, .sec { margin-top: 96px; }
  .story-wrap { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 760px; margin: 0 auto; }
}


/* невысокие экраны (Safari с панелями на iPhone SE / mini):
   заголовок и приветствие компактнее, чтобы кнопка была видна сразу */
@media (max-width: 899px) and (max-height: 700px) {
  .hero { gap: 12px; }
  .stack { height: 33svh; width: min(100%, calc(33svh * 0.92)); }
  .title h1 { font-size: 3.125rem; }
  .greet { font-size: 1.25rem; margin-top: 8px; }
  .hero-cta { margin-top: 14px; }
}
.go svg { width: 18px; height: 18px; }


/* ---------- детали «светлого музея» ---------- */

.page { max-width: 1080px; }
.shelf { margin-top: 72px; }
@media (hover: hover) and (pointer: fine) {
  .btn:not(.btn-ghost):hover { background: var(--accent-strong); }
  .btn-ghost:hover { color: var(--accent); }
}
.btn-ghost { --btn-shadow: var(--shadow-sm); --btn-shadow-active: none; }
.about { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 22px 0 0; }
.foot { background: transparent; border-top: 1px solid var(--line); border-radius: 0; }
.foot a { text-decoration-color: var(--accent); text-underline-offset: 3px; }
.chip { background: rgba(255, 255, 255, 0.92); color: var(--graphite); }

/* ссылка «история» на карточке здания — отдельная кнопка рядом с «Открыть 3D»
   (внутрь ссылки-карточки вложить нельзя) */
.card { position: relative; }
.card-history {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--graphite);
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  touch-action: manipulation;
  transition: transform 200ms var(--spring), color 200ms var(--ease);
}
.card-history:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .card-history:hover { color: var(--accent); } }
