/* Marianna Nerozna — public site
   A quiet gallery wall: lavender-gesso ground, indigo ink, one gold line of light. */

:root {
  --wall: #f2f1f6;
  --btn-radius: 12px;
  --wall-deep: #e7e5ee;
  --paper: #fbfafd;
  --ink: #1f1b35;
  --ink-2: #46415c;
  --stone: #66617c;
  --line: #d9d6e3;
  --gold: #b08a3e;
  --gold-text: #85631f;
  --violet: #4b3f7a;
  /* footer: the same as the page itself — its background, ink and grey text — set apart by a gold line */
  --night: var(--wall);
  --night-text: var(--ink);
  --night-muted: var(--stone);

  /* the fonts of the old nerozna.com */
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --page: 1360px;
  --radius: 2px;
  --hang: 0 1px 2px rgba(31, 27, 53, .08), 0 18px 34px -20px rgba(31, 27, 53, .45);
}

*, *::before, *::after { box-sizing: border-box; }

/* the page keeps the same width whether it is long enough to scroll or not, so the header and
   the content don't shift sideways between pages (screens with a permanent scrollbar) */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; scrollbar-gutter: stable; }
@supports not (scrollbar-gutter: stable) { html { overflow-y: scroll; } }

body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  font-feature-settings: 'kern' 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--gold-text); }

button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -.005em; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--wall); padding: 10px 16px; border-radius: var(--radius);
}
.skip:focus { top: 12px; color: var(--wall); }

main { display: block; min-height: 60vh; }

/* ---------- buttons & links ---------- */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 11px 22px;
  background: var(--ink); color: var(--wall);
  border: 1px solid var(--ink); border-radius: var(--btn-radius);
  font: 500 15px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.button:hover { background: var(--violet); border-color: var(--violet); color: var(--wall); }
.button--ghost { background: transparent; color: var(--ink); }
.button--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--wall); }

.text-link {
  font: 500 15px/1.4 var(--sans); color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 6px;
}
.text-link:hover { color: var(--gold-text); }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
/* The frosted background sits on a layer of its own: a blur on the header itself would trap
   the full-screen mobile menu inside the header's box. */
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--wall) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.site-header.is-scrolled, .nav-open .site-header { border-bottom-color: var(--line); }

