/* ── Анкета оценки сотрудничества ───────────────────────────────────────────
   Панель квиза между шапкой и футером сайта. Токены — из main.css:
   акцент #f47316 / hover #de5805, Nunito Sans, 1rem = 10px. */

.survey {
  /* Шапка сайта sticky, поэтому панель начинается ниже её,
     иначе строка прогресса оказывается под меню. */
  padding: 2rem 0 8rem;
  background: #f7f5f3;
}

.survey__inner {
  max-width: 88rem;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Шапка панели: прогресс и счётчик шагов ─────────────────────────────── */

.survey__bar {
  display: flex;
  padding-top: 1.6rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  margin-bottom: 1.2rem;
}

.survey__bar-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a8a8a;
}

.survey__step-count {
  font-size: 1.4rem;
  font-weight: 700;
  color: #f47316;
}

.survey__progress {
  height: 0.6rem;
  border-radius: 0.6rem;
  background: #e8e2dc;
  overflow: hidden;
  margin-bottom: 2rem;
}

.survey__progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 0.6rem;
  background: #f47316;
  transition: width 0.35s ease;
}

/* ── Карточка ───────────────────────────────────────────────────────────── */

.survey__card {
  background: #fff;
  border-radius: 2.4rem;
  padding: 4rem;
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.07);
}

.survey__eyebrow {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f47316;
  margin-bottom: 1.2rem;
}

.survey__card h2 {
  font-size: 3rem;
  line-height: 1.2;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 1.2rem;
}

.survey__lead {
  font-size: 1.7rem;
  line-height: 1.5;
  color: #5b5b5b;
  margin: 0;
}

/* ── Стартовый экран ────────────────────────────────────────────────────── */

.survey__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3.2rem 0;
  padding: 2.4rem;
  border-radius: 1.6rem;
  background: #fbf7f3;
}

.survey__fact strong {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  color: #f47316;
  line-height: 1.1;
}

.survey__fact span {
  display: block;
  margin-top: 0.6rem;
  font-size: 1.4rem;
  line-height: 1.35;
  color: #5b5b5b;
}

.survey__points {
  margin: 0 0 3.2rem;
  padding: 0;
  list-style: none;
}

.survey__points li {
  position: relative;
  padding-left: 2.8rem;
  margin-bottom: 1.2rem;
  font-size: 1.6rem;
  line-height: 1.5;
  color: #3a3a3a;
}

.survey__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #f47316;
}

.survey__note {
  margin-top: 2rem;
  font-size: 1.4rem;
  line-height: 1.5;
  color: #8a8a8a;
}

/* ── Вопросы ────────────────────────────────────────────────────────────── */

.survey__questions {
  margin-top: 3.2rem;
}

.survey__q {
  display: flex;
  gap: 1.6rem;
  padding: 2.8rem 0;
  border-top: 1px solid #efeae5;
}

.survey__q:first-child {
  border-top: 0;
  padding-top: 0;
}

.survey__q-code {
  flex: 0 0 auto;
  min-width: 3.6rem;
  height: 2.6rem;
  padding: 0 0.8rem;
  border-radius: 0.8rem;
  background: #fbf0e7;
  color: #de5805;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 2.6rem;
  text-align: center;
}

.survey__q-body {
  flex: 1 1 auto;
  min-width: 0;
}

.survey__q h3 {
  font-size: 1.9rem;
  line-height: 1.35;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 1.6rem;
}

.survey__q-hint {
  margin: -0.8rem 0 1.6rem;
  font-size: 1.4rem;
  line-height: 1.45;
  color: #8a8a8a;
}

.survey__required {
  color: #f47316;
  margin-left: 0.4rem;
}

/* ── Варианты-таблетки ──────────────────────────────────────────────────── */

.survey__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.survey__pill {
  padding: 1.2rem 2rem;
  border: 1px solid #e4ded8;
  border-radius: 1.4rem;
  background: #fff;
  font-family: inherit;
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 600;
  color: #3a3a3a;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.survey__pill:hover {
  border-color: #f4a06a;
  color: #de5805;
}

.survey__pill._selected {
  border-color: #f47316;
  background: #f47316;
  color: #fff;
}

/* ── Шкалы 1–5 и NPS 0–10 ───────────────────────────────────────────────── */

