/* Справка по рекламе: тихая кнопка в ряду шапки, без янтарного акцента. */
.hdr__tools { position: relative; z-index: 30; }
.desk { position: relative; flex: none; z-index: 31; }

.desk__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  height: 40px;
  padding: 0 11px 0 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: 600 13.5px/1 var(--font-display);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.desk__btn::-webkit-details-marker { display: none; }
.desk__btn::marker { content: ""; }
.desk__btn:hover { background: var(--sunk); border-color: var(--muted); }
.desk[open] .desk__btn { background: var(--sunk); border-color: var(--signal); }

.desk__lamp { display: none; }
.desk__handset { display: block; width: 18px; height: 18px; flex: none; }
.desk__handset path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.desk__panel {
  position: absolute;
  z-index: 32;
  top: calc(100% + 8px);
  right: 0;
  width: min(292px, calc(100vw - 24px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lift);
}
.desk[open] .desk__panel { animation: deskIn .22s var(--ease, cubic-bezier(.22, .61, .36, 1)); }
@keyframes deskIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

.desk__name {
  margin: 0;
  font: 700 18px/1.15 var(--font-display);
  letter-spacing: -.02em;
}
.desk__role {
  margin: 4px 0 0;
  color: var(--muted);
  font: 500 13px/1.35 var(--font-display);
}

.desk__num {
  display: flex;
  flex-wrap: nowrap;
  margin: 12px 0 0;
  color: var(--ink);
  font: 500 18px/1 var(--font-mono);
  text-decoration: none;
}
.desk__num:hover { color: var(--signal); }
.desk__ch {
  display: inline-block;
  min-width: .62em;
  text-align: center;
}
.desk__ch--sp { min-width: .35em; }

.desk__actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.desk__go,
.desk__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  font: 600 14px/1 var(--font-display);
  cursor: pointer;
  text-decoration: none;
}
.desk__go {
  flex: 1;
  background: var(--signal);
  color: #fff;
}
.desk__go:hover { background: var(--signal-deep); }
.desk__copy {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.desk__copy:hover,
.desk__copy.is-done { border-color: var(--signal); color: var(--signal); }
.desk__status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.desk-float .desk__status {
  position: static;
  width: auto;
  height: auto;
  margin: 8px 0 0;
  overflow: visible;
  clip: auto;
  color: var(--muted);
  font: 500 12px/1.35 var(--font-display);
}
.desk-float .desk__status:empty { display: none; }

.desk__apps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.desk__app {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 64px;
  padding: 8px 4px 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--sunk);
  color: var(--ink);
  font: 600 11px/1.15 var(--font-display);
  text-align: center;
  text-decoration: none;
}
.desk__app svg { width: 26px; height: 26px; display: block; flex: none; }
.desk__app:hover { border-color: var(--signal); color: var(--ink); }
.desk__maxhint {
  margin: 8px 0 0;
  color: var(--muted);
  font: 500 12px/1.35 var(--font-display);
}

.desk-drawer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--sunk);
  color: var(--ink);
  text-decoration: none;
}
.desk-drawer:hover { border-color: var(--signal); color: var(--ink); }
.desk-drawer__text { display: grid; gap: 2px; min-width: 0; }
.desk-drawer__text b { font: 700 15px/1.2 var(--font-display); }
.desk-drawer__text span { color: var(--muted); font: 500 13px/1.3 var(--font-display); }
.desk-drawer__text strong {
  margin-top: 2px;
  color: var(--ink);
  font: 500 15px/1 var(--font-mono);
}

@media (max-width: 720px) {
  .desk__words {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .desk__btn { width: 40px; padding: 0; justify-content: center; }
  .desk__panel {
    position: fixed;
    left: 12px;
    right: 12px;
    width: auto;
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .desk[open] .desk__panel { animation: none; }
}

/* Плавающий звонок: пульс, по клику — номер и мессенджеры. */
.desk-float {
  position: fixed;
  z-index: 94;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: 48px;
  height: 48px;
  margin: 0;
}
.desk-float__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--signal);
  box-shadow: var(--shadow-lift);
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.desk-float__btn::-webkit-details-marker { display: none; }
.desk-float__btn::marker { content: ""; }
.desk-float__btn .desk__handset { position: relative; z-index: 1; width: 22px; height: 22px; }
.desk-float__btn::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 2px solid var(--signal);
  border-radius: 50%;
  pointer-events: none;
  animation: deskPulse 1.8s ease-out infinite;
}
@keyframes deskPulse {
  0% { transform: scale(1); opacity: .55; }
  100% { transform: scale(1.7); opacity: 0; }
}
.desk-float__btn:hover,
.desk-float__btn:focus-visible,
.desk-float[open] .desk-float__btn {
  background: var(--signal);
  border-color: var(--signal);
  color: #fff;
}
.desk-float[open] .desk-float__btn::after { animation: none; opacity: 0; }
.desk-float__btn:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}
.desk-float__card {
  position: absolute;
  left: 0;
  bottom: calc(100% + 12px);
  width: min(280px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lift);
}
.desk-float[open] .desk-float__card {
  animation: deskIn .22s var(--ease, cubic-bezier(.22, .61, .36, 1));
}
.desk-float__card .desk__name { font-size: 16px; }
.desk-float__card .desk__num { font-size: 20px; }
.desk-float[open] .desk-float__tip { display: none; }
.desk-float__tip {
  position: absolute;
  left: calc(100% + 10px);
  bottom: 50%;
  width: min(260px, calc(100vw - 92px));
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--board-bg);
  color: var(--board-ink);
  font: 500 13px/1.35 var(--font-display);
  box-shadow: var(--shadow-lift);
  opacity: 0;
  transform: translateY(50%) translateX(-4px);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}
.desk-float__btn:hover .desk-float__tip,
.desk-float__btn:focus-visible .desk-float__tip {
  opacity: 1;
  transform: translateY(50%);
}
body:has(.ap-dock.is-on) .desk-float,
body:has(.kino__popcount) .desk-float {
  bottom: calc(max(16px, env(safe-area-inset-bottom)) + 58px);
}
@media (hover: none) {
  .desk-float__tip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .desk-float__tip { transition: none; transform: translateY(50%); }
  .desk-float__btn::after,
  .desk-float[open] .desk-float__card { animation: none; }
}
@media print {
  .desk-float { display: none; }
}