.site-header__inner {
  max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.wordmark { display: inline-flex; align-items: baseline; gap: 12px; text-decoration: none; color: var(--ink); }
.wordmark:hover { color: var(--ink); }
.wordmark__name { font: 600 22px/1 var(--serif); letter-spacing: .005em; white-space: nowrap; }
.wordmark__tag { font: 500 11px/1 var(--sans); letter-spacing: .14em; color: var(--stone); white-space: nowrap; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav__list { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav__list > li { position: relative; }
.site-nav__list a {
  display: inline-block; padding: 8px 0;
  font: 500 15px/1.2 var(--sans); text-decoration: none; color: var(--ink-2);
}
.site-nav__list > li > a[aria-current="page"],
.site-nav__list > li > a:hover { color: var(--ink); box-shadow: inset 0 -1px 0 var(--gold); }

.site-nav .sub {
  position: absolute; left: -18px; top: 100%; min-width: 250px;
  list-style: none; margin: 0; padding: 10px 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 14px 30px -18px rgba(31, 27, 53, .35);
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.site-nav .sub a { display: block; padding: 7px 18px; font-weight: 400; }
.site-nav .sub a:hover { background: var(--wall); box-shadow: none; }
.site-nav .sub .sub__sep { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
@media (min-width: 1081px) {
  .has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
}

.site-nav__tools { display: flex; align-items: center; gap: 18px; }
.icon-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); text-decoration: none; }
.lang-link {
  display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 30px;
  border: 1px solid var(--line); border-radius: 8px;
  font: 500 12px/1 var(--sans); letter-spacing: .08em; text-decoration: none; color: var(--ink-2);
}
.lang-link:hover { border-color: var(--gold); }
.only-mobile { display: none; }

.nav-toggle {
  display: none; align-items: center; gap: 10px; padding: 8px 0; background: none; border: 0; cursor: pointer;
  font: 500 15px/1 var(--sans);
}
.nav-toggle__bars, .nav-toggle__bars::before { display: block; width: 22px; height: 1px; background: currentColor; position: relative; transition: transform .2s; }
.nav-toggle__bars::before { content: ''; position: absolute; top: 6px; }
.nav-toggle__bars { transform: translateY(-3px); }
[aria-expanded="true"] .nav-toggle__bars { transform: translateY(0) rotate(45deg); }
[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(-90deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; top: var(--header-h, 61px); right: 0; bottom: 0; left: 0; z-index: 39;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: 8px var(--gutter) calc(32px + env(safe-area-inset-bottom));
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    background: var(--wall);
    opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none;
    transition: opacity .18s, transform .18s, visibility .18s;
  }
  /* closed menu must not catch a single tap or swipe meant for the page */
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .nav-open { overflow: hidden; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list > li { border-bottom: 1px solid var(--line); }
  .site-nav__list > li > a { display: block; padding: 14px 0; font: 500 26px/1.2 var(--serif); color: var(--ink); }
  .site-nav__list > li > a[aria-current="page"], .site-nav__list > li > a:hover { box-shadow: none; color: var(--gold-text); }
  .site-nav .sub {
    position: static; opacity: 1; visibility: inherit; transform: none;
    background: none; border: 0; box-shadow: none; padding: 0 0 14px; min-width: 0;
    columns: 2; column-gap: 20px;
  }
  .site-nav .sub a { padding: 6px 0; color: var(--ink-2); }
  .site-nav__tools { justify-content: space-between; padding-top: 24px; }
  .only-mobile { display: inline; }
}

@media (max-width: 520px) {
  .wordmark__tag { display: none; }
  .wordmark__name { font-size: 20px; }
  .site-nav .sub { columns: 1; }
  .site-nav__list > li > a { font-size: 23px; padding: 12px 0; }
}

/* ---------- hero ---------- */

.hero {
  max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto;
  padding: clamp(24px, 5vw, 64px) var(--gutter) clamp(48px, 7vw, 96px);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: end;
}
.hero__name {
  font-size: clamp(44px, 7.4vw, 110px); line-height: 1; letter-spacing: -.01em;
  max-width: 7em; margin-bottom: 32px;
}
.hero__intro { max-width: 46ch; margin: 0 0 32px; color: var(--ink-2); font-size: 17px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin: 0; }

.hero__work { position: relative; margin: 0; padding-top: clamp(48px, 9vw, 120px); display: flex; flex-direction: column; align-items: center; }
/* The single gold line: a ray of light the painting hangs from */
.hero__ray {
  position: absolute; top: calc(-1 * clamp(24px, 5vw, 64px)); bottom: 100%; left: 50%;
  height: calc(clamp(48px, 9vw, 120px) + clamp(24px, 5vw, 64px)); width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold) 35%, var(--gold));
  transform-origin: top; animation: ray 1.1s cubic-bezier(.2, .7, .2, 1) .1s both;
}
@keyframes ray { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.hero__frame { display: block; box-shadow: var(--hang); }
.hero__frame img { max-height: min(68vh, 760px); width: auto; }
.hero__work figcaption { margin-top: 18px; text-align: center; }
.hero--logo { align-items: center; }
/* nothing beside the name (the admin's «Головна сторінка» → «Перший екран») */
.hero--text { grid-template-columns: minmax(0, 1fr); }
.hero--text .hero__name { max-width: 12em; }
.hero__logo { margin: 0; display: flex; justify-content: center; align-items: center; }
.hero__logo .logo-art { width: min(100%, 640px); }
/* ART&SHOCK logo (views/partials/logo-art.ejs): paint layer placed exactly under the lettering */
.logo-art { position: relative; display: block; width: 100%; aspect-ratio: 1990 / 1520; }
.logo-art img { position: absolute; max-width: none; display: block; }
.logo-art__ink { inset: 0; width: 100%; height: 100%; }
.logo-art__paint { left: 19.598%; top: 1.316%; width: 66.834%; height: 60.197%; }
.hero__title { display: block; font: 600 19px/1.25 var(--serif); text-decoration: none; }
.hero__spec { display: block; font-size: 13px; color: var(--stone); margin-top: 2px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; align-items: start; }
  .hero__name { margin-bottom: 20px; }
  .hero__work { padding-top: 56px; }
  .hero__logo .logo-art { width: min(100%, 440px); }
  .hero__ray { top: 0; height: 56px; }
  .hero__frame img { max-height: 70vh; }
}

/* ---------- sections ---------- */

.section, .page-head, .series-filter, .crumbs, .pager, .work, .work-nav, .post, .links, .cert {
  max-width: calc(var(--page) + 2 * var(--gutter)); margin-left: auto; margin-right: auto;
  padding-left: var(--gutter); padding-right: var(--gutter);
}
.section { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(16px, 3vw, 32px); }
.section--flush { padding-top: 8px; }
.section__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding-bottom: 18px; margin-bottom: 32px; border-bottom: 1px solid var(--line);
}
.section__head h2 { font-size: clamp(26px, 2.8vw, 36px); }
.section__head > a { flex: none; white-space: nowrap; }

.page-head { padding-top: clamp(28px, 5vw, 64px); padding-bottom: 28px; }
.page-head h1 { font-size: clamp(34px, 5vw, 64px); line-height: 1.06; letter-spacing: -.01em; max-width: 16em; }
.page-head .lead { max-width: 60ch; margin: 18px 0 0; font-size: 17px; color: var(--ink-2); }
.page-head--center { text-align: center; padding-bottom: 80px; }
.page-head--center h1, .page-head--center .lead { margin-left: auto; margin-right: auto; }
.page-head--center .search-form { margin: 32px auto 24px; }

.empty { color: var(--stone); font-size: 18px; padding: 24px 0 48px; }

/* ---------- the wall: justified rows, true proportions ---------- */

.wall {
  --row: 260px;
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: clamp(36px, 4vw, 56px) clamp(20px, 2.6vw, 36px);
}
.wall::after { content: ''; flex-grow: 999999; }
.wall--small { --row: 190px; }
.wall--photos { --row: 220px; gap: 12px; }

.piece { flex: calc(var(--r) * 1000) 1 calc(var(--r) * var(--row)); min-width: 0; }
.piece > a, .piece > button { display: block; text-decoration: none; color: var(--ink); }
.piece__frame { display: block; background: var(--wall-deep); box-shadow: var(--hang); }
.piece__frame img { width: 100%; aspect-ratio: var(--r); object-fit: cover; }
.wall--photos .piece__frame { box-shadow: none; border: 0; padding: 0; cursor: zoom-in; width: 100%; }
.piece__label { display: block; padding-top: 14px; }
.piece__title { display: block; font: 600 17px/1.3 var(--serif); }
.piece__spec { display: block; margin-top: 3px; font-size: 13px; line-height: 1.4; color: var(--stone); }
.piece a:hover .piece__title { color: var(--gold-text); }
.piece a:hover .piece__frame { box-shadow: 0 1px 2px rgba(31, 27, 53, .1), 0 24px 40px -20px rgba(31, 27, 53, .55); }
.piece__frame { transition: box-shadow .25s; }

@media (max-width: 700px) {
  .wall { --row: 40vw; gap: 32px 14px; }
  .wall--small { --row: 36vw; }
  .wall--photos { --row: 34vw; gap: 8px; }
  .piece__title { font-size: 16px; }
  .piece__spec { font-size: 12px; }
}

/* ---------- series (category) index & filter ---------- */

.series-index {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 5vw, 80px);
}
.series-index a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none;
}
.series-index__name { font: 500 clamp(21px, 2.1vw, 27px)/1.2 var(--serif); }
.series-index__count { font-size: 14px; color: var(--stone); white-space: nowrap; }
.series-index a:hover .series-index__name { color: var(--gold-text); }
@media (max-width: 700px) { .series-index { grid-template-columns: 1fr; } }
/* the same with each series' main photo (the admin's «Серії» → «Головне фото серії»; «Головна сторінка» → «Серії») */
.series-cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 40px);
}
.series-cards a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 14px 16px; text-decoration: none; }
.series-cards__pic { grid-column: 1 / -1; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--wall-deep); }
.series-cards__pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.series-cards a:hover .series-cards__pic img { transform: scale(1.035); }
.series-cards a:hover .series-index__name { color: var(--gold-text); }
@media (max-width: 1000px) { .series-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .series-cards { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .series-cards__pic img { transition: none; } }

.series-filter { padding-bottom: 36px; }
.series-filter ul {
  list-style: none; margin: 0; padding: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 26px;
  border-bottom: 1px solid var(--line);
}
.series-filter a { display: inline-block; padding: 6px 0; font-size: 15px; color: var(--ink-2); text-decoration: none; }
.series-filter sup { font-size: 11px; color: var(--stone); margin-left: 3px; }
.series-filter a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -1px 0 var(--gold); }
@media (max-width: 700px) {
  .series-filter ul {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .series-filter ul::-webkit-scrollbar { display: none; }
  .series-filter li { flex: none; }
}

/* filters by characteristics (technique, surface, size…) */
.work-filters {
  max-width: calc(var(--page) + 2 * var(--gutter)); margin: -18px auto 0; padding: 0 var(--gutter) 30px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
}
.work-filter { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 0 0 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 14px; color: var(--stone); }
.work-filter:hover { border-color: var(--ink-2); }
.work-filter.is-active { border-color: var(--gold); background: #f8f1e2; color: var(--gold-text); }
.work-filter__name { white-space: nowrap; }
.work-filter select {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; cursor: pointer;
  padding: 9px 34px 9px 0; font: 500 14px/1.2 var(--sans); color: var(--ink); max-width: 46vw;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2366617c' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 11px 7px;
}
.work-filter select:focus { outline: none; }
.work-filter:focus-within { box-shadow: 0 0 0 2px var(--gold); }
.work-filters__found { font-size: 14px; color: var(--stone); margin-left: 4px; }
.work-filters__reset { font-size: 14px; color: var(--ink-2); text-decoration-color: var(--gold); }
.work-filters__apply { padding: 9px 16px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff; font: 500 14px var(--sans); cursor: pointer; }
@media (max-width: 700px) {
  .work-filters { margin-top: -22px; gap: 8px; }
  .work-filter { font-size: 13px; padding-left: 12px; }
  .work-filter select { font-size: 13px; padding-right: 30px; background-position: right 12px center; }
}

.pager { display: flex; justify-content: space-between; align-items: center; padding-top: 48px; padding-bottom: 24px; font-size: 15px; }
.pager__pos { color: var(--stone); }

/* ---------- single work ---------- */

.crumbs { padding-top: 24px; padding-bottom: 20px; display: flex; gap: 10px; font-size: 14px; color: var(--stone); }
.crumbs a { color: var(--stone); text-decoration: none; }
.crumbs a:hover { color: var(--gold-text); }
.crumbs--inline { padding: 0 0 18px; max-width: none; }

.work { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
/* Photos of a work: a row of slides that can be swiped with a finger. Every slide has the same
   height (set by the main photo, the others fit inside), so changing the photo never moves the page. */
.work__viewer { min-width: 0; --pad: clamp(20px, 4vw, 56px); --cap: min(66vh, 820px); }
.work__stage { position: relative; background: var(--wall-deep); border-radius: var(--radius); overflow: hidden; }
.work__track {
  container-type: inline-size;
  display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.work__track::-webkit-scrollbar { display: none; }
.work__image {
  --stage: min(var(--cap), calc((100cqw - 2 * var(--pad)) * var(--maxr, 1.3)));
  flex: 0 0 100%; min-width: 0; margin: 0; padding: var(--pad);
  height: calc(var(--stage) + 2 * var(--pad));
  display: flex; align-items: center; justify-content: center;
  scroll-snap-align: center; scroll-snap-stop: always;
}
/* the photo's frame has its final size (--r = width / height, set in the page) before the photo itself arrives:
   nothing jumps, and a painting flying in from another page lands in the right place, not in an empty point */
.work__zoom { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; max-width: 100%; width: min(100%, calc(var(--stage) * var(--r, 1))); box-shadow: var(--hang); -webkit-tap-highlight-color: transparent; }
.work__zoom img { width: 100%; height: auto; aspect-ratio: var(--r); max-height: var(--stage); object-fit: contain; -webkit-user-drag: none; user-select: none; }
.work__arrow {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; padding: 0;
  display: none; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 90%, transparent); color: var(--ink);
  cursor: pointer; opacity: .85; transition: opacity .15s, border-color .15s;
}
.work__arrow:hover { opacity: 1; border-color: var(--gold); }
.work__arrow--prev { left: 14px; }
.work__arrow--next { right: 14px; }
@media (hover: hover) and (pointer: fine) { .work__arrow { display: inline-flex; } }
.work__arrow[hidden] { display: none; }
.work__count {
  position: absolute; right: 12px; bottom: 12px; z-index: 2; pointer-events: none;
  padding: 5px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 58%, transparent); color: #fff;
  font: 500 12px/1 var(--sans); letter-spacing: .06em; font-variant-numeric: tabular-nums;
}
.work__thumbs { position: relative; list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.work__thumbs button { padding: 0; border: 1px solid transparent; background: var(--wall-deep); cursor: pointer; border-radius: var(--radius); }
.work__thumbs img { height: 72px; width: auto; opacity: .75; transition: opacity .15s; }
.work__thumbs button[aria-current="true"] { border-color: var(--gold); }
.work__thumbs button[aria-current="true"] img, .work__thumbs button:hover img { opacity: 1; }
/* the painting's videos (src/video.js): a silent loop plays in its slide; a tap opens the whole video */
.work__video .work__zoom { position: relative; cursor: pointer; }
.work__video video { display: block; width: 100%; height: auto; aspect-ratio: var(--r); max-height: var(--stage); object-fit: cover; background: var(--wall-deep); pointer-events: none; }
.work__playicon {
  position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 9px; border-radius: 999px; pointer-events: none;
  background: color-mix(in srgb, var(--ink) 62%, transparent); color: #fff; font: 500 13px/1 var(--sans); letter-spacing: .02em;
}
.work__playicon > span { display: inline-flex; align-items: center; gap: 4px; }
.work__video:not(.is-playing) .work__playicon { left: 50%; bottom: 50%; transform: translate(-50%, 50%); padding: 12px 18px 12px 14px; font-size: 14px; }
.work__thumbs button.is-video { position: relative; }
.work__thumbplay { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6)); pointer-events: none; }
.work__credit { margin: 8px 0 0; font-size: 12.5px; color: var(--stone); }

.work__label { position: sticky; top: 96px; border-left: 1px solid var(--gold); padding: 4px 0 4px clamp(20px, 2.4vw, 32px); }
.work__title { font-size: clamp(30px, 3.3vw, 44px); line-height: 1.1; letter-spacing: -.008em; }
.work__specs { margin: 24px 0 0; display: grid; gap: 8px; }
.work__specs div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; font-size: 15px; }
.work__specs dt { color: var(--stone); }
.work__specs dd { margin: 0; }
.work__specs a { text-decoration-color: var(--gold); }
.work__sale { display: flex; gap: 14px; align-items: baseline; margin: 28px 0 14px; font-weight: 500; }
.work__sale--available span:first-child::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3f7a55; margin-right: 8px; vertical-align: 1px; }
.work__sale--sold { color: var(--stone); }
.work__price { font: 600 19px/1 var(--serif); }
.work__text { margin-top: 28px; font-size: 16px; }