.survey__scale {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.survey__scale-btn {
  width: 5.4rem;
  height: 5.4rem;
  border: 1px solid #e4ded8;
  border-radius: 1.4rem;
  background: #fff;
  font-family: inherit;
  font-size: 1.8rem;
  font-weight: 800;
  color: #3a3a3a;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.survey__scale._nps .survey__scale-btn {
  width: 4.6rem;
  height: 4.6rem;
  font-size: 1.6rem;
}

.survey__scale-btn:hover {
  border-color: #f4a06a;
  color: #de5805;
}

.survey__scale-btn._selected {
  border-color: #f47316;
  background: #f47316;
  color: #fff;
  transform: translateY(-0.2rem);
}

.survey__scale-labels {
  display: flex;
  justify-content: space-between;
  gap: 1.6rem;
  margin-top: 1rem;
  font-size: 1.3rem;
  color: #8a8a8a;
}

.survey__na {
  margin-top: 1.4rem;
  padding: 0.9rem 1.6rem;
  border: 1px dashed #d8d2cc;
  border-radius: 1.2rem;
  background: #fff;
  font-family: inherit;
  font-size: 1.4rem;
  font-weight: 600;
  color: #8a8a8a;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.survey__na:hover {
  border-color: #f4a06a;
  color: #de5805;
}

.survey__na._selected {
  border-style: solid;
  border-color: #f47316;
  color: #de5805;
  background: #fbf0e7;
}

/* ── Текстовые поля ─────────────────────────────────────────────────────── */

.survey__field {
  display: block;
}

.survey__field-label {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: #5b5b5b;
}

.survey__input,
.survey__textarea {
  display: block;
  width: 100%;
  padding: 1.4rem 1.8rem;
  border: 1px solid #e4ded8;
  border-radius: 1.4rem;
  background: #fff;
  font-family: inherit;
  font-size: 1.6rem;
  line-height: 1.4;
  color: #1a1a1a;
  transition: border-color 0.18s ease;
}

.survey__textarea {
  min-height: 12rem;
  resize: vertical;
}

.survey__input:focus,
.survey__textarea:focus {
  outline: none;
  border-color: #f47316;
}

/* ── Служебные блоки ────────────────────────────────────────────────────── */

.survey__notice {
  padding: 2rem 2.4rem;
  border-radius: 1.6rem;
  background: #fbf7f3;
  border-left: 4px solid #f47316;
}

.survey__notice strong {
  display: block;
  font-size: 1.6rem;
  color: #1a1a1a;
  margin-bottom: 0.6rem;
}

.survey__notice span {
  font-size: 1.5rem;
  line-height: 1.5;
  color: #5b5b5b;
}

.survey__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ── Навигация ──────────────────────────────────────────────────────────── */

.survey__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  margin-top: 3.2rem;
  padding-top: 2.8rem;
  border-top: 1px solid #efeae5;
}

.survey__back {
  padding: 1.2rem 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: 600;
  color: #8a8a8a;
  cursor: pointer;
  transition: color 0.18s ease;
}

.survey__back:hover {
  color: #de5805;
}

.survey__submit {
  min-height: 5.4rem;
  padding: 0 3.2rem;
  border: 0;
  border-radius: 1.6rem;
  background: #f47316;
  font-family: inherit;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.survey__submit:hover:not(:disabled) {
  background: #de5805;
}

.survey__submit:disabled {
  background: #e0dbd6;
  color: #a3a3a3;
  cursor: not-allowed;
}

.survey__skip {
  margin-right: 1.6rem;
  font-size: 1.4rem;
  color: #8a8a8a;
}

.survey__nav-action {
  display: flex;
  align-items: center;
}

.survey__error {
  margin-top: 1.6rem;
  padding: 1.2rem 1.6rem;
  border-radius: 1.2rem;
  background: #fdeceb;
  font-size: 1.5rem;
  color: #c0392b;
}

.survey__privacy {
  margin-top: 2.4rem;
  font-size: 1.3rem;
  line-height: 1.5;
  color: #a3a3a3;
}

.survey__privacy a {
  color: #8a8a8a;
  text-decoration: underline;
}

/* ── Согласие на обработку персональных данных ──────────────────────────── */

.survey__consent {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-top: 2.4rem;
  font-size: 1.4rem;
  line-height: 1.45;
  color: #5b5b5b;
  cursor: pointer;
}

.survey__consent input {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  margin-top: 0.1rem;
  accent-color: #f47316;
}

/* ── Финальный экран ────────────────────────────────────────────────────── */

.survey__done {
  text-align: center;
  padding: 2rem 0;
}

.survey__done-icon {
  width: 8rem;
  height: 8rem;
  margin: 0 auto 2.4rem;
  border-radius: 50%;
  background: #f47316;
  color: #fff;
  font-size: 4rem;
  line-height: 8rem;
}

.survey__promise {
  display: inline-block;
  margin-top: 2rem;
  padding: 1.4rem 2.4rem;
  border-radius: 1.4rem;
  background: #fbf7f3;
  font-size: 1.5rem;
  line-height: 1.5;
  color: #3a3a3a;
}

/* ── Мобильная версия ───────────────────────────────────────────────────── */

@media (max-width: 767px) {
  .survey { padding: 1.2rem 0 4.8rem; }
  .survey__inner { padding: 0 1.2rem; }
  .survey__card { padding: 2.4rem 1.8rem; border-radius: 1.8rem; }
  .survey__card h2 { font-size: 2.4rem; }
  .survey__facts { grid-template-columns: 1fr; gap: 1.6rem; padding: 1.8rem; }
  .survey__q { flex-direction: column; gap: 1rem; padding: 2.2rem 0; }
  .survey__q-code { align-self: flex-start; }
  .survey__q h3 { font-size: 1.7rem; }
  .survey__pill { width: 100%; }
  .survey__scale-btn { width: 4.6rem; height: 4.6rem; font-size: 1.6rem; }
  .survey__scale._nps .survey__scale-btn { width: 3.8rem; height: 3.8rem; font-size: 1.4rem; }
  .survey__nav { flex-direction: column-reverse; align-items: stretch; gap: 1.2rem; }
  .survey__submit { width: 100%; }
  .survey__nav-action { flex-direction: column; align-items: stretch; gap: 0.8rem; }
  .survey__skip { margin: 0; text-align: center; }
}
