/* =============================================================================
 * styles.survey.css — opросник «Совет директоров»
 *
 * Иммерсив-режим: своя топ-бар + прогресс + центральная сцена.
 * Палитра наследует styles.base.css (--bg, --ink, --surface, --muted, --stroke).
 * Из styles.base.css только повторим наши значения как fallback,
 * чтобы страница работала и без него.
 * ============================================================================ */

/* Переменные 1:1 со styles.base.css сайта */
:root {
  --bg:          #d9dde4;
  --surface:     #f6f7fa;
  --surface-2:   #fdfdfe;
  --ink:         #121419;
  --muted:       #4f596d;
  --accent:      #121419;
  --stroke:      rgba(18, 20, 25, 0.1);
  --stroke-soft: rgba(18, 20, 25, 0.06);
  --accent-ink:  #fdfdfe;
  --accent-dim:  rgba(18, 20, 25, 0.06);
  --danger:      #c0241b;

  --soft-shadow:
    0 20px 48px rgba(16, 24, 40, 0.1),
    0 2px 8px rgba(16, 24, 40, 0.06);
  --soft-shadow-small:
    0 10px 24px rgba(16, 24, 40, 0.08),
    0 1px 3px rgba(16, 24, 40, 0.06);

  --font-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --font-body:    "Manrope", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, Menlo, monospace;

  --r-card:   22px;
  --r-option: 14px;
  --r-pill:   999px;
  --ease:     cubic-bezier(0.2, 0.8, 0.2, 1);

  --safe-top:    env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body.survey-body {
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body.survey-body {
  /* Фон 1:1 как на сайте (styles.base.css): холодные голубоватые radial + базовый градиент */
  background:
    radial-gradient(circle at 8% 0%, rgba(130, 170, 255, 0.2), transparent 34%),
    radial-gradient(circle at 88% 2%, rgba(173, 210, 255, 0.18), transparent 30%),
    linear-gradient(145deg, #d7dce5 0%, #dbe0e8 44%, #d4dae3 100%);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.survey-body a {
  color: inherit;
}

body.survey-body button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

body.survey-body button:focus-visible,
body.survey-body input:focus-visible,
body.survey-body textarea:focus-visible,
body.survey-body [role="button"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Noise-слой как на сайте — голубоватые акценты + лёгкий зернистый шум */
.survey-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.survey-grain::before,
.survey-grain::after {
  content: "";
  position: absolute;
  inset: 0;
}

.survey-grain::before {
  background:
    radial-gradient(circle at 18% 8%, rgba(112, 162, 255, 0.34), transparent 34%),
    radial-gradient(circle at 76% 2%, rgba(163, 203, 255, 0.28), transparent 30%),
    radial-gradient(circle at 50% 0%, rgba(204, 226, 255, 0.2), transparent 44%);
  filter: blur(24px);
  opacity: 0.94;
}

.survey-grain::after {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='0.24'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cfilter id='n2'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.26' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='96' height='96' filter='url(%23n2)' opacity='0.16'/%3E%3C/svg%3E");
  opacity: 0.29;
  mix-blend-mode: soft-light;
}

.survey-app {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding:
    max(20px, calc(var(--safe-top) + 16px))
    24px
    calc(24px + var(--safe-bottom));
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ---- Topbar ---- */
.survey-topbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.survey-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}

.survey-brand__dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 4px 3px 3px;
  vertical-align: middle;
}

.survey-step-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.survey-step-meta strong {
  color: var(--ink);
  font-weight: 500;
}

/* ---- Progress ---- */
.survey-progress {
  position: relative;
  height: 8px;
  border-radius: var(--r-pill);
  background: rgba(18, 20, 25, 0.07);
  overflow: visible;
}

.survey-progress__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: var(--r-pill);
  background: var(--ink);
  transition: width 480ms var(--ease);
}

.survey-progress__fill::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--accent);
  transition: transform 240ms var(--ease);
}

.survey-progress[data-pulse="true"] .survey-progress__fill::after {
  animation: surveyPulse 600ms var(--ease);
}

@keyframes surveyPulse {
  0%   { transform: translate(50%, -50%) scale(1); }
  50%  { transform: translate(50%, -50%) scale(1.6); }
  100% { transform: translate(50%, -50%) scale(1); }
}

.survey-milestone-toast {
  position: absolute;
  top: 22px;
  right: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--accent);
  padding: 6px 10px;
  border-radius: var(--r-pill);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 280ms var(--ease), transform 280ms var(--ease);
  pointer-events: none;
}

