/* Страница /support: выбор канала и веб-чат */
.page-support .help {
  padding: clamp(36px, 7vw, 88px) 0 clamp(56px, 8vw, 110px);
}
.help__inner { max-width: 860px; }
.help__lead { max-width: 38em; margin-top: 12px; }

.help__pick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  margin-top: clamp(28px, 4vw, 40px);
}
.help-way {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: clamp(22px, 2.4vw, 30px);
  border: 0;
  border-radius: var(--r-lg);
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  backdrop-filter: blur(14px);
  transition: transform .3s cubic-bezier(.2, .8, .3, 1), box-shadow .3s;
}
.help-way:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1.5px rgba(139, 92, 255, .45), 0 36px 80px -34px rgba(139, 92, 255, .55);
}
.help-way__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--grad-soft);
  color: var(--cyan);
}
.help-way__icon svg { width: 24px; height: 24px; }
.help-way h2 { font-size: 22px; font-weight: 900; letter-spacing: -.03em; }
.help-way p { color: var(--muted); font-size: 15px; line-height: 1.5; flex: 1; }
.help-way .btn { margin-top: 8px; pointer-events: none; }

.help__card,
.help__chat {
  margin-top: clamp(24px, 3.4vw, 36px);
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: var(--r-lg);
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
  backdrop-filter: blur(14px);
}
.help__card[hidden],
.help__chat[hidden],
.help__pick[hidden] { display: none; }

.help__card { display: grid; gap: 16px; max-width: 520px; }
.help__card h2,
.help__chat h2 { font-size: 24px; font-weight: 900; letter-spacing: -.03em; }
.help__back {
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cyan);
  font: 800 14px/1.2 inherit;
  cursor: pointer;
}
.help__back:hover { color: var(--txt); }
.help__note {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: rgba(255, 196, 92, .1);
  color: #ffd9a0;
  font-size: 13.5px;
  font-weight: 700;
}

.help__chat { display: grid; grid-template-rows: auto auto auto 1fr auto; min-height: min(64vh, 680px); }
.help-log {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 240px;
  max-height: min(48vh, 420px);
  margin: 8px 0 16px;
  padding: 4px 2px 8px;
  overflow: auto;
}
.help-log__empty {
  color: var(--faint);
  font-size: 14.5px;
  line-height: 1.5;
  padding: 18px 8px;
}
.help-bubble {
  max-width: 82%;
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.help-bubble--user {
  margin-left: auto;
  background: var(--grad);
  color: #0a0524;
  font-weight: 700;
}
.help-bubble--admin {
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px var(--line);
}
.help-bubble--system {
  margin: 4px auto;
  max-width: 90%;
  padding: 0;
  background: none;
  color: var(--faint);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.help-compose {
  display: grid;
  gap: 10px;
}
.help-compose__field textarea {
  min-height: 88px;
  max-height: 180px;
}
.help-compose .btn { justify-self: end; min-width: 140px; }

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

@media (max-width: 720px) {
  .help__pick { grid-template-columns: 1fr; }
  .help-way:hover { transform: none; }
  .help__chat { min-height: 0; }
  .help-log { max-height: 46vh; }
}