.share { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; align-items: baseline; }
.share__label { color: var(--stone); }
.share a, .share button { color: var(--ink-2); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.share a:hover, .share button:hover { color: var(--gold-text); }

.work-nav {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: end;
  padding-top: 56px; padding-bottom: 8px;
}
.work-nav a { text-decoration: none; font: 500 18px/1.3 var(--serif); }
.work-nav a span { display: block; font: 400 13px/1.4 var(--sans); color: var(--stone); margin-bottom: 4px; }
.work-nav__next { text-align: right; }
.work-nav__all { font: 500 14px/1.4 var(--sans) !important; color: var(--ink-2); text-decoration: underline !important; text-decoration-color: var(--gold) !important; text-underline-offset: 6px; }

@media (max-width: 960px) {
  .work { grid-template-columns: 1fr; }
  .work__label { position: static; }
  /* Photo and its thumbnails fit on one phone screen under the header */
  .is-work .crumbs { padding-top: 14px; padding-bottom: 12px; }
  .work__viewer { --pad: 12px; --cap: max(300px, calc(100svh - 212px)); }
  .work__stage { margin: 0 calc(-1 * var(--gutter)); border-radius: 0; }
  .work__thumbs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-top: 10px; gap: 8px; }
  .work__thumbs::-webkit-scrollbar { display: none; }
  .work__thumbs li { flex: none; }
  .work__thumbs img { height: 56px; }
  .work-nav { grid-template-columns: 1fr 1fr; }
  .work-nav__all { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .work-nav a { font-size: 16px; }
}
@supports not (height: 1svh) {
  @media (max-width: 960px) { .work__viewer { --cap: max(300px, calc(100vh - 212px)); } }
}

/* ---------- events, articles ---------- */

.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.section__head + .post-list { border-top: 0; margin-top: -32px; }
.post-row a {
  display: grid; grid-template-columns: 200px minmax(0, 1fr) 180px; gap: 28px; align-items: start;
  padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink);
}
.post-row__date { font-size: 14px; color: var(--stone); padding-top: 8px; }
.post-row__title { display: block; font: 500 clamp(20px, 1.9vw, 25px)/1.25 var(--serif); }
.post-row__place { display: block; margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.post-row__excerpt { display: block; margin-top: 10px; color: var(--ink-2); font-size: 16px; max-width: 64ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-row__cover { display: block; background: var(--wall-deep); }
.post-row__cover img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.post-row a:hover .post-row__title { color: var(--gold-text); }
.post-list--compact .post-row a { grid-template-columns: 200px minmax(0, 1fr) 120px; padding: 20px 0; }
.is-article .post-row a, .post-list:not(:has(time)) .post-row a { grid-template-columns: minmax(0, 1fr) 180px; }
@media (max-width: 760px) {
  .post-row a, .post-list--compact .post-row a, .post-list:not(:has(time)) .post-row a { grid-template-columns: minmax(0, 1fr) 96px; gap: 6px 16px; }
  .post-row__date { grid-column: 1; grid-row: 1; padding-top: 0; }
  .post-row__body { grid-column: 1; }
  .post-row__cover { grid-column: 2; grid-row: 1 / span 2; }
  .post-row__excerpt { -webkit-line-clamp: 2; font-size: 15px; }
}

.post { max-width: calc(860px + 2 * var(--gutter)); padding-top: clamp(28px, 5vw, 64px); }
.post__head h1 { font-size: clamp(30px, 4vw, 52px); line-height: 1.1; letter-spacing: -.008em; }
.post__meta { margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 4px 20px; color: var(--stone); font-size: 15px; }
.post__place { color: var(--ink-2); }
.post__cover { margin: 40px 0 0; }
.post__cover img { width: 100%; cursor: zoom-in; }
.post__body { margin-top: 40px; }
.post__gallery { margin-top: 48px; }

/* ---------- prose (descriptions, articles, imported WordPress content) ---------- */

.prose { font-size: 17px; line-height: 1.75; color: var(--ink); max-width: 68ch; }
.prose > * + * { margin-top: 1em; }
.prose p { margin: 0; }
.prose p + p { margin-top: .9em; }
.prose h2 { font-size: 28px; margin-top: 1.6em; }
.prose h3 { font-size: 22px; margin-top: 1.4em; }
.prose h4 { font: 600 17px/1.4 var(--sans); margin-top: 1.4em; }
.prose a { text-decoration-color: var(--gold); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 1em 0; }
.prose li + li { margin-top: .35em; }
.prose blockquote {
  margin: 1.6em 0; padding: 0 0 0 24px; border-left: 1px solid var(--gold);
  font: italic 400 22px/1.45 var(--serif); color: var(--ink);
}
.prose strong { font-weight: 600; }
.prose figure { margin: 2em 0; }
.prose img { cursor: zoom-in; border-radius: var(--radius); }
.prose > figure img, .prose > p > img { max-height: 78vh; width: auto; }
.prose figcaption { font-size: 14px; color: var(--stone); margin-top: 8px; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); }
/* vertical players: TikTok (9:16, like on the old site) and Instagram */
.prose .embed--tiktok, .prose .embed--instagram { max-width: 340px; margin-left: auto; margin-right: auto; }
.prose .embed--tiktok iframe { aspect-ratio: 9 / 16; border-radius: 8px; background: #000; }
.prose .embed--instagram { max-width: 400px; }
.prose .embed--instagram iframe { aspect-ratio: auto; height: 720px; border-radius: 8px; background: #fff; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; }
.prose td, .prose th { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.post__body.prose { max-width: none; }
.post__body.prose > :not(.gallery):not(figure) { max-width: 68ch; }
.prose .gallery { display: flex; flex-wrap: wrap; gap: 10px; margin: 2em 0; }
.prose .gallery::after { content: ''; flex-grow: 999999; }
.prose .gallery > * { margin: 0; flex: calc(var(--r, 1) * 1000) 1 calc(var(--r, 1) * 230px); min-width: 0; }
.prose .gallery img { width: 100%; height: auto; aspect-ratio: var(--r, auto); object-fit: cover; }
.work__text.prose { font-size: 16px; line-height: 1.65; }
.work__text.prose img { margin: 1em 0; }

/* ---------- the home page's own text (an announcement; «Головна сторінка» → «Свій текст») ---------- */

.home-text > * { max-width: 46rem; }
.home-text__title { font-size: clamp(26px, 2.8vw, 36px); margin-bottom: 18px; }
.home-text p { margin: 0 0 14px; color: var(--ink-2); font-size: 17px; line-height: 1.65; }
.home-text .button { margin-top: 10px; }

/* ---------- about teaser ---------- */

.about-teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.about-teaser:not(:has(img)) { grid-template-columns: 1fr; }
.about-teaser__portrait { width: 100%; max-height: 640px; object-fit: cover; box-shadow: var(--hang); }
.about-teaser__text h2 { font-size: clamp(26px, 2.8vw, 36px); margin-bottom: 24px; }
.about-teaser__quote { margin: 0 0 32px; padding-left: 24px; border-left: 1px solid var(--gold); }
.about-teaser__quote p { margin: 0; font: italic 400 clamp(21px, 2.3vw, 29px)/1.4 var(--serif); max-width: 28em; }
@media (max-width: 760px) { .about-teaser { grid-template-columns: 1fr; } }

/* ---------- search ---------- */

.search-form { display: flex; gap: 10px; margin-top: 28px; max-width: 620px; }
.search-form input {
  flex: 1; min-width: 0; min-height: 46px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  font: 400 17px/1.3 var(--sans); color: var(--ink);
}
.search-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 25%, transparent); }

/* ---------- footer ---------- */

.site-footer { margin-top: clamp(48px, 7vw, 96px); background: var(--night); color: var(--night-text); }
.site-footer::before { content: ''; display: block; max-width: var(--page); margin: 0 auto; border-top: 1px solid var(--gold); width: calc(100% - 2 * var(--gutter)); }
.site-footer__inner {
  max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 64px var(--gutter) 40px;
  display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px;
}
.wordmark--light, .wordmark--light:hover { color: var(--night-text); }
.wordmark--light .wordmark__tag { color: var(--night-muted); }
.site-footer__intro { margin: 18px 0 0; color: var(--night-muted); font-size: 15px; max-width: 40ch; }
.site-footer h2 { font: 600 12px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--night-muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.site-footer a { color: var(--night-text); text-decoration: none; }
.site-footer a:hover { color: var(--gold-text); }
.site-footer__base {
  max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 20px var(--gutter) 32px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(var(--line), var(--line)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  font-size: 13px; color: var(--night-muted);
}
@media (max-width: 960px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 100; background: var(--wall); /* the page's own colour, like the rest of the site */
  display: flex; align-items: center; justify-content: center; touch-action: pan-y;
}
.lightbox[hidden] { display: none; }
.lightbox__img { animation: lb-in .18s ease-out; max-width: 94vw; max-height: 88vh; width: auto; height: auto; object-fit: contain; user-select: none; box-shadow: var(--hang); }
.lightbox__btn {
  position: absolute; display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 50%;
  background: color-mix(in srgb, var(--paper) 90%, transparent); color: var(--ink); cursor: pointer;
  transition: border-color .15s;
}
.lightbox__btn:hover { border-color: var(--gold); color: var(--gold-text); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: var(--stone); font-size: 13px; }
.lightbox__video { background: #000; }
.lightbox__credit { position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%); margin: 0; max-width: 90vw; color: var(--stone); font-size: 12.5px; text-align: center; }
@keyframes lb-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lightbox__img { animation: none; } .site-nav { transition: none !important; } }
@media (max-width: 700px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 8px; transform: none; } }

/* ---------- for buyers: approximate price, shipping link (work.ejs) ---------- */
.work__fx { margin: -6px 0 16px; font-size: 15px; color: var(--ink-2); }
.work__fx small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--stone); }
.work__ask { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.work__shipping { font-size: 15px; }

/* ---------- under the autobiography: exhibitions and series (post.ejs) ---------- */
.facts { margin-top: 56px; padding-top: 8px; border-top: 1px solid var(--line); max-width: 68ch; }
.facts h2 { font-size: 26px; margin: 32px 0 14px; }
.facts ul { list-style: none; margin: 0; padding: 0; }
.facts__events li { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts__events a, .facts__series a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.facts__meta { font-size: 14px; color: var(--stone); }
.facts__series { display: flex; flex-wrap: wrap; gap: 10px 22px; }

/* ---------- /links: one screen for the link in a social profile (links.ejs) ---------- */
.links { max-width: calc(720px + 2 * var(--gutter)); padding-top: clamp(28px, 6vw, 56px); padding-bottom: 32px; }
.links__head { text-align: center; }
.links__portrait { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; box-shadow: var(--hang); }
.links__name { font-size: clamp(30px, 6vw, 44px); line-height: 1.1; }
.links__intro { margin: 12px auto 0; max-width: 52ch; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.links__event { display: grid; gap: 4px; margin: 28px 0 0; padding: 16px 20px; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--btn-radius); color: var(--ink); text-decoration: none; }
.links__event:hover .links__event-title { text-decoration: underline; text-decoration-color: var(--gold); }
.links__kicker { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); font-weight: 600; }
.links__event-title { font: 500 21px/1.3 var(--serif); }
.links__meta { font-size: 14px; color: var(--stone); }
/* the whole 3D gallery: its picture over the text, the whole card a link */
.links__gallery { display: block; margin: 20px 0 0; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--btn-radius); color: var(--ink); text-decoration: none; box-shadow: var(--hang); transition: border-color .2s; }
.links__event + .links__gallery { margin-top: 14px; }
.links__head + .links__gallery { margin-top: 28px; }
.links__gallery:hover { border-color: var(--gold); }
.links__gallery:hover .links__event-title { text-decoration: underline; text-decoration-color: var(--gold); }
.links__gallery-pic { position: relative; display: block; aspect-ratio: 1200 / 630; background: var(--wall-deep); overflow: hidden; }
.links__gallery-pic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.links__gallery:hover .links__gallery-pic img { transform: scale(1.03); }
.links__gallery-text { display: grid; gap: 4px; padding: 14px 20px 16px; }
.links__works { margin-top: 32px; }
.links__works .section__head h2 { font-size: 24px; }
.links__buttons { display: grid; gap: 10px; margin-top: 28px; }
.links__buttons .button { width: 100%; justify-content: center; text-align: center; }
.links__phone { font-weight: 400; opacity: .75; margin-left: 6px; }
.links__socials { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 14.5px; }
.links__socials a { color: var(--ink-2); }