.survey-milestone-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Stage / screen ---- */
/* Grid stack: оба screen-а в одной grid-cell, накладываются без position:absolute.
   Это даёт корректную auto-height по контенту (длинные списки не вытекают)
   и убирает «кашу» при возврате назад. */
.survey-stage {
  display: grid;
  grid-template-columns: 1fr;
  min-height: max(420px, 60vh);
}

.survey-screen {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: opacity 320ms var(--ease), transform 320ms var(--ease);
}

/* Welcome и Done — центрируем контент вертикально */
.survey-screen[data-question-id="welcome"],
.survey-screen[data-question-id="done"] {
  justify-content: center;
}

.survey-screen.is-entering-fwd  { opacity: 0; transform: translateY(28px); }
.survey-screen.is-entering-back { opacity: 0; transform: translateY(-28px); }
.survey-screen.is-leaving-fwd   { opacity: 0; transform: translateY(-28px); pointer-events: none; }
.survey-screen.is-leaving-back  { opacity: 0; transform: translateY(28px); pointer-events: none; }

/* ---- Card ---- */
.survey-card {
  background: var(--surface-2);
  border: 1px solid var(--stroke);
  border-radius: var(--r-card);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--soft-shadow);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.survey-q-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.survey-q-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.survey-q-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 4.2vw, 38px);
  line-height: 1.16;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

.survey-q-sub {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  max-width: 56ch;
}

.survey-q-sub strong {
  color: var(--ink);
  font-weight: 500;
}

/* ---- Options (single / multi) ---- */
.survey-opts {
  display: grid;
  gap: 10px;
}

.survey-opt {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(18, 20, 25, 0.04);
  border: 1px solid rgba(18, 20, 25, 0.14);
  border-radius: var(--r-option);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 100ms ease, box-shadow 160ms ease;
  user-select: none;
}

.survey-opt:hover {
  border-color: rgba(18, 20, 25, 0.3);
  background: rgba(18, 20, 25, 0.07);
}

.survey-opt:active {
  transform: scale(0.99);
}

.survey-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.survey-opt__bullet {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(18, 20, 25, 0.3);
  background: transparent;
  display: grid;
  place-items: center;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
  cursor: pointer;
}

.survey-opts--multi .survey-opt__bullet:hover {
  border-color: var(--accent);
  transform: scale(1.1);
}

.survey-opt__bullet::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-ink);
  transform: scale(0);
  transition: transform 200ms var(--ease);
}

.survey-opts--multi .survey-opt__bullet {
  border-radius: 6px;
}

.survey-opts--multi .survey-opt__bullet::after {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  transform: scale(0);
  clip-path: polygon(14% 53%, 0 67%, 38% 100%, 100% 16%, 84% 4%, 36% 70%);
  background: var(--accent-ink);
}

.survey-opt__label {
  flex: 1;
  min-width: 0;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.4;
}

.survey-opt.is-selected {
  border-color: var(--accent);
  background: rgba(18, 20, 25, 0.04);
  box-shadow: 0 0 0 1px var(--accent);
}

.survey-opt.is-selected .survey-opt__bullet {
  border-color: var(--accent);
  background: var(--accent);
}

.survey-opt.is-selected .survey-opt__bullet::after {
  transform: scale(1);
}

.survey-opt__followup-wrap {
  flex-basis: 100%;
  display: none;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  animation: surveyFollowupReveal 240ms var(--ease);
}

.survey-opt.is-revealed .survey-opt__followup-wrap {
  display: flex;
}

@keyframes surveyFollowupReveal {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.survey-opt__followup {
  font: inherit;
  font-size: 16px;
  padding: 14px 16px;
  border: 1.5px solid var(--accent);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: box-shadow 160ms ease;
}

.survey-opt__followup:focus {
  box-shadow: 0 0 0 3px rgba(18, 20, 25, 0.18);
}

.survey-opt__followup-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- Text input ---- */
.survey-input-wrap {
  position: relative;
}

.survey-input {
  width: 100%;
  font: inherit;
  font-size: 17px;
  padding: 16px 18px;
  border: 1px solid rgba(18, 20, 25, 0.14);
  border-radius: var(--r-option);
  background: rgba(18, 20, 25, 0.04);
  color: var(--ink);
  outline: none;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.survey-input:hover {
  border-color: rgba(18, 20, 25, 0.3);
}

.survey-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

/* ---- NPS ---- */
.survey-nps {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.survey-nps__verdict {
  min-height: 28px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
  text-align: center;
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}

.survey-nps__verdict[data-empty="true"] {
  opacity: 0.4;
  font-style: italic;
}

.survey-nps__track {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 6px;
}

.survey-nps__cell {
  position: relative;
  padding: 22px 0 14px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: rgba(18, 20, 25, 0.04);
  border: 1px solid rgba(18, 20, 25, 0.14);
  border-radius: 10px;
  cursor: pointer;
  transition: background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease), transform 160ms var(--ease);
  font-variant-numeric: tabular-nums;
}

.survey-nps__cell:hover {
  border-color: rgba(18, 20, 25, 0.3);
  color: var(--ink);
}

.survey-nps__cell.is-passed {
  background: rgba(18, 20, 25, 0.14);
  border-color: rgba(18, 20, 25, 0.35);
  color: var(--ink);
}

.survey-nps__cell.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-3px);
}

