@font-face {
  font-family: "Gallery Serif"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/fonts/CormorantGaramond-500-cyrillic.woff2") format("woff2");
  unicode-range: U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: "Gallery Serif"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/fonts/CormorantGaramond-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+2000-206F,U+2122;
}
@font-face {
  font-family: "Gallery Serif"; font-weight: 500; font-style: italic; font-display: swap;
  src: url("/fonts/CormorantGaramond-500i-cyrillic.woff2") format("woff2");
  unicode-range: U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: "Gallery Serif"; font-weight: 500; font-style: italic; font-display: swap;
  src: url("/fonts/CormorantGaramond-500i-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+2000-206F,U+2122;
}
:root {
  --bg: #faf8f2; --fg: #292a25; --muted: #67675c; --accent: #444c38; --accent-ink: #fffdf5; --hair: #d6d2c7;
  --font-body: "Segoe UI", Arial, sans-serif; --font-display: "Gallery Serif", Georgia, serif;
  --gutter: clamp(20px, 4.8vw, 80px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 69px; }
html:has(:is(#tour, .tour-stop, #exhibits, #cases-catalog):target) { scroll-behavior: auto; }
body { margin: 0; color: var(--fg); background: var(--bg); font: 1rem/1.5 var(--font-body); }
html.ns-conversion:not(.gv-open) body { overflow: visible; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #936329; outline-offset: 4px; }
.wrap { width: min(100%, 1600px); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: fixed; top: 4px; left: 4px; z-index: 55; padding: 12px; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.museum-header { position: sticky; top: 0; z-index: 42; border-bottom: 1px solid var(--hair); background: var(--bg); }
.navbar { display: flex; align-items: center; gap: clamp(16px, 2.7vw, 44px); min-height: 68px; }
.navbar a { text-decoration: none; }
.brand { font-weight: 650; font-size: 1.32rem; letter-spacing: -.055em; white-space: nowrap; }
.gallery-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.gallery-nav a, .discuss { font-size: .9375rem; }
.gallery-nav a:hover, .site-menu a:hover { text-decoration: underline; text-underline-offset: 4px; }
.discuss { border: 1px solid #a6a695; border-radius: 99px; padding: 8px 17px; white-space: nowrap; }
.discuss:hover { border-color: var(--fg); }
.site-menu { position: relative; }
.site-menu summary { display: grid; align-content: center; justify-content: center; gap: 6px; width: 44px; height: 44px; cursor: pointer; list-style: none; }
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu summary span { width: 22px; height: 1.5px; background: currentColor; }
.site-menu[open] summary span:first-child { transform: translateY(3.75px) rotate(45deg); }
.site-menu[open] summary span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.site-menu nav { position: absolute; top: calc(100% + 12px); right: 0; display: grid; width: min(280px, calc(100vw - 36px)); max-height: calc(100dvh - 80px); overflow: auto; padding: 10px 20px; background: var(--bg); border: 1px solid var(--hair); box-shadow: 0 12px 30px #29251b22; }
.site-menu nav a { padding: 9px 0; }
.site-menu nav a + a { border-top: 1px solid #dfdbd1; }
.halls, .catalog { padding-block: clamp(43px, 4.4vw, 75px); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.section-heading h2 { margin: 0; font: 500 clamp(2.5rem, 4.4vw, 4.25rem)/.97 var(--font-display); letter-spacing: -.045em; }
.text-link { font-size: .95rem; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.hall-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(16px, 2vw, 32px); }
.hall, .work { min-width: 0; display: block; color: inherit; text-decoration: none; }
.hall-image, .work-image { position: relative; overflow: hidden; background-color: #dfdbcc; }
.hall-image { aspect-ratio: 1.72; }
.hall-image img, .work-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hall:hover img, a.work:hover img { transform: scale(1.026); }
.hall h3 { margin: 14px 0 4px; font: 500 clamp(2rem, 2.85vw, 2.9rem)/1 var(--font-display); letter-spacing: -.035em; }
.hall p { margin: 0; font-size: .94rem; color: var(--muted); }
.hall:hover h3, a.work:hover h4 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .14em; }
.catalog { border-top: 1px solid var(--hair); background: #f2f0e8; }
.work:is([data-panel="press"], [data-panel="press-telegram"]) .work-image { background: #34382e; }
.work:is([data-panel="press"], [data-panel="press-telegram"]) .work-image img { object-fit: contain; }
.catalog .section-heading { flex-wrap: wrap; }
#cases-catalog { scroll-margin-top: clamp(12px, 2vw, 24px); }
.filters { display: flex; flex-wrap: wrap; gap: 4px; }
.filters[hidden], .collection-group[hidden] { display: none; }
.filters button { cursor: pointer; border: 1px solid transparent; background: transparent; color: var(--fg); border-radius: 100px; padding: 7px 13px; font-size: .9rem; }
.filters button:hover { border-color: #acae9d; }
.filters button[aria-pressed="true"] { color: white; background: var(--accent); }
.collection-group:not([hidden]) ~ .collection-group { margin-top: clamp(44px, 6vw, 84px); }
.collection-group > h3 {
  margin: 24px 0 18px;
  padding-top: 20px;
  border-top: 1px solid var(--hair);
  font: 500 clamp(2.25rem, 4vw, 3.45rem)/1 var(--font-display);
  letter-spacing: -.04em;
}
.collection-prices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 760px);
  margin: 0;
  border: 1px solid #d8d0bd;
  border-radius: 4px;
  background: #faf6eb;
}
.collection-prices > div { padding: 12px 17px; }
.collection-prices > div + div { border-inline-start: 1px solid #e3dbca; }
.collection-prices > div:only-child { grid-column: 1 / -1; }
.collection-prices dt { color: #575141; font-size: .875rem; }
.collection-prices dd { margin: 3px 0 0; color: #304334; font-size: .9375rem; }
.collection-prices strong { font-weight: 650; }
.works { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px clamp(14px,1.7vw,26px); }
.work-image { aspect-ratio: 1.64; }
.work-meta { display: block; margin: 12px 0 3px; color: var(--muted); font-size: .84375rem; }
.work h4 { margin: 0; font: 500 clamp(1.6rem, 2vw, 2.2rem)/1.03 var(--font-display); letter-spacing: -.025em; overflow-wrap: anywhere; }
.collection-group[data-room="projects"] .work-image { background: #ded9cd; }
.collection-group[data-room="projects"] .work-image img { object-fit: contain; }
.collection-subtitle { margin: 28px 0 14px; font: 500 clamp(1.6rem, 2.6vw, 2rem)/1.1 var(--font-display); }

@media (min-width: 1050px) {
  .collection-group .works { grid-template-columns: repeat(5,minmax(0,1fr)); }
}
@media (max-width: 870px) {
  .hall-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .works { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .gallery-nav { gap: 18px; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  html { scroll-padding-top: 59px; }
  .navbar { min-height: 58px; gap: 8px; }
  .brand { font-size: 1.15rem; }
  .gallery-nav { display: none; }
  .discuss { margin-left: auto; padding: 7px 12px; font-size: .84rem; }
  .site-menu summary { width: 35px; }
  .section-heading { align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 19px; }
  .collection-prices { grid-template-columns: 1fr; }
  .collection-prices > div { display: flex; justify-content: space-between; align-items: baseline; gap: 5px 12px; flex-wrap: wrap; padding: 8px 12px; }
  .collection-prices > div + div { border-inline-start: 0; border-top: 1px solid #e3dbca; }
  .collection-prices dd { margin: 0; }
  .text-link { font-size: .85rem; }
  .hall-grid { grid-template-columns: 1fr; gap: 26px; }
  .hall-image { aspect-ratio: 1.92; }
  .hall h3 { margin-top: 11px; }
  .works { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 13px; }
  .filters { gap: 1px; margin-top: 6px; }
  .filters button { padding: 8px 10px; }
  .work-meta { margin-top: 7px; }
}
@media (max-width: 365px) {
  :root { --gutter: 14px; }
  .brand { font-size: 1.05rem; }
  .section-heading h2 { font-size: 2.3rem; }
  .filters button { padding-inline: 8px; }
  .work h4 { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hall-image img, .work-image img { transition: none; }
}