/* ---------- certificate check page (certificate.ejs) ---------- */
.cert { max-width: calc(880px + 2 * var(--gutter)); padding-top: clamp(28px, 5vw, 64px); }
.cert__kicker { margin: 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); font-weight: 600; }
.cert__state { display: flex; gap: 18px; align-items: flex-start; margin-top: 16px; padding: 20px 22px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid #3f7a55; }
.cert__state--revoked { border-left-color: #a03030; }
.cert__state--missing { border-left-color: var(--stone); }
.cert__state h1 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; }
.cert__state p { margin: 8px 0 0; color: var(--ink-2); }
.cert__mark { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #3f7a55; color: #fff; font-size: 22px; font-weight: 700; }
.cert__state--revoked .cert__mark { background: #a03030; }
.cert__state--missing .cert__mark { background: var(--stone); }
.cert__work { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 32px; margin-top: 36px; align-items: start; }
.cert__work img { width: 100%; height: auto; box-shadow: var(--hang); }
.cert__work h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 14px; }
.cert__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 22px; }
.work__shows a { color: inherit; text-decoration-color: var(--gold); }
@media (max-width: 700px) { .cert__work { grid-template-columns: minmax(0, 1fr); } }

/* ---------- «Підписатися в Telegram», «Додати в календар» ---------- */
.tg-icon { flex: none; }
.subscribe-tg { gap: 8px; }
.site-footer__subscribe p { margin: 0 0 12px; color: var(--night-muted); font-size: 14.5px; line-height: 1.5; }
.work__follow { margin: 16px 0 0; font-size: 14.5px; }
.work__follow a, .event-cal__tg { display: inline-flex; align-items: center; gap: 6px; }
.event-cal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 22px; font-size: 15px; }
.event-cal__label { color: var(--stone); }

/* ---------- «Допомогти вибрати картину»: the AI consultant (consultant.js) ---------- */
.consult-open { cursor: pointer; font: inherit; }
button.text-link.consult-open { background: none; border: 0; border-bottom: 1px solid var(--gold); padding: 0 0 1px; color: var(--ink); font-size: 15px; }
/* the home page's invitation to the 3D gallery */
.gallery-teaser { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.gallery-teaser__pic { position: relative; display: block; overflow: hidden; border-radius: 4px; background: var(--wall-deep); aspect-ratio: 1200 / 630; box-shadow: var(--hang); }
.gallery-teaser__pic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery-teaser__pic:hover img { transform: scale(1.03); }
.gallery-teaser__badge { position: absolute; left: 14px; top: 14px; padding: 5px 10px; border-radius: 99px; background: rgba(251, 250, 253, .92); color: var(--violet); font: 600 12px/1 var(--sans); letter-spacing: .08em; }
.gallery-teaser__kicker { margin: 0 0 10px; font: 500 12px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.gallery-teaser__text h2 { margin: 0 0 14px; font-size: clamp(26px, 2.8vw, 36px); }
.gallery-teaser__text > p:not(.gallery-teaser__kicker) { margin: 0 0 22px; color: var(--ink-2); max-width: 46ch; }
.gallery-teaser__rooms { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
.gallery-teaser__rooms a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line); }
.gallery-teaser__rooms a:hover { color: var(--ink); border-color: var(--gold); }
@media (max-width: 800px) { .gallery-teaser { grid-template-columns: 1fr; } }

/* «Допомогти вибрати картину»: a quiet line at the end of the gallery and of a painting's page */
.consult-note { max-width: calc(var(--page) + 2 * var(--gutter)); margin: 8px auto 0; padding: 18px var(--gutter) 44px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 15px; color: var(--stone); }
.consult-note .consult-open { font-size: 15px; }
.consult-note--aside { margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); font-size: 14px; }
.consult-note--aside button.consult-open { font-size: 14px; }
.has-cs, .has-cs body { overflow: hidden; }
.cs-veil { position: fixed; inset: 0; z-index: 999; background: rgba(31, 27, 53, .35); }
.cs { position: fixed; z-index: 1000; top: 0; right: 0; bottom: 0; width: min(440px, 100%); display: flex; flex-direction: column; background: var(--paper); color: var(--ink); box-shadow: -10px 0 40px rgba(31, 27, 53, .25); }
.cs__bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--line); }
.cs__title { font: 500 19px/1.25 var(--serif); }
.cs__badge { font-size: 11px; font-weight: 600; letter-spacing: .06em; padding: 2px 7px; border-radius: 99px; background: var(--wall); color: var(--ink-2); }
.cs__close { margin-left: auto; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; }
.cs__close:hover { background: var(--wall); }
.cs__log { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.cs__msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; }
.cs__msg--bot { align-self: flex-start; background: var(--wall); border-bottom-left-radius: 4px; }
.cs__msg--user { align-self: flex-end; background: var(--ink); color: var(--wall); border-bottom-right-radius: 4px; }
.cs__msg--wait { color: var(--stone); }
.cs__msg--error { background: #f8e7e7; color: #7a2323; }
.cs__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cs__chip { padding: 7px 13px; border: 1px solid var(--line); border-radius: 99px; background: var(--paper); color: var(--ink); font: 500 14px/1.2 var(--sans); cursor: pointer; }
.cs__chip:hover { border-color: var(--ink); }
.cs__works { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cs__work { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); text-decoration: none; }
.cs__work:hover { border-color: var(--gold); }
.cs__work img { width: 76px; height: 76px; object-fit: cover; border-radius: 6px; background: var(--wall); }
.cs__work-text { display: grid; gap: 2px; font-size: 13.5px; color: var(--ink-2); }
.cs__work-text strong { font: 500 16px/1.3 var(--serif); color: var(--ink); }
.cs__avail { font-style: normal; color: #3f7a55; font-size: 12.5px; }
.cs__view { color: var(--gold-text); font-size: 13px; }
.cs__form { display: flex; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line); }
.cs__input { flex: 1; min-height: 44px; max-height: 120px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: 400 16px/1.4 var(--sans); color: var(--ink); resize: none; }
.cs__send { flex: none; min-height: 44px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--ink); color: var(--wall); font: 500 15px var(--sans); cursor: pointer; }
.cs__send:disabled { opacity: .5; cursor: progress; }
.cs__note { margin: 0; padding: 0 16px calc(12px + env(safe-area-inset-bottom)); font-size: 11.5px; line-height: 1.45; color: var(--stone); }
.cs__note a { color: var(--ink-2); }