.survey-nps__legend {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- Ladder (income) ---- */
/* Переписан на flex (раньше grid + height %% не давали высоты барам в части браузеров) */
.survey-ladder {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.survey-ladder__bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  min-height: 200px;
}

.survey-ladder__bar {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  padding: 12px 6px 10px;
  background: rgba(18, 20, 25, 0.05);
  border: 1.5px solid rgba(18, 20, 25, 0.18);
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 160ms ease, transform 160ms var(--ease);
}

/* Явные px-высоты (заменили %, чтобы гарантировать видимость во всех браузерах) */
.survey-ladder__bar:nth-child(1) { height: 80px; }
.survey-ladder__bar:nth-child(2) { height: 100px; }
.survey-ladder__bar:nth-child(3) { height: 120px; }
.survey-ladder__bar:nth-child(4) { height: 140px; }
.survey-ladder__bar:nth-child(5) { height: 160px; }
.survey-ladder__bar:nth-child(6) { height: 180px; }
.survey-ladder__bar:nth-child(7) { height: 195px; }
.survey-ladder__bar:nth-child(8) { height: 210px; }

.survey-ladder__bar::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 0%;
  background: var(--accent);
  transition: height 280ms var(--ease), opacity 200ms var(--ease);
  z-index: 0;
}

.survey-ladder__bar > * {
  position: relative;
  z-index: 1;
}

.survey-ladder__bar:hover {
  border-color: rgba(18, 20, 25, 0.4);
}

/* Hover-preview: мягкая заливка для всех баров от 1 до hovered */
.survey-ladder__bar.is-preview::before {
  height: 100%;
  opacity: 0.12;
}

.survey-ladder__bar.is-passed::before {
  height: 100%;
  opacity: 0.22;
}

.survey-ladder__bar.is-active::before {
  height: 100%;
  opacity: 1;
}

.survey-ladder__bar.is-active {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.survey-ladder__bar.is-active .survey-ladder__label,
.survey-ladder__bar.is-active .survey-ladder__amount {
  color: var(--accent-ink);
}

.survey-ladder__amount {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  min-height: 14px;
}

.survey-ladder__label {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.2;
  white-space: nowrap;
  min-height: 12px;
}

.survey-ladder__skip {
  align-self: center;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  border: 1px dashed var(--stroke);
  color: var(--muted);
  font-size: 14px;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.survey-ladder__skip:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.survey-ladder__skip.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  border-style: solid;
}

/* ---- Consent + honeypot + fineprint ---- */
.survey-consent-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.survey-consent-note {
  margin: 0;
  padding: 16px 18px;
  background: var(--surface-2);
  border: 1px dashed var(--stroke);
  border-radius: var(--r-option);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.survey-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}

.survey-consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: var(--ink);
  cursor: pointer;
}

.survey-consent__text {
  flex: 1;
}

.survey-fineprint {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

.survey-fineprint a {
  color: var(--ink);
  text-decoration: underline;
}

.survey-honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

/* ---- Welcome ---- */
.survey-welcome,
.survey-done {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.survey-welcome .survey-q-title,
.survey-done .survey-q-title {
  text-align: center;
  font-size: clamp(36px, 5.6vw, 56px);
  line-height: 1.1;
}

.survey-welcome .survey-q-sub,
.survey-done .survey-q-sub {
  text-align: center;
  font-size: 17px;
  max-width: 56ch;
}

.survey-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  align-self: center;
}

.survey-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: surveyBlink 1.6s infinite;
}

@keyframes surveyBlink {
  0%, 60%, 100% { opacity: 1; }
  30% { opacity: 0.35; }
}

.survey-welcome__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 580px;
  margin: 0;
}

.survey-welcome__meta-item {
  padding: 20px 18px;
  border: 1px solid rgba(18, 20, 25, 0.14);
  border-radius: 16px;
  background: rgba(18, 20, 25, 0.04);
  text-align: left;
}

.survey-welcome__meta-item dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}

