/* =========================================================================
   feedback.css — изолированные стили страницы анонимной обратной связи.
   Все правила ограничены областью .fb-page и не влияют на другие страницы.
   Файл подключается ТОЛЬКО из feedback.html.
   ========================================================================= */

/* Сброс только для этой страницы (файл загружается лишь на feedback.html) */
html, body { margin: 0; padding: 0; }
body { background: #eef0e8; }

.fb-page,
.fb-page * { box-sizing: border-box; }

.fb-page {
  min-height: 100vh;
  background: #eef0e8;
  display: flex;
  justify-content: center;
  font-family: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #38473b;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.fb-shell {
  width: 100%;
  max-width: 480px;
  background: #f4f2ea;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Шапка: кнопка возврата слева, логотип по центру (не sticky) --- */
.fb-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #dfe4da;
  background: #f4f2ea;
}

/* Кнопка «Назад на главную» — выглядит как часть дизайна, не как синяя ссылка */
.fb-back {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 14px;
  background: #eef1e9;
  border: 1px solid #dbe1d3;
  border-radius: 12px;
  color: #435246;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease;
}
.fb-back:hover { background: #e6ebe0; }
.fb-back-arrow { font-size: 16px; line-height: 1; }

/* Логотип: центрируется в оставшемся пространстве, даёт визуальный баланс */
.fb-logo-wrap {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
}
.fb-logo-img {
  height: 44px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

/* --- Основная область --- */
.fb-main { padding: 30px 22px 8px; }

/* --- Первый экран --- */
.fb-hero { margin-bottom: 26px; }
.fb-eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #8a9384;
}
.fb-title {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #303e33;
  text-wrap: pretty;
}
.fb-lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: #55605a;
  text-wrap: pretty;
}

/* --- Плашка анонимности --- */
.fb-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  background: #e7eee2;
  border: 1px solid #d7e0cf;
  border-radius: 16px;
  margin-bottom: 18px;
}
.fb-note-icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #5f7562;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.fb-note-text { margin: 0; font-size: 14.5px; line-height: 1.5; color: #46554a; }

/* --- Три преимущества --- */
.fb-benefits { display: flex; gap: 8px; margin-bottom: 34px; }
.fb-benefit {
  flex: 1;
  text-align: center;
  padding: 14px 6px;
  background: #fbfaf5;
  border: 1px solid #e4e8dd;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #435246;
  line-height: 1.3;
}

/* --- Выбор ответственного --- */
.fb-select { margin-bottom: 8px; }
.fb-h2 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 700;
  color: #303e33;
  letter-spacing: -0.01em;
}
.fb-sub { margin: 0 0 20px; font-size: 15px; line-height: 1.5; color: #6b7367; }

.fb-cards { display: flex; flex-direction: column; gap: 12px; }

/* --- Карточка --- */
.fb-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: #fbfaf5;
  border: 1px solid #e4e8dd;
  border-radius: 20px;
}
.fb-photo {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: repeating-linear-gradient(135deg, #e6ebe2, #e6ebe2 6px, #eef1ea 6px, #eef1ea 12px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #96a08f;
  font: 500 10px/1 ui-monospace, monospace;
  letter-spacing: 0.04em;
}
.fb-card-body { flex: 1; min-width: 0; }
.fb-name { font-size: 16.5px; font-weight: 600; color: #303e33; }
.fb-role { font-size: 13.5px; color: #7c857a; margin-top: 2px; }

.fb-toggle {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  min-height: 52px;
  background: #eef1e9;
  border: 1px solid #dbe1d3;
  border-radius: 14px;
  color: #435246;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease;
}
.fb-toggle:hover { background: #e6ebe0; }

/* --- Раскрывающаяся панель --- */
.fb-panel {
  margin-top: 12px;
  padding: 22px 18px;
  background: #ffffff;
  border: 1px solid #e0e5da;
  border-radius: 20px;
  box-shadow: 0 8px 26px -18px rgba(48, 62, 51, 0.4);
  animation: fbFadeUp 0.28s ease both;
}
@keyframes fbFadeUp {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fb-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
}
.fb-panel-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #9aa393;
}
.fb-close {
  background: none;
  border: none;
  color: #9aa393;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.fb-close:hover { color: #6f7768; }

.fb-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #eef1e9;
  border-radius: 999px;
  margin: 6px 0 18px;
}
.fb-chip-dot { width: 8px; height: 8px; border-radius: 50%; background: #5f7562; }
.fb-chip-name { font-size: 14.5px; font-weight: 600; color: #435246; }
.fb-chip-role { font-size: 13px; color: #7c857a; }

.fb-reminder {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.55;
  color: #6b7367;
  padding: 14px 16px;
  background: #f6f4ee;
  border-radius: 12px;
}

.fb-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 56px;
  padding: 16px;
  background: #8f6484;
  color: #ffffff;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s ease;
}
.fb-cta:hover { background: #7d5573; }
.fb-cta svg { flex: 0 0 auto; }

/* Спокойное служебное сообщение под кнопкой, если ссылка ещё не подключена */
.fb-page .fb-cta-note {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: #7c857a;
  text-align: center;
}
.fb-page .fb-cta-note[hidden] { display: none; }

/* --- Завершающий блок --- */
.fb-footer {
  margin-top: 34px;
  padding: 34px 28px 44px;
  background: #e7eee2;
  border-top: 1px solid #d7e0cf;
  text-align: center;
}
.fb-divider { width: 40px; height: 3px; border-radius: 3px; background: #b7c4ab; margin: 0 auto 18px; }
.fb-thanks { margin: 0; font-size: 17px; line-height: 1.55; font-weight: 600; color: #40503f; text-wrap: pretty; }

/* Узкие телефоны 320px */
@media (max-width: 360px) {
  .fb-main { padding: 26px 16px 8px; }
  .fb-title { font-size: 26px; }
  .fb-benefit { font-size: 13px; padding: 12px 4px; }
  .fb-header { gap: 10px; padding: 12px 14px; }
  .fb-back { padding: 8px 12px; font-size: 13.5px; }
  .fb-logo-img { height: 40px; }
}