/* ---------- «Примірити на стіну» (tryon.js) ---------- */
.work__tryon { margin-top: 14px; }
.work__tryon[aria-busy="true"] { opacity: .6; cursor: progress; }
.has-tryon, .has-tryon body { overflow: hidden; }
.tryon { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); }
.tryon__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px var(--gutter); border-bottom: 1px solid var(--line); }
.tryon__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; min-width: 0; }
.tryon__name { font: 500 19px/1.25 var(--serif); }
.tryon__size { font-size: 14px; color: var(--stone); }
.tryon__close { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; }
.tryon__close:hover { background: var(--wall); }
.tryon__stage { flex: 1; min-height: 0; position: relative; background: var(--wall-deep); overflow: hidden; }
.tryon__canvas { display: block; touch-action: none; cursor: grab; }
.tryon__canvas:active { cursor: grabbing; }
.tryon__hint { margin: 0; padding: 10px var(--gutter) 0; font-size: 14px; color: var(--ink-2); text-align: center; }
.tryon__panel { display: grid; gap: 8px; justify-items: center; padding: 8px var(--gutter) calc(14px + env(safe-area-inset-bottom)); }
.tryon__row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.tryon__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 16px; border: 1px solid var(--ink); border-radius: var(--btn-radius); background: transparent; color: var(--ink); font: 500 14px/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.tryon__btn:hover { background: var(--wall); }
.tryon__btn--main { background: var(--ink); color: var(--wall); }
.tryon__btn--main:hover { background: var(--violet); border-color: var(--violet); color: var(--wall); }
.tryon__chip { min-height: 36px; padding: 6px 13px; border-color: var(--line); border-radius: 99px; }
.tryon__chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--wall); }
.tryon__swatch { width: 30px; height: 30px; min-height: 0; padding: 0; border: 1px solid rgba(0, 0, 0, .2); border-radius: 50%; }
.tryon__swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.tryon__label { margin-right: 2px; font-size: 13.5px; color: var(--stone); }
.tryon__cm { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.tryon__cm input { width: 86px; min-height: 40px; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font: 500 16px var(--sans); color: var(--ink); }
.tryon__note { max-width: 62ch; margin: 2px 0 0; font-size: 12.5px; color: var(--stone); text-align: center; }
@media (max-width: 700px) {
  .tryon__name { font-size: 17px; }
  .tryon__hint { padding-top: 8px; font-size: 13.5px; }
  .tryon__panel { gap: 6px; padding-top: 6px; }
  .tryon__row--scroll { flex-wrap: nowrap; justify-content: flex-start; max-width: 100%; overflow-x: auto; padding: 2px 0; scrollbar-width: none; }
  .tryon__row--scroll::-webkit-scrollbar { display: none; }
  .tryon__row--scroll .tryon__chip { flex: none; }
  .tryon__btn { min-height: 38px; padding: 7px 13px; }
  .tryon__swatch { width: 28px; height: 28px; }
  .tryon__note { font-size: 12px; }
}

/* ---------- smooth page changes (View Transitions; browsers without them simply open the page) ---------- */
@view-transition { navigation: auto; }
/* the header stays put while the page under it changes */
.site-header { view-transition-name: site-header; }
::view-transition-group(site-header) { z-index: 100; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; animation-timing-function: ease; }
/* the painting itself moves: from the gallery into its page, from one painting to the next, and back (site.js) */
::view-transition-group(art) { animation-duration: .45s; animation-timing-function: cubic-bezier(.22, .7, .2, 1); }
::view-transition-old(art), ::view-transition-new(art) { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: normal; }
/* the picture we leave stays whole under the arriving one, so the painting is seen flying all the way even
   while the big photo is still loading; the arriving one fades in on top (our own fade: the browser's adds the
   two pictures' light together, and over an opaque picture that flashes too bright); alone, a picture just fades */
::view-transition-old(art) { animation: none; }
::view-transition-new(art) { animation-name: nz-vt-in; }
::view-transition-old(art):only-child { animation: nz-vt-out .3s ease both; }
@keyframes nz-vt-in { from { opacity: 0; } }
@keyframes nz-vt-out { to { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* «Запитати про роботу»: the inquiry form (public/js/inquiry.js) */
html.iq-open { overflow: hidden; }
.iq { width: min(480px, calc(100% - 24px)); max-height: calc(100% - 24px); margin: auto; padding: 0; border: 0; border-radius: 12px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 60px rgba(31, 27, 53, .35); overflow: auto; overscroll-behavior: contain; }
.iq::backdrop { background: rgba(31, 27, 53, .55); }
.iq__form, .iq__done { display: grid; gap: 12px; padding: 18px 20px 20px; }
.iq__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.iq__title { margin: 0; font: 400 clamp(22px, 5vw, 26px)/1.2 var(--serif); }
.iq__close { flex: none; width: 40px; height: 40px; margin: -6px -8px 0 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.iq__close:hover { background: var(--wall-deep); }
.iq__work { display: flex; gap: 12px; align-items: center; padding: 10px; background: var(--wall); border-radius: 8px; }
.iq__work img { flex: none; width: 56px; height: 56px; object-fit: cover; border-radius: 4px; }
.iq__work div { display: grid; gap: 2px; min-width: 0; }
.iq__work strong { font: 400 17px/1.25 var(--serif); }
.iq__work span { font-size: 13px; color: var(--stone); }
.iq__intro { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.iq__field { display: grid; gap: 5px; font-size: 13.5px; color: var(--ink-2); }
.iq__field input, .iq__field textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: 400 16px/1.4 var(--sans); color: var(--ink); }
.iq__field textarea { resize: vertical; min-height: 76px; }
.iq__field input:focus, .iq__field textarea:focus { outline: 2px solid var(--violet); outline-offset: 1px; border-color: transparent; }
.iq__field [aria-invalid="true"] { border-color: #b3261e; background: #fff6f5; }
.iq__methods { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.iq__methods legend { width: 100%; margin-bottom: 5px; padding: 0; font-size: 13.5px; color: var(--ink-2); }
.iq__method { position: relative; }
.iq__method input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.iq__method span { display: inline-block; padding: 8px 12px; border: 1px solid var(--line); border-radius: 99px; background: #fff; font-size: 14px; cursor: pointer; }
.iq__method input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--wall); }
.iq__method input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }
.iq__photo { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.iq__photo img { width: 64px; height: 48px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.iq__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.iq__error { margin: 0; padding: 8px 12px; border-radius: 8px; background: #fff0ee; color: #8c1d18; font-size: 14px; }
.iq__send { width: 100%; justify-content: center; }
.iq__send[disabled] { opacity: .7; cursor: progress; }
.iq__privacy { margin: 0; font-size: 12.5px; color: var(--stone); }
.iq__privacy a { color: inherit; }
.iq__done { justify-items: center; text-align: center; padding: 30px 22px; }
.iq__done p { margin: 0; color: var(--ink-2); }
.iq__done-mark { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: #fff !important; font-size: 26px; }

/* «Історія картини — голосом художниці» (an audio file uploaded in the admin) */
.work__audio { margin: 18px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.work__audio-title { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 14.5px; color: var(--ink-2); }
.work__audio audio { display: block; width: 100%; height: 40px; }

/* «У кімнаті через камеру» on a computer: a QR code for the phone (public/js/ar.js) */
.arq { width: min(420px, calc(100% - 24px)); margin: auto; padding: 0; border: 0; border-radius: 12px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 60px rgba(31, 27, 53, .35); }
.arq::backdrop { background: rgba(31, 27, 53, .55); }
.arq__box { display: grid; gap: 12px; justify-items: center; padding: 18px 22px 22px; text-align: center; }
.arq__head { width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; text-align: left; }
.arq__title { margin: 0; font: 400 clamp(22px, 5vw, 26px)/1.2 var(--serif); }
.arq__close { flex: none; width: 40px; height: 40px; margin: -6px -8px 0 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.arq__close:hover { background: var(--wall-deep); }
.arq__qr { width: 220px; height: 220px; padding: 8px; background: #fff; border-radius: 8px; border: 1px solid var(--line); }
.arq__text { margin: 0; font-size: 15px; color: var(--ink-2); }
.arq__note { margin: 0; font-size: 13px; color: var(--stone); }
.work__ar { margin-top: 10px; }
.work__3d { margin-top: 10px; text-align: left; }
.work__3d > span { display: grid; gap: 1px; }
.work__3d small { font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; opacity: .72; }
.work__ar.is-here { animation: ar-here 1.2s ease 3; }
@keyframes ar-here { 50% { box-shadow: 0 0 0 6px rgba(176, 138, 62, .35); } }

/* «Віртуальна 3D-зала» of an exhibition (views/public/hall.ejs, public/js/hall.js) */
.post-hall { display: flex; align-items: center; gap: 16px; margin: 0 0 28px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); text-decoration: none; transition: border-color .2s; }
.post-hall:hover { border-color: var(--gold); }
.post-hall svg { flex: none; color: var(--violet); }
.post-hall span { display: grid; gap: 2px; }
.post-hall strong { font: 400 20px/1.2 var(--serif); }
.post-hall small { font-size: 14px; color: var(--stone); }
.is-hall #content { padding: 0; }
.hall [hidden] { display: none !important; }
.hall { position: relative; height: calc(100svh - var(--header-h, 72px)); min-height: 420px; background: #efece6; overflow: hidden; color: var(--ink); }
.hall__stage { position: absolute; inset: 0; touch-action: none; cursor: grab; }
.hall__stage:active { cursor: grabbing; }
.hall__stage canvas { display: block; width: 100%; height: 100%; outline: none; }
.hall__top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; align-items: flex-start; gap: 14px; pointer-events: none; }
.hall__back, .hall__title { pointer-events: auto; }
.hall__back { flex: none; padding: 8px 14px; border-radius: 99px; background: rgba(251, 250, 253, .9); color: var(--ink); text-decoration: none; font-size: 14px; box-shadow: 0 2px 10px rgba(31, 27, 53, .12); }
.hall__title { margin: 0; padding: 6px 14px; border-radius: 10px; background: rgba(251, 250, 253, .82); font: 400 clamp(17px, 2.6vw, 22px)/1.2 var(--serif); }
.hall__title span { display: block; font: 500 11px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.hall__loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font-size: 15px; color: var(--stone); pointer-events: none; }
.hall__help { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(380px, calc(100% - 32px)); display: grid; gap: 12px; justify-items: center; padding: 18px 20px; border-radius: 12px; background: rgba(251, 250, 253, .95); box-shadow: 0 10px 40px rgba(31, 27, 53, .25); text-align: center; font-size: 15px; }
.hall__help p { margin: 0; }
.hall__info { position: absolute; left: 12px; right: 12px; bottom: 74px; margin: 0 auto; max-width: 560px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(251, 250, 253, .94); box-shadow: 0 6px 24px rgba(31, 27, 53, .18); }
.hall__info-main strong { font: 400 19px/1.2 var(--serif); }
.hall__info-main span { font-size: 13.5px; color: var(--stone); }
.hall__info-main em { font-style: normal; font-size: 13px; color: var(--gold-text); }
.hall__info-main .button { flex: none; min-height: 40px; padding: 8px 14px; font-size: 14px; }
.hall__nav { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 99px; background: rgba(251, 250, 253, .94); box-shadow: 0 6px 24px rgba(31, 27, 53, .18); }
.hall__btn { min-width: 44px; height: 44px; padding: 0 12px; border: 0; border-radius: 99px; background: transparent; color: var(--ink); font: 500 22px/1 var(--sans); cursor: pointer; }
.hall__btn--wide { font-size: 14px; white-space: nowrap; }
.hall.has-info .hall__list:not([open]) { display: none; }
.hall__btn:hover { background: var(--wall-deep); }
.hall__count { min-width: 54px; text-align: center; font-size: 14px; color: var(--stone); font-variant-numeric: tabular-nums; }
.hall__list { position: absolute; right: 12px; bottom: 14px; max-width: min(320px, calc(100% - 24px)); max-height: 50%; overflow: auto; padding: 8px 14px; border-radius: 12px; background: rgba(251, 250, 253, .94); font-size: 14px; }
.hall__list summary { cursor: pointer; }
.hall__list ol { margin: 8px 0 4px; padding-left: 20px; display: grid; gap: 6px; }
.hall__list small { display: block; color: var(--stone); }
.hall__fallback { position: absolute; inset: 70px 12px auto; text-align: center; }
.hall.is-fallback { height: auto; min-height: 0; padding: 80px 16px 24px; }
.hall.is-fallback .hall__list { position: static; max-width: 640px; max-height: none; margin: 0 auto; }
.hall.is-fallback .hall__fallback { position: static; }
.hall.is-fallback .hall__loading, .hall.is-fallback .hall__stage { display: none; }
@media (max-width: 720px) {
  .hall__list { right: 12px; left: 12px; bottom: 74px; max-width: none; }
  .hall__list:not([open]) { right: auto; padding: 6px 12px; font-size: 13px; }
  .hall__top { flex-wrap: wrap; }
  .hall__title { font-size: 16px; }
  .hall__info { bottom: 70px; }
}
/* the preview inside the admin's event form: only the room and its buttons */
:root:has(body.is-hall-embed), body.is-hall-embed { height: 100%; overflow: hidden; scrollbar-gutter: auto; }
.is-hall-embed .site-header, .is-hall-embed .site-footer, .is-hall-embed .skip { display: none; }
.hall--embed { height: 100vh; min-height: 0; }
.hall--embed .hall__top, .hall--embed .hall__list, .hall--embed .hall__help, .hall--embed .hall__info { display: none !important; }
.hall--embed .hall__nav { bottom: 8px; gap: 2px; padding: 3px; }
.hall--embed .hall__btn { min-width: 36px; height: 36px; font-size: 18px; }
.hall--embed .hall__btn--wide { font-size: 13px; }
.hall--embed .hall__count { min-width: 44px; font-size: 13px; }
.work__ar-fail { margin: 8px 0 0; padding: 8px 12px; border-radius: 8px; background: #fff4e5; color: #6b4f12; font-size: 14px; }
.tryon__file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; left: 0; top: 0; }
.tryon__hint--error { color: #8c1d18; font-weight: 500; }
.work__ar-fail p { margin: 0 0 6px; }
.work__ar-ways { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.work__ar-ways .text-link { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }
.arc { max-width: 720px; margin: 0 auto; padding: 24px var(--gutter) 48px; }
.arc h1 { font: 400 clamp(26px, 5vw, 36px)/1.15 var(--serif); margin: 0 0 12px; }
.arc__lead { color: var(--ink-2); }
.arc__list { margin: 16px 0; padding: 12px 12px 12px 34px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); display: grid; gap: 6px; font-size: 14.5px; }
.arc__list:empty { display: none; }
.arc__list .is-bad { color: #8c1d18; font-weight: 500; }
.arc__tests { display: grid; gap: 10px; }
.arc__tests .button { justify-content: flex-start; text-align: left; }
.arc__note { color: var(--stone); }

/* «У кімнаті через камеру» in the browser (WebXR): the hints over the camera (public/js/ar.js, ar-xr.js) */
.arx__canvas { position: fixed !important; left: -10000px; top: 0; width: 1px !important; height: 1px !important; }
.arx { position: fixed; inset: 0; z-index: 2000; display: none; flex-direction: column; justify-content: space-between; pointer-events: none; color: #fff; font: 500 15px/1.4 var(--sans); background: transparent; }
html.arx-on .arx, .arx:xr-overlay { display: flex; }
.arx__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: calc(12px + env(safe-area-inset-top)) 14px 0; pointer-events: auto; }
.arx__name { display: grid; padding: 8px 12px; border-radius: 10px; background: rgba(20, 18, 30, .55); }
.arx__name strong { font: 400 18px/1.2 var(--serif); }
.arx__name span { font-size: 13px; opacity: .85; }
.arx__close { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(20, 18, 30, .55); color: #fff; }
.arx__hint { max-width: min(420px, 100%); margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(20, 18, 30, .6); text-align: center; pointer-events: none; }
.arx__bottom { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 16px calc(18px + env(safe-area-inset-bottom)); }
.arx__bottom .arx__btn { pointer-events: auto; }
.arx__btn { min-height: 46px; padding: 10px 18px; border: 0; border-radius: 99px; background: rgba(251, 250, 253, .92); color: var(--ink); font: 500 15px/1.2 var(--sans); }

/* The audience (public/js/reactions.js): reactions, who responded, sharing, signing in, the guest book */
.aud-bar { margin: 22px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.aud-bar__q { margin: 0; font: 400 19px/1.25 var(--serif); }
.aud-bar__kinds { display: flex; flex-wrap: wrap; gap: 6px; }
/* line icons (src/audience.js → ICONS): ink by default, each reaction's own colour (--rc) when chosen */
.aud-ic { flex: none; display: block; }
.aud-ic .f { transition: fill-opacity .2s; }
.aud-ic.is-tint { color: var(--rc, var(--gold)); }
.aud-ic.is-tint .f { fill-opacity: .16; }
.aud-k { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 6px 13px 6px 11px; border: 1px solid var(--line); border-radius: 99px; background: var(--paper); color: var(--ink); font: 500 13.5px/1 var(--sans); cursor: pointer; transition: border-color .15s, transform .15s; }
.aud-k .aud-ic { color: var(--ink-2); transition: color .15s; }
@media (hover: hover) {
  .aud-k:hover { border-color: #bdb9cb; }
  .aud-k:hover .aud-ic { color: var(--rc, var(--ink)); }
}
.aud-k:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.aud-k:active { transform: scale(.96); }
/* chosen: the button's ring takes the reaction's colour (a fully red-tinted button looked alarming) */
.aud-k[aria-pressed="true"] { border-color: #a9a4bb; }
.aud-k[aria-pressed="true"] .aud-ic { color: var(--rc, var(--ink)); animation: aud-pop .38s ease; }
.aud-k[aria-pressed="true"] .aud-ic .f { fill-opacity: .3; }
@keyframes aud-pop { 40% { transform: scale(1.22); } }
@media (prefers-reduced-motion: reduce) { .aud-k[aria-pressed="true"] .aud-ic { animation: none; } }
/* a reaction is its plain emoji (src/audience.js EMOJI): full colour; the chosen one — a soft ring of its colour */
.aud-emo { flex: none; display: inline-block; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif; font-style: normal; }
.aud-k .aud-emo { font-size: 19px; }
.aud-k[aria-pressed="true"] { border-color: var(--rc, #a9a4bb); box-shadow: inset 0 0 0 1px var(--rc, #a9a4bb); background: color-mix(in srgb, var(--rc, #a9a4bb) 7%, var(--paper)); }
.aud-k[aria-pressed="true"] .aud-emo { animation: aud-pop .38s ease; }
@media (prefers-reduced-motion: reduce) { .aud-k[aria-pressed="true"] .aud-emo { animation: none; } }
.aud-k__n { color: var(--stone); font-variant-numeric: tabular-nums; }
.aud-k[aria-pressed="true"] .aud-k__n { color: var(--ink); }
/* the hint: what a reaction means (public/js/reactions.js → showTip) */
.aud-tip { position: fixed; z-index: 2600; left: 0; top: 0; max-width: min(280px, calc(100vw - 16px)); padding: 9px 12px 10px; border-radius: 10px; background: var(--ink); color: var(--paper); box-shadow: 0 10px 28px rgba(31, 27, 53, .28); font: 400 13px/1.4 var(--sans); pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .14s, transform .14s; }
.aud-tip.is-below { transform: translateY(-4px); }
.aud-tip.is-on { opacity: 1; transform: none; }
.aud-tip[hidden] { display: none; }
.aud-tip strong { display: flex; align-items: center; gap: 7px; margin-bottom: 2px; font-weight: 600; font-size: 13.5px; }
.aud-tip strong::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--rc, var(--gold)); box-shadow: 0 0 0 2px rgba(251, 250, 253, .18); }
.aud-tip span { display: block; color: rgba(251, 250, 253, .8); }
.aud-tip::after { content: ''; position: absolute; left: var(--ax, 50%); bottom: -5px; width: 10px; height: 10px; margin-left: -5px; background: var(--ink); border-radius: 2px; transform: rotate(45deg); }
.aud-tip.is-below::after { bottom: auto; top: -5px; }
.aud-k__n:empty { display: none; }
.aud-bar__who { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; color: var(--ink-2); font: 400 13.5px/1.3 var(--sans); text-align: left; cursor: pointer; }
.aud-bar__who:hover .aud-bar__names { text-decoration: underline; }
.aud-avs { display: inline-flex; }
.aud-avs .aud-av { margin-left: -8px; box-shadow: 0 0 0 2px var(--paper); }
.aud-avs .aud-av:first-child { margin-left: 0; }
.aud-av { flex: none; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; display: inline-grid; place-items: center; background: var(--wall-deep); color: var(--violet); font: 600 12px/1 var(--sans); }
.aud-av img { width: 100%; height: 100%; object-fit: cover; }
.aud-bar__acts { display: flex; flex-wrap: wrap; gap: 8px; }
/* the [hidden] attribute must win over the display rules of these blocks */
.aud-bar [hidden], .aud [hidden], .aud-guest [hidden] { display: none !important; }
.aud-bar__acts .aud-bar__ask { display: none; }
.aud-bar__acts.is-home .aud-bar__ask { display: inline-flex; }
.aud-bar__msg { margin: 0; font-size: 13px; color: var(--stone); }
.aud-bar__msg:empty { display: none; }
.aud-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border: 1px solid var(--ink); border-radius: var(--btn-radius); background: transparent; color: var(--ink); font: 500 14px/1.2 var(--sans); cursor: pointer; text-decoration: none; }
@media (hover: hover) { .aud-btn:hover { background: var(--ink); color: var(--wall); } }
.aud-btn:active { background: var(--ink); color: var(--wall); }
.aud-btn--main { background: var(--ink); color: var(--wall); }
.aud-btn--main:hover { background: var(--violet); border-color: var(--violet); }
.aud-btn--danger { border-color: #a3262f; color: #a3262f; }
.aud-btn--danger:hover { background: #a3262f; color: #fff; }
.aud-btn[hidden] { display: none; }
.aud-btn:disabled { opacity: .5; cursor: default; }
.aud-bar--compact { margin: 8px 0 0; padding: 8px 0 0; gap: 8px; }
.aud-bar--compact .aud-k { min-height: 36px; padding: 5px 10px; }
.aud-bar--compact .aud-btn { min-height: 36px; padding: 6px 12px; font-size: 13.5px; }

.aud-veil { position: fixed; inset: 0; z-index: 2400; background: rgba(31, 27, 53, .38); }
.aud { position: fixed; z-index: 2401; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(520px, calc(100% - 24px)); max-height: calc(100% - 24px); display: flex; flex-direction: column; background: var(--paper); color: var(--ink); border-radius: 12px; box-shadow: 0 20px 60px rgba(31, 27, 53, .35); overflow: hidden; }
.aud__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.aud__title { font: 400 19px/1.25 var(--serif); }
.aud__close { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none; color: var(--ink); cursor: pointer; border-radius: 50%; }
.aud__close:hover { background: var(--wall-deep); }
.aud__body { padding: 14px 16px 18px; overflow: auto; display: grid; gap: 12px; }
.aud-lead { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.aud-muted { margin: 0; color: var(--stone); font-size: 13.5px; }
.aud-note { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.aud-note:empty { display: none; }
.aud-note--err { color: #a3262f; }
.aud-field { display: grid; gap: 6px; font-size: 13px; color: var(--stone); }
.aud-field textarea, .aud-book textarea, .aud-book input, .aud-name input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: 400 15px/1.45 var(--sans); resize: vertical; }
.aud-nets { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.aud-net { justify-content: flex-start; min-height: 44px; border-color: var(--line); text-align: left; }
.aud-net::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--stone)); }
.aud-net--telegram { --c: #2aabee; } .aud-net--viber { --c: #7360f2; } .aud-net--whatsapp { --c: #25d366; } .aud-net--facebook { --c: #1877f2; }
.aud-net--x { --c: #111; } .aud-net--threads { --c: #444; } .aud-net--linkedin { --c: #0a66c2; } .aud-net--copy { --c: var(--gold); } .aud-net--story { --c: #e1306c; } .aud-net--device { --c: var(--violet); }
.aud-people, .aud-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.aud-people li { display: flex; align-items: center; gap: 10px; }
.aud-people__name { flex: 1; font-size: 15px; }
.aud-people__k { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--rc, var(--ink)); background: var(--wall); cursor: help; }
.aud-people__k .aud-emo { font-size: 18px; }
.aud-people__k .f { fill-opacity: .2; }
.aud-people__k:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.aud-ways { display: grid; gap: 10px; justify-items: start; }
.aud-way { min-height: 44px; }
.aud-btn--linkedin { border-color: #0a66c2; color: #0a66c2; }
.aud-btn--linkedin:hover { background: #0a66c2; color: #fff; }
.aud-btn--facebook { border-color: #1877f2; color: #1877f2; }
.aud-btn--facebook:hover { background: #1877f2; color: #fff; }
.aud-way--name { width: 100%; }
.aud-way--name summary { cursor: pointer; font-size: 14.5px; padding: 6px 0; }
.aud-name { display: flex; gap: 8px; margin: 6px 0; }
.aud-check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.aud-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--violet); flex: none; }
.aud-me { display: flex; align-items: center; gap: 12px; }
.aud-me div { display: grid; }
.aud-me small { color: var(--stone); }
.aud-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.aud-privacy { font-size: 13px; color: var(--stone); justify-self: start; }
.aud-book { display: grid; gap: 8px; }
.aud-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.aud-notes li { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.aud-notes li.is-pending { opacity: .75; border-style: dashed; }
.aud-notes__head { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.aud-notes__head time, .aud-notes__head em { color: var(--stone); font-style: normal; font-size: 12.5px; }
.aud-notes p { margin: 6px 0 0; white-space: pre-line; }
@media (max-width: 640px) {
  .aud { left: 0; right: 0; top: auto; bottom: 0; transform: none; width: 100%; max-height: 88%; border-radius: 14px 14px 0 0; }
}

/* the exhibition's page: «Вибір глядачів», the guest book */
.aud-prize, .aud-guest { margin: 40px 0 0; }
.aud-prize h2, .aud-guest h2 { font: 400 clamp(22px, 3vw, 28px)/1.2 var(--serif); margin: 0 0 14px; }
.aud-h { display: flex; align-items: center; gap: 12px; }
.aud-h .aud-ic { width: 30px; height: 30px; }
.aud-kind { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; color: var(--ink-2); cursor: help; }
.aud-kind .aud-ic { color: var(--rc, var(--ink)); }
.aud-kind .aud-ic .f { fill-opacity: .2; }
.aud-prize__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.aud-prize__list a { display: grid; gap: 6px; color: var(--ink); text-decoration: none; }
.aud-prize__img { position: relative; aspect-ratio: 1; background: var(--wall-deep); overflow: hidden; }
.aud-prize__img img { width: 100%; height: 100%; object-fit: cover; }
.aud-prize__img b { position: absolute; left: 8px; top: 8px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); font: 600 14px/1 var(--sans); box-shadow: 0 2px 8px rgba(31, 27, 53, .2); }
.aud-prize__list strong { font: 400 17px/1.25 var(--serif); }
.aud-prize__list small { color: var(--stone); }
.aud-guest__list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.aud-guest__list li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.aud-guest__list p { margin: 0 0 8px; font: italic 400 16px/1.5 var(--serif); white-space: pre-line; }
.aud-guest__list span { color: var(--stone); font-size: 13.5px; }
.aud-guest__empty { color: var(--stone); }
.privacy__done { padding: 12px 16px; border-radius: 8px; background: #e6f2ea; color: #2f6b45; }

/* the 3D gallery (public/js/hall.js, d.rooms): the rooms menu, the fade between rooms, the list by room */
.hall__title .hall__title-t { display: block; font: inherit; letter-spacing: normal; text-transform: none; color: inherit; }
.hall__rooms { position: relative; pointer-events: auto; margin-left: auto; }
.hall__rooms + .hall__book { margin-left: 0; }
.hall__rooms summary { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px 8px 12px; border-radius: 99px; background: rgba(251, 250, 253, .9); color: var(--ink); font: 500 14px/1 var(--sans); box-shadow: 0 2px 10px rgba(31, 27, 53, .12); cursor: pointer; list-style: none; }
.hall__rooms summary::-webkit-details-marker { display: none; }
.hall__rooms summary svg { color: var(--violet); }
.hall__rooms[open] summary { background: #fff; }
.hall__rooms ol { position: absolute; right: 0; top: calc(100% + 8px); z-index: 3; width: min(300px, calc(100vw - 24px)); max-height: min(60vh, 440px); overflow: auto; margin: 0; padding: 6px; list-style: none; border-radius: 12px; background: rgba(251, 250, 253, .97); box-shadow: 0 12px 34px rgba(31, 27, 53, .22); }
.hall__rooms button { display: grid; width: 100%; gap: 2px; padding: 9px 12px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: 400 16px/1.25 var(--serif); text-align: left; cursor: pointer; }
.hall__rooms button small { font: 400 12.5px/1.3 var(--sans); color: var(--stone); }
/* a room's main photo beside its name (the admin's «Серії» → «Головне фото серії») */
.hall__rooms button:has(img) { grid-template-columns: 56px minmax(0, 1fr); column-gap: 12px; align-items: center; }
.hall__rooms button img { grid-row: span 2; width: 56px; height: 42px; object-fit: cover; border-radius: 4px; background: var(--wall-deep); }
.hall__rooms button:hover { background: var(--wall-deep); }
.hall__rooms button[aria-current] { background: #f3eedf; box-shadow: inset 3px 0 0 var(--gold); }
.hall__fade { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: #15131c; color: rgba(251, 250, 253, .85); font: 400 clamp(20px, 3vw, 28px)/1.3 var(--serif); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.hall__fade.is-on { opacity: 1; }
.hall__fade span { padding: 0 24px; text-align: center; opacity: 0; transition: opacity .2s .1s; }
.hall__fade.is-on span { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hall__fade, .hall__fade span { transition: none; } }
.hall:not(.is-fallback) .hall__list-room[data-other] { display: none; }
.hall__list-room h2 { margin: 12px 0 4px; font: 400 17px/1.25 var(--serif); }
.hall.is-fallback .hall__list-room h2 { margin-top: 18px; font-size: 20px; }
.page-head .works-hall { max-width: 600px; margin: 24px 0 0; }

/* the hall's panel with reactions, the story, the guest book button */
.hall__info { display: grid; gap: 6px; align-items: stretch; }
.hall__info-main { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.hall__info-main > div { display: grid; gap: 2px; min-width: 0; }
.hall__prize { font-style: normal; font-size: 13px; color: var(--gold-text); }
.hall__listen { justify-self: start; min-height: 34px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 99px; background: transparent; color: var(--ink); font: 500 13px/1 var(--sans); cursor: pointer; }
.hall__listen:hover { border-color: var(--gold); }
.hall__aud .aud-bar { border-top-color: var(--line); }
.hall__book { pointer-events: auto; margin-left: auto; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px 8px 12px; border: 0; border-radius: 99px; background: rgba(251, 250, 253, .9); color: var(--ink); font: 500 14px/1 var(--sans); box-shadow: 0 2px 10px rgba(31, 27, 53, .12); cursor: pointer; }
.hall__book .aud-ic { color: var(--violet); }
.hall__prize { display: inline-flex; align-items: center; gap: 5px; }
.hall__book:hover { background: #fff; }
.hall.has-info .hall__info { max-height: calc(100% - 150px); overflow: auto; }
.hall__info { max-width: 660px; padding: 10px 14px; }
.hall__info-acts { flex: none; display: flex; align-items: center; gap: 8px; }
.hall__info-acts .button { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.aud-bar__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.aud-bar--compact .aud-bar__kinds { gap: 6px; }
.aud-bar--compact .aud-k { min-height: 34px; padding: 4px 9px; gap: 5px; }
.aud-bar--compact .aud-btn { min-height: 34px; }
.aud-bar__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.aud-bar__foot:has(> [hidden]:first-child):has(> [hidden]:last-child) { display: none; }
.aud-btn--link { min-height: 0 !important; padding: 0 !important; border: 0; background: none; color: var(--violet); font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; }
.aud-btn--link:hover, .aud-btn--link:active { background: none; color: var(--ink); }
/* the panel's ×, the title as the painting's link; the zoom chip */
.hall__info-x { position: absolute; top: 4px; right: 4px; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--stone); font: 300 26px/1 var(--sans); cursor: pointer; }
.hall__info-x:hover, .hall__info-x:focus-visible { background: var(--wall); color: var(--ink); }
.hall__info-t { color: inherit; text-decoration: none; }
.hall__info-t:hover strong { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (min-width: 721px) {
  .hall__info-main { padding-right: 30px; }
  .hall__info-more, .hall__info-grip { display: none; }
}
.hall__zoom { position: absolute; top: 62px; right: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 0; border-radius: 99px; background: rgba(251, 250, 253, .94); color: var(--ink); font: 500 14px/1 var(--sans); font-variant-numeric: tabular-nums; box-shadow: 0 2px 10px rgba(31, 27, 53, .12); cursor: pointer; }
.hall__zoom .aud-ic { color: var(--violet); }
@media (max-width: 720px) {
  .hall__book-t, .hall__rooms-t { display: none; }
  .hall__rooms summary { padding: 9px; }
  .hall__book { padding: 9px; }
  .hall__top { flex-wrap: nowrap; }
  .hall__title { min-width: 0; }
  .hall__title span { letter-spacing: .06em; }
  /* a phone: the panel low and small — the title (the painting's link) and its line, the reactions as icons with
     sharing at the end of the row, the names under them; × or a swipe down puts it away */
  .hall__info { left: 8px; right: 8px; bottom: 72px; padding: 12px 12px 8px; gap: 2px; border-radius: 14px; }
  .hall__info-grip { display: block; position: absolute; top: 5px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--line); }
  .hall__info-x { top: 2px; right: 2px; width: 42px; height: 42px; }
  .hall__info-main { gap: 8px; padding-right: 34px; }
  .hall__info-main > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1px 8px; }
  .hall__info-t { flex: 1 1 100%; }
  .hall__info-main > div > em { flex: none; }
  .hall__info-t { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
  .hall__info-main strong { min-width: 0; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hall__info-more { display: inline; flex: none; color: var(--violet); font: 400 22px/1 var(--sans); }
  .hall__info-main em, .hall__info-main span { font-size: 12.5px; }
  .hall__info-main > div > span { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hall__info-acts .button { display: none; }
  .hall__listen { min-height: 32px; padding: 4px 10px; font-size: 12.5px; }
  .aud-bar--compact { margin-top: 6px; padding-top: 0; border-top: 0; gap: 4px; }
  .aud-bar--compact .aud-bar__row { flex-wrap: nowrap; gap: 6px; }
  .aud-bar--compact .aud-bar__kinds { flex-wrap: nowrap; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .aud-bar--compact .aud-bar__kinds::-webkit-scrollbar { display: none; }
  .aud-bar--compact .aud-k { flex: none; padding: 3px 9px; min-height: 38px; }
  .aud-bar--compact .aud-bar__acts { flex: none; flex-wrap: nowrap; gap: 6px; }
  .aud-bar--compact .aud-bar__acts .aud-btn--main { width: 40px; min-height: 40px; padding: 0; border-radius: 50%; }
  .aud-bar--compact .aud-btn--main .aud-btn__t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  /* «Запитати про роботу» after «Хочу таку додому»: on a line of its own */
  .aud-bar--compact .aud-bar__row:has(.aud-bar__acts.is-home) { flex-wrap: wrap; }
  .aud-bar--compact .aud-bar__row:has(.aud-bar__acts.is-home) .aud-bar__acts { flex: 1 1 100%; }
  .aud-bar--compact .aud-bar__acts.is-home .aud-bar__ask { flex: 1; min-height: 36px; padding: 5px 10px; font-size: 13px; }
  .aud-bar--compact .aud-bar__foot { font-size: 12.5px; }
  .hall__zoom { top: 58px; right: 10px; }
}

/* ---------- a private selection for one buyer (/v/<code>, views/public/selection.ejs) ---------- */
.sel { max-width: calc(1180px + 2 * var(--gutter)); margin: 0 auto; padding: clamp(32px, 6vw, 88px) var(--gutter) 40px; }
.sel__head { max-width: 760px; margin-bottom: clamp(36px, 6vw, 72px); }
.sel__kicker { margin: 0 0 14px; font: 500 12.5px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.sel__title { margin: 0; font-size: clamp(34px, 5.4vw, 64px); line-height: 1.05; letter-spacing: -.01em; }
.sel__note { margin: 26px 0 0; font: 400 clamp(17px, 1.6vw, 19px)/1.65 var(--serif); font-style: italic; color: var(--ink-2); white-space: pre-line; }
.sel__sign { margin: 12px 0 0; font: 500 15px/1.4 var(--sans); color: var(--stone); }
.sel__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.sel__acts:empty { display: none; }
.sel__until { margin: 16px 0 0; font-size: 14px; color: var(--stone); }
.sel__list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(48px, 8vw, 110px); }
.sel-work { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.sel-work__img { margin: 0; padding: clamp(18px, 4vw, 56px); background: var(--wall-deep); display: grid; place-items: center; }
.sel-work__img img { display: block; max-width: 100%; max-height: 72vh; width: auto; height: auto; box-shadow: var(--hang); }
.sel-work__n { display: block; font: 500 13px/1 var(--sans); letter-spacing: .12em; color: var(--gold-text); margin-bottom: 14px; }
.sel-work__title { margin: 0; font-size: clamp(26px, 2.8vw, 38px); line-height: 1.12; }
.sel-work__cap { margin: 10px 0 0; color: var(--stone); font-size: 15px; }
.sel-work__price { margin: 18px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.sel-work__price:empty { display: none; }
.sel-work__price strong { font: 600 22px/1.2 var(--sans); }
.sel-work__ask { color: var(--ink-2); }
.sel-work__state { display: inline-block; padding: 3px 10px; border: 1px solid var(--line); border-radius: 99px; font-size: 13px; color: var(--stone); }
.sel-work__note { margin: 18px 0 0; padding-left: 16px; border-left: 2px solid var(--gold); font: 400 16px/1.6 var(--serif); font-style: italic; color: var(--ink-2); white-space: pre-line; }
.sel-work__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 26px; }
.sel__foot { margin-top: clamp(56px, 8vw, 110px); padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-2); }
.sel--closed { text-align: center; padding-top: clamp(64px, 12vw, 140px); padding-bottom: clamp(64px, 12vw, 140px); }
.sel--closed .sel__title { font-size: clamp(30px, 4vw, 48px); }
.sel__contacts { margin-top: 26px; }
@media (max-width: 900px) {
  .sel-work { grid-template-columns: 1fr; gap: 20px; }
  .sel-work__img { padding: 16px; margin: 0 calc(-1 * var(--gutter)); }
  .sel-work__img img { max-height: 64vh; }
}

/* «Сторінка для соцмереж» set in the admin (src/linkspage.js): the photo's shape, the buttons' corners, own text */
.links__portrait--rounded { border-radius: 22px; }
.links-btn--pill .links__buttons .button { border-radius: 999px; }
.links-btn--square .links__buttons .button { border-radius: 0; }
.links__text { margin: 28px 0 0; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--btn-radius); }
.links__text-title { font: 500 22px/1.3 var(--serif); margin: 0 0 8px; }
.links__text p { margin: 0 0 10px; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.links__text .text-link { font-size: 15px; }

/* ---------- «Де живуть картини» (views/public/homes.ejs, public/js/homes.js) ---------- */

.homes { max-width: var(--page); margin: 0 auto; padding: clamp(28px, 5vw, 64px) var(--gutter) 40px; }
.homes__head { max-width: 46rem; margin-bottom: 26px; }
.homes__head h1 { font-size: clamp(34px, 4.4vw, 56px); margin: 0 0 12px; }
.homes__lead { color: var(--ink-2); font-size: 18px; line-height: 1.6; margin: 0 0 8px; }
.homes__stats { color: var(--gold-text); font: 500 13px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; margin: 0; }
.homes__empty { color: var(--stone); }
.homes__credit { margin: 28px 0 0; color: var(--stone); font-size: 11px; text-align: right; }

.homes-map { position: relative; margin: 0; aspect-ratio: var(--ratio, 2); max-height: 74vh; width: 100%; background: var(--wall); overflow: hidden; touch-action: none; user-select: none; border-radius: 2px; }
.homes-map svg { display: block; width: 100%; height: 100%; cursor: grab; }
.homes-map svg:active { cursor: grabbing; }
.homes-map__sea { fill: var(--wall); }
.homes-map__land path { fill: #dcd8e6; stroke: #fff; stroke-width: .8; vector-effect: non-scaling-stroke; }
.homes-dot { cursor: pointer; outline: none; }
.homes-dot__halo { fill: rgba(176, 138, 62, .22); transition: fill .2s; }
.homes-dot__core { fill: var(--gold); stroke: #fff; stroke-width: 2; }
.homes-dot__n { fill: #fff; font: 600 10px var(--sans); text-anchor: middle; pointer-events: none; }
.homes-dot:hover .homes-dot__halo, .homes-dot:focus-visible .homes-dot__halo, .homes-dot.is-open .homes-dot__halo { fill: rgba(176, 138, 62, .42); }
.homes-dot:focus-visible .homes-dot__core { stroke: var(--violet); stroke-width: 3; }
.homes-map__tools { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 6px; }
.homes-map__tools button { min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .92); color: var(--ink); font: 500 15px var(--sans); cursor: pointer; }
.homes-map__tools button:hover { background: #fff; border-color: var(--stone); }
.homes-pop { position: absolute; z-index: 2; width: min(320px, calc(100% - 16px)); max-height: calc(100% - 16px); overflow: auto; padding: 14px 16px; background: #fff; border-radius: 10px; box-shadow: 0 14px 40px rgba(31, 27, 53, .22); }
.homes-pop.is-sheet { left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 60%; }
.homes-pop__close { position: absolute; top: 4px; right: 6px; border: 0; background: none; font-size: 24px; line-height: 1; color: var(--stone); cursor: pointer; padding: 4px 8px; }
.homes-pop__place { margin: 0 24px 10px 0; font: 500 12px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); }
.homes-pop__works { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.homes-pop__works li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: center; }
.homes-pop__works img { width: 64px; height: 48px; object-fit: cover; background: var(--wall-deep); }
.homes-pop__works a, .homes-pop__works strong { font-family: var(--serif); font-size: 16px; color: var(--ink); }
.homes-pop__works small { display: block; color: var(--stone); font-size: 12.5px; }

.homes-photos { margin-top: clamp(40px, 6vw, 72px); }
.homes-photos h2, .homes-list h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 0 0 20px; }
.homes-photos ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(20px, 3vw, 36px); }
.homes-photos figure { margin: 0; }
.homes-photos img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--wall-deep); }
.homes-photos figcaption { display: grid; gap: 3px; margin-top: 10px; font-size: 14px; color: var(--stone); }
.homes-photos figcaption a { font-family: var(--serif); font-size: 18px; color: var(--ink); }
.homes-photos q { color: var(--ink-2); font-style: italic; }

.homes-list { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px 40px; }
.homes-list__country h2 { font-size: 22px; margin-bottom: 10px; }
.homes-list__place h3 { font: 500 12px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); margin: 14px 0 8px; }
.homes-list__place ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.homes-list__place li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: center; }
.homes-list__place img { width: 72px; height: 54px; object-fit: cover; background: var(--wall-deep); }
.homes-list__place a { color: var(--ink); font-family: var(--serif); font-size: 16px; }
.homes-list__place small { color: var(--stone); }

.homes-cta { margin-top: clamp(40px, 6vw, 72px); padding: 24px 28px; background: var(--wall); border-left: 3px solid var(--gold); max-width: 46rem; }
.homes-cta h2 { font-size: 22px; margin: 0 0 8px; }
.homes-cta p { margin: 0 0 8px; color: var(--ink-2); line-height: 1.6; }

/* the painting's page: «Тепер живе: …» */
.work__home { margin: 6px 0 0; color: var(--stone); font-size: 14.5px; }

/* the certificate's page: where the painting lives now (the owner's form) */
.cert-home { margin-top: 32px; padding: 24px 26px; background: var(--wall); border-radius: 2px; max-width: 46rem; }
.cert-home h2 { font-size: 22px; margin: 0 0 8px; }
.cert-home > p { color: var(--ink-2); margin: 0 0 16px; line-height: 1.6; }
.cert-home form { display: grid; gap: 12px; }
.cert-home .cert-home__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cert-home label { display: grid; gap: 5px; font-size: 14px; color: var(--ink-2); }
.cert-home input[type="text"], .cert-home textarea, .cert-home input[type="file"] { font: inherit; font-size: 15px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.cert-home .cert-home__check { display: flex; gap: 8px; align-items: flex-start; }
.cert-home .cert-home__check input { margin-top: 3px; }
.cert-home__msg { margin: 0; font-size: 15px; }
.cert-home__msg.is-ok { color: #2f6b3a; }
.cert-home__msg.is-err { color: #9a2a2a; }
@media (max-width: 600px) { .cert-home .cert-home__row { grid-template-columns: 1fr; } }
/* the home page's block «Де живуть картини»: the map, small, leading to its page */
.home-homes__map { display: block; aspect-ratio: 2.4; background: var(--wall); overflow: hidden; }
.home-homes__map svg { display: block; width: 100%; height: 100%; }
.home-homes__map:hover .homes-dot__halo { fill: rgba(176, 138, 62, .4); }

/* the VR section's list: a post without a cover shows its 360° video's view (the player: css/vr-player.css) */
.post-row__cover--vr { position: relative; }
.post-row__cover--vr b { position: absolute; left: 8px; bottom: 8px; background: rgba(11, 10, 16, .6); color: #fff; font: 600 11px/1 var(--sans); letter-spacing: .05em; padding: 5px 7px; border-radius: 999px; }