.survey-welcome__meta-item dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.survey-welcome-cta {
  margin-top: 14px;
  padding: 18px 32px;
  font-size: 17px;
}

/* ---- Done ---- */
.survey-done__check {
  width: 88px;
  height: 88px;
  color: var(--accent);
  display: grid;
  place-items: center;
}

.survey-done__check svg {
  width: 100%;
  height: 100%;
}

.survey-done__check-ring {
  stroke-dasharray: 182;
  stroke-dashoffset: 182;
  animation: surveyDrawRing 700ms 200ms var(--ease) forwards;
  transform-origin: center;
}

.survey-done__check-path {
  stroke-dasharray: 56;
  stroke-dashoffset: 56;
  animation: surveyDrawCheck 480ms 800ms var(--ease) forwards;
}

@keyframes surveyDrawRing { to { stroke-dashoffset: 0; } }
@keyframes surveyDrawCheck { to { stroke-dashoffset: 0; } }

.survey-done__share {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.survey-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--stroke);
  background: var(--surface);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 100ms ease;
}

.survey-share-btn:hover {
  background: var(--surface-2);
  border-color: rgba(18, 20, 25, 0.3);
}

.survey-share-btn:active {
  transform: scale(0.98);
}

.survey-share-btn.survey-share-btn--primary {
  background: #101114;
  color: #fff;
  font-weight: 600;
  border-color: #101114;
}

.survey-share-btn.survey-share-btn--primary:hover {
  background: #1b1e25;
  color: #fff;
  border-color: #1b1e25;
}

.survey-done__home {
  align-self: center;
  margin-top: 6px;
}

/* ---- Actions footer ---- */
.survey-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
  margin-top: auto;
}

.survey-actions__hint {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.survey-actions__hint kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 6px;
  border: 1px solid var(--stroke);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
}

/* ---- Buttons ---- */
.survey-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 100ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease, opacity 160ms ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.survey-btn:active {
  transform: scale(0.97);
}

.survey-btn.survey-btn--primary {
  background: #101114;
  color: #fff;
  box-shadow: 0 8px 20px rgba(16, 17, 20, 0.22);
}

.survey-btn.survey-btn--primary:hover {
  background: #1b1e25;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(16, 17, 20, 0.26);
}

.survey-btn.survey-btn--ghost {
  color: var(--muted);
  border-color: var(--stroke);
  background: transparent;
}

.survey-btn.survey-btn--ghost:hover {
  background: #101114;
  color: #fff;
  border-color: #101114;
}

/* Унифицировано со стилем .btn-primary из styles.base.css сайта */
.survey-btn.survey-btn--accent {
  background: #101114;
  color: #fff;
  box-shadow: 0 8px 20px rgba(16, 17, 20, 0.22);
}

.survey-btn.survey-btn--accent:hover {
  background: #1b1e25;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(16, 17, 20, 0.26);
}

.survey-btn[disabled],
.survey-btn[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.survey-btn .arrow {
  display: inline-block;
  transition: transform 200ms var(--ease);
}

.survey-btn:hover .arrow {
  transform: translateX(3px);
}

/* ---- Error ---- */
.survey-error {
  color: var(--danger);
  font-size: 13px;
  font-weight: 500;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 200ms var(--ease), opacity 200ms var(--ease);
}

.survey-error.is-visible {
  max-height: 60px;
  opacity: 1;
}

/* ---- CTA-блок (используется на других страницах сайта, не в опросе) ---- */
/* Стили для .survey-cta остаются в styles.base.css */

@media (max-width: 720px) {
  .survey-app {
    gap: 22px;
    padding:
      max(16px, calc(var(--safe-top) + 12px))
      16px
      calc(20px + var(--safe-bottom));
  }
  .survey-card {
    padding: 22px;
    gap: 18px;
  }
  .survey-opt {
    padding: 14px 16px;
  }
  .survey-opt__label {
    font-size: 16px;
  }
  .survey-welcome__meta {
    grid-template-columns: 1fr;
  }
  .survey-nps__track {
    gap: 3px;
  }
  .survey-nps__cell {
    padding: 16px 0 10px;
    font-size: 13px;
    border-radius: 8px;
  }
  .survey-ladder__bars {
    flex-wrap: wrap;
    height: auto;
    gap: 4px;
  }
  .survey-ladder__bar {
    flex: 1 1 calc(25% - 4px);
    min-width: 0;
    height: 70px !important;
  }
  .survey-ladder__amount {
    font-size: 11px;
  }
  .survey-ladder__label {
    font-size: 9px;
  }
  .survey-actions__hint {
    display: none;
  }
  .survey-btn {
    padding: 12px 18px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
