/* ==========================================================================
   СПРАВОЧНОЕ БЮРО И КНОПКА СВЯЗИ
   Деловой слой музея. В залах любуются — здесь выясняют условия, поэтому
   и вид другой: не тёмный зал с лучами, а освещённая стойка со светлыми
   карточками картотеки. Секция отвечает на возражения, из-за которых
   человек обычно закрывает вкладку молча.

   Отдельный файл, а не хвост museum.css: там залы и витрины, здесь
   деловая часть. Их правят по разным поводам.
   ========================================================================== */

.desk {
  position: relative;
  padding: clamp(70px, 11vh, 130px) 0 clamp(90px, 13vh, 150px);
  background:
    radial-gradient(110% 80% at 50% 0%, rgba(255, 206, 152, .07), transparent 60%),
    linear-gradient(180deg, #0b0908, #14100e 40%, #0b0908);
  border-top: 1px solid rgba(201, 165, 107, .16);
}

.desk__stage {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--edge);
}

.desk__tag { color: rgba(201, 165, 107, .8); margin-bottom: 14px; }

.desk__title {
  font-family: var(--serif);
  font-size: clamp(30px, 5.4vw, 62px);
  line-height: 1.02;
  color: var(--paper);
  margin-bottom: clamp(26px, 4vh, 48px);
}
.desk__title em { color: var(--warm); font-style: italic; }

.desk__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
  align-items: start;
}

/* карточка картотеки */
.qa {
  background: linear-gradient(180deg, rgba(239, 227, 210, .055), rgba(239, 227, 210, .02));
  border: 1px solid rgba(201, 165, 107, .2);
  border-radius: 3px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  overflow: hidden;
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.qa:hover { border-color: rgba(201, 165, 107, .42); transform: translateY(-2px); }
.qa[open] {
  border-color: rgba(201, 165, 107, .5);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5), inset 0 0 60px rgba(255, 206, 152, .05);
}

.qa summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 20px;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.3;
  color: var(--paper);
}
.qa summary::-webkit-details-marker { display: none; }

/* латунный плюс, который на раскрытии становится минусом */
.qa summary::after {
  content: "+";
  margin-left: auto;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-size: 17px;
  color: var(--brass);
  border: 1px solid rgba(201, 165, 107, .35);
  border-radius: 50%;
  transition: transform .3s var(--ease-cam), color .2s ease, background-color .2s ease;
}
.qa[open] summary::after {
  content: "\2212";
  transform: rotate(180deg);
  color: var(--ink);
  background: var(--brass);
}

.qa__body {
  padding: 15px 20px 20px;
  border-top: 1px solid rgba(201, 165, 107, .14);
}
.qa__body p {
  color: var(--paper-dim);
  font-size: 14.5px;
  line-height: 1.62;
}
.qa__body p + p { margin-top: 11px; }
.qa__cta { margin-top: 15px; }

.mono {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: .93em;
  color: var(--brass);
}

/* --------------------------------------------------------------------------
   ПОСТОЯННАЯ КНОПКА СВЯЗИ
   Решение написать приходит в случайный момент — на витрине DARE, посреди
   вопросов, в самом низу. Кнопка держится на экране всегда, чтобы этот
   момент не пришлось искать глазами. Появляется после входа в музей,
   чтобы не спорить с дверью.
   -------------------------------------------------------------------------- */

/* Кнопка стоит СЛЕВА, и это не вкусовщина: справа в каждом зале висит
   музейная этикетка с описанием работы, и кнопка в правом углу закрывала
   собой её нижние строки. Левый низ кадра — пол зала, там пусто всегда. */
.callme {
  position: fixed;
  left: clamp(14px, 2.4vw, 30px);
  bottom: calc(var(--plan-h) + clamp(14px, 2vh, 24px));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #1a1208;
  background: linear-gradient(180deg, #ffd7a0, #d9a866);
  border: 1px solid rgba(255, 224, 180, .7);
  box-shadow: 0 10px 34px rgba(255, 176, 92, .3), 0 2px 8px rgba(0, 0, 0, .5);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .45s ease, transform .45s var(--ease-cam), box-shadow .25s ease;
}
.callme.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.callme:hover { box-shadow: 0 14px 44px rgba(255, 176, 92, .5), 0 2px 8px rgba(0, 0, 0, .5); }
.callme:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }

.callme__icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: currentColor;
}

/* мягкое кольцо, чтобы кнопку замечали, но она не мельтешила */
.callme.is-shown::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  border: 1px solid rgba(255, 206, 152, .5);
  animation: callme-ring 3.2s ease-out infinite;
  pointer-events: none;
}
@keyframes callme-ring {
  0%   { opacity: .7; transform: scale(1); }
  70%  { opacity: 0;  transform: scale(1.16); }
  100% { opacity: 0;  transform: scale(1.16); }
}

@media (max-width: 767px) {
  /* На телефоне кнопка со словом «написать» ложилась поверх текста вопросов:
     ширины экрана не хватает на два предмета в одной строке. Оставляем один
     кружок с самолётиком — узнаваемо и почти ничего не закрывает. */
  .callme {
    width: 52px;
    height: 52px;
    padding: 0;
    justify-content: center;
    font-size: 0;            /* слово прячем, значок остаётся */
    letter-spacing: 0;
  }
  .callme__icon { width: 21px; height: 21px; }
  .desk__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .callme.is-shown::before { animation: none; }
  .qa { transition: none; }
}
